hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
245
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
245
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
08f9f47967bf79e090f1eab95d3608e33949266b
571
py
Python
chekkit/ussdapi/models.py
chekkitapp/chekkitapp
57b63f3f73f487044713b04aa9f3087722edd929
[ "MIT" ]
null
null
null
chekkit/ussdapi/models.py
chekkitapp/chekkitapp
57b63f3f73f487044713b04aa9f3087722edd929
[ "MIT" ]
1
2018-07-12T13:47:13.000Z
2018-07-12T13:47:13.000Z
chekkit/ussdapi/models.py
chekkitapp/chekkit_project
57b63f3f73f487044713b04aa9f3087722edd929
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import JSONField # Create your models here. class UssdRecord(models.Model): session_id = models.CharField(max_length=50) phone_no = models.CharField(max_length=15) gateway = models.CharField(max_length=10) data = JSONField(default=dict()) created = ...
30.052632
54
0.770578
from django.db import models from django.contrib.postgres.fields import JSONField class UssdRecord(models.Model): session_id = models.CharField(max_length=50) phone_no = models.CharField(max_length=15) gateway = models.CharField(max_length=10) data = JSONField(default=dict()) created = models.DateTimeField(auto_n...
true
true
08f9f670fd6746584de785c4939540c2e98fbef9
8,301
py
Python
openshift/client/models/v1_secret_build_source.py
TristanCacqueray/openshift-restclient-python
7758cde7a8094acb279904f15c29e5fe3e9f7d33
[ "Apache-2.0" ]
null
null
null
openshift/client/models/v1_secret_build_source.py
TristanCacqueray/openshift-restclient-python
7758cde7a8094acb279904f15c29e5fe3e9f7d33
[ "Apache-2.0" ]
null
null
null
openshift/client/models/v1_secret_build_source.py
TristanCacqueray/openshift-restclient-python
7758cde7a8094acb279904f15c29e5fe3e9f7d33
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenShift API (with Kubernetes) OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is...
53.211538
3,325
0.691362
from pprint import pformat from six import iteritems import re class V1SecretBuildSource(object): swagger_types = { 'destination_dir': 'str', 'secret': 'V1LocalObjectReference' } attribute_map = { 'destination_dir': 'destinationDir', 'secret': 'secret' } def ...
true
true
08f9f6c7e0762a2a70397ab7dab7a5302f32a70a
26,715
py
Python
reviewboard/reviews/models/review_request_draft.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
2
2020-06-19T14:57:49.000Z
2020-06-19T15:17:40.000Z
reviewboard/reviews/models/review_request_draft.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
1
2019-08-03T01:48:33.000Z
2019-08-03T01:48:33.000Z
reviewboard/reviews/models/review_request_draft.py
amalik2/reviewboard
676aa2dce38ce619a74f2d4cb3cfae9bce21416e
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import copy from django.contrib.auth.models import User from django.db import models from django.db.models import F from django.utils import timezone from django.utils.translation import ugettext, ugettext_lazy as _ from djblets.db.fields import ModificationTimestampField, Rela...
39.519231
82
0.604305
from __future__ import unicode_literals import copy from django.contrib.auth.models import User from django.db import models from django.db.models import F from django.utils import timezone from django.utils.translation import ugettext, ugettext_lazy as _ from djblets.db.fields import ModificationTimestampField, Rela...
true
true
08f9f7501b82564d2ad9ca9671ab50230f7f021e
16,429
py
Python
test_stack.py
98yangjames/PythonStackOverFlow
42cf99484ba3e336da4f117dc7f9ec474130f32c
[ "MIT" ]
1
2022-02-21T20:30:49.000Z
2022-02-21T20:30:49.000Z
test_stack.py
98yangjames/PythonStackOverFlow
42cf99484ba3e336da4f117dc7f9ec474130f32c
[ "MIT" ]
null
null
null
test_stack.py
98yangjames/PythonStackOverFlow
42cf99484ba3e336da4f117dc7f9ec474130f32c
[ "MIT" ]
null
null
null
import StackOverflow import unittest import traceback import sys import warnings """ This is our StackOverflowAPI testing class which does not interact with the actual API via the internet, instead it returns dummy values. """ class getterTesting(StackOverflow.StackOverflowAPI): def __init__(self): self...
62.94636
124
0.424737
import StackOverflow import unittest import traceback import sys import warnings class getterTesting(StackOverflow.StackOverflowAPI): def __init__(self): self.meta_data = {} self.stack_data = {'tags': ['python'], 'comments': [{'owner': {'reputation': 330022, 'user_id': 908494, ...
true
true
08f9f782d2c863b9183fc929b4aa905d1555c490
15,794
py
Python
cms/templatetags/cms_tags.py
tonatos/django-cms
96003df57c2dc0215bf109dc74a85aa0c798d1b4
[ "BSD-3-Clause" ]
null
null
null
cms/templatetags/cms_tags.py
tonatos/django-cms
96003df57c2dc0215bf109dc74a85aa0c798d1b4
[ "BSD-3-Clause" ]
5
2021-03-19T15:49:27.000Z
2022-03-12T00:52:58.000Z
cms/templatetags/cms_tags.py
rom3r4/django-cms
8aca4c881c7de2c58b39bc94ad0c6285ca77f4a2
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from classytags.arguments import Argument, MultiValueArgument from classytags.core import Options, Tag from classytags.helpers import InclusionTag, AsTag from classytags.parser import Parser from cms.models import Page, Placeholder as PlaceholderModel from cms.plugin_rendering import render_plug...
36.308046
105
0.659238
from classytags.arguments import Argument, MultiValueArgument from classytags.core import Options, Tag from classytags.helpers import InclusionTag, AsTag from classytags.parser import Parser from cms.models import Page, Placeholder as PlaceholderModel from cms.plugin_rendering import render_plugins, render_placeholder ...
true
true
08f9f934b2ef45987daf3670669671ff029b90a3
1,398
py
Python
DDRBot.py
favhwdg/DDRBot
97010aafb3e8857e62224ad7bfc0dd1224553630
[ "CC0-1.0" ]
null
null
null
DDRBot.py
favhwdg/DDRBot
97010aafb3e8857e62224ad7bfc0dd1224553630
[ "CC0-1.0" ]
null
null
null
DDRBot.py
favhwdg/DDRBot
97010aafb3e8857e62224ad7bfc0dd1224553630
[ "CC0-1.0" ]
null
null
null
from pyautogui import * import pyautogui import time import keyboard ## This code is written to FC any map on DDR (Link used : http://p.eagate.573.jp/game/eacddr/vic/app/2020051402/index.html) ## The numbers below are manually aquired (wont work on different screens) ## Arrow1: 438 301 ## Arrow2: 577 342 #...
31.772727
124
0.61731
from pyautogui import * import pyautogui import time import keyboard def click(Arrow): if(Arrow) == 1: keyboard.press_and_release("left") if(Arrow) == 2: keyboard.press_and_release("down") if(Arrow) == 3: keyboard.press_and_release("up") if(Arrow) == 4: ...
true
true
08f9f972b661eeb29830dbb6961009e8352daa85
396
py
Python
chapter6/6_3Parsing Simple XML Data/6_3.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
chapter6/6_3Parsing Simple XML Data/6_3.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
chapter6/6_3Parsing Simple XML Data/6_3.py
atigerboy/PythonCookBook
e9238c7676063b5077a7645707ecc51052063d8d
[ "MIT" ]
null
null
null
from urllib.request import urlopen from xml.etree.ElementTree import parse #download the RSS feed and parse it u = urlopen( 'http://planet.python.org/rss20.xml' ) doc = parse( u ) for item in doc.iterfind('channel/item'): title = item.findtext('title') date = item.findtext('pubDate') link = item.findtext(...
24.75
51
0.669192
from urllib.request import urlopen from xml.etree.ElementTree import parse u = urlopen( 'http://planet.python.org/rss20.xml' ) doc = parse( u ) for item in doc.iterfind('channel/item'): title = item.findtext('title') date = item.findtext('pubDate') link = item.findtext('link') print( title ) prin...
true
true
08f9f99079e858af4b20cdd6dee71e701e26b875
333
py
Python
homeassistant/components/devolo_home_control/const.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
6
2016-11-25T06:36:27.000Z
2021-11-16T11:20:23.000Z
homeassistant/components/devolo_home_control/const.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
52
2020-07-14T14:12:26.000Z
2022-03-31T06:24:02.000Z
homeassistant/components/devolo_home_control/const.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
2
2021-03-17T11:01:07.000Z
2021-08-19T15:21:32.000Z
"""Constants for the devolo_home_control integration.""" DOMAIN = "devolo_home_control" DEFAULT_MYDEVOLO = "https://www.mydevolo.com" DEFAULT_MPRM = "https://homecontrol.mydevolo.com" PLATFORMS = ["binary_sensor", "climate", "cover", "light", "sensor", "switch"] CONF_MYDEVOLO = "mydevolo_url" CONF_HOMECONTROL = "home_...
37
78
0.756757
DOMAIN = "devolo_home_control" DEFAULT_MYDEVOLO = "https://www.mydevolo.com" DEFAULT_MPRM = "https://homecontrol.mydevolo.com" PLATFORMS = ["binary_sensor", "climate", "cover", "light", "sensor", "switch"] CONF_MYDEVOLO = "mydevolo_url" CONF_HOMECONTROL = "home_control_url"
true
true
08f9f997889f4121640c5755ba582cdcb828cfae
4,006
py
Python
tests/test_functional.py
mogudaxia/LEMD
424012f35abda7393ed9fe7f79df39be59d9da6f
[ "MIT" ]
null
null
null
tests/test_functional.py
mogudaxia/LEMD
424012f35abda7393ed9fe7f79df39be59d9da6f
[ "MIT" ]
null
null
null
tests/test_functional.py
mogudaxia/LEMD
424012f35abda7393ed9fe7f79df39be59d9da6f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Functional tests using WebTest. See: http://webtest.readthedocs.org/ """ from flask import url_for from lemd_prototype.user.models import User from .factories import UserFactory class TestLoggingIn: """Login.""" def test_can_log_in_returns_200(self, user, testapp): """Lo...
33.107438
80
0.589865
from flask import url_for from lemd_prototype.user.models import User from .factories import UserFactory class TestLoggingIn: def test_can_log_in_returns_200(self, user, testapp): res = testapp.get("/") form = res.forms["loginForm"] form["username"] = user.username ...
true
true
08f9fa7468b196b695c9a143d9158793b8fb6227
461
py
Python
packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_size.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_size.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
packages/python/plotly/plotly/validators/scattergeo/unselected/marker/_size.py
mastermind88/plotly.py
efa70710df1af22958e1be080e105130042f1839
[ "MIT" ]
null
null
null
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="scattergeo.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_na...
30.733333
86
0.635575
import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="size", parent_name="scattergeo.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_na...
true
true
08f9fa8e78cf6e9549b6f736297de8e024c92615
1,044
py
Python
stubs/3.2/shlex.py
TimSimpsonR/mypy
5e6fd6335e0662b0477e1d678269f33e6f4194ba
[ "PSF-2.0" ]
1
2019-06-27T11:34:27.000Z
2019-06-27T11:34:27.000Z
stubs/3.2/shlex.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
stubs/3.2/shlex.py
silky/mypy
de6a8d3710df9f49109cb682f2092e4967bfb92c
[ "PSF-2.0" ]
null
null
null
# Stubs for shlex # Based on http://docs.python.org/3.2/library/shlex.html from typing import List, Undefined, Tuple, Any, TextIO def split(s: str, comments: bool = False, posix: bool = True) -> List[str]: pass class shlex: commenters = '' wordchars = '' whitespace = '' escape = '' quo...
28.216216
76
0.590996
from typing import List, Undefined, Tuple, Any, TextIO def split(s: str, comments: bool = False, posix: bool = True) -> List[str]: pass class shlex: commenters = '' wordchars = '' whitespace = '' escape = '' quotes = '' escapedquotes = '' whitespace_split = '' infile = '' ...
true
true
08f9fac97027b0321bed705a84d2d9b6867c6b03
1,126
py
Python
tests/test_nodes.py
i4s-pserrano/python-nomad
0f8dd9dfa1d448465be490f0acf9f5df96cd893f
[ "MIT" ]
null
null
null
tests/test_nodes.py
i4s-pserrano/python-nomad
0f8dd9dfa1d448465be490f0acf9f5df96cd893f
[ "MIT" ]
null
null
null
tests/test_nodes.py
i4s-pserrano/python-nomad
0f8dd9dfa1d448465be490f0acf9f5df96cd893f
[ "MIT" ]
null
null
null
import pytest # integration tests requires nomad Vagrant VM or Binary running def test_get_nodes(nomad_setup): assert isinstance(nomad_setup.nodes.get_nodes(), list) == True def test_dunder_getitem_exist(nomad_setup): n = nomad_setup.nodes["pynomad1"] assert isinstance(n, dict) def test_dunder_getitem...
22.52
66
0.758437
import pytest def test_get_nodes(nomad_setup): assert isinstance(nomad_setup.nodes.get_nodes(), list) == True def test_dunder_getitem_exist(nomad_setup): n = nomad_setup.nodes["pynomad1"] assert isinstance(n, dict) def test_dunder_getitem_not_exist(nomad_setup): with pytest.raises(KeyError): ...
true
true
08f9fb559963e41b3a34730902eab0ca420882be
5,791
bzl
Python
maven/defs.bzl
amitz/maven_rules
27436cbca2ffd89fe8d76019c41928a308710575
[ "Apache-2.0" ]
null
null
null
maven/defs.bzl
amitz/maven_rules
27436cbca2ffd89fe8d76019c41928a308710575
[ "Apache-2.0" ]
null
null
null
maven/defs.bzl
amitz/maven_rules
27436cbca2ffd89fe8d76019c41928a308710575
[ "Apache-2.0" ]
null
null
null
load("//maven/private:java_lib.bzl", "JavaLibInfo", "java_lib_deps") load("//maven/private:maven_pom.bzl", "MavenPomInfo", "MavenDeploymentInfo", "maven_pom_deps") def _parse_maven_coordinates(coordinate_string): group_id, artifact_id, version = coordinate_string.split(':') if version != '{pom_version}': ...
34.676647
120
0.624417
load("//maven/private:java_lib.bzl", "JavaLibInfo", "java_lib_deps") load("//maven/private:maven_pom.bzl", "MavenPomInfo", "MavenDeploymentInfo", "maven_pom_deps") def _parse_maven_coordinates(coordinate_string): group_id, artifact_id, version = coordinate_string.split(':') if version != '{pom_version}': ...
true
true
08f9fc7bde530138f0c545b03bd8c0412fff3564
12,472
py
Python
fashionmnist.py
choasma/Random-Erasing
5b96759dba44a1bf811dc7a0cd3bbdc3a96d3c56
[ "Apache-2.0" ]
650
2017-09-15T09:01:45.000Z
2022-03-22T08:22:54.000Z
fashionmnist.py
ChronousZhang/Random-Erasing
4c4a20b9231390533e30406726e9506619844920
[ "Apache-2.0" ]
18
2017-09-23T15:25:11.000Z
2022-03-09T13:23:00.000Z
fashionmnist.py
ChronousZhang/Random-Erasing
4c4a20b9231390533e30406726e9506619844920
[ "Apache-2.0" ]
160
2017-10-19T08:22:53.000Z
2022-03-25T07:00:32.000Z
''' Training script for Fashion-MNIST ''' from __future__ import print_function import argparse import os import shutil import time import random import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data as data import torchvis...
37.908815
176
0.622194
''' Training script for Fashion-MNIST ''' from __future__ import print_function import argparse import os import shutil import time import random import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torch.utils.data as data import torchvis...
false
true
08f9fddf71db54fb9ff7db339945282abad51799
2,046
py
Python
examples/svm/plot_svm_anova.py
DeuroIO/Deuro-scikit-learn
9dd09a19593d1224077fe0d1a754aed936269528
[ "MIT" ]
5
2018-10-19T11:17:19.000Z
2021-05-03T06:00:09.000Z
examples/svm/plot_svm_anova.py
DeuroIO/Deuro-scikit-learn
9dd09a19593d1224077fe0d1a754aed936269528
[ "MIT" ]
3
2018-10-19T05:37:57.000Z
2018-11-20T01:00:38.000Z
examples/svm/plot_svm_anova.py
DeuroIO/Deuro-scikit-learn
9dd09a19593d1224077fe0d1a754aed936269528
[ "MIT" ]
1
2020-02-08T11:02:32.000Z
2020-02-08T11:02:32.000Z
""" ================================================= SVM-Anova: SVM with univariate feature selection ================================================= This example shows how to perform univariate feature selection before running a SVC (support vector classifier) to improve the classification scores. """ print(__doc_...
33.540984
79
0.630499
print(__doc__) import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import load_digits from sklearn.feature_selection import SelectPercentile, chi2 from sklearn.model_selection import cross_val_score from sklearn.pipeline import Pipeline from sklearn.svm import SVC X, y = load_digits(return_X_y=T...
true
true
08f9fde33846761d1440d6e016e8d2b40bde263d
171
py
Python
bin/iamonds/polyiamonds-12345-snake.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/polyiamonds-12345-snake.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/iamonds/polyiamonds-12345-snake.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """2,268 solutions""" import puzzler from puzzler.puzzles.polyiamonds12345 import Polyiamonds12345Snake puzzler.run(Polyiamonds12345Snake)
17.1
66
0.789474
import puzzler from puzzler.puzzles.polyiamonds12345 import Polyiamonds12345Snake puzzler.run(Polyiamonds12345Snake)
true
true
08f9fe749e527c8bde798512cb6bdae468331427
6,751
py
Python
conans/client/graph/proxy.py
pianoslum/conan
79146da40b349b3f6edff922762725d22fcf21e3
[ "MIT" ]
null
null
null
conans/client/graph/proxy.py
pianoslum/conan
79146da40b349b3f6edff922762725d22fcf21e3
[ "MIT" ]
null
null
null
conans/client/graph/proxy.py
pianoslum/conan
79146da40b349b3f6edff922762725d22fcf21e3
[ "MIT" ]
null
null
null
import os from requests.exceptions import RequestException from conans.client.output import ScopedOutput from conans.client.remover import DiskRemover from conans.client.recorder.action_recorder import INSTALL_ERROR_MISSING, INSTALL_ERROR_NETWORK from conans.errors import ConanException, NotFoundException from conans...
46.239726
100
0.651311
import os from requests.exceptions import RequestException from conans.client.output import ScopedOutput from conans.client.remover import DiskRemover from conans.client.recorder.action_recorder import INSTALL_ERROR_MISSING, INSTALL_ERROR_NETWORK from conans.errors import ConanException, NotFoundException from conans...
true
true
08f9ff4d69b036834f6a7d7fc44caef23189fb70
13,307
py
Python
czsc/utils/echarts_plot.py
jcydlxc/czsc
9be21bec016b9bb1fe335142c746f8dc178de000
[ "MIT" ]
1
2021-01-19T04:06:20.000Z
2021-01-19T04:06:20.000Z
czsc/utils/echarts_plot.py
jcydlxc/czsc
9be21bec016b9bb1fe335142c746f8dc178de000
[ "MIT" ]
null
null
null
czsc/utils/echarts_plot.py
jcydlxc/czsc
9be21bec016b9bb1fe335142c746f8dc178de000
[ "MIT" ]
null
null
null
# coding: utf-8 """ 使用 pyecharts 定制绘图模块 """ from pyecharts import options as opts from pyecharts.charts import HeatMap, Kline, Line, Bar, Scatter, Grid from pyecharts.commons.utils import JsCode from typing import List import numpy as np from .ta import SMA, MACD def heat_map(data: List[dict], x_label:...
42.650641
125
0.577065
from pyecharts import options as opts from pyecharts.charts import HeatMap, Kline, Line, Bar, Scatter, Grid from pyecharts.commons.utils import JsCode from typing import List import numpy as np from .ta import SMA, MACD def heat_map(data: List[dict], x_label: List[str] = None, y_label: List...
true
true
08f9ff52aaffe558cd0d9a04803d292c238ffe39
1,135
py
Python
backend/api/management/commands/fetch_sentiment.py
savatia/social-stock
67c5122f16610c07e798a92d379ad31bac111915
[ "MIT" ]
null
null
null
backend/api/management/commands/fetch_sentiment.py
savatia/social-stock
67c5122f16610c07e798a92d379ad31bac111915
[ "MIT" ]
null
null
null
backend/api/management/commands/fetch_sentiment.py
savatia/social-stock
67c5122f16610c07e798a92d379ad31bac111915
[ "MIT" ]
null
null
null
from optparse import make_option from django.core.management.base import BaseCommand import pandas as pd import django from ...models import Sentiment, Company class Command(BaseCommand): help = "Whatever you want to print here" def add_arguments(self, parser): parser.add_argument('--file') parser.add_argume...
25.795455
51
0.723348
from optparse import make_option from django.core.management.base import BaseCommand import pandas as pd import django from ...models import Sentiment, Company class Command(BaseCommand): help = "Whatever you want to print here" def add_arguments(self, parser): parser.add_argument('--file') parser.add_argume...
true
true
08fa00d302c750d4bc5c5c39ae775d8fbb9e216b
7,361
py
Python
controlm_py/models/folder_auth.py
dcompane/controlm_py
c521208be2f00303383bb32ca5eb2b7ff91999d3
[ "MIT" ]
2
2020-03-20T18:24:23.000Z
2021-03-05T22:05:04.000Z
controlm_py/models/folder_auth.py
dcompane/controlm_py
c521208be2f00303383bb32ca5eb2b7ff91999d3
[ "MIT" ]
null
null
null
controlm_py/models/folder_auth.py
dcompane/controlm_py
c521208be2f00303383bb32ca5eb2b7ff91999d3
[ "MIT" ]
1
2021-05-27T15:54:37.000Z
2021-05-27T15:54:37.000Z
# coding: utf-8 """ Control-M Services Provides access to BMC Control-M Services # noqa: E501 OpenAPI spec version: 9.20.220 Contact: customer_support@bmc.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class FolderAuth...
26.383513
135
0.557669
import pprint import re import six class FolderAuth(object): swagger_types = { 'privilege': 'str', 'controlm_server': 'str', 'library': 'str', 'folder': 'str', 'order': 'bool', 'run': 'bool', 'jobs': 'JobLevelAuth' } attribute_map = { 'pr...
true
true
08fa0123e8fed29dc9e3c4c428e5c0bc119e612d
406
py
Python
project/neo/__init__.py
qi2018d/sensor
a0d027285393f25fac69591805886434f8b3a245
[ "MIT" ]
null
null
null
project/neo/__init__.py
qi2018d/sensor
a0d027285393f25fac69591805886434f8b3a245
[ "MIT" ]
null
null
null
project/neo/__init__.py
qi2018d/sensor
a0d027285393f25fac69591805886434f8b3a245
[ "MIT" ]
null
null
null
''' Welcome to the Neo.GPIO library created by David Smerkous, this allows easy/simple controls for the Udoo neo, that's as easy as it would be on the Rasberry Pi to control the GPIO pins on tge Neo GNU public license v2.0 ''' from Neo import Gpio from Neo import easyGpio from Neo import Temp from Neo import Barometer...
25.375
98
0.785714
from Neo import Gpio from Neo import easyGpio from Neo import Temp from Neo import Barometer from Neo import Accel from Neo import Magno from Neo import Gyro from Neo import Led
true
true
08fa0152c4440fa67f6929977d5987411e8aface
112
py
Python
yambopy/plot/__init__.py
QU-XIAO/yambopy
ff65a4f90c1bfefe642ebc61e490efe781709ff9
[ "BSD-3-Clause" ]
21
2016-04-07T20:53:29.000Z
2021-05-14T08:06:02.000Z
yambopy/plot/__init__.py
alexmoratalla/yambopy
8ec0e1e18868ccaadb3eab36c55e6a47021e257d
[ "BSD-3-Clause" ]
22
2016-06-14T22:29:47.000Z
2021-09-16T15:36:26.000Z
yambopy/plot/__init__.py
alexmoratalla/yambopy
8ec0e1e18868ccaadb3eab36c55e6a47021e257d
[ "BSD-3-Clause" ]
15
2016-06-14T18:40:57.000Z
2021-08-07T13:17:43.000Z
# Copyright (C) 2018 Henrique Pereira Coutada Miranda # All rights reserved. # # This file is part of yambopy #
18.666667
53
0.741071
true
true
08fa02c3ad9162c9f0e01b1e9da2c0ac0be74e8c
873
py
Python
testScripts/worker.py
SaschaAndresGrimm/EIGERStreamReceiver
86f8d97219710aec36ecc7ca73671fbe25d20397
[ "MIT" ]
null
null
null
testScripts/worker.py
SaschaAndresGrimm/EIGERStreamReceiver
86f8d97219710aec36ecc7ca73671fbe25d20397
[ "MIT" ]
null
null
null
testScripts/worker.py
SaschaAndresGrimm/EIGERStreamReceiver
86f8d97219710aec36ecc7ca73671fbe25d20397
[ "MIT" ]
null
null
null
import zmq import logging import multiprocessing IP = '192.168.30.26' PORT = 31001 WORKERS = 4 XFRAMES = 1 # print every nth frame to stdout logging.basicConfig(format='%(asctime)s | %(levelname)s: %(message)s', level=logging.NOTSET) def worker(id, ip, port): context = zmq.Context() receiver = context.socket...
28.16129
105
0.628866
import zmq import logging import multiprocessing IP = '192.168.30.26' PORT = 31001 WORKERS = 4 XFRAMES = 1 logging.basicConfig(format='%(asctime)s | %(levelname)s: %(message)s', level=logging.NOTSET) def worker(id, ip, port): context = zmq.Context() receiver = context.socket(zmq.PULL) receiver.connect(f'...
true
true
08fa02c579a961c5c954f3e9ac5ca85d36236665
23,247
py
Python
cltk/lemmatize/latin/backoff.py
jamesgawley/cltk
0ab5ede100907203d97f12193754eac8a69f8149
[ "MIT" ]
2
2018-11-08T12:48:27.000Z
2018-11-08T17:01:55.000Z
cltk/lemmatize/latin/backoff.py
jamesgawley/cltk
0ab5ede100907203d97f12193754eac8a69f8149
[ "MIT" ]
null
null
null
cltk/lemmatize/latin/backoff.py
jamesgawley/cltk
0ab5ede100907203d97f12193754eac8a69f8149
[ "MIT" ]
null
null
null
"""Module for lemmatizing Latin—includes several classes for different lemmatizing approaches--based on training data, regex pattern matching, etc. These can be chained together using the backoff parameter. Also, includes a pre-built chain that uses models in latin_models_cltk repo called BackoffLatinLemmatizer. The ...
40.570681
139
0.655138
__author__ = ['Patrick J. Burns <patrick@diyclassics.org>'] __license__ = 'MIT License. See LICENSE.' import os import re from nltk.probability import ConditionalFreqDist from nltk.tag.api import TaggerI from nltk.tag.sequential import SequentialBackoffTagger, ContextTagger, DefaultTagger, NgramTagger, UnigramTagger...
true
true
08fa033b0407f2cb6365ed2c66cca5197e8df111
63
py
Python
Keppni/FlattenList.py
Kallehz/Python
7bc08d4ebed6f97d6cfa8efc585a566388eeec8f
[ "Apache-2.0" ]
1
2019-12-14T04:34:50.000Z
2019-12-14T04:34:50.000Z
Keppni/FlattenList.py
Kallehz/Python
7bc08d4ebed6f97d6cfa8efc585a566388eeec8f
[ "Apache-2.0" ]
null
null
null
Keppni/FlattenList.py
Kallehz/Python
7bc08d4ebed6f97d6cfa8efc585a566388eeec8f
[ "Apache-2.0" ]
null
null
null
def flatten(p): return [ sorted(p).index(x) for x in p ]
15.75
44
0.587302
def flatten(p): return [ sorted(p).index(x) for x in p ]
true
true
08fa044ffd49aef5b1db805422e8255075f5d1a8
2,573
py
Python
ctb-server/ctbserver.py
Fairy-Phy/RealTimePPDisplayer
f77bf7f43c466c0b217c55ffbad47985ed835614
[ "MIT" ]
1
2021-04-29T04:26:50.000Z
2021-04-29T04:26:50.000Z
ctb-server/ctbserver.py
Fairy-Phy/RealTimePPDisplayer
f77bf7f43c466c0b217c55ffbad47985ed835614
[ "MIT" ]
null
null
null
ctb-server/ctbserver.py
Fairy-Phy/RealTimePPDisplayer
f77bf7f43c466c0b217c55ffbad47985ed835614
[ "MIT" ]
1
2020-10-06T13:59:24.000Z
2020-10-06T13:59:24.000Z
from osu_parser.beatmap import Beatmap from osu.ctb.difficulty import Difficulty from ppCalc import calculate_pp import os import threading import socket import struct import sys import traceback import time CMD_KEEP_ALIVE = 0 CMD_KEEP_ALIVE_OK = 1 CMD_CALCULATE_CTB = 2 TIMEOUT = 3 def process_exist(imagename): ...
25.73
82
0.649048
from osu_parser.beatmap import Beatmap from osu.ctb.difficulty import Difficulty from ppCalc import calculate_pp import os import threading import socket import struct import sys import traceback import time CMD_KEEP_ALIVE = 0 CMD_KEEP_ALIVE_OK = 1 CMD_CALCULATE_CTB = 2 TIMEOUT = 3 def process_exist(imagename): ...
true
true
08fa04e16a150f80d64cb8ef8969d36df32c549e
7,996
py
Python
cogs/buyrole.py
rodobry/blagotron
92d60af94ddaa13d5044d81fde3c20ce4362eaa2
[ "MIT" ]
2
2019-11-22T18:20:04.000Z
2019-12-01T09:25:23.000Z
cogs/buyrole.py
rodobry/blagotron
92d60af94ddaa13d5044d81fde3c20ce4362eaa2
[ "MIT" ]
null
null
null
cogs/buyrole.py
rodobry/blagotron
92d60af94ddaa13d5044d81fde3c20ce4362eaa2
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from dataIO import dataIO import logging from tabulate import tabulate import Checker import os log = logging.getLogger('blagotron.buyrole') class Buyrole: """Allows the user to buy a role with economy balance""" # --- Format # { # Server : { # To...
47.595238
180
0.577414
import discord from discord.ext import commands from dataIO import dataIO import logging from tabulate import tabulate import Checker import os log = logging.getLogger('blagotron.buyrole') class Buyrole: def __init__(self, bot): self.bot = bot self.json...
true
true
08fa051fa89b70b035134f605447ef591d6714b6
843
py
Python
django_development/django_development/urls.py
shiwanlinswl/Project-Django
2b4b6db44c3e925008c5ccc97ec51d9931431494
[ "MIT" ]
null
null
null
django_development/django_development/urls.py
shiwanlinswl/Project-Django
2b4b6db44c3e925008c5ccc97ec51d9931431494
[ "MIT" ]
null
null
null
django_development/django_development/urls.py
shiwanlinswl/Project-Django
2b4b6db44c3e925008c5ccc97ec51d9931431494
[ "MIT" ]
null
null
null
"""django_development URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home...
35.125
79
0.702254
from django.conf.urls import url, include from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^', include("verifications.urls")), ]
true
true
08fa05308c59ffdd15c9528e5c2b16bb789cf91d
3,980
py
Python
Startnew.py
ayush016/Hadoop-Mapreduce-Cluster-Auto-configure
bb27f70b7a17337f736d0e80684278436140a1c8
[ "MIT" ]
null
null
null
Startnew.py
ayush016/Hadoop-Mapreduce-Cluster-Auto-configure
bb27f70b7a17337f736d0e80684278436140a1c8
[ "MIT" ]
null
null
null
Startnew.py
ayush016/Hadoop-Mapreduce-Cluster-Auto-configure
bb27f70b7a17337f736d0e80684278436140a1c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python from PyQt4 import QtGui import sys from PyQt4.QtGui import * from PyQt4.QtCore import * import socket import fcntl import struct import os from subprocess import Popen, PIPE def createIntroPage(): page = QtGui.QWizardPage() page.setTitle("Introduction") label = QtGui.QLabel("Welcome t...
24.268293
80
0.665327
from PyQt4 import QtGui import sys from PyQt4.QtGui import * from PyQt4.QtCore import * import socket import fcntl import struct import os from subprocess import Popen, PIPE def createIntroPage(): page = QtGui.QWizardPage() page.setTitle("Introduction") label = QtGui.QLabel("Welcome to Hadoop Autmation sof...
false
true
08fa054e29ca6eff43afefebf6d01ce920b6b899
159
py
Python
zulipterminal/version.py
zee-bit/zulip-terminal
2890a5d7c1dc2e8690c27dabee298ba3bc3071fe
[ "Apache-2.0" ]
407
2018-02-26T05:24:37.000Z
2022-03-30T21:27:24.000Z
zulipterminal/version.py
zee-bit/zulip-terminal
2890a5d7c1dc2e8690c27dabee298ba3bc3071fe
[ "Apache-2.0" ]
1,005
2018-02-28T09:49:45.000Z
2022-03-31T18:24:00.000Z
zulipterminal/version.py
zee-bit/zulip-terminal
2890a5d7c1dc2e8690c27dabee298ba3bc3071fe
[ "Apache-2.0" ]
226
2018-02-26T01:30:11.000Z
2022-03-29T19:31:14.000Z
ZT_VERSION = "0.6.0+git" SUPPORTED_SERVER_VERSIONS = [ ("2.1", None), ("3.0", 25), ] MINIMUM_SUPPORTED_SERVER_VERSION = SUPPORTED_SERVER_VERSIONS[0]
17.666667
63
0.685535
ZT_VERSION = "0.6.0+git" SUPPORTED_SERVER_VERSIONS = [ ("2.1", None), ("3.0", 25), ] MINIMUM_SUPPORTED_SERVER_VERSION = SUPPORTED_SERVER_VERSIONS[0]
true
true
08fa056ff511f87c6cbcb2b7326fb6bdf8b4c72f
19,750
py
Python
src/utils/batchprocessors.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
src/utils/batchprocessors.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
src/utils/batchprocessors.py
abbacode/avaloria
02e1805ac6e74543c96408b7951429f94bc140ca
[ "ClArtistic" ]
null
null
null
""" This file contains the core methods for the Batch-command- and Batch-code-processors respectively. In short, these are two different ways to build a game world using a normal text-editor without having to do so 'on the fly' in-game. They also serve as an automatic backup so you can quickly recreate a world also aft...
36.710037
100
0.579241
""" This file contains the core methods for the Batch-command- and Batch-code-processors respectively. In short, these are two different ways to build a game world using a normal text-editor without having to do so 'on the fly' in-game. They also serve as an automatic backup so you can quickly recreate a world also aft...
false
true
08fa0576e5737a8684360e968806370c5574e938
10,046
py
Python
tests/test_shell_completion.py
felix-hilden/click
6411f425fae545f42795665af4162006b36c5e4a
[ "BSD-3-Clause" ]
1
2021-02-23T21:03:47.000Z
2021-02-23T21:03:47.000Z
tests/test_shell_completion.py
felix-hilden/click
6411f425fae545f42795665af4162006b36c5e4a
[ "BSD-3-Clause" ]
27
2020-06-11T16:07:56.000Z
2021-12-27T01:13:05.000Z
tests/test_shell_completion.py
felix-hilden/click
6411f425fae545f42795665af4162006b36c5e4a
[ "BSD-3-Clause" ]
1
2021-02-10T15:07:27.000Z
2021-02-10T15:07:27.000Z
import pytest from click.core import Argument from click.core import Command from click.core import Group from click.core import Option from click.shell_completion import CompletionItem from click.shell_completion import ShellComplete from click.types import Choice from click.types import File from click.types import ...
32.830065
88
0.525284
import pytest from click.core import Argument from click.core import Command from click.core import Group from click.core import Option from click.shell_completion import CompletionItem from click.shell_completion import ShellComplete from click.types import Choice from click.types import File from click.types import ...
true
true
08fa0615c5e2254176ce2c0497c5759739d9c199
6,069
py
Python
pydov/search/grondmonster.py
jorisvandenbossche/pydov
8b909209e63455fb06251d73e32958d66c6e14ed
[ "MIT" ]
null
null
null
pydov/search/grondmonster.py
jorisvandenbossche/pydov
8b909209e63455fb06251d73e32958d66c6e14ed
[ "MIT" ]
null
null
null
pydov/search/grondmonster.py
jorisvandenbossche/pydov
8b909209e63455fb06251d73e32958d66c6e14ed
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Module containing the search classes to retrieve DOV borehole data.""" import pandas as pd from pydov.search.abstract import AbstractSearch from pydov.types.fields import _WfsInjectedField from pydov.types.grondmonster import Grondmonster from pydov.util import owsutil class GrondmonsterSe...
40.731544
78
0.634042
import pandas as pd from pydov.search.abstract import AbstractSearch from pydov.types.fields import _WfsInjectedField from pydov.types.grondmonster import Grondmonster from pydov.util import owsutil class GrondmonsterSearch(AbstractSearch): __wfs_schema = None __wfs_namespace = None __md_metadata = None...
true
true
08fa06df9af5c092c9abdde39391159a0f146600
2,537
py
Python
core/authors/tests/test_follows_check_view.py
cmackenzie1/cmput404-project
4067a05c0d3c20b18765f4bc6359ca7c5f59cfee
[ "Apache-2.0" ]
null
null
null
core/authors/tests/test_follows_check_view.py
cmackenzie1/cmput404-project
4067a05c0d3c20b18765f4bc6359ca7c5f59cfee
[ "Apache-2.0" ]
74
2019-01-12T21:16:03.000Z
2022-03-02T03:04:54.000Z
core/authors/tests/test_follows_check_view.py
cmackenzie1/cmput404-project
4067a05c0d3c20b18765f4bc6359ca7c5f59cfee
[ "Apache-2.0" ]
2
2019-02-06T16:18:10.000Z
2019-02-09T22:06:34.000Z
from django.test import TestCase from core.authors.models import Author, Follow from core.users.models import User from core.authors.views import AuthorViewSet from core.authors.util import get_author_url from core.authors.tests.util import setupUser def get_body(id): return { "author": id } def get...
37.865672
131
0.703981
from django.test import TestCase from core.authors.models import Author, Follow from core.users.models import User from core.authors.views import AuthorViewSet from core.authors.util import get_author_url from core.authors.tests.util import setupUser def get_body(id): return { "author": id } def get...
true
true
08fa07d77446c3f42b1b1c9b0ef151a2234629e6
382
py
Python
examples/servertls_clientauth_http.py
aheck/reflectrpc
9602d3b3f06d3d8ee8549788301e43b172a597f6
[ "MIT" ]
33
2016-06-12T15:25:07.000Z
2021-11-16T18:53:16.000Z
examples/servertls_clientauth_http.py
aheck/reflectrpc
9602d3b3f06d3d8ee8549788301e43b172a597f6
[ "MIT" ]
null
null
null
examples/servertls_clientauth_http.py
aheck/reflectrpc
9602d3b3f06d3d8ee8549788301e43b172a597f6
[ "MIT" ]
3
2016-10-10T20:50:41.000Z
2021-05-01T23:51:34.000Z
#!/usr/bin/env python3 import sys sys.path.append('..') import reflectrpc import reflectrpc.twistedserver import rpcexample jsonrpc = rpcexample.build_example_rpcservice() server = reflectrpc.twistedserver.TwistedJsonRpcServer(jsonrpc, 'localhost', 5500) server.enable_http() server.enable_tls('./certs/server.pem')...
21.222222
82
0.793194
import sys sys.path.append('..') import reflectrpc import reflectrpc.twistedserver import rpcexample jsonrpc = rpcexample.build_example_rpcservice() server = reflectrpc.twistedserver.TwistedJsonRpcServer(jsonrpc, 'localhost', 5500) server.enable_http() server.enable_tls('./certs/server.pem') server.enable_client_a...
true
true
08fa080d9e5eed21f10d8fb615d3e18bc3b17fa9
623
py
Python
IDS/manage.py
YashwantChauhan/SDL
0d48dfa129d72316f35967df98ce2f1e6f949fc5
[ "MIT" ]
2
2020-12-24T15:13:49.000Z
2021-06-05T15:43:58.000Z
IDS/manage.py
YashwantChauhan/SDL
0d48dfa129d72316f35967df98ce2f1e6f949fc5
[ "MIT" ]
2
2021-12-28T14:06:20.000Z
2021-12-28T14:25:44.000Z
IDS/manage.py
YashwantChauhan/SDL
0d48dfa129d72316f35967df98ce2f1e6f949fc5
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'IDS.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportErro...
28.318182
73
0.680578
import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'IDS.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. Are you sure it's installed and " ...
true
true
08fa086cfe8def53819d28aebd9cf2fb43f1e8d2
45
py
Python
geomstats/geometry/stratified/__init__.py
shubhamtalbar96/geomstats
9c17ccede7e3f0fddf31487c59227c677216a2b9
[ "MIT" ]
null
null
null
geomstats/geometry/stratified/__init__.py
shubhamtalbar96/geomstats
9c17ccede7e3f0fddf31487c59227c677216a2b9
[ "MIT" ]
null
null
null
geomstats/geometry/stratified/__init__.py
shubhamtalbar96/geomstats
9c17ccede7e3f0fddf31487c59227c677216a2b9
[ "MIT" ]
null
null
null
"""The Stratified Space Geometry Package."""
22.5
44
0.733333
true
true
08fa08901653abf54f77b0c78b04ad959cf2e9ef
796
py
Python
python/main.py
filipemot/sistema_distancia_entre_cidades
2798acf2f8b92ed793b203c0ac7c5bf50e008e46
[ "MIT" ]
null
null
null
python/main.py
filipemot/sistema_distancia_entre_cidades
2798acf2f8b92ed793b203c0ac7c5bf50e008e46
[ "MIT" ]
null
null
null
python/main.py
filipemot/sistema_distancia_entre_cidades
2798acf2f8b92ed793b203c0ac7c5bf50e008e46
[ "MIT" ]
null
null
null
import os from services.city_service import CityService from services.distance_service import DistanceService from services.state_service import StateService def main(): state_services: StateService = StateService(os.path.dirname(os.path.abspath(__file__)), "config.json") city_services: CityService = CitySe...
34.608696
115
0.68593
import os from services.city_service import CityService from services.distance_service import DistanceService from services.state_service import StateService def main(): state_services: StateService = StateService(os.path.dirname(os.path.abspath(__file__)), "config.json") city_services: CityService = CitySe...
true
true
08fa0a72d5826954a6d96b271964a3149eaa3d9d
1,357
py
Python
lolcat_factory/main.py
christopher-burke/programs
5b788e8df50cc26e8811b1a810fe1c6bdc31796b
[ "MIT" ]
1
2020-11-10T01:46:44.000Z
2020-11-10T01:46:44.000Z
lolcat_factory/main.py
christopher-burke/programs
5b788e8df50cc26e8811b1a810fe1c6bdc31796b
[ "MIT" ]
null
null
null
lolcat_factory/main.py
christopher-burke/programs
5b788e8df50cc26e8811b1a810fe1c6bdc31796b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """LOLCat Factory Program.""" import os import cat_service import subprocess import platform def main(): """Run LOLCat factory. :return: None """ folder = output_folder() download_cats(folder) display_cats(folder) def output_folder(): """Create folder for output...
21.887097
69
0.626382
import os import cat_service import subprocess import platform def main(): folder = output_folder() download_cats(folder) display_cats(folder) def output_folder(): folder = 'cat_pictures' base_folder = os.path.dirname(__file__) full_path = os.path.join(base_folder, folder) if not os.p...
true
true
08fa0ae611479cbc0414a8eece26a08f791be531
928
py
Python
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
src/exporter/management/commands/test_export.py
xmdy/h9eNi8F5Ut
4128d7cbc6105ec0fe69157bd88ef8e30415d6ca
[ "Unlicense" ]
null
null
null
from django.core.management import BaseCommand import logging # These two lines enable debugging at httplib level (requests->urllib3->http.client) # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA. # The only thing missing will be the response.body which is not logged. ...
37.12
99
0.774784
from django.core.management import BaseCommand import logging try: import http.client as http_client except ImportError: import httplib as http_client http_client.HTTPConnection.debuglevel = 1 logging.basicConfig() logging.getLogger().setLevel(logging.DEBUG) requests_log = logging.getLogger("requests.pack...
true
true
08fa0cd1914084bc4bd2ae7a113d03f6780f8f0b
2,229
py
Python
test/test_feature_extraction.py
DucAnhPhi/NewsSearchEngine
de274acc116d0a90b42c3279d4a4bd791867c67f
[ "MIT" ]
null
null
null
test/test_feature_extraction.py
DucAnhPhi/NewsSearchEngine
de274acc116d0a90b42c3279d4a4bd791867c67f
[ "MIT" ]
null
null
null
test/test_feature_extraction.py
DucAnhPhi/NewsSearchEngine
de274acc116d0a90b42c3279d4a4bd791867c67f
[ "MIT" ]
null
null
null
import pytest import json from ..embedding.model import EmbeddingModel from ..feature_extraction import FeatureExtraction import numpy as np class TestFeatureExtraction(): @classmethod def setup_class(self): self.embedder_DE = EmbeddingModel(lang="de") self.embedder_EN = EmbeddingModel(lang="en...
29.72
92
0.59354
import pytest import json from ..embedding.model import EmbeddingModel from ..feature_extraction import FeatureExtraction import numpy as np class TestFeatureExtraction(): @classmethod def setup_class(self): self.embedder_DE = EmbeddingModel(lang="de") self.embedder_EN = EmbeddingModel(lang="en...
true
true
08fa0d7929d2c296c3425ae9f27b7e3f88c9b563
7,856
py
Python
airflow/contrib/auth/backends/github_enterprise_auth.py
bertrand-caron/incubator-airflow
56bae60c139036ab506af595bd44b31eb21967df
[ "Apache-2.0" ]
1
2018-08-23T08:48:01.000Z
2018-08-23T08:48:01.000Z
airflow/contrib/auth/backends/github_enterprise_auth.py
KenHung0411/incubator-airflow
e028b7c1467ffd160cf6c4e443be446aae44f081
[ "Apache-2.0" ]
6
2018-02-10T20:25:16.000Z
2019-11-20T03:01:03.000Z
airflow/contrib/auth/backends/github_enterprise_auth.py
KenHung0411/incubator-airflow
e028b7c1467ffd160cf6c4e443be446aae44f081
[ "Apache-2.0" ]
1
2018-12-05T06:59:07.000Z
2018-12-05T06:59:07.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
33.147679
86
0.594959
import flask_login from flask_login import current_user, logout_user, login_required, login_user from flask import url_for, redirect, request from flask_oauthlib.client import OAuth from airflow import models, configuration from airflow.configuration import AirflowConfigException from airflow.utils.db import provid...
true
true
08fa0e98ebdefa968127fb601aba3da6f96f525b
312
py
Python
extractor/extract_data.py
javierivanov/kgb
7515f35b0d3dc958d9e45971f68e11410756b862
[ "Apache-2.0" ]
1
2019-07-09T04:05:16.000Z
2019-07-09T04:05:16.000Z
extractor/extract_data.py
javierivanov/kgb
7515f35b0d3dc958d9e45971f68e11410756b862
[ "Apache-2.0" ]
null
null
null
extractor/extract_data.py
javierivanov/kgb
7515f35b0d3dc958d9e45971f68e11410756b862
[ "Apache-2.0" ]
null
null
null
import json import networkx as nx import re data = json.load(open('asd.json', 'r')) p = re.compile('[A-Z]+$') nodes = list(set([x['bug'].split("-")[0] for x in data if x['bug'] is not None])) nodes = [node for node in nodes if p.match(node) is not None] G = nx.Graph() for node in nodes: G.add_node(node)
22.285714
81
0.634615
import json import networkx as nx import re data = json.load(open('asd.json', 'r')) p = re.compile('[A-Z]+$') nodes = list(set([x['bug'].split("-")[0] for x in data if x['bug'] is not None])) nodes = [node for node in nodes if p.match(node) is not None] G = nx.Graph() for node in nodes: G.add_node(node)
true
true
08fa1039f3e0b13f98fff04cbe93f079c83e1d72
1,723
py
Python
codewars/7kyu/dinamuh/StringEndsWith/test_bench.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
null
null
null
codewars/7kyu/dinamuh/StringEndsWith/test_bench.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
2
2019-01-22T10:53:42.000Z
2019-01-31T08:02:48.000Z
codewars/7kyu/dinamuh/StringEndsWith/test_bench.py
dinamuh/Training_one
d18e8fb12608ce1753162c20252ca928c4df97ab
[ "MIT" ]
13
2019-01-22T10:37:42.000Z
2019-01-25T13:30:43.000Z
from main import solution from main import solution2 def test(benchmark): assert benchmark(solution, 'abcde', 'abc') == False def test2(benchmark): assert benchmark(solution2, 'abcde', 'abc') == False ''''''''' ---------------------------------------------------------------------------------------- benchm...
66.269231
195
0.319791
from main import solution from main import solution2 def test(benchmark): assert benchmark(solution, 'abcde', 'abc') == False def test2(benchmark): assert benchmark(solution2, 'abcde', 'abc') == False
true
true
08fa1093dad381365cb7ff3f523bcba45123e768
853
py
Python
Python/Alpha/webdriverrequest.py
Errrneist/Exia
d9040386089d64c67b466db99c64f786cdf625e8
[ "Apache-2.0" ]
null
null
null
Python/Alpha/webdriverrequest.py
Errrneist/Exia
d9040386089d64c67b466db99c64f786cdf625e8
[ "Apache-2.0" ]
null
null
null
Python/Alpha/webdriverrequest.py
Errrneist/Exia
d9040386089d64c67b466db99c64f786cdf625e8
[ "Apache-2.0" ]
null
null
null
# Hongjun Wu # 20180204 # This is a program to test web driver. from selenium import webdriver import urllib3 import urllib import re # This driver will call weibo and then call zhihu. driver = webdriver.Chrome() # driver.get('https://ucharm.hfs.washington.edu/ucharm/SelectRoom.asp?Function=1060&fld38517=10673') url ...
28.433333
106
0.754982
from selenium import webdriver import urllib3 import urllib import re driver = webdriver.Chrome() url = 'https://ucharm.hfs.washington.edu/ucharm/SelectRoomResults.asp' isLogIn = False driver.get('https://ucharm.hfs.washington.edu/ucharm/SelectRoomResults.asp') html_content = urllib.urlopen(url).read() hasSpot = Fa...
true
true
08fa10f9bb05970e993b4f30c48445029c8276bb
2,147
py
Python
salt/states/htpasswd.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
2
2015-08-04T21:54:38.000Z
2019-04-25T21:47:08.000Z
salt/states/htpasswd.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
null
null
null
salt/states/htpasswd.py
jkur/salt
3e62675550f9869d550d7787800270e632955d2f
[ "Apache-2.0" ]
1
2020-10-19T11:49:50.000Z
2020-10-19T11:49:50.000Z
# -*- coding: utf-8 -*- ''' Support for htpasswd module .. versionadded:: 2014.7.0 .. code-block:: yaml username: webutil.user_exists: - password: secr3t - htpasswd_file: /etc/nginx/htpasswd - options: d - force: true ''' from __future__ import absolute_import import salt.u...
23.855556
77
0.531905
from __future__ import absolute_import import salt.utils __virtualname__ = 'webutil' def __virtual__(): return __virtualname__ if salt.utils.which('htpasswd') else False def user_exists(name, password=None, htpasswd_file=None, options='', force=False, runas=None): ret = {'name': name, ...
true
true
08fa119daa84b92fd4b2d0494466337fd253f962
5,508
py
Python
lib/services/server/ncloud_server/model/add_nas_volume_access_control_request.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/server/ncloud_server/model/add_nas_volume_access_control_request.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
lib/services/server/ncloud_server/model/add_nas_volume_access_control_request.py
KidongSohn/ncloud-sdk-py
1c62471a9bd320d77164ed3193a0ebb9f64229ff
[ "MIT" ]
null
null
null
# coding: utf-8 """ server OpenAPI spec version: 2018-06-22T02:34:44Z Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class AddNasVolumeAccessControlRequest(object): """NOTE: This class is auto generated by the swagger cod...
32.4
123
0.640341
import pprint import re import six class AddNasVolumeAccessControlRequest(object): swagger_types = { 'nas_volume_instance_no': 'str', 'server_instance_no_list': 'list[str]', 'custom_ip_list': 'list[str]' } attribute_map = { 'nas_volume_instance_no': 'nasVolumeInstanc...
true
true
08fa11acbe5aa9443b67ea2433f6fce9074ca39a
32,732
py
Python
examples/lenovo_mount_virtual_media.py
huiyudwmd/python-redfish-lenovo
035f9606f2df6c939b0bae0002e3a4a3dff8895d
[ "Apache-2.0" ]
null
null
null
examples/lenovo_mount_virtual_media.py
huiyudwmd/python-redfish-lenovo
035f9606f2df6c939b0bae0002e3a4a3dff8895d
[ "Apache-2.0" ]
null
null
null
examples/lenovo_mount_virtual_media.py
huiyudwmd/python-redfish-lenovo
035f9606f2df6c939b0bae0002e3a4a3dff8895d
[ "Apache-2.0" ]
null
null
null
### # # Lenovo Redfish examples - Mount vitual media # # Copyright Notice: # # Copyright 2019 Lenovo Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org...
55.197302
216
0.596053
import sys import redfish import json import time import traceback import lenovo_utils as utils def lenovo_mount_virtual_media(ip, login_account, login_password, image, mounttype, fsprotocol, fsip, fsport, fsusername, fspassword, fsdir, readonly, domain, options, inserted=True, writeprotocol=True): result = {} ...
true
true
08fa1431faa7480d3d2facd7aa44ad655735fdfb
591
py
Python
Welcome.py
AndrewMcNeill/GianaBot
368eaa59f79adcf3c3ff10559caa044e37f171d6
[ "MIT" ]
null
null
null
Welcome.py
AndrewMcNeill/GianaBot
368eaa59f79adcf3c3ff10559caa044e37f171d6
[ "MIT" ]
null
null
null
Welcome.py
AndrewMcNeill/GianaBot
368eaa59f79adcf3c3ff10559caa044e37f171d6
[ "MIT" ]
null
null
null
import discord from discord.abc import GuildChannel from discord.ext import commands, tasks import random from discord.member import Member class WelcomeCog(commands.Cog): def __init__(self, bot: commands.Bot, json_data): self.bot = bot self.data = json_data['welcome'] @commands.Cog.listener(...
32.833333
98
0.700508
import discord from discord.abc import GuildChannel from discord.ext import commands, tasks import random from discord.member import Member class WelcomeCog(commands.Cog): def __init__(self, bot: commands.Bot, json_data): self.bot = bot self.data = json_data['welcome'] @commands.Cog.listener(...
true
true
08fa143d76f288c7a8c67d0172f070aa4a2209f6
353
py
Python
app.py
temmyzeus/CO2-Emissions-Platform
a760d8285caa8c0803b8c1552da74a8ac0b4ca9f
[ "MIT" ]
null
null
null
app.py
temmyzeus/CO2-Emissions-Platform
a760d8285caa8c0803b8c1552da74a8ac0b4ca9f
[ "MIT" ]
null
null
null
app.py
temmyzeus/CO2-Emissions-Platform
a760d8285caa8c0803b8c1552da74a8ac0b4ca9f
[ "MIT" ]
null
null
null
from flask import Flask from flask import render_template from dash_application import create_dash_application app = Flask(__name__) create_dash_application(app) @app.route("/", methods=['GET']) @app.route("/home", methods=['GET']) @app.route("/index", methods=['GET']) def index(): return '<h2>Homepage</h2>' if _...
20.764706
52
0.719547
from flask import Flask from flask import render_template from dash_application import create_dash_application app = Flask(__name__) create_dash_application(app) @app.route("/", methods=['GET']) @app.route("/home", methods=['GET']) @app.route("/index", methods=['GET']) def index(): return '<h2>Homepage</h2>' if _...
true
true
08fa143e6ccd2220efecd995269766ebeca58c70
6,654
py
Python
take_at2018cow_candidates.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
3
2020-01-13T20:13:14.000Z
2021-06-03T21:58:08.000Z
take_at2018cow_candidates.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
null
null
null
take_at2018cow_candidates.py
masonng-astro/nicerpy_xrayanalysis
c21c7c9bc5570c63c986197fb363ae80691515d5
[ "MIT" ]
2
2020-01-15T15:08:40.000Z
2021-07-09T11:49:30.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import division, print_function import numpy as np import matplotlib.pyplot as plt import glob import subprocess import os from os.path import relpath import Lv0_dirs Lv0_dirs.global_par() ##### INITIAL LOOK AT THE HISTOGRAM obsids = ['12002501' ...
50.793893
185
0.677187
from __future__ import division, print_function import numpy as np import matplotlib.pyplot as plt import glob import subprocess import os from os.path import relpath import Lv0_dirs Lv0_dirs.global_par() obsids = ['12002501' + str(i+1).zfill(2) for i in range(26)] cands_file = open('candidates.txt','w') for k in ra...
true
true
08fa14c1ffdf2f19c0ce412ea09c344ea8db4420
46,484
py
Python
pyfacebook/api/facebook.py
muntasir2000/python-facebook
3784bff4d461269cf601c5cbd63e8a433c0c4bae
[ "Apache-2.0" ]
null
null
null
pyfacebook/api/facebook.py
muntasir2000/python-facebook
3784bff4d461269cf601c5cbd63e8a433c0c4bae
[ "Apache-2.0" ]
null
null
null
pyfacebook/api/facebook.py
muntasir2000/python-facebook
3784bff4d461269cf601c5cbd63e8a433c0c4bae
[ "Apache-2.0" ]
1
2021-08-25T05:34:14.000Z
2021-08-25T05:34:14.000Z
""" Facebook Graph Api impl """ import arrow from six import iteritems from typing import Optional, Union, List, Tuple, Set from pyfacebook.error import PyFacebookException, ErrorMessage, ErrorCode from pyfacebook.models import ( Page, Comment, CommentSummary, ProfilePictureSource, Post, Video, VideoC...
39.628303
120
0.547264
import arrow from six import iteritems from typing import Optional, Union, List, Tuple, Set from pyfacebook.error import PyFacebookException, ErrorMessage, ErrorCode from pyfacebook.models import ( Page, Comment, CommentSummary, ProfilePictureSource, Post, Video, VideoCaption, Album, Photo, ) from pyf...
true
true
08fa1590977aae72b090c6001c31f7bc288a9ecd
424
py
Python
rvpvp/isa/rvf/fcvt_l_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
5
2021-05-10T09:57:00.000Z
2021-10-05T14:39:20.000Z
rvpvp/isa/rvf/fcvt_l_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
null
null
null
rvpvp/isa/rvf/fcvt_l_s.py
ultrafive/riscv-pvp
843e38422c3d545352b955764927d5e7847e5453
[ "Unlicense" ]
1
2021-05-14T20:24:11.000Z
2021-05-14T20:24:11.000Z
from ...isa.inst import * import numpy as np class Fcvt_l_s(Inst): name = 'fcvt.l.s' def golden(self): if 'val1' in self.keys(): if self['val1'] < -(1<<63) or np.isneginf(self['val1']): return -(1<<63) if self['val1'] > ((1<<63)-1) or np.isposinf(self['val1']) o...
30.285714
97
0.490566
from ...isa.inst import * import numpy as np class Fcvt_l_s(Inst): name = 'fcvt.l.s' def golden(self): if 'val1' in self.keys(): if self['val1'] < -(1<<63) or np.isneginf(self['val1']): return -(1<<63) if self['val1'] > ((1<<63)-1) or np.isposinf(self['val1']) o...
true
true
08fa15f70d1a85c3fa0ad2a594deb9ac86d3df5d
17,024
py
Python
dm_env_rpc/v1/tensor_utils_test.py
AurelianTactics/dm_env_rpc
08f76b83af759d3f940207c53a1955a2af17198c
[ "Apache-2.0" ]
null
null
null
dm_env_rpc/v1/tensor_utils_test.py
AurelianTactics/dm_env_rpc
08f76b83af759d3f940207c53a1955a2af17198c
[ "Apache-2.0" ]
null
null
null
dm_env_rpc/v1/tensor_utils_test.py
AurelianTactics/dm_env_rpc
08f76b83af759d3f940207c53a1955a2af17198c
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 DeepMind Technologies Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
36.532189
78
0.685444
import struct from absl.testing import absltest from absl.testing import parameterized import mock import numpy as np from google.protobuf import any_pb2 from google.protobuf import struct_pb2 from dm_env_rpc.v1 import dm_env_rpc_pb2 from dm_env_rpc.v1 import tensor_utils class PackTensorTests(parameterized.TestCa...
true
true
08fa1628d4c46f16aeada8713115dd10bf7719fe
2,574
py
Python
dogs_vs_cats/src/data_prepration.py
ShiNik/DeepLearning_Tensorflow
a7faf8decc72b6c7b6e3ca08226ca33f792a82ab
[ "MIT" ]
3
2019-10-25T13:44:44.000Z
2020-11-17T04:03:28.000Z
dogs_vs_cats/src/data_prepration.py
ShiNik/DeepLearning_Tensorflow
a7faf8decc72b6c7b6e3ca08226ca33f792a82ab
[ "MIT" ]
2
2019-11-12T19:52:59.000Z
2020-01-12T19:08:21.000Z
dogs_vs_cats/src/data_prepration.py
ShiNik/DeepLearning_Tensorflow
a7faf8decc72b6c7b6e3ca08226ca33f792a82ab
[ "MIT" ]
2
2019-10-08T22:02:53.000Z
2019-11-13T08:17:27.000Z
from util import get_path from util import get_index_by_image_name import random import numpy as np from numpy import save import os from os import listdir import cv2 import keras from sklearn.model_selection import train_test_split def split_and_save(config, data,labels): print("Pre-processing data!") (x_t...
32.175
98
0.64258
from util import get_path from util import get_index_by_image_name import random import numpy as np from numpy import save import os from os import listdir import cv2 import keras from sklearn.model_selection import train_test_split def split_and_save(config, data,labels): print("Pre-processing data!") (x_t...
true
true
08fa16ad0be38e9ec22d26ed0a7864c30ce161dc
2,819
py
Python
rover_20_control/scripts/cmd_20.py
ogzgbkn/rover_20
a10a4f658e1bfb876e3063b9183f0aac71fe6dfd
[ "BSD-2-Clause" ]
14
2019-11-15T12:14:24.000Z
2021-05-23T07:27:24.000Z
rover_20_control/scripts/cmd_20.py
MelihCelik00/rover_20
4582036b06bc60774efaf79fdb6806d0ce20efd7
[ "BSD-2-Clause" ]
8
2020-01-30T15:41:02.000Z
2020-08-15T15:00:13.000Z
rover_20_control/scripts/cmd_20.py
MelihCelik00/rover_20
4582036b06bc60774efaf79fdb6806d0ce20efd7
[ "BSD-2-Clause" ]
20
2019-11-15T14:16:39.000Z
2020-12-05T13:05:36.000Z
#!/usr/bin/env python import rospy import math from std_msgs.msg import String from geometry_msgs.msg import Twist twist_cmd = Twist(); twist_nav = Twist(); twist = Twist(); pub=rospy.Publisher("/rover_serial_topic", String, queue_size=10) def callback_cmd(data): #joystick twist_cmd.linear.x = data.linear.x * 120 ...
24.094017
110
0.680383
import rospy import math from std_msgs.msg import String from geometry_msgs.msg import Twist twist_cmd = Twist(); twist_nav = Twist(); twist = Twist(); pub=rospy.Publisher("/rover_serial_topic", String, queue_size=10) def callback_cmd(data): twist_cmd.linear.x = data.linear.x * 120 twist_cmd.angular.z = data.angu...
true
true
08fa16d96d71af91c8b88f0c01bf4b85cf24564c
6,429
py
Python
nose2/tests/functional/test_prettyassert.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/test_prettyassert.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
nose2/tests/functional/test_prettyassert.py
ltfish/nose2
e47363dad10056cf906daf387613c21d74f37e56
[ "BSD-2-Clause" ]
null
null
null
from nose2.tests._common import FunctionalTestCase class TestPrettyAsserts(FunctionalTestCase): def assertProcOutputPattern(self, proc, expected, assert_exit_status=1): """ - proc: a popen proc to check output on - expected: expected output pattern """ stdout, stderr = proc...
30.042056
78
0.468347
from nose2.tests._common import FunctionalTestCase class TestPrettyAsserts(FunctionalTestCase): def assertProcOutputPattern(self, proc, expected, assert_exit_status=1): stdout, stderr = proc.communicate() if assert_exit_status is not None: self.assertEqual(assert_exit_status, proc.pol...
true
true
08fa1992302abdbd33eb2355b83b05ffd5be64e6
22
py
Python
cbuild/__init__.py
mahiuchun/cports
37315875922d65a6d4f612cdc17bc0d88856d6d0
[ "BSD-2-Clause" ]
86
2015-01-18T16:00:37.000Z
2021-11-22T08:34:26.000Z
cbuild/__init__.py
mahiuchun/cports
37315875922d65a6d4f612cdc17bc0d88856d6d0
[ "BSD-2-Clause" ]
67
2017-01-09T19:39:19.000Z
2018-02-28T05:33:40.000Z
lib/encryption/__init__.py
GonzaloAlvarez/devops-tools
fbbbbcad36df9f1b3e40328ff48c22bad13a56f4
[ "MIT" ]
20
2015-03-19T12:11:07.000Z
2019-02-25T10:37:05.000Z
# Nothing to see here
11
21
0.727273
true
true
08fa1a15007dcae2d263314285fb620abd4ee423
539
py
Python
modules/mysite/urls.py
xuhuiliang-maybe/ace_office
07fae18676a193206802e8fb9aa32a805b1da24c
[ "Apache-2.0" ]
1
2018-11-27T08:08:07.000Z
2018-11-27T08:08:07.000Z
modules/mysite/urls.py
xuhuiliang-maybe/ace_office
07fae18676a193206802e8fb9aa32a805b1da24c
[ "Apache-2.0" ]
null
null
null
modules/mysite/urls.py
xuhuiliang-maybe/ace_office
07fae18676a193206802e8fb9aa32a805b1da24c
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 from django.conf.urls import url from modules.mysite.code import emails_views from modules.mysite.code import personal_views from modules.mysite.code import timelines_views # 我的地盘 urlpatterns = [ url(r'^personal$', personal_views.PersonalListView.as_view(), name='personal'), # 列表,用户信息 url(r'^persona...
35.933333
103
0.766234
from django.conf.urls import url from modules.mysite.code import emails_views from modules.mysite.code import personal_views from modules.mysite.code import timelines_views urlpatterns = [ url(r'^personal$', personal_views.PersonalListView.as_view(), name='personal'), url(r'^personal/edit$', personal_views.Persona...
true
true
08fa1a794fbd36c49ce09a20767a2365bd9f8686
32,491
py
Python
cadence/decision_loop.py
mfateev/cadence-python
f8e6e2eb3a010dcd1df76a2e4e59afbb8c11f1db
[ "MIT" ]
null
null
null
cadence/decision_loop.py
mfateev/cadence-python
f8e6e2eb3a010dcd1df76a2e4e59afbb8c11f1db
[ "MIT" ]
null
null
null
cadence/decision_loop.py
mfateev/cadence-python
f8e6e2eb3a010dcd1df76a2e4e59afbb8c11f1db
[ "MIT" ]
null
null
null
from __future__ import annotations import asyncio import contextvars import datetime import json import uuid import random import logging import threading from asyncio.base_futures import CancelledError from asyncio.events import AbstractEventLoop from asyncio.futures import Future from asyncio.tasks import Task from ...
41.548593
139
0.693146
from __future__ import annotations import asyncio import contextvars import datetime import json import uuid import random import logging import threading from asyncio.base_futures import CancelledError from asyncio.events import AbstractEventLoop from asyncio.futures import Future from asyncio.tasks import Task from ...
true
true
08fa1bae24cea4f6bcb2e8857e36176b40c475cb
3,137
py
Python
tensorflow_addons/image/distance_transform.py
sjmielke/addons
88178d02034b073a32af3463d7a84d6bc1dfc300
[ "Apache-2.0" ]
1
2019-06-24T09:11:22.000Z
2019-06-24T09:11:22.000Z
tensorflow_addons/image/distance_transform.py
raj0926/addons
f126f9183e9dd62e78ac1cea3d4213626c1ea4d1
[ "Apache-2.0" ]
null
null
null
tensorflow_addons/image/distance_transform.py
raj0926/addons
f126f9183e9dd62e78ac1cea3d4213626c1ea4d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.217949
80
0.670386
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow_addons.utils.resource_loader import get_path_to_datafile _image_ops_so = tf.load_op_library( get_path_to_datafile("custom_ops/image/_image_ops.so")) tf.no_gradient(...
true
true
08fa1be342acf7f1fe20cfd1de80cd8f59a40dc2
728
py
Python
instagram/migrations/0001_initial.py
kipkoech-msojo/instagram-clone
25ba446dadfb8b95e1c3ea0bd3e8f2b2c25d09af
[ "MIT" ]
null
null
null
instagram/migrations/0001_initial.py
kipkoech-msojo/instagram-clone
25ba446dadfb8b95e1c3ea0bd3e8f2b2c25d09af
[ "MIT" ]
null
null
null
instagram/migrations/0001_initial.py
kipkoech-msojo/instagram-clone
25ba446dadfb8b95e1c3ea0bd3e8f2b2c25d09af
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-21 06:08 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
28
120
0.634615
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( ...
true
true
08fa1da2c79efbff47193d961c42a18012117a14
40,025
py
Python
Google/benchmarks/transformer/implementations/transformer-research-TF-tpu-v4-16/google/ops/beam_search_tpu_ops.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
Google/benchmarks/transformer/implementations/transformer-research-TF-tpu-v4-16/google/ops/beam_search_tpu_ops.py
goswamig/training_results_v0.7
4278ce8a0f3d4db6b5e6054277724ca36278d7a3
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
Google/benchmarks/transformer/implementations/transformer-research-TF-tpu-v4-16/google/ops/beam_search_tpu_ops.py
lablup/training_results_v0.7
f5bb59aa0f8b18b602763abe47d1d24d0d54b197
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Lint as: python2, python3 r"""Babelfish version of Beam search. This is TensorFlow implementation of beam search that is implemented to run fast on TPUs. go/beam-search-on-fish """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from REDACTED.tensorflow_...
43.36403
97
0.682598
from __future__ import absolute_import from __future__ import division from __future__ import print_function from REDACTED.tensorflow_models.mlperf.models.rough.transformer_lingvo.lingvo import compat as tf from six.moves import range from REDACTED.learning.REDACTED.google.xla.python import xla_ops BEST_SCORES_INIT ...
true
true
08fa1e2d190401e6281c34e1ae65d30318e77d1f
1,709
py
Python
app/core/migrations/0001_initial.py
BINAYKUMAR943/recipe-app-api
ce70ba8df09ac4df76250a26a9a2950f8044abf2
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
BINAYKUMAR943/recipe-app-api
ce70ba8df09ac4df76250a26a9a2950f8044abf2
[ "MIT" ]
null
null
null
app/core/migrations/0001_initial.py
BINAYKUMAR943/recipe-app-api
ce70ba8df09ac4df76250a26a9a2950f8044abf2
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2022-03-18 18:11 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
50.264706
266
0.63897
from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.Aut...
true
true
08fa1edbfde8e098165e6a5a22a9fa38c138b0ab
3,369
py
Python
inventree/company.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
inventree/company.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
inventree/company.py
SergeoLacruz/inventree-python
94681428f61de4ca51171e685812ebc436b9be42
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import inventree.base import inventree.order logger = logging.getLogger('inventree') class Company(inventree.base.ImageMixin, inventree.base.InventreeObject): """ Class representing the Company database model """ URL = 'company' def getSuppliedParts(self, **kwa...
26.952
94
0.663105
import logging import inventree.base import inventree.order logger = logging.getLogger('inventree') class Company(inventree.base.ImageMixin, inventree.base.InventreeObject): URL = 'company' def getSuppliedParts(self, **kwargs): return SupplierPart.list(self._api, supplier=self.pk, **kwargs) ...
true
true
08fa1f723b89d545ecc236e2c3be40974a4fa165
1,604
py
Python
tests/functional/test_six_threading.py
kellertk/botocore
3b8eb4ab832ed1ca1833a6cfce8277ef6d54dc9f
[ "Apache-2.0" ]
null
null
null
tests/functional/test_six_threading.py
kellertk/botocore
3b8eb4ab832ed1ca1833a6cfce8277ef6d54dc9f
[ "Apache-2.0" ]
null
null
null
tests/functional/test_six_threading.py
kellertk/botocore
3b8eb4ab832ed1ca1833a6cfce8277ef6d54dc9f
[ "Apache-2.0" ]
null
null
null
""" Regression test for six issue #98 (https://github.com/benjaminp/six/issues/98) """ import sys import threading import time from botocore.vendored import six from tests import mock _original_setattr = six.moves.__class__.__setattr__ def _wrapped_setattr(key, value): # Monkey patch six.moves.__setattr__ to si...
26.295082
78
0.634663
import sys import threading import time from botocore.vendored import six from tests import mock _original_setattr = six.moves.__class__.__setattr__ def _wrapped_setattr(key, value): time.sleep(0.1) return _original_setattr(six.moves, key, value) def _reload_six(): import importlib...
true
true
08fa214f079f74c8012d1e4433e9af4d7a9d05bb
7,481
py
Python
maistra/vendor/com_googlesource_chromium_v8/wee8/build/fuchsia/qemu_target.py
maistra-bot/proxy
05a551df62d90e96c24afc649f2755983d020b5b
[ "Apache-2.0" ]
1
2020-03-11T03:44:02.000Z
2020-03-11T03:44:02.000Z
src/build/fuchsia/qemu_target.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
src/build/fuchsia/qemu_target.py
bylond/naiveproxy
a04a8330a8bb0d0892259cf6d795271fbe6e6d0e
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Implements commands for running and interacting with Fuchsia on QEMU.""" import boot_data import common import emu_target import logging import md5 impor...
36.140097
80
0.661944
import boot_data import common import emu_target import logging import md5 import os import platform import shutil import subprocess import sys import tempfile from common import GetEmuRootForPlatform, EnsurePathExists GUEST_NET = '192.168.3.0/24' GUEST_IP_ADDRESS = '192.168.3.9' HOST_IP_ADDRESS = '192.168.3.2' GU...
true
true
08fa21c642fe709f1cca1e975b95b0ec31fec6f2
353
py
Python
examples/twostream_bgk2.py
DDMGNI/viVlasov1D
901dd058711f6943eb6497b941bc115a64e822de
[ "MIT" ]
2
2018-09-13T12:39:07.000Z
2019-04-05T04:55:59.000Z
examples/twostream_bgk2.py
DDMGNI/viVlasov1D
901dd058711f6943eb6497b941bc115a64e822de
[ "MIT" ]
null
null
null
examples/twostream_bgk2.py
DDMGNI/viVlasov1D
901dd058711f6943eb6497b941bc115a64e822de
[ "MIT" ]
null
null
null
""" Twostream Instability Initial distribution function: :math:`f(x,v) = v^2 \, f_{M} \, ( 1 + A \, \cos{( k_{x} \, x) } )` with :math:`A = 0.05, k = 0.5` """ import numpy as np from vlasov.toolbox.maxwell import maxwellian def distribution(x, v): f = maxwellian(0.25, v) * (1. + 0.05 * np.cos(0.5 ...
17.65
69
0.541076
import numpy as np from vlasov.toolbox.maxwell import maxwellian def distribution(x, v): f = maxwellian(0.25, v) * (1. + 0.05 * np.cos(0.5 * x)) * v**2 return f
true
true
08fa23946a5bc637d713c4d30f3ef77e0972e795
4,003
py
Python
frontend/cstar_perf/frontend/server/email_notifications.py
cooldoger/cstar_perf
aceadd1d5a2331668647c53cca231ff9c1338eb4
[ "Apache-2.0" ]
60
2015-01-01T03:01:40.000Z
2021-11-06T16:03:41.000Z
frontend/cstar_perf/frontend/server/email_notifications.py
cooldoger/cstar_perf
aceadd1d5a2331668647c53cca231ff9c1338eb4
[ "Apache-2.0" ]
182
2015-01-04T20:02:54.000Z
2021-04-23T18:16:23.000Z
frontend/cstar_perf/frontend/server/email_notifications.py
datastax/cstar_perf
aceadd1d5a2331668647c53cca231ff9c1338eb4
[ "Apache-2.0" ]
30
2015-03-11T14:37:38.000Z
2021-01-13T10:48:02.000Z
# Server email notifications to users: import smtplib from email.mime.text import MIMEText import os from jinja2 import Template, Environment, PackageLoader import ConfigParser import logging import urlparse from cstar_perf.frontend import SERVER_CONFIG_PATH from cstar_perf.frontend.server.util import load_app_config ...
38.864078
121
0.644517
import smtplib from email.mime.text import MIMEText import os from jinja2 import Template, Environment, PackageLoader import ConfigParser import logging import urlparse from cstar_perf.frontend import SERVER_CONFIG_PATH from cstar_perf.frontend.server.util import load_app_config try: app_config = load_app_config(...
true
true
08fa23fed836d126371805cfe32f1a947a6543f2
4,241
py
Python
src/eduid_webapp/idp/tests/data/test_SSO_conf.py
SUNET/eduid-webapp
8e531f288d50d18a5c9182003fff2ab6670a44c3
[ "BSD-3-Clause" ]
null
null
null
src/eduid_webapp/idp/tests/data/test_SSO_conf.py
SUNET/eduid-webapp
8e531f288d50d18a5c9182003fff2ab6670a44c3
[ "BSD-3-Clause" ]
161
2017-04-13T07:56:38.000Z
2021-03-12T13:46:38.000Z
src/eduid_webapp/idp/tests/data/test_SSO_conf.py
SUNET/eduid-webapp
8e531f288d50d18a5c9182003fff2ab6670a44c3
[ "BSD-3-Clause" ]
3
2016-05-16T20:25:49.000Z
2018-07-27T12:10:58.000Z
import os from saml2 import BINDING_HTTP_POST, BINDING_HTTP_REDIRECT, BINDING_SOAP from saml2.saml import NAME_FORMAT_URI, NAMEID_FORMAT_PERSISTENT, NAMEID_FORMAT_TRANSIENT try: from saml2.sigver import get_xmlsec_binary except ImportError: get_xmlsec_binary = None if get_xmlsec_binary: xmlsec_path = get...
38.207207
119
0.582174
import os from saml2 import BINDING_HTTP_POST, BINDING_HTTP_REDIRECT, BINDING_SOAP from saml2.saml import NAME_FORMAT_URI, NAMEID_FORMAT_PERSISTENT, NAMEID_FORMAT_TRANSIENT try: from saml2.sigver import get_xmlsec_binary except ImportError: get_xmlsec_binary = None if get_xmlsec_binary: xmlsec_path = get...
true
true
08fa24e96b588ea7a5ef0dda0c3feb74a4ed2c1b
2,695
py
Python
util/test/tests/Vulkan/VK_Resource_Lifetimes.py
hbina/renderdoc
3f71e1739cfda98761ce7dc3a572f709125c93f2
[ "MIT" ]
6,181
2015-01-07T11:49:11.000Z
2022-03-31T21:46:55.000Z
util/test/tests/Vulkan/VK_Resource_Lifetimes.py
hbina/renderdoc
3f71e1739cfda98761ce7dc3a572f709125c93f2
[ "MIT" ]
2,015
2015-01-16T01:45:25.000Z
2022-03-25T12:01:06.000Z
util/test/tests/Vulkan/VK_Resource_Lifetimes.py
hbina/renderdoc
3f71e1739cfda98761ce7dc3a572f709125c93f2
[ "MIT" ]
1,088
2015-01-06T08:36:25.000Z
2022-03-30T03:31:21.000Z
import renderdoc as rd import rdtest class VK_Resource_Lifetimes(rdtest.TestCase): demos_test_name = 'VK_Resource_Lifetimes' demos_frame_cap = 200 def check_capture(self): last_action: rd.ActionDescription = self.get_last_action() self.controller.SetFrameEvent(last_action.eventId, True) ...
44.916667
91
0.592579
import renderdoc as rd import rdtest class VK_Resource_Lifetimes(rdtest.TestCase): demos_test_name = 'VK_Resource_Lifetimes' demos_frame_cap = 200 def check_capture(self): last_action: rd.ActionDescription = self.get_last_action() self.controller.SetFrameEvent(last_action.eventId, True) ...
true
true
08fa250f06c214da5787dde9a54525b752a4511f
72
py
Python
day5_nltk/download.py
AloyASen/Machine-learning-tutorial
554dbd4007dd5213bb2683be2cc6a01cbc353999
[ "MIT" ]
null
null
null
day5_nltk/download.py
AloyASen/Machine-learning-tutorial
554dbd4007dd5213bb2683be2cc6a01cbc353999
[ "MIT" ]
null
null
null
day5_nltk/download.py
AloyASen/Machine-learning-tutorial
554dbd4007dd5213bb2683be2cc6a01cbc353999
[ "MIT" ]
null
null
null
import nltk #all packaged data in headless mode download nltk.download()
24
44
0.819444
import nltk nltk.download()
true
true
08fa2539e22522f96d0ef4218c689b3799bf28ea
518
py
Python
workers/deps_libyear_worker/npm_parser.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
443
2018-09-19T00:30:36.000Z
2022-03-31T11:39:13.000Z
workers/deps_libyear_worker/npm_parser.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
613
2018-09-19T18:31:13.000Z
2022-03-31T05:41:16.000Z
workers/deps_libyear_worker/npm_parser.py
theamankumarsingh/augur
3ae0c4d6e4fb9b6dfddff02a92a170763e9bf8bd
[ "MIT" ]
764
2018-10-17T01:08:10.000Z
2022-03-31T05:25:01.000Z
import json def map_dependencies(dict, key, type): deps = list() if not dict: return [] for name, info in dict[key].items(): Dict = {'name': name, 'requirement': info, 'type': type, 'package': 'NPM'} deps.append(Dict) return deps def parse_package_json(file_handle): manife...
25.9
127
0.669884
import json def map_dependencies(dict, key, type): deps = list() if not dict: return [] for name, info in dict[key].items(): Dict = {'name': name, 'requirement': info, 'type': type, 'package': 'NPM'} deps.append(Dict) return deps def parse_package_json(file_handle): manife...
true
true
08fa25db24e57b97a3224ac3e93aae8af6fcb883
1,236
py
Python
src/assertion/assertion.py
csmith49/maude
b6287230a1cfb5b785f8153910970acbf3077bfd
[ "MIT" ]
null
null
null
src/assertion/assertion.py
csmith49/maude
b6287230a1cfb5b785f8153910970acbf3077bfd
[ "MIT" ]
null
null
null
src/assertion/assertion.py
csmith49/maude
b6287230a1cfb5b785f8153910970acbf3077bfd
[ "MIT" ]
null
null
null
# class wrapper for a model assertion that lets us easily store info about the construction class ModelAssertion: def __init__(self, f, **kwargs): self._kwargs = kwargs self._f = f # we must maintain the ability to call f def __call__(self, *args, **kwargs): return self._f(*args...
28.090909
91
0.653722
class ModelAssertion: def __init__(self, f, **kwargs): self._kwargs = kwargs self._f = f def __call__(self, *args, **kwargs): return self._f(*args, **kwargs) def __getitem__(self, key): try: return self._kwargs[key] except: re...
true
true
08fa26385e2b15071b1409ebcad42da8ec8b2824
7,479
py
Python
learn2learn/algorithms/maml.py
Brikwerk/learn2learn
7997c13c26ec627d13ce77ba98427260df78ada8
[ "MIT" ]
1,774
2019-09-05T20:41:16.000Z
2022-03-30T09:49:02.000Z
learn2learn/algorithms/maml.py
Kostis-S-Z/learn2learn
c0b7c088f15986880b136ec27059644ac513db60
[ "MIT" ]
196
2019-09-05T08:11:31.000Z
2022-03-31T12:08:25.000Z
learn2learn/algorithms/maml.py
Kostis-S-Z/learn2learn
c0b7c088f15986880b136ec27059644ac513db60
[ "MIT" ]
266
2019-09-13T10:17:54.000Z
2022-03-28T07:17:21.000Z
#!/usr/bin/env python3 import traceback from torch.autograd import grad from learn2learn.algorithms.base_learner import BaseLearner from learn2learn.utils import clone_module, update_module def maml_update(model, lr, grads=None): """ [[Source]](https://github.com/learnables/learn2learn/blob/master/learn2lea...
36.842365
100
0.599545
import traceback from torch.autograd import grad from learn2learn.algorithms.base_learner import BaseLearner from learn2learn.utils import clone_module, update_module def maml_update(model, lr, grads=None): if grads is not None: params = list(model.parameters()) if not len(grads) == len(list(par...
true
true
08fa27db4a9cd6469d72df122a46eec22c84ab3d
688
py
Python
utest/test/api/MyListenerWrongName.py
ishandutta2007/SeleniumLibrary
6b2748122b2af219d8247dab4b6db00d3c49e60d
[ "ECL-2.0", "Apache-2.0" ]
4
2018-03-22T11:27:57.000Z
2021-03-04T19:15:38.000Z
utest/test/api/MyListenerWrongName.py
ishandutta2007/SeleniumLibrary
6b2748122b2af219d8247dab4b6db00d3c49e60d
[ "ECL-2.0", "Apache-2.0" ]
5
2018-12-03T17:01:30.000Z
2019-03-30T16:09:01.000Z
utest/test/api/MyListenerWrongName.py
ishandutta2007/SeleniumLibrary
6b2748122b2af219d8247dab4b6db00d3c49e60d
[ "ECL-2.0", "Apache-2.0" ]
1
2020-10-07T08:44:50.000Z
2020-10-07T08:44:50.000Z
from robot.api import logger from selenium.webdriver.support.events import AbstractEventListener class MyListener(AbstractEventListener): def before_navigate_to(self, url, driver): logger.info("Before navigate to %s" % url) def after_navigate_to(self, url, driver): logger.info("After navigat...
28.666667
67
0.702035
from robot.api import logger from selenium.webdriver.support.events import AbstractEventListener class MyListener(AbstractEventListener): def before_navigate_to(self, url, driver): logger.info("Before navigate to %s" % url) def after_navigate_to(self, url, driver): logger.info("After navigat...
true
true
08fa28777c4530f62fd18d6adaadf236d59ead87
6,095
py
Python
tests/forte/data/multi_pack_test.py
yishen734/forte
a061dde4e39a8149a73f015c36641af80066f196
[ "Apache-2.0" ]
2
2021-01-01T12:07:27.000Z
2021-09-10T03:57:18.000Z
tests/forte/data/multi_pack_test.py
ha-lins/forte
4594f65f41a8dbfc822573d12fb9af58c37a83a4
[ "Apache-2.0" ]
null
null
null
tests/forte/data/multi_pack_test.py
ha-lins/forte
4594f65f41a8dbfc822573d12fb9af58c37a83a4
[ "Apache-2.0" ]
null
null
null
""" Unit tests for multi pack related operations. """ import logging import unittest from forte.data.data_pack import DataPack from forte.data.multi_pack import MultiPack, MultiPackLink from forte.data.ontology import Annotation, MultiPackGroup from forte.pack_manager import PackManager from ft.onto.base_ontology impo...
34.050279
78
0.577687
import logging import unittest from forte.data.data_pack import DataPack from forte.data.multi_pack import MultiPack, MultiPackLink from forte.data.ontology import Annotation, MultiPackGroup from forte.pack_manager import PackManager from ft.onto.base_ontology import Token logging.basicConfig(level=logging.DEBUG) d...
true
true
08fa29e5e929f076f9eed72f6e7c969b8041ccae
77,128
py
Python
Apps/phcarbonblackresponse/carbonblack_connector.py
bethwiron/phantom-apps
4fec72f0e9a0a8414a894dede27393ec01d1965a
[ "Apache-2.0" ]
null
null
null
Apps/phcarbonblackresponse/carbonblack_connector.py
bethwiron/phantom-apps
4fec72f0e9a0a8414a894dede27393ec01d1965a
[ "Apache-2.0" ]
1
2019-10-24T20:49:40.000Z
2019-10-24T20:49:40.000Z
Apps/phcarbonblackresponse/carbonblack_connector.py
bethwiron/phantom-apps
4fec72f0e9a0a8414a894dede27393ec01d1965a
[ "Apache-2.0" ]
1
2022-01-23T17:30:14.000Z
2022-01-23T17:30:14.000Z
# File: carbonblack_connector.py # Copyright (c) 2016-2020 Splunk Inc. # # Licensed under Apache 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt) # # Phantom imports import phantom.app as phantom from phantom.base_connector import BaseConnector from phantom.action_result import ActionResult from phantom.vault imp...
39.270876
168
0.645887
import phantom.app as phantom from phantom.base_connector import BaseConnector from phantom.action_result import ActionResult from phantom.vault import Vault from carbonblack_consts import * import os import time import re import six.moves.urllib.parse from parse import parse import json import zipfile import uuid i...
true
true
08fa2a7256c85c1781874543f78019abbc57caa7
807
py
Python
src/input_handlers/deploytemplate.py
amit-dali/blueprint-buddy
5fb30d95ff51b14a97540a25d42892151dcb97b5
[ "Apache-2.0" ]
null
null
null
src/input_handlers/deploytemplate.py
amit-dali/blueprint-buddy
5fb30d95ff51b14a97540a25d42892151dcb97b5
[ "Apache-2.0" ]
null
null
null
src/input_handlers/deploytemplate.py
amit-dali/blueprint-buddy
5fb30d95ff51b14a97540a25d42892151dcb97b5
[ "Apache-2.0" ]
null
null
null
''' This class defines methods to handle AWS CFN stack creation @since 28-11-2018 @author amit.dali@gmail.com ''' import boto3 import logging import time logger = logging.getLogger() logger.setLevel(logging.INFO) class DeployTemplate: def __init__(self): pass def generateStackName(self): timestamp = str(in...
22.416667
57
0.726146
import boto3 import logging import time logger = logging.getLogger() logger.setLevel(logging.INFO) class DeployTemplate: def __init__(self): pass def generateStackName(self): timestamp = str(int(time.time())) stackName = 'blueprint-buddy-' + timestamp logger.info('StackName:%s',stackName) return stac...
true
true
08fa2bfca4c0d1bff1fe63cc7b8914a0ddb303fa
169
py
Python
Code only/9- Python Standard Library/Zipping.py
AhmedRaja1/Python-Beginner-s-Starter-Kit
285cfbeb7207e6531954f21cae3a062f977ee5a0
[ "MIT" ]
1
2021-09-27T16:47:25.000Z
2021-09-27T16:47:25.000Z
Code only/9- Python Standard Library/unzipping.py
AhmedRaja1/Python-Beginner-s-Starter-Kit
285cfbeb7207e6531954f21cae3a062f977ee5a0
[ "MIT" ]
null
null
null
Code only/9- Python Standard Library/unzipping.py
AhmedRaja1/Python-Beginner-s-Starter-Kit
285cfbeb7207e6531954f21cae3a062f977ee5a0
[ "MIT" ]
1
2021-09-27T16:47:33.000Z
2021-09-27T16:47:33.000Z
from pathlib import Path from zipfile import ZipFile with ZipFile(r"C:\Users\RELIANCE\Desktop\free.zip") as zip: zip.extractall(r"C:\Users\RELIANCE\Desktop\khulna")
33.8
59
0.775148
from pathlib import Path from zipfile import ZipFile with ZipFile(r"C:\Users\RELIANCE\Desktop\free.zip") as zip: zip.extractall(r"C:\Users\RELIANCE\Desktop\khulna")
true
true
08fa2c846612c14d0b032ee0d0950376c189696a
3,143
py
Python
modules/tests/asset/asset_search.py
rajendar-reddy/Sahana-
6be62bf4baf1e4d56ef30db05fc46ee290902959
[ "MIT" ]
null
null
null
modules/tests/asset/asset_search.py
rajendar-reddy/Sahana-
6be62bf4baf1e4d56ef30db05fc46ee290902959
[ "MIT" ]
null
null
null
modules/tests/asset/asset_search.py
rajendar-reddy/Sahana-
6be62bf4baf1e4d56ef30db05fc46ee290902959
[ "MIT" ]
1
2019-12-16T15:14:46.000Z
2019-12-16T15:14:46.000Z
# -*- coding: utf-8 -*- """ Sahana Eden Asset Module Automated Tests @copyright: 2011-2018 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de...
34.922222
91
0.609927
""" Sahana Eden Asset Module Automated Tests @copyright: 2011-2018 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
false
true
08fa2d6df3f1de9586f204dfbf2987c5ab85c30d
917
gyp
Python
src/third_party/brotli/brotli.gyp
bopopescu/MQUIC
703e944ec981366cfd2528943b1def2c72b7e49d
[ "MIT" ]
1
2018-01-02T15:42:08.000Z
2018-01-02T15:42:08.000Z
third_party/brotli/brotli.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
third_party/brotli/brotli.gyp
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
1
2020-07-25T02:05:49.000Z
2020-07-25T02:05:49.000Z
# Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'brotli', 'type': 'static_library', 'include_dirs': [ 'dec', ], 'sources': [ ...
23.512821
98
0.484188
{ 'targets': [ { 'target_name': 'brotli', 'type': 'static_library', 'include_dirs': [ 'dec', ], 'sources': [ 'dec/bit_reader.c', 'dec/bit_reader.h', 'dec/context.h', 'dec/decode.c', 'dec/decode.h', 'dec/dictionary.c', '...
true
true
08fa2d9ac141d3ed27340ece237d374dc9015df0
1,733
py
Python
mqtt/mqtt.py
tam-wh/py-simple-nvr
0444e352e2d92ed7a5722c79b005a47367742032
[ "MIT" ]
null
null
null
mqtt/mqtt.py
tam-wh/py-simple-nvr
0444e352e2d92ed7a5722c79b005a47367742032
[ "MIT" ]
null
null
null
mqtt/mqtt.py
tam-wh/py-simple-nvr
0444e352e2d92ed7a5722c79b005a47367742032
[ "MIT" ]
null
null
null
import paho.mqtt.client as mqtt import logging logger = logging.getLogger(__name__) class Mqtt: def on_connect(self, client, userdata, flags, rc): for topic in self.subscriptions.keys(): self.client.subscribe(topic, qos=0) logger.warning("Connected with result code "+str(...
31.509091
135
0.626659
import paho.mqtt.client as mqtt import logging logger = logging.getLogger(__name__) class Mqtt: def on_connect(self, client, userdata, flags, rc): for topic in self.subscriptions.keys(): self.client.subscribe(topic, qos=0) logger.warning("Connected with result code "+str(...
true
true
08fa2dfce3093fd86a2981739b4d5927f8e18c2b
8,880
py
Python
testplan/exporters/testing/pdf/renderers/entries/base.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
null
null
null
testplan/exporters/testing/pdf/renderers/entries/base.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
64
2019-04-15T20:56:40.000Z
2021-03-23T01:00:30.000Z
testplan/exporters/testing/pdf/renderers/entries/base.py
apretori-tic/testplan
d3926d328e46c88d12a9c2568d4918f8aa44f26e
[ "Apache-2.0" ]
null
null
null
import six import pprint from reportlab.lib import colors from reportlab.lib.units import inch from reportlab.platypus import Image from reportlab.platypus import Paragraph from testplan.common.exporters.pdf import RowStyle, create_table from testplan.common.exporters.pdf import format_table_style from testplan.commo...
35.951417
80
0.576914
import six import pprint from reportlab.lib import colors from reportlab.lib.units import inch from reportlab.platypus import Image from reportlab.platypus import Paragraph from testplan.common.exporters.pdf import RowStyle, create_table from testplan.common.exporters.pdf import format_table_style from testplan.commo...
true
true
08fa2f21c67536fb1b6fda6eab14233b369d5884
1,488
py
Python
src/account/migrations/0002_message_plan.py
kullo/webconfig
470839ed77fda11634d4e14a89bb5e7894aa707d
[ "BSD-3-Clause" ]
null
null
null
src/account/migrations/0002_message_plan.py
kullo/webconfig
470839ed77fda11634d4e14a89bb5e7894aa707d
[ "BSD-3-Clause" ]
null
null
null
src/account/migrations/0002_message_plan.py
kullo/webconfig
470839ed77fda11634d4e14a89bb5e7894aa707d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2015–2020 Kullo GmbH # # This source code is licensed under the 3-clause BSD license. See LICENSE.txt # in the root directory of this source tree for details. # -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-03 11:28 from __future__ import unicode_literals from django.db import migrations, m...
32.347826
114
0.548387
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0001_initial'), ] operations = [ migrations.CreateModel( name='Message', fields=[ ('id', models.A...
true
true
08fa30edb809a01476c300e95de38690824fcefc
1,605
py
Python
prova/form/views.py
mary023010/prova_django
a69a37a4f26f21018cef48e5d637dd630ca68877
[ "MIT" ]
null
null
null
prova/form/views.py
mary023010/prova_django
a69a37a4f26f21018cef48e5d637dd630ca68877
[ "MIT" ]
null
null
null
prova/form/views.py
mary023010/prova_django
a69a37a4f26f21018cef48e5d637dd630ca68877
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.contrib import messages from django.template import context from .models import Utente from .forms import UtenteForm # Create your views here. def posti(request): return render(request, 'form/posti.html') def form(request): return render(request, 'form/index.ht...
28.660714
62
0.651713
from django.shortcuts import render from django.contrib import messages from django.template import context from .models import Utente from .forms import UtenteForm def posti(request): return render(request, 'form/posti.html') def form(request): return render(request, 'form/index.html') def insert_utente(re...
true
true
08fa30f85f84aa3b8d6eb3df8929c1392792fd9f
1,820
py
Python
production/mobsf.py
YiPrograms/AIS3-2020-IAAST
e7d872eb097d5c1469163e843d8183d0d030a095
[ "MIT" ]
9
2020-08-02T06:07:48.000Z
2022-01-07T18:08:01.000Z
production/mobsf.py
YiPrograms/AIS3-2020-IAAST
e7d872eb097d5c1469163e843d8183d0d030a095
[ "MIT" ]
null
null
null
production/mobsf.py
YiPrograms/AIS3-2020-IAAST
e7d872eb097d5c1469163e843d8183d0d030a095
[ "MIT" ]
1
2021-06-01T02:48:11.000Z
2021-06-01T02:48:11.000Z
import requests from bs4 import BeautifulSoup import json class MobSF(): def __init__(self, host, port, https): self.url = 'http{}://{}:{}'.format("s" if https else "",host, port) print("[*] MobSF: URL: {}".format(self.url)) print("[*] MobSF: Connecting to MobSF API...") # get api k...
38.723404
136
0.543956
import requests from bs4 import BeautifulSoup import json class MobSF(): def __init__(self, host, port, https): self.url = 'http{}://{}:{}'.format("s" if https else "",host, port) print("[*] MobSF: URL: {}".format(self.url)) print("[*] MobSF: Connecting to MobSF API...") req...
true
true
08fa31848adeeef202f083f6826e516d41069e64
10,988
py
Python
openprocurement/auctions/swiftsure/models.py
bdmbdsm/openprocurement.auctions.swiftsure
f5b93555eb12212c69c8168f861376eae85f4648
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/swiftsure/models.py
bdmbdsm/openprocurement.auctions.swiftsure
f5b93555eb12212c69c8168f861376eae85f4648
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/swiftsure/models.py
bdmbdsm/openprocurement.auctions.swiftsure
f5b93555eb12212c69c8168f861376eae85f4648
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import timedelta from functools import partial from random import randint from pyramid.security import Allow from schematics.exceptions import ValidationError from schematics.transforms import whitelist from schematics.types import ( StringType, IntType, MD5Type, B...
45.032787
213
0.701766
from datetime import timedelta from functools import partial from random import randint from pyramid.security import Allow from schematics.exceptions import ValidationError from schematics.transforms import whitelist from schematics.types import ( StringType, IntType, MD5Type, BooleanType ) from schema...
true
true
08fa3232577f8650a6f1a535172a502061a5018d
1,246
py
Python
src_dawkins/5_structure_search/search_00_random_forest.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
1
2019-01-24T04:22:39.000Z
2019-01-24T04:22:39.000Z
src_dawkins/5_structure_search/search_00_random_forest.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
null
null
null
src_dawkins/5_structure_search/search_00_random_forest.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
null
null
null
# Train 2 seperate models, one for cats, one for dogs!! # assert y_tr.dtype == np.dtype('int64'), "y_tr must be integer for LGBM!!" class ModelSearch(): def __init__(self, classifier, search_grid): self.classifier = classifier self.search_grid = search_grid #%% Model and params params_model = di...
42.965517
137
0.662119
class ModelSearch(): def __init__(self, classifier, search_grid): self.classifier = classifier self.search_grid = search_grid params_model = dict() params_model.update({ }) clf = sk.ensemble.RandomForestClassifier(**params_model ) logging.info("Classifier created: {}".format(clf)) h...
false
true
08fa3250804d47712809950e58033fadbb45f5ef
1,132
py
Python
utils/md/mdx_downheader.py
zerolfx/aiplay-api
73161ce8fba67c392df73b452984f6cb09fc48e7
[ "MIT" ]
3
2017-02-21T01:11:45.000Z
2020-11-17T13:08:12.000Z
utils/md/mdx_downheader.py
zerolfx/aiplay-api
73161ce8fba67c392df73b452984f6cb09fc48e7
[ "MIT" ]
null
null
null
utils/md/mdx_downheader.py
zerolfx/aiplay-api
73161ce8fba67c392df73b452984f6cb09fc48e7
[ "MIT" ]
null
null
null
from markdown import Extension from markdown.treeprocessors import Treeprocessor class DownHeaderTreeProcessor(Treeprocessor): def __init__(self, levels): self.levels = levels super(DownHeaderTreeProcessor, self).__init__() def run(self, doc): for elem in doc: if elem.tag ...
34.30303
77
0.622792
from markdown import Extension from markdown.treeprocessors import Treeprocessor class DownHeaderTreeProcessor(Treeprocessor): def __init__(self, levels): self.levels = levels super(DownHeaderTreeProcessor, self).__init__() def run(self, doc): for elem in doc: if elem.tag ...
true
true
08fa330798e5a4d6e0c5c346047840084b39dce1
110
py
Python
obfsproxy/common/rand.py
Samdney/obfsproxy
2bf9d096bb45a4e6c69f1cbdc3d2565f54a44efc
[ "BSD-3-Clause" ]
101
2015-01-24T07:37:03.000Z
2022-01-22T15:38:44.000Z
obfsproxy/common/rand.py
david415/obfsproxy
ea0e1b2b62be9113155f25f53baf5fce4392c430
[ "BSD-3-Clause" ]
1
2015-03-29T15:16:04.000Z
2015-04-09T03:56:24.000Z
obfsproxy/common/rand.py
david415/obfsproxy
ea0e1b2b62be9113155f25f53baf5fce4392c430
[ "BSD-3-Clause" ]
29
2015-05-11T09:45:43.000Z
2020-02-22T17:50:27.000Z
import os def random_bytes(n): """ Returns n bytes of strong random data. """ return os.urandom(n)
13.75
50
0.645455
import os def random_bytes(n): return os.urandom(n)
true
true
08fa33746bf882def3c4bead52892ffe0f753e45
925
py
Python
src/python_homie4/helpers/validate_id.py
juusokorhonen/python_homie4
5df1b103f8a4427f9dc9bcdeb8000660734e0ae4
[ "MIT" ]
null
null
null
src/python_homie4/helpers/validate_id.py
juusokorhonen/python_homie4
5df1b103f8a4427f9dc9bcdeb8000660734e0ae4
[ "MIT" ]
null
null
null
src/python_homie4/helpers/validate_id.py
juusokorhonen/python_homie4
5df1b103f8a4427f9dc9bcdeb8000660734e0ae4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re def validate_id(id): """Validate a topic ID according to the homie defintion https://homieiot.github.io/specification/#topic-ids Parameters ---------- id : str Topic id string to validate. Returns ------- True, if valid...
28.030303
78
0.628108
import re def validate_id(id): assert isinstance(id, str) r = re.compile("(^(?!\\-)[a-z0-9\\-]+(?<!\\-)$)") return id if r.match(id) else False
true
true
08fa338bb789efa289c2ca544b7f4f98bb3da3ee
875
py
Python
runtests.py
kiesopmaat/django-sticky-messages
6cfdfd810517d5514819ac810c729437e257f4dc
[ "MIT" ]
null
null
null
runtests.py
kiesopmaat/django-sticky-messages
6cfdfd810517d5514819ac810c729437e257f4dc
[ "MIT" ]
null
null
null
runtests.py
kiesopmaat/django-sticky-messages
6cfdfd810517d5514819ac810c729437e257f4dc
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import django from django.conf import settings from django.core.management import call_command from django.test.runner import DiscoverRunner if not settings.configured: settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.s...
24.305556
55
0.595429
import sys import django from django.conf import settings from django.core.management import call_command from django.test.runner import DiscoverRunner if not settings.configured: settings.configure( DATABASES={ 'default': { 'ENGINE': 'django.db.backends.sqlite3', ...
true
true
08fa34a6f5bd7f151c99abfc8c551bf0310ffa3b
333
py
Python
exercises/practice/grains/.meta/example.py
highb/python
5cf63f0a070e0efef4d2334582d331296100fbb0
[ "MIT" ]
2
2021-11-15T04:54:35.000Z
2021-12-26T02:04:16.000Z
exercises/practice/grains/.meta/example.py
highb/python
5cf63f0a070e0efef4d2334582d331296100fbb0
[ "MIT" ]
15
2021-01-27T22:17:51.000Z
2022-03-30T02:46:15.000Z
exercises/practice/grains/.meta/example.py
highb/python
5cf63f0a070e0efef4d2334582d331296100fbb0
[ "MIT" ]
null
null
null
def square(number): if number == 0: raise ValueError("square must be between 1 and 64") elif number < 0: raise ValueError("square must be between 1 and 64") elif number > 64: raise ValueError("square must be between 1 and 64") return 2 ** (number - 1) def total(): return (...
23.785714
59
0.597598
def square(number): if number == 0: raise ValueError("square must be between 1 and 64") elif number < 0: raise ValueError("square must be between 1 and 64") elif number > 64: raise ValueError("square must be between 1 and 64") return 2 ** (number - 1) def total(): return (...
true
true
08fa3590b313b5fd8730486b36f5625914b47b63
1,970
py
Python
release/stubs.min/Autodesk/Revit/DB/__init___parts/ElementSetIterator.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/ElementSetIterator.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/Autodesk/Revit/DB/__init___parts/ElementSetIterator.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class ElementSetIterator(APIObject, IDisposable, IEnumerator): """ An iterator to an element set. ElementSetIterator() """ def Dispose(self): """ Dispose(self: ElementSetIterator,A_0: bool) """ pass def MoveNext(self): """ MoveNext(self: ElementSetIterator) ...
24.625
221
0.604569
class ElementSetIterator(APIObject, IDisposable, IEnumerator): def Dispose(self): pass def MoveNext(self): pass def next(self, *args): pass def ReleaseManagedResources(self, *args): pass def ReleaseUnmanagedResources(self, *args): pass ...
true
true
08fa37674db5ec8f6ca6a52af78fcf2947663692
15,513
py
Python
j2lsnek.py
stijnstijn/j2lsnek
2a8f9aeb6c48c3a9321fe6d863177ff1c8cbf8b3
[ "MIT" ]
4
2017-03-08T23:01:53.000Z
2022-03-19T17:33:41.000Z
j2lsnek.py
stijnstijn/j2lsnek
2a8f9aeb6c48c3a9321fe6d863177ff1c8cbf8b3
[ "MIT" ]
null
null
null
j2lsnek.py
stijnstijn/j2lsnek
2a8f9aeb6c48c3a9321fe6d863177ff1c8cbf8b3
[ "MIT" ]
1
2021-07-31T00:31:21.000Z
2021-07-31T00:31:21.000Z
""" j2lsnek, a python-based list server for Jazz Jackrabbit 2 By Stijn (https://stijn.chat) Thanks to DJazz for a reference implementation and zepect for some misc tips. """ import urllib.request import urllib.error import subprocess import importlib import logging import sqlite3 import socket import json import time...
39.776923
402
0.584735
import urllib.request import urllib.error import subprocess import importlib import logging import sqlite3 import socket import json import time import sys import os from logging.handlers import RotatingFileHandler import config import helpers.servernet import helpers.functions import helpers.listener import helpers....
true
true
08fa384a4080078af0c52e7feed410e81071c905
7,620
py
Python
kubernetes/client/models/v1_subject_access_review.py
fsduser/python
2b20069ebc05283352fbdc95bbdca2b6133a4175
[ "Apache-2.0" ]
1
2021-10-15T13:05:45.000Z
2021-10-15T13:05:45.000Z
kubernetes/client/models/v1_subject_access_review.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
10
2020-10-01T03:15:01.000Z
2022-03-01T03:06:31.000Z
kubernetes/client/models/v1_subject_access_review.py
belajarqywok/python
b15bea16a87ad03136a4627941ac437582ea4657
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: release-1.19 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
33.130435
312
0.629134
import pprint import re import six from kubernetes.client.configuration import Configuration class V1SubjectAccessReview(object): openapi_types = { 'api_version': 'str', 'kind': 'str', 'metadata': 'V1ObjectMeta', 'spec': 'V1SubjectAccessReviewSpec', 'status': 'V1Subj...
true
true
08fa3a4215f07586a6391a609a99d4b951a88d4c
4,087
py
Python
docusign_esign/models/app_store_receipt.py
cridenour/docusign-python-client
7c0804b4f9fb850c64e05793eb5472c2c6387716
[ "MIT" ]
null
null
null
docusign_esign/models/app_store_receipt.py
cridenour/docusign-python-client
7c0804b4f9fb850c64e05793eb5472c2c6387716
[ "MIT" ]
null
null
null
docusign_esign/models/app_store_receipt.py
cridenour/docusign-python-client
7c0804b4f9fb850c64e05793eb5472c2c6387716
[ "MIT" ]
null
null
null
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501 OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.gi...
27.993151
140
0.577441
import pprint import re import six class AppStoreReceipt(object): swagger_types = { 'product_id': 'str', 'receipt_data': 'str' } attribute_map = { 'product_id': 'productId', 'receipt_data': 'receiptData' } def __init__(self, product_id=None, receipt_data=Non...
true
true
08fa3b36aaba1818f332625069f7590f8c7d1ac9
753
py
Python
var/spack/repos/builtin/packages/snakemake/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/snakemake/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/snakemake/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-11-08T10:26:48.000Z
2020-11-08T10:26:48.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Snakemake(PythonPackage): """Snakemake is an MIT-licensed workflow management system.""" ...
35.857143
96
0.713147
from spack import * class Snakemake(PythonPackage): homepage = "https://snakemake.readthedocs.io/en/stable/" url = "https://pypi.io/packages/source/s/snakemake/snakemake-3.11.2.tar.gz" version('3.11.2', sha256='f7a3b586bc2195f2dce4a4817b7ec828b6d2a0cff74a04e0f7566dcd923f9761') depends_on('pyt...
true
true
08fa3b5d01ad4ac6905a53e5bc53f9900a5040c1
10,128
py
Python
angrmanagement/data/jobs/dependency_analysis.py
novafacing/angr-management
e7c94376736836094e247ca0dec73cede726408b
[ "BSD-2-Clause" ]
2
2022-01-23T21:43:54.000Z
2022-02-02T08:20:20.000Z
angrmanagement/data/jobs/dependency_analysis.py
novafacing/angr-management
e7c94376736836094e247ca0dec73cede726408b
[ "BSD-2-Clause" ]
1
2021-12-04T01:11:46.000Z
2021-12-04T01:11:46.000Z
angrmanagement/data/jobs/dependency_analysis.py
mborgerson/angr-management
d28fdb452fcd8020257379fb4166aea532eaca35
[ "BSD-2-Clause" ]
1
2021-05-17T05:46:19.000Z
2021-05-17T05:46:19.000Z
from functools import partial from typing import TYPE_CHECKING, Optional, Generator, List, Tuple, Set import logging from PySide2.QtWidgets import QMessageBox from angr import KnowledgeBase from angr.analyses.cfg_slice_to_sink import CFGSliceToSink, slice_cfg_graph, slice_function_graph from angr.analyses.reaching_de...
42.915254
124
0.620557
from functools import partial from typing import TYPE_CHECKING, Optional, Generator, List, Tuple, Set import logging from PySide2.QtWidgets import QMessageBox from angr import KnowledgeBase from angr.analyses.cfg_slice_to_sink import CFGSliceToSink, slice_cfg_graph, slice_function_graph from angr.analyses.reaching_de...
true
true