This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from rest_framework import schemas | |
g = schemas.SchemaGenerator() | |
s = g.get_schema() | |
for f in s['adapter'].links['create'].fields: | |
print(f) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<form class="example-form"> | |
<md-form-field class="example-full-width"> | |
<input type="text" mdInput [formControl]="myControl" [mdAutocomplete]="auto" placeholder="Health Topic Name"> | |
<md-autocomplete #auto="mdAutocomplete"> | |
<md-option *ngFor="let option of serverOptions | async" [value]="option"> | |
{{ option }} | |
</md-option> | |
</md-autocomplete> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gov.nih.nlm.occs.norconex; | |
import java.io.IOException; | |
import java.io.Reader; | |
import java.io.StringReader; | |
import java.io.StringWriter; | |
import java.io.Writer; | |
import java.util.ArrayList; | |
import java.util.Date; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package gov.nih.nlm.occs.norconex.util; | |
import static com.norconex.collector.core.AbstractCollectorLauncher.ARG_CONFIG; | |
import static com.norconex.collector.core.AbstractCollectorLauncher.ARG_VARIABLES; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.StringReader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RecentlyModifiedLocalTarget(luigi.LocalTarget): | |
""" | |
The local file must have been recently enough modified to "exist", driving luigi's DAG | |
""" | |
def __init__(self, *args, **kwargs): | |
""" | |
Extract an optional maxage parameter | |
""" | |
maxage = kwargs.pop('maxage', None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"referrerLinkText": null, | |
"isRootParentReference": false, | |
"sitemapLastMod": null, | |
"parentRootReference": null, | |
"referrerLinkTag": null, | |
"sitemapChangeFreq": null, | |
"crawlState": "REJECTED", | |
"isValid": false, | |
"contentType": "text/html", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from urllib.parse import urlsplit | |
from tornado import gen | |
from tornado.escape import url_escape | |
from tornado.httputil import url_concat | |
from traitlets import ( | |
Unicode, Integer, Dict, TraitError, List, Bool, Any, | |
Type, Set, Instance, Bytes, Float, | |
observe, default, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Test the linter | |
""" | |
def real_uninitialized_problem(x): | |
""" | |
Real problem of uninitialized variable | |
""" | |
return x + y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db.backends.base.base import BaseDatabaseWrapper | |
from django.db import connections | |
import cx_Oracle | |
__all__ = ( | |
'get_etl_cursor', | |
) | |
class CursorProxy(object): |
OlderNewer