hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
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
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
077cc03c99f16d778bcf96bc07a8e66081bca025
5,210
py
Python
website/raspac.py
tpudlik/RaspAC
e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677
[ "MIT" ]
28
2015-04-03T05:01:14.000Z
2021-12-31T00:29:40.000Z
website/raspac.py
tpudlik/RaspAC
e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677
[ "MIT" ]
3
2017-03-20T15:47:24.000Z
2017-05-21T16:07:22.000Z
website/raspac.py
tpudlik/RaspAC
e0a01a8b9123e74f6e4fb53f084e4ddf3ea24677
[ "MIT" ]
8
2015-08-27T07:33:08.000Z
2018-09-27T21:54:49.000Z
import sqlite3 import subprocess, datetime from flask import Flask, request, session, g, redirect, url_for, \ abort, render_template, flash from contextlib import closing from tquery import get_latest_record from config import * app = Flask(__name__) app.config.from_object(__name__)...
37.482014
87
0.616507
0
0
0
0
2,236
0.429175
0
0
1,619
0.310749
077cca840f68935d92c69072c7307ddde041c399
818
py
Python
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
1
2021-01-05T01:52:31.000Z
2021-01-05T01:52:31.000Z
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
2
2020-07-03T07:54:46.000Z
2020-07-03T07:59:08.000Z
tests/util_test.py
NLESC-JCER/pyspectra
b7ece1fff537039f3306b23e00812aa1c8ffc729
[ "Apache-2.0" ]
null
null
null
"""Helper functions to tests.""" import numpy as np def norm(vs: np.array) -> float: """Compute the norm of a vector.""" return np.sqrt(np.dot(vs, vs)) def create_random_matrix(size: int) -> np.array: """Create a numpy random matrix.""" return np.random.normal(size=size ** 2).reshape(size, size) ...
27.266667
68
0.640587
0
0
0
0
0
0
0
0
187
0.228606
077e6b7b62074f7defc4bfc023b3cef03e6c40c9
1,046
py
Python
solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
12
2020-04-21T01:09:14.000Z
2022-01-13T08:42:03.000Z
solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
null
null
null
solutions/Interview-03-shu-zu-zhong-zhong-fu-de-shu-zi-lcof/03.py
leetcode-notebook/wonz
9ffd2ce9b5f3a544ee958f5a0673215afd176c2b
[ "MIT" ]
4
2020-03-31T03:06:16.000Z
2021-07-06T07:27:44.000Z
from typing import List class Solution: def findRepeatNumber(self, nums: List[int]) -> int: # solution one: 哈希表 n = len(nums) flag = [False for i in range(n)] for i in range(n): if flag[nums[i]] == False: flag[nums[i]] = True else: ...
26.15
63
0.43499
949
0.878704
0
0
0
0
0
0
115
0.106481
07800b91cf15e2b3fdf48ab87571db57cf0566dc
1,702
py
Python
examples/test_network.py
Charles-Peeke/gwu_nn
3f5e9937abf2bfb81a74a2d6f3653a661e705f67
[ "MIT" ]
4
2020-11-17T00:31:40.000Z
2021-11-11T01:56:27.000Z
examples/test_network.py
Charles-Peeke/gwu_nn
3f5e9937abf2bfb81a74a2d6f3653a661e705f67
[ "MIT" ]
1
2020-10-12T17:41:40.000Z
2020-10-12T17:41:40.000Z
examples/test_network.py
jdk514/gwu_nn
3f5e9937abf2bfb81a74a2d6f3653a661e705f67
[ "MIT" ]
5
2020-11-12T21:13:35.000Z
2021-11-30T22:15:28.000Z
import numpy as np import matplotlib.pyplot as plt from sklearn.model_selection import train_test_split from gwu_nn.gwu_network import GWUNetwork from gwu_nn.layers import Dense from gwu_nn.activation_layers import Sigmoid np.random.seed(8) num_obs = 8000 # Create our features to draw from two distinct 2D...
30.392857
91
0.675676
0
0
0
0
0
0
0
0
432
0.253819
07806fd3652fda3f2cbc32b699b1c68679d17f6c
6,227
py
Python
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
scattering/van_hove.py
XiaoboLinlin/scattering
0173b63f3243bdbcccfa562dbf5e3714920cded2
[ "MIT" ]
null
null
null
import itertools as it import numpy as np import mdtraj as md from progressbar import ProgressBar from scattering.utils.utils import get_dt from scattering.utils.constants import get_form_factor def compute_van_hove(trj, chunk_length, water=False, r_range=(0, 1.0), bin_width=0.005, n_bins=None,...
36.629412
117
0.604464
0
0
0
0
0
0
0
0
2,333
0.374659
07807421fe3926d24423bc71ab071f0fe56cfec8
785
py
Python
nn_benchmark/networks/__init__.py
QDucasse/nn_benchmark
0a32db241e75853c7d78dccf6d7b6940e5a0e4d0
[ "MIT" ]
18
2020-06-10T10:30:55.000Z
2022-02-21T08:28:00.000Z
nn_benchmark/networks/__init__.py
QDucasse/nn_benchmark
0a32db241e75853c7d78dccf6d7b6940e5a0e4d0
[ "MIT" ]
29
2020-06-24T09:09:55.000Z
2021-09-09T10:10:21.000Z
nn_benchmark/networks/__init__.py
QDucasse/nn_benchmark
0a32db241e75853c7d78dccf6d7b6940e5a0e4d0
[ "MIT" ]
2
2020-10-30T23:36:42.000Z
2021-09-07T12:58:06.000Z
# -*- coding: utf-8 -*- # nn_benchmark # author - Quentin Ducasse # https://github.com/QDucasse # quentin.ducasse@ensta-bretagne.org from __future__ import absolute_import __all__ = ["lenet","lenet5","quant_lenet5", "quant_cnv", "quant_tfc", "mobilenetv1","quant_mobilenetv1", "vggnet...
28.035714
48
0.614013
0
0
0
0
0
0
0
0
265
0.33758
078077ca30c799c1dd1930850adac76494c46916
820
py
Python
Section1_Basics/contours.py
NeeharikaDva/opencv_course
234515ab59a1228c8dfd3c69f310dbc1d86c6089
[ "MIT" ]
null
null
null
Section1_Basics/contours.py
NeeharikaDva/opencv_course
234515ab59a1228c8dfd3c69f310dbc1d86c6089
[ "MIT" ]
null
null
null
Section1_Basics/contours.py
NeeharikaDva/opencv_course
234515ab59a1228c8dfd3c69f310dbc1d86c6089
[ "MIT" ]
null
null
null
#pylint:disable=no-member import cv2 as cv import numpy as np img = cv.imread('/Users/webileapp/Desktop/niharika_files/projects/opencv_course_master/Resources/Photos/cats.jpg') cv.imshow('Cats', img) # blank = np.zeros(img.shape[:2], dtype='uint8') cv.imshow('Blank', blank) gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)...
27.333333
114
0.729268
0
0
0
0
0
0
0
0
232
0.282927
078092a018208fa66acdafddfde2bd709ed8859d
51
py
Python
mmdet/ops/fcosr_tools/__init__.py
RangeKing/FCOSR
b92f0cee2e89d6a268884bacd02fb28881cd44a4
[ "Apache-2.0" ]
38
2021-11-23T02:58:47.000Z
2022-03-21T08:16:59.000Z
mmdet/ops/fcosr_tools/__init__.py
RangeKing/FCOSR
b92f0cee2e89d6a268884bacd02fb28881cd44a4
[ "Apache-2.0" ]
15
2021-12-06T07:51:04.000Z
2022-03-29T11:35:29.000Z
mmdet/ops/fcosr_tools/__init__.py
RangeKing/FCOSR
b92f0cee2e89d6a268884bacd02fb28881cd44a4
[ "Apache-2.0" ]
12
2021-11-23T02:58:50.000Z
2022-03-24T01:18:23.000Z
from . import fcosr_tools __all__ = ['fcosr_tools']
25.5
25
0.764706
0
0
0
0
0
0
0
0
13
0.254902
0780e5ec41de515a271f19ff0412527f1e12bd8f
287
py
Python
health_care/health_care/doctype/practitioner/practitioner.py
Jnalis/frappe-health-care
ed347c216f568cc044c1365965d35945697cf7dc
[ "MIT" ]
null
null
null
health_care/health_care/doctype/practitioner/practitioner.py
Jnalis/frappe-health-care
ed347c216f568cc044c1365965d35945697cf7dc
[ "MIT" ]
null
null
null
health_care/health_care/doctype/practitioner/practitioner.py
Jnalis/frappe-health-care
ed347c216f568cc044c1365965d35945697cf7dc
[ "MIT" ]
null
null
null
# Copyright (c) 2022, Juve and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class Practitioner(Document): def before_save(self): self.practitioner_full_name = f'{self.first_name} {self.second_name or ""}'
28.7
77
0.777003
131
0.456446
0
0
0
0
0
0
152
0.529617
07827562174365b2eae2774f05f5a4b7e0a35d24
1,617
py
Python
install-hooks.py
JustasGau/DonjinKrawler
faff50dcfcebf82028c9af10434359f975247d33
[ "MIT" ]
null
null
null
install-hooks.py
JustasGau/DonjinKrawler
faff50dcfcebf82028c9af10434359f975247d33
[ "MIT" ]
9
2020-10-11T13:55:12.000Z
2020-12-09T16:28:06.000Z
install-hooks.py
JustasGau/DonjinKrawler
faff50dcfcebf82028c9af10434359f975247d33
[ "MIT" ]
null
null
null
import sys from os import path import urllib; from urllib.request import urlretrieve from subprocess import call def install_hooks(directory): checkstyleUrl = 'https://github.com/checkstyle/checkstyle/releases/download/checkstyle-8.36.1/checkstyle-8.36.1-all.jar' preCommitUrl = 'https://gist.githubusercontent....
52.16129
150
0.678417
0
0
0
0
0
0
0
0
709
0.438466
078375b28d8a3c360255f33574ef015988b175c4
3,962
py
Python
09_MicroServer_Cookies/micro_server.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
09_MicroServer_Cookies/micro_server.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
09_MicroServer_Cookies/micro_server.py
Rockfish/PythonCourse
1d650e49950d1987d052028139fcdfcb0bbfcc70
[ "MIT" ]
null
null
null
""" Micro webapp based on WebOb, Jinja2, WSGI with a simple router """ import os import hmac import hashlib import mimetypes from wsgiref.simple_server import WSGIServer, WSGIRequestHandler from webob import Request from webob import Response from jinja2 import Environment, FileSystemLoader class MicroServer(obje...
33.576271
100
0.649419
3,661
0.924028
0
0
0
0
0
0
1,483
0.374306
0784261b13ef0cb016c21f71e6bc994a164d136e
2,234
py
Python
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
1
2017-07-14T19:22:39.000Z
2017-07-14T19:22:39.000Z
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
6
2021-02-02T23:08:48.000Z
2021-09-08T02:47:17.000Z
apps/addons/management/commands/jetpackers.py
clouserw/olympia
1d5755b08a526372ec66e6bc64ab636018181969
[ "BSD-3-Clause" ]
1
2021-03-13T00:33:12.000Z
2021-03-13T00:33:12.000Z
import logging from django.core import mail from django.conf import settings from django.core.management.base import BaseCommand import amo.utils from users.models import UserProfile log = logging.getLogger('z.mailer') FROM = settings.DEFAULT_FROM_EMAIL class Command(BaseCommand): help = "Send the email for bu...
34.369231
80
0.717995
130
0.058192
0
0
0
0
0
0
1,426
0.638317
07851008cd92498c823e9a48b615278bda99bf7d
49,605
py
Python
astroplan/constraints.py
edose/astroplan
b3cf55340c50ccf69ec363889c1fe8ff2f93cada
[ "BSD-3-Clause" ]
160
2015-09-09T00:07:34.000Z
2022-03-15T22:22:49.000Z
astroplan/constraints.py
edose/astroplan
b3cf55340c50ccf69ec363889c1fe8ff2f93cada
[ "BSD-3-Clause" ]
414
2015-08-25T20:22:09.000Z
2022-03-31T13:01:10.000Z
astroplan/constraints.py
edose/astroplan
b3cf55340c50ccf69ec363889c1fe8ff2f93cada
[ "BSD-3-Clause" ]
90
2015-08-27T20:53:48.000Z
2022-01-25T06:11:16.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Specify and constraints to determine which targets are observable for an observer. """ from __future__ import (absolute_import, division, print_function, unicode_literals) # Standard library from abc import ABCMeta, abstractme...
37.353163
100
0.617579
26,938
0.54305
0
0
7,184
0.144824
0
0
27,933
0.563109
078516b1582562801fbf63851c5ac10efbd5d833
6,191
py
Python
backend/views.py
Raulios/django-blog
ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2
[ "MIT" ]
null
null
null
backend/views.py
Raulios/django-blog
ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2
[ "MIT" ]
null
null
null
backend/views.py
Raulios/django-blog
ff25c8f21a3f6644e77a2ef5bb7bf7026770e0c2
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from django.core.urlresolvers import reverse from django.shortcuts import render from django.http import HttpResponseRedirect from core.models import Po...
25.166667
75
0.663059
0
0
0
0
5,744
0.927798
0
0
976
0.157648
0785423db820435be27b39e1842db52b66a25a8e
2,953
py
Python
tiktorch/server/session/process.py
FynnBe/tiktorch
60c6fa9700e7ff73e44338e8755c56c6e8846f2f
[ "MIT" ]
null
null
null
tiktorch/server/session/process.py
FynnBe/tiktorch
60c6fa9700e7ff73e44338e8755c56c6e8846f2f
[ "MIT" ]
null
null
null
tiktorch/server/session/process.py
FynnBe/tiktorch
60c6fa9700e7ff73e44338e8755c56c6e8846f2f
[ "MIT" ]
null
null
null
import dataclasses import io import multiprocessing as _mp import uuid import zipfile from concurrent.futures import Future from multiprocessing.connection import Connection from typing import List, Optional, Tuple import numpy from tiktorch import log from tiktorch.rpc import Shutdown from tiktorch.rpc import mp as ...
30.132653
105
0.691162
1,308
0.442939
0
0
273
0.092448
0
0
204
0.069082
078596cc2ee665e19eee2250f95d62feca0bd3b2
1,816
py
Python
openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
openpype/modules/ftrack/event_handlers_server/event_del_avalon_id_from_new.py
dangerstudios/OpenPype
10ddcc4699137888616eec57cd7fac9648189714
[ "MIT" ]
null
null
null
from openpype.modules.ftrack.lib import BaseEvent from openpype.modules.ftrack.lib.avalon_sync import CUST_ATTR_ID_KEY from openpype.modules.ftrack.event_handlers_server.event_sync_to_avalon import ( SyncToAvalonEvent ) class DelAvalonIdFromNew(BaseEvent): ''' This event removes AvalonId from custom attri...
33.018182
80
0.562225
1,463
0.805617
0
0
0
0
0
0
394
0.21696
0785a9ecd33b25242a059e89ddfae1ca8b3c0298
518
py
Python
tests/workflow/test_workflow_ingest_accepted_submission.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
tests/workflow/test_workflow_ingest_accepted_submission.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
tests/workflow/test_workflow_ingest_accepted_submission.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
import unittest import tests.settings_mock as settings_mock from tests.activity.classes_mock import FakeLogger from workflow.workflow_IngestAcceptedSubmission import workflow_IngestAcceptedSubmission class TestWorkflowIngestAcceptedSubmission(unittest.TestCase): def setUp(self): self.workflow = workflow_I...
34.533333
88
0.783784
315
0.608108
0
0
0
0
0
0
26
0.050193
078638d293ec315b963165f9210a9060b0e09180
2,436
py
Python
go/token/views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/token/views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/token/views.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from urllib import urlencode import urlparse from django.shortcuts import Http404, redirect from django.contrib.auth.views import logout from django.contrib import messages from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from vumi.utils import load_class_by_strin...
35.304348
79
0.70197
0
0
0
0
685
0.281199
0
0
748
0.307061
078810f30530e12e24a60251c7822cc072db8c3d
1,142
py
Python
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
typogrify/templatetags/typogrify_tags.py
tylerbutler/typogrify
7b7a67348a2d51400fd38c0b61e30e34ca98994e
[ "BSD-3-Clause" ]
null
null
null
from typogrify.filters import amp, caps, initial_quotes, smartypants, titlecase, typogrify, widont, TypogrifyError from functools import wraps from django.conf import settings from django import template from django.utils.safestring import mark_safe from django.utils.encoding import force_unicode register = template....
27.853659
114
0.69965
0
0
0
0
293
0.256567
0
0
168
0.14711
0789092717eaaad8fa74b92820df7d2a61d9ba9b
18,065
py
Python
bvbabel/vmr.py
carbrock/bvbabel
baac12d106455e34d9924309eadb4df991d3d8c9
[ "MIT" ]
7
2021-08-02T09:58:08.000Z
2022-03-17T21:13:34.000Z
bvbabel/vmr.py
carbrock/bvbabel
baac12d106455e34d9924309eadb4df991d3d8c9
[ "MIT" ]
2
2021-08-09T14:57:38.000Z
2022-03-28T13:25:19.000Z
bvbabel/vmr.py
carbrock/bvbabel
baac12d106455e34d9924309eadb4df991d3d8c9
[ "MIT" ]
4
2021-08-09T07:45:59.000Z
2022-03-22T23:02:15.000Z
"""Read, write, create Brainvoyager VMR file format.""" import struct import numpy as np from bvbabel.utils import (read_variable_length_string, write_variable_length_string) # ============================================================================= def read_vmr(filename): """Read...
45.049875
79
0.546305
0
0
0
0
0
0
0
0
9,454
0.523332
0789c9270fff78d0b163f2215a2a6a958e9cdb11
2,279
py
Python
example/image-classification/test_score.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
399
2017-05-30T05:12:48.000Z
2022-01-29T05:53:08.000Z
example/image-classification/test_score.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
187
2018-03-16T23:44:43.000Z
2021-12-14T21:19:54.000Z
example/image-classification/test_score.py
Vikas-kum/incubator-mxnet
ba02bf2fe2da423caa59ddb3fd5e433b90b730bf
[ "Apache-2.0" ]
107
2017-05-30T05:53:22.000Z
2021-06-24T02:43:31.000Z
# 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 # "License"); you may not u...
36.174603
78
0.662571
0
0
0
0
0
0
0
0
1,103
0.483984
078a7ff149f5f6902b3df48444c9f900c3b57349
139,271
py
Python
verticapy/vcolumn.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
7
2018-05-10T08:16:31.000Z
2018-05-15T00:59:26.000Z
verticapy/vcolumn.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
1
2018-05-15T00:15:35.000Z
2018-05-15T13:40:19.000Z
verticapy/vcolumn.py
vertica/vertica_ml_python
9e82dba94afe8447bfa2492f343af6669128e2fb
[ "Apache-2.0" ]
null
null
null
# (c) Copyright [2018-2022] Micro Focus or one of its affiliates. # 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 applicabl...
34.261009
378
0.486139
136,646
0.98111
0
0
0
0
0
0
68,294
0.490347
078a84b6d5f9b27e924368e0c1490273227caf78
6,918
py
Python
booktags/flaskapp/book/views.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
booktags/flaskapp/book/views.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
9
2019-12-20T15:24:38.000Z
2021-12-13T20:28:48.000Z
booktags/flaskapp/book/views.py
MagicSword/BookTags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ example.py ~~~~~~~~~ A simple command line application to run flask apps. :copyright: 2019 Miller :license: BSD-3-Clause """ # Known bugs that can't be fixed here: # - synopsis() cannot be prevented from clobbering existing # loaded modules. ...
30.746667
88
0.645273
0
0
0
0
5,510
0.796473
0
0
2,362
0.341428
078ba56d9b68af88a26ed1e2d4bb4466a1a8bcb9
429
py
Python
narwhallet/core/kws/http/enumerations/mediatypes.py
Snider/narwhallet
0d528763c735f1e68b8264e302854d41e7cf1956
[ "MIT" ]
3
2021-12-29T11:25:13.000Z
2022-01-16T13:57:17.000Z
narwhallet/core/kws/http/enumerations/mediatypes.py
Snider/narwhallet
0d528763c735f1e68b8264e302854d41e7cf1956
[ "MIT" ]
null
null
null
narwhallet/core/kws/http/enumerations/mediatypes.py
Snider/narwhallet
0d528763c735f1e68b8264e302854d41e7cf1956
[ "MIT" ]
1
2022-01-16T13:57:20.000Z
2022-01-16T13:57:20.000Z
from enum import Enum class content_type(Enum): # https://www.iana.org/assignments/media-types/media-types.xhtml css = 'text/css' gif = 'image/gif' htm = 'text/html' html = 'text/html' ico = 'image/bmp' jpg = 'image/jpeg' jpeg = 'image/jpeg' js = 'application/javascript' png = ...
23.833333
68
0.613054
404
0.941725
0
0
0
0
0
0
240
0.559441
078c924330df0f8ffe4dba08335fcd4ca824b7c3
125
py
Python
electrondiffraction/__init__.py
drix00/ElectronDiffraction
9dc258d90d0b73745b904b1bb6e1e3e794403a27
[ "Apache-2.0" ]
1
2020-07-23T12:24:09.000Z
2020-07-23T12:24:09.000Z
python/xraynomenclature/xraynomenclature/__init__.py
drix00/xray-nomenclature
92d3e15b9ebb505482a084522c6639ba09bbdd02
[ "Apache-2.0" ]
null
null
null
python/xraynomenclature/xraynomenclature/__init__.py
drix00/xray-nomenclature
92d3e15b9ebb505482a084522c6639ba09bbdd02
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = """Hendrix Demers""" __email__ = 'hendrix.demers@mail.mcgill.ca' __version__ = '0.1.0'
20.833333
43
0.648
0
0
0
0
0
0
0
0
81
0.648
078df566472a507b372dad23be527536aa2fa29f
4,082
py
Python
storelet.py
markembling/storelet
9951368e2f143855d2c14509bdb8cf796d6e54b8
[ "BSD-3-Clause" ]
1
2015-09-07T17:19:40.000Z
2015-09-07T17:19:40.000Z
storelet.py
markembling/storelet
9951368e2f143855d2c14509bdb8cf796d6e54b8
[ "BSD-3-Clause" ]
1
2016-01-05T13:18:16.000Z
2016-01-05T14:16:57.000Z
storelet.py
markembling/storelet
9951368e2f143855d2c14509bdb8cf796d6e54b8
[ "BSD-3-Clause" ]
1
2019-02-21T09:20:48.000Z
2019-02-21T09:20:48.000Z
import os import logging from tempfile import mkstemp, mkdtemp from shutil import rmtree from zipfile import ZipFile, ZIP_DEFLATED from datetime import datetime from boto.s3.connection import S3Connection from boto.s3.key import Key __version__ = "0.1.8" __author__ = "Mark Embling" __email__ = "mark@markembling.info" ...
36.123894
82
0.607055
3,359
0.822881
0
0
0
0
0
0
995
0.243753
078eac42052a5c2213460643ce82f3d54d3402ee
963
py
Python
apps/delivery/migrations/0001_initial.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
2
2019-03-11T03:58:19.000Z
2020-03-06T06:45:28.000Z
apps/delivery/migrations/0001_initial.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
5
2020-06-05T20:04:20.000Z
2021-09-08T00:53:52.000Z
apps/delivery/migrations/0001_initial.py
jimforit/lagou
165593a15597012092b5e0ba34158fbc1d1c213d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.2 on 2019-03-08 13:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Delivery', fields=[ ('create_time', models....
33.206897
157
0.559709
930
0.909091
0
0
0
0
0
0
278
0.27175
078f93641653dd1d0323ab98d96a9fc89761a30c
721
py
Python
elementary/date-and-time-convertor.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
1
2018-02-24T10:51:07.000Z
2018-02-24T10:51:07.000Z
elementary/date-and-time-convertor.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
null
null
null
elementary/date-and-time-convertor.py
vargad/exercises
1a2fc2557672749d590ebdf596f99f53405320a1
[ "MIT" ]
1
2019-02-13T21:41:07.000Z
2019-02-13T21:41:07.000Z
#!/usr/bin/env python3 def date_time(time): months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] hour, minute = int(time[11:13]), int(time[14:16]) return f"{int(time[0:2])} {months[int(time[3:5])-1]} {time[6:10]} year {h...
51.5
153
0.62552
0
0
0
0
0
0
0
0
464
0.643551
078fda9e491f07fc6685fbdf4be7377dd5f3e4a3
10,361
py
Python
lbry/wallet/server/peer.py
snapperVibes/lbry-sdk
77a51d1ad43404e5dc52af715a7bebfaeb3fee16
[ "MIT" ]
2
2021-04-14T07:37:37.000Z
2021-05-18T13:20:11.000Z
lbry/wallet/server/peer.py
lucianolb76/lbry-sdk
0c09f24cbf5bd0959dedca63363ff7ffadd45d66
[ "MIT" ]
null
null
null
lbry/wallet/server/peer.py
lucianolb76/lbry-sdk
0c09f24cbf5bd0959dedca63363ff7ffadd45d66
[ "MIT" ]
null
null
null
# Copyright (c) 2017, Neil Booth # # All rights reserved. # # The MIT 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 without restriction, including # without limitation the r...
34.194719
78
0.599266
9,028
0.871344
0
0
3,511
0.338867
0
0
3,455
0.333462
078fed475eb9a6e7954859be5858da011d4c522e
1,787
py
Python
tests/components/deconz/test_diagnostics.py
aomann/core
5e71e7b775461cd4849c36075c6a1459a7d0ad22
[ "Apache-2.0" ]
null
null
null
tests/components/deconz/test_diagnostics.py
aomann/core
5e71e7b775461cd4849c36075c6a1459a7d0ad22
[ "Apache-2.0" ]
24
2021-11-03T06:20:16.000Z
2022-03-31T06:23:17.000Z
tests/components/deconz/test_diagnostics.py
aomann/core
5e71e7b775461cd4849c36075c6a1459a7d0ad22
[ "Apache-2.0" ]
null
null
null
"""Test deCONZ diagnostics.""" from unittest.mock import patch from pydeconz.websocket import STATE_RUNNING from homeassistant.const import Platform from .test_gateway import DECONZ_CONFIG, setup_deconz_integration from tests.components.diagnostics import get_diagnostics_for_config_entry async def test_entry_dia...
32.490909
73
0.582541
0
0
0
0
0
0
1,490
0.8338
319
0.178511
079020088d5707b9fc6c67fde0c7358e446490f2
32,821
py
Python
jax_md/partition.py
l1zp/jax-md
2440794aebb1c77116459e2ec2051d537a94ecf4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/partition.py
l1zp/jax-md
2440794aebb1c77116459e2ec2051d537a94ecf4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
jax_md/partition.py
l1zp/jax-md
2440794aebb1c77116459e2ec2051d537a94ecf4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
38.34229
85
0.681728
4,868
0.14832
175
0.005332
7,320
0.223028
0
0
13,517
0.41184
0790c876aeebfd734072b2709676f53a6053af06
964
py
Python
rhucrl_experiments/evaluate/launch_evaluate_mass.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-19T11:46:48.000Z
2021-11-19T11:46:48.000Z
rhucrl_experiments/evaluate/launch_evaluate_mass.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2021-11-22T07:48:03.000Z
2021-11-22T07:48:03.000Z
rhucrl_experiments/evaluate/launch_evaluate_mass.py
sebascuri/rhucrl
27663e1302f3bbc636dff28495c6f2667bb7c1da
[ "MIT" ]
1
2022-03-26T10:18:01.000Z
2022-03-26T10:18:01.000Z
"""Run from rhucrl_experiments.evaluate folder.""" import socket from lsf_runner import init_runner, make_commands from rhucrl_experiments.evaluate.utilities import ENVIRONMENTS RARL_DIR = "../../runs/RARLAgent" ZERO_SUM_DIR = "../../runs/ZeroSumAgent" SCRIPT = "evaluate_mass_change.py" EXPERIMENTS = { "supermod...
37.076923
84
0.693983
0
0
0
0
0
0
0
0
355
0.368257
07915aac7804509d8daa27f0a06836f1ec42314d
739
py
Python
src/sentry/api/endpoints/project_tags.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
1
2021-08-10T06:07:13.000Z
2021-08-10T06:07:13.000Z
src/sentry/api/endpoints/project_tags.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/api/endpoints/project_tags.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
1
2017-04-08T04:09:18.000Z
2017-04-08T04:09:18.000Z
from __future__ import absolute_import import six from rest_framework.response import Response from sentry.api.bases.project import ProjectEndpoint from sentry.models import TagKey, TagKeyStatus class ProjectTagsEndpoint(ProjectEndpoint): def get(self, request, project): tag_keys = TagKey.objects.filte...
26.392857
64
0.626522
538
0.728011
0
0
0
0
0
0
29
0.039242
07919b5c6e89a71c84a3a15315c4e1b2767495ce
871
py
Python
examples/02 - callbacks/callbacks.py
TensorTom/async-Eel
d6484b6c5c9f89b64f5119d908fcdf29b173bd57
[ "MIT" ]
9
2019-06-17T22:11:01.000Z
2021-08-30T17:36:13.000Z
examples/02 - callbacks/callbacks.py
TensorTom/async-Eel
d6484b6c5c9f89b64f5119d908fcdf29b173bd57
[ "MIT" ]
4
2020-08-17T18:39:21.000Z
2021-08-29T02:54:23.000Z
examples/02 - callbacks/callbacks.py
TensorTom/async-Eel
d6484b6c5c9f89b64f5119d908fcdf29b173bd57
[ "MIT" ]
3
2020-02-27T03:40:05.000Z
2021-03-09T11:52:32.000Z
from __future__ import print_function # For Py2/3 compatibility import async_eel import random import asyncio loop = asyncio.get_event_loop() @async_eel.expose async def py_random(): return random.random() async def print_num(n): """callback of js_random""" print('Got this from Javascript:', n) asyn...
22.921053
85
0.686567
0
0
0
0
67
0.076923
597
0.685419
238
0.273249
079304ab36eaaab974694a2714de62dfde9010a0
1,578
py
Python
datacube/index/_api.py
AMA-AC/datacube-core
0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d
[ "Apache-2.0" ]
2
2019-10-24T15:29:54.000Z
2019-10-24T15:29:58.000Z
datacube/index/_api.py
AMA-AC/datacube-core
0d2fe0792cb9298cc93d1a97bbb921cfa59d6f2d
[ "Apache-2.0" ]
2
2021-03-26T00:37:36.000Z
2021-03-31T20:05:01.000Z
datacube/index/_api.py
PhilipeRLeal/datacube-core
81bed714f2e5cb30a2492f1b0cf3397b79141c3a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Access methods for indexing datasets & products. """ import logging from datacube.config import LocalConfig from datacube.drivers import index_driver_by_name, index_drivers from .index import Index _LOG = logging.getLogger(__name__) def index_connect(local_config=None, application_name=None, val...
35.863636
86
0.697085
0
0
0
0
0
0
0
0
748
0.474018
079480b6c82dd74c78bc4155e46e5d2906c6b673
6,560
py
Python
pgarchives/loader/load_message.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgarchives/loader/load_message.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
pgarchives/loader/load_message.py
WeilerWebServices/PostgreSQL
ae594ed077bebbad1be3c1d95c38b7c2c2683e8c
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python3 # # load_message.py - takes a single email or mbox formatted # file on stdin or in a file and reads it into the database. # import os import sys from optparse import OptionParser from configparser import ConfigParser import psycopg2 from lib.storage import ArchivesParserStorage from lib.mbox ...
35.846995
150
0.594817
0
0
0
0
0
0
0
0
1,968
0.3
079486c9e4c55ef02a54afabc6964be8635f9540
860
py
Python
shop/migrations/0009_auto_20200310_1430.py
manson800819/test
6df7d92eababe76a54585cb8102a00a6d79ca467
[ "MIT" ]
null
null
null
shop/migrations/0009_auto_20200310_1430.py
manson800819/test
6df7d92eababe76a54585cb8102a00a6d79ca467
[ "MIT" ]
null
null
null
shop/migrations/0009_auto_20200310_1430.py
manson800819/test
6df7d92eababe76a54585cb8102a00a6d79ca467
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-03-10 14:30 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('shop', '0008_auto_20200310_1134'), ] operations =...
27.741935
123
0.612791
668
0.776744
0
0
0
0
0
0
171
0.198837
079607c3763787747e103898caecb5035367fd71
1,351
py
Python
lib/dataset/iNaturalist.py
jrcai/ACE
1e2b04d1cf4bb517f107664ac489a1a96e95a4c1
[ "MIT" ]
18
2021-08-06T01:15:32.000Z
2022-03-14T07:09:39.000Z
lib/dataset/iNaturalist.py
jrcai/BagofTricks-LT
d75b195367e3d535d316d134ec4bbef4bb7fcbdd
[ "MIT" ]
2
2021-09-24T03:29:17.000Z
2021-11-22T19:18:58.000Z
lib/dataset/iNaturalist.py
jrcai/BagofTricks-LT
d75b195367e3d535d316d134ec4bbef4bb7fcbdd
[ "MIT" ]
2
2021-10-17T18:09:20.000Z
2021-11-08T04:19:19.000Z
from dataset.baseset import BaseSet import random, cv2 import numpy as np class iNaturalist(BaseSet): def __init__(self, mode='train', cfg=None, transform=None): super(iNaturalist, self).__init__(mode, cfg, transform) random.seed(0) self.class_dict = self._get_class_dict() ...
32.95122
104
0.623982
1,244
0.920799
0
0
0
0
0
0
102
0.0755
079659eddea08dcb5566544e99167b54c9eb8c33
27,964
py
Python
tests/test_conferences.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
null
null
null
tests/test_conferences.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
80
2015-02-25T15:12:15.000Z
2015-06-11T18:44:55.000Z
tests/test_conferences.py
mattclark/osf.io
7a362ceb6af3393d3d0423aafef336ee13277303
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import mock from nose.tools import * # noqa (PEP8 asserts) import hmac import hashlib from StringIO import StringIO from django.core.exceptions import ValidationError from django.db import IntegrityError import furl from framework.auth import get_or_create_user from framework.auth.core impo...
36.506527
114
0.611357
26,149
0.934828
0
0
9,709
0.347097
0
0
4,493
0.160625
079711a016ea4fa9510f792cc6a93c56f3a684e5
4,060
py
Python
socket_tentacles/__init__.py
innovationgarage/socket-tentacles
1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6
[ "MIT" ]
null
null
null
socket_tentacles/__init__.py
innovationgarage/socket-tentacles
1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6
[ "MIT" ]
null
null
null
socket_tentacles/__init__.py
innovationgarage/socket-tentacles
1cfbf7649017493fafacfcbc96cd05f3c4c5d6b6
[ "MIT" ]
1
2019-11-01T12:38:20.000Z
2019-11-01T12:38:20.000Z
import socketserver import socket import sys import threading import json import queue import time import datetime import traceback class TCPServer(socketserver.ThreadingMixIn, socketserver.TCPServer): def server_bind(self): self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self.soc...
31.472868
107
0.580049
3,772
0.929064
0
0
0
0
0
0
401
0.098768
0797199eb44c9067c6481782c2b094efbd8e10a6
3,917
py
Python
G5/DerivedData/ParameterProbing/checkme.py
shooking/ZoomPedalFun
7b9f5f4441cfe42e988e06cf6b98603c21ac2466
[ "CC0-1.0" ]
9
2021-02-15T00:05:32.000Z
2022-01-24T14:01:46.000Z
G5/DerivedData/ParameterProbing/checkme.py
shooking/ZoomPedalFun
7b9f5f4441cfe42e988e06cf6b98603c21ac2466
[ "CC0-1.0" ]
13
2021-08-23T02:07:26.000Z
2022-02-16T16:55:00.000Z
G5/DerivedData/ParameterProbing/checkme.py
shooking/ZoomPedalFun
7b9f5f4441cfe42e988e06cf6b98603c21ac2466
[ "CC0-1.0" ]
null
null
null
# -*- coding: ascii -*- import sys import json def check(data): OnOffstart = data.find(b"OnOff") if OnOffstart != -1: fxName="" OnOffblockSize = 0x30 for j in range(12): if data[OnOffstart + j + OnOffblockSize] == 0x00: break fxName ...
40.381443
129
0.451876
0
0
0
0
0
0
0
0
1,710
0.436559
0797927e3d7bde5eb907276662251361ce156da5
475
py
Python
leehao/learn63.py
pilihaotian/pythonlearning
e84b7766cc9ea8131e9720fb1f06761c9581d0da
[ "Apache-2.0" ]
1
2020-02-26T14:52:17.000Z
2020-02-26T14:52:17.000Z
leehao/learn63.py
pilihaotian/pythonlearning
e84b7766cc9ea8131e9720fb1f06761c9581d0da
[ "Apache-2.0" ]
null
null
null
leehao/learn63.py
pilihaotian/pythonlearning
e84b7766cc9ea8131e9720fb1f06761c9581d0da
[ "Apache-2.0" ]
null
null
null
# 随机6位密码 a-zA-Z0-9下划线 import random source = '' lower_char = [chr(x) for x in range(ord('a'), ord('z') + 1)] upper_char = [chr(x) for x in range(ord('A'), ord('Z') + 1)] number_char = [chr(x) for x in range(ord('0'), ord('9') + 1)] source += "".join(lower_char) source += "".join(upper_char) source += "".join(number_ch...
23.75
61
0.591579
0
0
0
0
0
0
0
0
117
0.225434
0799d6264b46d419f66659960f9e80e3239bdd1c
1,237
py
Python
gbic/tests.py
fga-eps-mds/2017.2-SiGI-Op_API
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
6
2017-08-24T13:18:21.000Z
2017-10-03T18:06:13.000Z
gbic/tests.py
fga-gpp-mds/2017.2-Grupo9
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
173
2017-08-31T15:29:01.000Z
2017-12-14T13:40:13.000Z
gbic/tests.py
fga-gpp-mds/2017.2-SiGI-Op_API
4532019c15414fd17e06bb3aa78501886e00da1d
[ "BSD-3-Clause" ]
2
2018-11-19T10:33:00.000Z
2019-06-19T22:35:43.000Z
from django.test import TestCase from rest_framework.test import APIRequestFactory from .models import GBIC, GBICType from .views import GBICListViewSet # Create your tests here. class GBICTest(TestCase): def test_gbic_view_set(self): request = APIRequestFactory().get("") gbic_detail = GBICListVi...
35.342857
74
0.672595
1,055
0.85287
0
0
0
0
0
0
117
0.094584
079a7acf6ad24d3b711dca5d0ee7ae05fdfe00c0
23,239
py
Python
fruits/core/fruit.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
4
2021-10-08T11:14:54.000Z
2021-12-30T13:56:32.000Z
fruits/core/fruit.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
null
null
null
fruits/core/fruit.py
alienkrieg/fruits
b3b4b6afd7f97d2d4060909689f9811dc97981ed
[ "MIT" ]
null
null
null
import inspect from typing import List, Union, Set, Any import numpy as np from fruits.cache import Cache, CoquantileCache from fruits.scope import force_input_shape, FitTransform from fruits.core.callback import AbstractCallback from fruits.signature.iss import SignatureCalculator, CachePlan from fruits.words.word i...
35.752308
77
0.588235
22,797
0.98098
0
0
185
0.007961
0
0
10,999
0.473299
079c6865019ab91124c781c2644155172081ba8b
9,863
py
Python
workoutizer/__main__.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
workoutizer/__main__.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
workoutizer/__main__.py
pa3kDaWae/workoutizer
15501d0060711bbd8308642bc89b45c1442d4d0f
[ "MIT" ]
null
null
null
import os import argparse import subprocess import socket import sys import click from django.core.management import execute_from_command_line from workoutizer.settings import WORKOUTIZER_DIR, WORKOUTIZER_DB_PATH, TRACKS_DIR from workoutizer import __version__ BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SE...
38.678431
120
0.667343
423
0.042888
0
0
3,314
0.336003
0
0
3,488
0.353645
079ca32a831e991e4272d56b55460b5a2a9b338e
8,807
py
Python
bcbio/bam/trim.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
1
2015-04-08T17:43:39.000Z
2015-04-08T17:43:39.000Z
bcbio/bam/trim.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
bcbio/bam/trim.py
matanhofree/bcbio-nextgen
e6938cedb20ff3b7632165105941d71189e46aac
[ "MIT" ]
null
null
null
"""Provide trimming of input reads from Fastq or BAM files. """ import os import sys import tempfile from bcbio.utils import (file_exists, safe_makedir, replace_suffix, append_stem, is_pair, replace_directory, map_wrap) from bcbio.log import logger from bcbio.bam impor...
40.962791
92
0.65641
0
0
0
0
335
0.038038
0
0
2,370
0.269104
079cc8e3750a72f04c77d4be145f9892cc269784
13,419
py
Python
FEniCSUI/AnalysesHub/views.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
FEniCSUI/AnalysesHub/views.py
nasserarbabi/FEniCSUI-dev
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
8
2021-03-10T21:59:52.000Z
2021-09-22T19:12:57.000Z
FEniCSUI/AnalysesHub/views.py
nasserarbabi/FEniCSUI
f8f161e1b49932843e01301212e7d031fff4f6c8
[ "MIT" ]
null
null
null
from rest_framework.response import Response from rest_framework.views import APIView from django.shortcuts import get_object_or_404 from dashboard.models import projects from .models import AnalysisConfig, SolverResults, SolverProgress, DockerLogs from rest_framework.parsers import FormParser, JSONParser, MultiPartPar...
42.735669
158
0.634474
12,511
0.932335
0
0
0
0
0
0
2,986
0.22252
079d837b78456fbc7dc57dde76430c107de0f8b2
1,627
py
Python
fs/opener/appfs.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
fs/opener/appfs.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
fs/opener/appfs.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
# coding: utf-8 """``AppFS`` opener definition. """ from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from .base import Opener from .errors import OpenerError from ..subfs import ClosingSubFS from .. import appfs class AppFSOpener(Opener): """``...
24.283582
68
0.566687
1,342
0.824831
0
0
0
0
0
0
277
0.170252
079e4e7b1369d32d29e2b328e164f3c7bb362e85
23,180
py
Python
scripts/modeling_toolbox/evaluation.py
cyberj0g/verification-classifier
efb19a3864e27a7f149a1c27ee8e13eaa19f96eb
[ "MIT" ]
8
2019-06-06T08:16:45.000Z
2021-06-26T11:53:48.000Z
scripts/modeling_toolbox/evaluation.py
cyberj0g/verification-classifier
efb19a3864e27a7f149a1c27ee8e13eaa19f96eb
[ "MIT" ]
95
2019-03-27T08:36:01.000Z
2022-02-10T00:15:20.000Z
scripts/modeling_toolbox/evaluation.py
cyberj0g/verification-classifier
efb19a3864e27a7f149a1c27ee8e13eaa19f96eb
[ "MIT" ]
8
2019-02-28T11:21:46.000Z
2022-03-21T07:34:20.000Z
import numpy as np from sklearn.metrics import fbeta_score, roc_curve, auc, confusion_matrix from sklearn.decomposition import PCA from sklearn import random_projection from sklearn import svm from sklearn.ensemble import IsolationForest import matplotlib.pyplot as plt from keras.layers import Dense, Input, Dropout fro...
44.83559
122
0.519586
0
0
0
0
0
0
0
0
2,438
0.105177
07a0528abcb6666cfcae1ee1c6cb300b86de98df
1,896
py
Python
tests/test_notifo_message.py
mrtazz/notifo.py
26079db3b40c26661155af20a9f16a0eca06dbde
[ "MIT" ]
3
2015-11-05T11:49:34.000Z
2016-07-17T18:06:15.000Z
tests/test_notifo_message.py
mrtazz/notifo.py
26079db3b40c26661155af20a9f16a0eca06dbde
[ "MIT" ]
null
null
null
tests/test_notifo_message.py
mrtazz/notifo.py
26079db3b40c26661155af20a9f16a0eca06dbde
[ "MIT" ]
null
null
null
# encoding: utf-8 import unittest import os import sys sys.path.append(os.getcwd()) from notifo import Notifo, send_message class TestNotifyUser(unittest.TestCase): def setUp(self): self.provider = "test_provider" self.provider_banned = "test_provider_msg_banned" self.user = "test_user" ...
38.693878
79
0.655591
1,722
0.908228
0
0
0
0
0
0
447
0.235759
07a0beb6aad78f79be93a859fb255e52020dee2b
1,931
py
Python
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
1
2020-06-04T01:09:24.000Z
2020-06-04T01:09:24.000Z
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
null
null
null
geoist/cattools/Smoothing.py
wqqpp007/geoist
116b674eae3da4ee706902ce7f5feae1f61f43a5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import numpy as np import .Selection as Sel import .Exploration as Exp import .CatUtils as CU #----------------------------------------------------------------------------------------- def GaussWin (Dis, Sig): return np.exp(-(Dis**2)/(Sig**2.)) #------------------...
23.26506
90
0.483169
0
0
0
0
0
0
0
0
375
0.1942
07a14721d51acde99d2ac0e4f6c8f439015ceb27
2,759
py
Python
hebsafeharbor/identifier/signals/lexicon_based_recognizer.py
dkarmon/HebSafeHarbor
fdad7481c74feb78f8c3265c327eae7712cf16ce
[ "MIT" ]
3
2022-03-10T14:41:54.000Z
2022-03-28T11:18:56.000Z
hebsafeharbor/identifier/signals/lexicon_based_recognizer.py
8400TheHealthNetwork/HebSafeHarbor
f618ca76d995e6fb74c0cb2f01478c7efd2d8836
[ "MIT" ]
2
2022-03-06T10:39:27.000Z
2022-03-07T12:42:13.000Z
hebsafeharbor/identifier/signals/lexicon_based_recognizer.py
dkarmon/HebSafeHarbor
fdad7481c74feb78f8c3265c327eae7712cf16ce
[ "MIT" ]
3
2022-02-15T09:50:08.000Z
2022-02-22T08:43:26.000Z
from typing import List from presidio_analyzer import EntityRecognizer, RecognizerResult, AnalysisExplanation from presidio_analyzer.nlp_engine import NlpArtifacts from hebsafeharbor.common.terms_recognizer import TermsRecognizer class LexiconBasedRecognizer(EntityRecognizer): """ A class which extends the E...
43.793651
117
0.697717
2,525
0.915187
0
0
0
0
0
0
1,147
0.41573
07a42ef8c15bd224503fc4a06fa31dab2756c605
35,966
py
Python
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/clangd/subcommands_test.py
cyx233/vim_config
f09c9206344c17df20a05dd2c08a02f098a7e873
[ "MIT" ]
null
null
null
# encoding: utf-8 # # Copyright (C) 2018 ycmd contributors # # This file is part of ycmd. # # ycmd is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any lat...
34.783366
79
0.508564
0
0
11,917
0.331295
9,356
0.260098
0
0
12,434
0.345667
07a4651e3c80a36d3030fc52e231138dba1e43c1
1,032
py
Python
sentiment/config.py
TheRensselaerIDEA/covid19_tweet_ids
fee7d951b11cf2650e48668614c30672179ab3af
[ "MIT" ]
null
null
null
sentiment/config.py
TheRensselaerIDEA/covid19_tweet_ids
fee7d951b11cf2650e48668614c30672179ab3af
[ "MIT" ]
null
null
null
sentiment/config.py
TheRensselaerIDEA/covid19_tweet_ids
fee7d951b11cf2650e48668614c30672179ab3af
[ "MIT" ]
null
null
null
""" Config class containing all the settings for running sentiment scoring tool """ import jsonpickle class Config(object): """Container for sentiment scoring tool settings. """ def __init__(self): """Initializes the Config instance. """ #Elasticsearch settings self.elasti...
27.157895
75
0.622093
928
0.899225
0
0
291
0.281977
0
0
356
0.344961
07a4d5bc6f7dc36e1d1fd72f273d7cc3af846e4b
9,184
py
Python
tests/ut/python/dataset/test_invert.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
4
2021-01-26T09:14:01.000Z
2021-01-26T09:17:24.000Z
tests/ut/python/dataset/test_invert.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
tests/ut/python/dataset/test_invert.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # 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 applicable law or agreed to...
35.875
111
0.579377
0
0
0
0
0
0
0
0
1,637
0.178245
07a4fdcadf45ca16af301e1936af3cd96dd967fd
748
py
Python
puzzle/tests/test_candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
puzzle/tests/test_candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
9
2017-10-25T10:03:36.000Z
2018-06-12T22:49:22.000Z
puzzle/tests/test_candy.py
aliciawyy/dmining
513f6f036f8f258281e1282fef052a74bf9cc3d3
[ "Apache-2.0" ]
null
null
null
from parameterized import parameterized from numpy.testing import TestCase from .. import candy class TestCollectCandies(TestCase): @parameterized.expand( [(5, 5, 12, [[2, 1, 1, 1, 1], [2, 2, 1, 1, 1], [1, 2, 1, 1, 1], [2, 2, 1, 1, 3], [2, 2, 2, 2, 2]])] ) def test_candy(self...
35.619048
73
0.481283
648
0.86631
0
0
608
0.812834
0
0
0
0
07a6ea2e95247eb4360055919661bfab2c787424
442
py
Python
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
audio.py
fernandoq/quiz-show
6e130db7923d14cf1976e1c522c58f848e48f2af
[ "MIT" ]
null
null
null
import time import subprocess import os print os.uname() if not os.uname()[0].startswith("Darw"): import pygame pygame.mixer.init() # Plays a song def playSong(filename): print "play song" if not os.uname()[0].startswith("Darw"): pygame.mixer.music.fadeout(1000) #fadeout current music over 1 sec. pygame.m...
24.555556
69
0.708145
0
0
0
0
0
0
0
0
99
0.223982
07a74f63c4315c5c81ce34abcbe9eb4483cc9b1f
4,783
py
Python
tests/test_dynamodbHandler.py
unfoldingWord-dev/python-aws-tools
8e856697ab07c5c33e60cde2d82ac805dec3ddf3
[ "MIT" ]
1
2017-08-23T22:31:23.000Z
2017-08-23T22:31:23.000Z
tests/test_dynamodbHandler.py
unfoldingWord-dev/python-aws-tools
8e856697ab07c5c33e60cde2d82ac805dec3ddf3
[ "MIT" ]
null
null
null
tests/test_dynamodbHandler.py
unfoldingWord-dev/python-aws-tools
8e856697ab07c5c33e60cde2d82ac805dec3ddf3
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals, print_function import mock import unittest import d43_aws_tools as aws_tools from boto3.dynamodb.conditions import Attr class DynamoDBHandlerTests(unittest.TestCase): @classmethod def setUpClass(cls): with mock.patch("d43_aws_tools.dynamodb_han...
40.533898
104
0.59147
4,603
0.962367
0
0
248
0.05185
0
0
1,263
0.26406
07a75032397b40d87190a129b70b4805e05f8c42
799
py
Python
app.py
sbustamante/heroku_app
6c8ff0b570750f3fe53ec67e24b71641167d53ce
[ "MIT" ]
null
null
null
app.py
sbustamante/heroku_app
6c8ff0b570750f3fe53ec67e24b71641167d53ce
[ "MIT" ]
null
null
null
app.py
sbustamante/heroku_app
6c8ff0b570750f3fe53ec67e24b71641167d53ce
[ "MIT" ]
null
null
null
from dash import Dash, html, dcc import plotly.express as px import pandas as pd app = Dash(__name__) server = app.server # assume you have a "long-form" data frame # see https://plotly.com/python/px-arguments/ for more options df = pd.DataFrame({ "Fruit": ["Apples", "Oranges", "Bananas", "Apples", "Oranges", "Ba...
24.96875
78
0.617021
0
0
0
0
0
0
0
0
352
0.440551
07a86aa8bb5513e6175425568029999ed308c9e2
23,759
py
Python
peter_sslers/web/lib/form_utils.py
aptise/peter_sslers
1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0
[ "MIT" ]
35
2016-04-21T18:55:31.000Z
2022-03-30T08:22:43.000Z
peter_sslers/web/lib/form_utils.py
aptise/peter_sslers
1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0
[ "MIT" ]
8
2018-05-23T13:38:49.000Z
2021-03-19T21:05:44.000Z
peter_sslers/web/lib/form_utils.py
aptise/peter_sslers
1dcae3fee0c1f4c67ae8a614aed7e2a3121e88b0
[ "MIT" ]
2
2016-08-18T21:07:11.000Z
2017-01-11T09:47:40.000Z
# pypi import six # local from ...lib import db as lib_db from ...lib import utils from ...model import objects as model_objects from ...model import utils as model_utils from . import formhandling # ============================================================================== def decode_args(getcreate_args): ...
39.271074
151
0.638032
10,401
0.437771
0
0
177
0.00745
0
0
7,734
0.325519
07a919ed87f13258649cbf2c9c6e2971a4de419e
5,568
py
Python
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
1
2022-03-09T06:15:43.000Z
2022-03-09T06:15:43.000Z
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
null
null
null
AI_Engine_Development/Feature_Tutorials/07-AI-Engine-Floating-Point/Utils/GenerationLib.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020–2021 Xilinx, Inc. # # 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 applicable law or agreed to in w...
33.341317
119
0.541667
0
0
0
0
0
0
0
0
1,619
0.290664
07aa6fe145a48bc2b3e22c3ee731584817a386ba
357
py
Python
Object Oriented Programming/Lecture 01/Intro.py
ashish-ad/Python-Projects
7f49476b6945189165d536629109030f10603556
[ "Unlicense" ]
1
2021-10-08T06:52:12.000Z
2021-10-08T06:52:12.000Z
Object Oriented Programming/Lecture 01/Intro.py
ashish-ad/Python-Projects
7f49476b6945189165d536629109030f10603556
[ "Unlicense" ]
null
null
null
Object Oriented Programming/Lecture 01/Intro.py
ashish-ad/Python-Projects
7f49476b6945189165d536629109030f10603556
[ "Unlicense" ]
null
null
null
item1='phone' item1_price = 100 item1_quantity = 5 item1_price_total = item1_price * item1_quantity print(type(item1)) # str print(type(item1_price)) # int print(type(item1_quantity)) # int print(type(item1_price_total)) # int # output: # <class 'str'> # <class 'int'> # ...
21
48
0.59944
0
0
0
0
0
0
0
0
112
0.313725
07ab77d7eb12a86186be6ca7c7efa3f2eb65e7be
342
py
Python
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
33
2021-12-15T07:11:47.000Z
2022-03-29T08:58:32.000Z
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
3
2021-12-15T11:39:54.000Z
2022-03-29T07:24:23.000Z
configs/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_16_36WoodBlock.py
THU-DA-6D-Pose-Group/self6dpp
c267cfa55e440e212136a5e9940598720fa21d16
[ "Apache-2.0" ]
null
null
null
_base_ = "./FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_Pbr_01_02MasterChefCan.py" OUTPUT_DIR = "output/deepim/ycbvPbrSO/FlowNet512_1.5AugCosyAAEGray_NoiseRandom_AggressiveR_ClipGrad_fxfy1_Dtw01_LogDz_PM10_Flat_ycbvPbr_SO/16_36WoodBlock" DATASETS = dict(TRAIN=("ycbv_036_woo...
85.5
154
0.903509
0
0
0
0
0
0
0
0
291
0.850877
07abd88c1750bfa23ce141be4914e78e9e578d95
316
py
Python
sqlakeyset/__init__.py
jhihruei/sqlakeyset
0aa0f6e041dc37bc5f918303578875ad334cad6c
[ "Unlicense" ]
null
null
null
sqlakeyset/__init__.py
jhihruei/sqlakeyset
0aa0f6e041dc37bc5f918303578875ad334cad6c
[ "Unlicense" ]
null
null
null
sqlakeyset/__init__.py
jhihruei/sqlakeyset
0aa0f6e041dc37bc5f918303578875ad334cad6c
[ "Unlicense" ]
null
null
null
from .columns import OC from .paging import get_page, select_page, process_args from .results import serialize_bookmark, unserialize_bookmark, Page, Paging __all__ = [ 'OC', 'get_page', 'select_page', 'serialize_bookmark', 'unserialize_bookmark', 'Page', 'Paging', 'process_args' ]
19.75
75
0.693038
0
0
0
0
0
0
0
0
97
0.306962
07abdc1f2ef1ad7ab554d9cccaa9f73782091369
6,609
py
Python
low_rank_local_connectivity/models/simple_model.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-13T21:48:52.000Z
2022-03-13T21:48:52.000Z
low_rank_local_connectivity/models/simple_model.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
null
null
null
low_rank_local_connectivity/models/simple_model.py
shaun95/google-research
d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5
[ "Apache-2.0" ]
1
2022-03-30T07:20:29.000Z
2022-03-30T07:20:29.000Z
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
37.982759
80
0.681192
5,449
0.824482
0
0
0
0
0
0
1,360
0.20578
07ad506b318b0e47d29c2d5e943847cb809ea5ef
721
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
7
2021-02-19T20:00:08.000Z
2022-01-14T10:51:12.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/icm20x_icm20948_gyro_data_rate_test.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import busio from adafruit_icm20x import ICM20948 cycles = 200 i2c = busio.I2C(board.SCL, board.SDA) icm = ICM20948(i2c) # Cycle between two data rates # Best viewed in the Mu serial plotter where y...
25.75
62
0.718447
0
0
0
0
0
0
0
0
274
0.380028
07afa89bd7f7b951972777c2099542dd2fbf96da
304
py
Python
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
1186.py
TheLurkingCat/TIOJ
077e1cd22239d8f6bc1cd7561f27c68143e80263
[ "MIT" ]
null
null
null
a = int(input()) while a: for x in range(a-1): out = '*' + ' ' * (a-x-2) + '*' + ' ' * (a-x-2) + '*' print(out.center(2*a-1)) print('*' * (2 * a - 1)) for x in range(a-1): out = '*' + ' ' * x + '*' + ' ' * x + '*' print(out.center(2*a-1)) a = int(input())
27.636364
61
0.348684
0
0
0
0
0
0
0
0
33
0.108553
07afdc77d12fe88ab48cead7329435544528b522
8,032
py
Python
utils/common.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
utils/common.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
utils/common.py
initialed85/eds-cctv-system
fcdb7e7e23327bf3a901d23d506b3915833027d1
[ "MIT" ]
null
null
null
import datetime import json import os from pathlib import Path from types import SimpleNamespace from typing import List from typing import NamedTuple, Union, Optional, Callable from uuid import uuid3, NAMESPACE_DNS from dateutil.parser import parse _VIDEO_SUFFIXES = [".mkv", ".mp4"] _IMAGE_SUFFIXES = [".jpg"] _PERMI...
33.606695
140
0.671564
422
0.05254
0
0
0
0
0
0
1,610
0.200448
07b0911062690c0f062a5b15420ab76dd3a0ddb5
807
py
Python
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
schoolio/migrations/0005_auto_20190927_1423.py
schoolio-co/schoolio_site
a616807c504c7a7cab3b9f7c3dab42f827cb0580
[ "MIT", "Unlicense" ]
null
null
null
# Generated by Django 2.2.1 on 2019-09-27 14:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('schoolio', '0004_auto_20190927_0405'), ] operations = [ migrations.AlterField( model_name='student_assessment', name...
27.827586
74
0.607187
714
0.884758
0
0
0
0
0
0
198
0.245353
07b3b408f0f9c7313a3971b858fbe6beb4247623
1,733
py
Python
taattack/_datasets/dataset.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/_datasets/dataset.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
taattack/_datasets/dataset.py
linerxliner/ValCAT
e62985c6c64f6415bb2bb4716bd02d9686badd47
[ "MIT" ]
null
null
null
class Dataset: _data = None _first_text_col = 'text' _second_text_col = None _label_col = 'label' def __init__(self): self._idx = 0 if self._data is None: raise Exception('Dataset is not loaded') def __iter__(self): return self def __next__(self): ...
34.66
142
0.589729
1,733
1
0
0
0
0
0
0
36
0.020773
07b47bbb8eb7acb013788dd5e04ca55c384f4c1f
7,732
py
Python
scripts/extract_gs_citations.py
akhilpandey95/scholarlyimpact
215ae832c90f0564fa0301e4c3f1c99525617625
[ "MIT" ]
null
null
null
scripts/extract_gs_citations.py
akhilpandey95/scholarlyimpact
215ae832c90f0564fa0301e4c3f1c99525617625
[ "MIT" ]
18
2020-02-20T23:40:26.000Z
2020-10-20T04:05:43.000Z
scripts/extract_gs_citations.py
akhilpandey95/scholarlyimpact
215ae832c90f0564fa0301e4c3f1c99525617625
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # This Source Code Form is subject to the terms of the MIT # License. If a copy of the same was not distributed with this # file, You can obtain one at # https://github.com/akhilpandey95/scholarlyimpact/blob/master/LICENSE. import os import csv import glob import json import requests import sub...
26.847222
91
0.602431
653
0.084454
0
0
0
0
0
0
3,773
0.487972
07b56e4319a20d96b921852eb21d1c92a5f276de
4,672
py
Python
dist-packages/reportlab/pdfgen/pathobject.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
51
2015-01-20T19:50:34.000Z
2022-03-05T21:23:32.000Z
dist-packages/reportlab/pdfgen/pathobject.py
Jianwei-Wang/python2.7_lib
911b8e81512e5ac5f13e669ab46f7693ed897378
[ "PSF-2.0" ]
16
2015-11-15T04:23:43.000Z
2021-09-27T14:14:20.000Z
src/reportlab/pdfgen/pathobject.py
guildenstern70/pyfab
34d786fec17192591ac3c5f73913a9b04311695a
[ "MIT" ]
46
2015-03-28T10:18:14.000Z
2021-12-16T15:57:47.000Z
#Copyright ReportLab Europe Ltd. 2000-2012 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/pdfgen/pathobject.py __version__=''' $Id$ ''' __doc__=""" PDFPathObject is an efficient way to draw paths on a Canvas. Do not instantiate directly, obt...
36.5
109
0.627354
4,165
0.891481
0
0
0
0
0
0
2,221
0.475385
07b58dc361c480dc7628924d4fba99b729151138
687
py
Python
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
client/modules/Wikipedia.py
devagul93/Jarvis-System
8d1865b19bb8530831c868147c3b27a1c3bad59b
[ "MIT" ]
null
null
null
import wikipedia import re import TCPclient as client WORDS = ["WIKIPEDIA","SEARCH","INFORMATION"] def handle(text,mic,profile): # SEARCH ON WIKIPEDIA # ny = wikipedia.summary("New York",sentences=3); # mic.say("%s"% ny) #mic.say("What you want to search about") #text = mic.activeListen() print "entering wik...
19.083333
61
0.679767
0
0
0
0
0
0
0
0
272
0.395924
07b68a248a019f47e10cdf7898c67384df56c25f
1,447
py
Python
Madlibs/madlibs.py
nikhil-amin/python-mini-project
cd70a6a43408ce74cff501ce4d4658ab82260c2d
[ "MIT" ]
2
2021-08-20T08:59:28.000Z
2021-11-23T00:17:15.000Z
Madlibs/madlibs.py
nikhil-amin/python-mini-project
cd70a6a43408ce74cff501ce4d4658ab82260c2d
[ "MIT" ]
null
null
null
Madlibs/madlibs.py
nikhil-amin/python-mini-project
cd70a6a43408ce74cff501ce4d4658ab82260c2d
[ "MIT" ]
1
2022-01-06T16:35:43.000Z
2022-01-06T16:35:43.000Z
import random print("Title : Eat, Drink, And Be Sick") noun = [] for i in range(4): n = input("Enter noun : ") noun.append(n) plural = [] for i in range(6): pn = input("Enter plural noun : ") plural.append(pn) adjective = [] for i in range(2): a = input("Enter adjective : ") adjective.append(a) ...
60.291667
270
0.676572
0
0
0
0
0
0
0
0
755
0.521769
07b69c4f080b6ae079038a0250ba13b6035a0cda
191
py
Python
scripts/transpose.py
saikrishnarallabandi/python_connectionist
e3f8f92c8de865190ad727951eb2b0e514248afc
[ "Apache-2.0" ]
null
null
null
scripts/transpose.py
saikrishnarallabandi/python_connectionist
e3f8f92c8de865190ad727951eb2b0e514248afc
[ "Apache-2.0" ]
null
null
null
scripts/transpose.py
saikrishnarallabandi/python_connectionist
e3f8f92c8de865190ad727951eb2b0e514248afc
[ "Apache-2.0" ]
null
null
null
import numpy g = open('/home/srallaba/mgc/transposed/arctic_a0404.mgc','w') x = numpy.loadtxt('/home/srallaba/mgc_spaces/arctic_a0404.mgc') numpy.savetxt(g, numpy.transpose(x)) g.close()
31.833333
64
0.73822
0
0
0
0
0
0
0
0
95
0.497382
07b6a4b93bbebd4e00153c0e368d7d75f4691489
7,337
py
Python
tests/zone_api_test/core/zone_manager_test.py
yfaway/zone-apis
4aa4120cb4a66812dac1d32e86e825bbafe652b8
[ "MIT" ]
1
2021-11-22T11:51:17.000Z
2021-11-22T11:51:17.000Z
tests/zone_api_test/core/zone_manager_test.py
yfaway/zone-apis
4aa4120cb4a66812dac1d32e86e825bbafe652b8
[ "MIT" ]
20
2021-01-31T00:20:34.000Z
2022-01-09T18:02:31.000Z
tests/zone_api_test/core/zone_manager_test.py
yfaway/zone-apis
4aa4120cb4a66812dac1d32e86e825bbafe652b8
[ "MIT" ]
null
null
null
from zone_api.core.zone_manager import ZoneManager from zone_api import platform_encapsulator as pe from zone_api.core.zone import Zone from zone_api.core.zone_event import ZoneEvent from zone_api.core.devices.dimmer import Dimmer from zone_api.core.devices.switch import Fan, Light, Switch from zone_api.core.devices.i...
40.535912
118
0.694698
6,719
0.915769
0
0
0
0
0
0
258
0.035164
07b77a97c35aea2ef5b761b745880bae3410a131
2,796
py
Python
meiduo_mall/meiduo_mall/apps/orders/views.py
Zasling/meiduo_mall33
ec55597758d5052b311d65aee44533b001f6ddd8
[ "MIT" ]
1
2019-04-12T08:56:29.000Z
2019-04-12T08:56:29.000Z
meiduo_mall/meiduo_mall/apps/orders/views.py
Zasling/meiduo_mall33
ec55597758d5052b311d65aee44533b001f6ddd8
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/orders/views.py
Zasling/meiduo_mall33
ec55597758d5052b311d65aee44533b001f6ddd8
[ "MIT" ]
1
2020-03-30T14:35:22.000Z
2020-03-30T14:35:22.000Z
from rest_framework.response import Response from rest_framework.views import APIView from django_redis import get_redis_connection from goods.models import SKU from decimal import Decimal from rest_framework.generics import CreateAPIView,ListAPIView from rest_framework.mixins import ListModelMixin from orders.serializ...
31.066667
115
0.689199
2,287
0.743498
0
0
0
0
0
0
591
0.192133
07b88bc36babff3a11858ef34a69a78ca7bd4caf
37,841
py
Python
src/streamlink_cli/main.py
melmorabity/streamlink
24c59a23103922977991acc28741a323d8efa7a1
[ "BSD-2-Clause" ]
null
null
null
src/streamlink_cli/main.py
melmorabity/streamlink
24c59a23103922977991acc28741a323d8efa7a1
[ "BSD-2-Clause" ]
null
null
null
src/streamlink_cli/main.py
melmorabity/streamlink
24c59a23103922977991acc28741a323d8efa7a1
[ "BSD-2-Clause" ]
null
null
null
import argparse import errno import logging import os import platform import signal import sys from collections import OrderedDict from contextlib import closing from distutils.version import StrictVersion from functools import partial from gettext import gettext from itertools import chain from pathlib import Path fro...
33.999102
122
0.640258
0
0
337
0.008906
0
0
0
0
8,801
0.232578
07b8d02790ae07e8540167a649afc0cab32e02e9
16,807
py
Python
dbaccesslibUserMailInfo.py
Koushik-ks/FlaskAPP
6f1bd98450bc8f33c3896aa7ec690c51dc414d19
[ "MIT" ]
null
null
null
dbaccesslibUserMailInfo.py
Koushik-ks/FlaskAPP
6f1bd98450bc8f33c3896aa7ec690c51dc414d19
[ "MIT" ]
null
null
null
dbaccesslibUserMailInfo.py
Koushik-ks/FlaskAPP
6f1bd98450bc8f33c3896aa7ec690c51dc414d19
[ "MIT" ]
1
2019-11-08T06:49:57.000Z
2019-11-08T06:49:57.000Z
from io import BytesIO from io import StringIO import json from bson.dbref import DBRef import datetime from bson import json_util import logging import base64 jsonCode ={ "building":{ "Essae Vaishnavi Solitaire": { "id": "B1", "division": { "SS"...
42.335013
242
0.404712
0
0
0
0
0
0
0
0
3,273
0.19474
07b8f248ebba127a7ba553594c485e647090e69f
3,489
py
Python
src/test/dags/bq_to_cm_dag_test.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
null
null
null
src/test/dags/bq_to_cm_dag_test.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
null
null
null
src/test/dags/bq_to_cm_dag_test.py
google/cc4d
206543832368f96bac7f55c0de93c96e32127779
[ "Apache-2.0" ]
null
null
null
# python3 # coding=utf-8 # Copyright 2020 Google LLC. # # 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 applicable law ...
35.602041
74
0.755804
1,721
0.493265
0
0
0
0
0
0
1,408
0.403554
07b971c0c6fde3e7ed6901642724f170bca1dffb
10,781
py
Python
talentmap_api/common/management/commands/load_xml.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
5
2018-08-09T18:51:12.000Z
2021-11-08T10:28:17.000Z
talentmap_api/common/management/commands/load_xml.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
232
2017-06-16T02:09:54.000Z
2018-05-10T16:15:48.000Z
talentmap_api/common/management/commands/load_xml.py
burgwyn/State-TalentMAP-API
1f4f3659c5743ebfd558cd87af381f5460f284b3
[ "CC0-1.0" ]
4
2018-06-13T14:49:27.000Z
2021-06-30T22:29:15.000Z
from django.core.management.base import BaseCommand import logging import re from talentmap_api.common.xml_helpers import XMLloader, strip_extra_spaces, parse_boolean, parse_date, get_nested_tag from talentmap_api.language.models import Language, Proficiency from talentmap_api.position.models import Grade, Skill, Pos...
36.422297
142
0.66914
2,204
0.204434
0
0
0
0
0
0
4,072
0.377702
07b9b8864e1cb2b18a6326e38faad88d4012991a
2,581
py
Python
gluon/tests/test_recfile.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
gluon/tests/test_recfile.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
gluon/tests/test_recfile.py
oscarfonts/web2py
a18e0e489fe7a770c62fca510a4299886b0a9bb7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Unit tests for gluon.recfile """ import unittest import os import shutil import uuid from .fix_path import fix_sys_path fix_sys_path(__file__) from gluon import recfile class TestRecfile(unittest.TestCase): def setUp(self): os.mkdir('tests') d...
34.413333
92
0.593181
2,303
0.89229
0
0
0
0
0
0
274
0.10616
07ba0eee7b3f5dcbd7cf03e65b5f80e0ede665d0
1,022
py
Python
configLambdas.py
cfrome77/liquid-stats
7a4d751dea215c94b650beb154a90abce7e1592d
[ "MIT" ]
4
2020-06-21T14:43:40.000Z
2021-12-29T17:02:18.000Z
configLambdas.py
cfrome77/liquid-stats
7a4d751dea215c94b650beb154a90abce7e1592d
[ "MIT" ]
21
2018-09-18T18:42:53.000Z
2022-01-04T05:55:12.000Z
configLambdas.py
cfrome77/liquid-stats
7a4d751dea215c94b650beb154a90abce7e1592d
[ "MIT" ]
null
null
null
import json import os import subprocess from dotenv import load_dotenv from subprocess import check_output, Popen, PIPE load_dotenv() # Accessing variables. CLIENT_ID = os.environ.get('CLIENT_ID') CLIENT_SECRET = os.environ.get('CLIENT_SECRET') USERNAME = os.environ.get('USERNAME') BUCKET_NAME = os.environ.get('BUCK...
26.894737
122
0.714286
0
0
0
0
0
0
0
0
333
0.325832
07baaefdacf7ace2738a920e7e9c1d5671078a05
13,520
py
Python
microbitAnim.py
SaitoYutaka/microbitAnim
6630d5cdb3ae867d3467a035a1c14358944c0367
[ "MIT" ]
null
null
null
microbitAnim.py
SaitoYutaka/microbitAnim
6630d5cdb3ae867d3467a035a1c14358944c0367
[ "MIT" ]
null
null
null
microbitAnim.py
SaitoYutaka/microbitAnim
6630d5cdb3ae867d3467a035a1c14358944c0367
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### ## Python code generated with wxFormBuilder (version Aug 8 2018) ## http://www.wxformbuilder.org/ ## ## PLEASE DO *NOT* EDIT THIS FILE! ########################################################################### impo...
44.473684
181
0.598669
13,001
0.961612
0
0
0
0
0
0
596
0.044083
07babdb06c676058838f65ac7fea336d215d962b
339
py
Python
src/dependencies/contrib/celery.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
src/dependencies/contrib/celery.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
src/dependencies/contrib/celery.py
nicoddemus/dependencies
74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9
[ "BSD-2-Clause" ]
null
null
null
""" dependencies.contrib.celery --------------------------- This module implements injectable Celery task. :copyright: (c) 2016-2020 by dry-python team. :license: BSD, see LICENSE for more details. """ from _dependencies.contrib.celery import shared_task from _dependencies.contrib.celery import task __all__ = ["sha...
22.6
52
0.710914
0
0
0
0
0
0
0
0
222
0.654867
07bb317b5c0941f28a4da7f31413b20f4a8bda28
7,838
py
Python
yolo3/utils.py
gaxu/keras-yolo3
7f6be0fb9a8583401246bfe65d2df2ee40777d72
[ "MIT" ]
null
null
null
yolo3/utils.py
gaxu/keras-yolo3
7f6be0fb9a8583401246bfe65d2df2ee40777d72
[ "MIT" ]
null
null
null
yolo3/utils.py
gaxu/keras-yolo3
7f6be0fb9a8583401246bfe65d2df2ee40777d72
[ "MIT" ]
4
2021-02-25T08:21:15.000Z
2021-02-25T08:56:39.000Z
"""Miscellaneous utility functions.""" from functools import reduce from PIL import Image import numpy as np from matplotlib.colors import rgb_to_hsv, hsv_to_rgb def compose(*funcs): """Compose arbitrarily many functions, evaluated left to right. Reference: https://mathieularose.com/function-composition-in-...
32.522822
130
0.578719
0
0
0
0
0
0
0
0
1,503
0.183606
07bd6b46f25dcc6cd80de3063def3b5b81539dae
161
py
Python
text_classification/config.py
MardanovTimur/kaggle
62392863a07fcc5de9821c28cf9c6dbbf39ced59
[ "MIT" ]
null
null
null
text_classification/config.py
MardanovTimur/kaggle
62392863a07fcc5de9821c28cf9c6dbbf39ced59
[ "MIT" ]
null
null
null
text_classification/config.py
MardanovTimur/kaggle
62392863a07fcc5de9821c28cf9c6dbbf39ced59
[ "MIT" ]
null
null
null
import logging import pathlib logging.basicConfig(level=logging.INFO) # Dirs ROOT_DIR = pathlib.Path(__file__).parent.absolute() DUMP_DIR = ROOT_DIR / 'dumps'
17.888889
51
0.782609
0
0
0
0
0
0
0
0
13
0.080745
07bd8ff47d8f5245f9a21b92c33b949fce1127a8
8,482
py
Python
sportsreference/ncaaf/rankings.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
sportsreference/ncaaf/rankings.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
null
null
null
sportsreference/ncaaf/rankings.py
JosephDErwin/sportsreference
f026366bec91fdf4bebef48e3a4bfd7c5bfab4bd
[ "MIT" ]
1
2020-07-08T16:05:25.000Z
2020-07-08T16:05:25.000Z
import re from pyquery import PyQuery as pq from .. import utils from .constants import RANKINGS_SCHEME, RANKINGS_URL from six.moves.urllib.error import HTTPError class Rankings: """ Get all Associated Press (AP) rankings on a week-by-week basis. Grab a list of the rankings published by the Associated Pr...
39.821596
79
0.549399
8,316
0.980429
0
0
3,619
0.426668
0
0
5,716
0.673898
07bd958d061b56e11538171ee991b3269000d33d
5,937
py
Python
ding/hpc_rl/wrapper.py
davide97l/DI-engine
d48c93bcd5c07c29f2ce4ac1b7756b8bc255c423
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
ding/hpc_rl/wrapper.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
ding/hpc_rl/wrapper.py
jiaruonan/DI-engine
268d77db3cb54401b2cfc83e2bc3ec87c31e7b83
[ "Apache-2.0" ]
null
null
null
import importlib from ditk import logging from collections import OrderedDict from functools import wraps import ding ''' Overview: `hpc_wrapper` is the wrapper for functions which are supported by hpc. If a function is wrapped by it, we will search for its hpc type and return the function implemented by hpc. ...
44.30597
120
0.578912
0
0
0
0
1,905
0.320869
0
0
3,194
0.537982
07be5334fc353ee2aa3b8e027797471255271069
102
py
Python
CodeWars/2016/NumberOfOccurrences-7k.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodeWars/2016/NumberOfOccurrences-7k.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodeWars/2016/NumberOfOccurrences-7k.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
#Return the count of int(s) in passed array. def number_of_occurrences(s, xs): return xs.count(s)
34
45
0.72549
0
0
0
0
0
0
0
0
45
0.441176
07bf6145f03382a8bd2f1aee40dd398c31e7d6c2
10,343
py
Python
telethon_generator/parsers/tlobject.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
2
2021-01-06T12:49:49.000Z
2021-04-23T16:32:13.000Z
telethon_generator/parsers/tlobject.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
null
null
null
telethon_generator/parsers/tlobject.py
islam-200555/Telethon
85103bcf6de8024c902ede98f0b9bf0f7f47a0aa
[ "MIT" ]
null
null
null
import re from zlib import crc32 from ..utils import snake_to_camel_case CORE_TYPES = ( 0xbc799737, # boolFalse#bc799737 = Bool; 0x997275b5, # boolTrue#997275b5 = Bool; 0x3fedd339, # true#3fedd339 = True; 0x1cb5c415, # vector#1cb5c415 {t:Type} # [ t ] = Vector t; ) # https://github.com/telegramde...
35.788927
153
0.541332
7,518
0.726868
933
0.090206
0
0
0
0
3,714
0.359083
07c02ac3abe7a10db3f40c2457c57bca98b41742
2,469
bzl
Python
dotnet/private/actions/resx_core.bzl
purkhusid/rules_dotnet
934e62d65ed3657be20b2ae3a63e032a2de9ff84
[ "Apache-2.0" ]
143
2016-03-15T20:37:54.000Z
2022-02-25T12:30:08.000Z
dotnet/private/actions/resx_core.bzl
purkhusid/rules_dotnet
934e62d65ed3657be20b2ae3a63e032a2de9ff84
[ "Apache-2.0" ]
176
2016-03-17T13:28:50.000Z
2022-03-30T21:19:24.000Z
dotnet/private/actions/resx_core.bzl
purkhusid/rules_dotnet
934e62d65ed3657be20b2ae3a63e032a2de9ff84
[ "Apache-2.0" ]
79
2016-03-16T11:34:56.000Z
2022-02-04T10:54:00.000Z
"Actions for compiling resx files" load( "@io_bazel_rules_dotnet//dotnet/private:providers.bzl", "DotnetResourceInfo", ) def _make_runner_arglist(dotnet, source, output, resgen): args = dotnet.actions.args() if type(source) == "Target": args.add_all(source.files) else: args.add(so...
32.92
159
0.651681
0
0
0
0
0
0
0
0
1,078
0.436614
07c0bb5052572bdefa7514e11ef8a10e0bb0427e
1,035
py
Python
test/jit/test_modules.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
test/jit/test_modules.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
818
2020-02-07T02:36:44.000Z
2022-03-31T23:49:44.000Z
test/jit/test_modules.py
xiaohanhuang/pytorch
a31aea8eaa99a5ff72b5d002c206cd68d5467a5e
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# Owner(s): ["oncall: jit"] import torch import os import sys from torch.testing._internal.jit_utils import JitTestCase # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.path.append(pytorch_test_dir) if __name__ == '__main__': raise Ru...
30.441176
81
0.630918
544
0.525604
0
0
0
0
0
0
395
0.381643
07c0c2bb274ab76681ad18763446d5b0c976c985
242
py
Python
pixelate_task_1.py
Swayamshu/Pixelate_Sample_Arena
d8e8b4614987f9302a19ec1e20a922618e67b943
[ "MIT" ]
null
null
null
pixelate_task_1.py
Swayamshu/Pixelate_Sample_Arena
d8e8b4614987f9302a19ec1e20a922618e67b943
[ "MIT" ]
null
null
null
pixelate_task_1.py
Swayamshu/Pixelate_Sample_Arena
d8e8b4614987f9302a19ec1e20a922618e67b943
[ "MIT" ]
null
null
null
import gym import pix_sample_arena import time import pybullet as p import pybullet_data import cv2 if __name__ == "__main__": env = gym.make("pix_sample_arena-v0") x = 0 while True: p.stepSimulation() time.sleep(100)
18.615385
41
0.702479
0
0
0
0
0
0
0
0
31
0.128099
07c22498468a49059683c71a90ec92358cf9e563
916
py
Python
tests/test_timeparser.py
vgoehler/python-i3-battery-block
e47ce80b315d812d731df84f2a1c8e1155b2469a
[ "BSD-2-Clause" ]
null
null
null
tests/test_timeparser.py
vgoehler/python-i3-battery-block
e47ce80b315d812d731df84f2a1c8e1155b2469a
[ "BSD-2-Clause" ]
9
2020-01-24T17:15:03.000Z
2020-06-02T14:16:40.000Z
tests/test_timeparser.py
vgoehler/python-i3-battery-block
e47ce80b315d812d731df84f2a1c8e1155b2469a
[ "BSD-2-Clause" ]
null
null
null
from datetime import time import pytest from i3_battery_block_vgg.timeparser import __parse_time_manually from i3_battery_block_vgg.timeparser import parse_time @pytest.mark.parametrize( "time_input, expected", [ ("12:13", time(hour=12, minute=13)), ("12:13:14", time(hour=12, minute=13, seco...
29.548387
94
0.677948
0
0
0
0
747
0.815502
0
0
163
0.177948
07c22c6dbb3092192d2a4fddcabee0db528c9e22
4,720
py
Python
frontends/PyCDE/test/polynomial.py
fyquah/circt
cee685bf12dbf27a3f2274e08cd1af6874f70baa
[ "Apache-2.0" ]
null
null
null
frontends/PyCDE/test/polynomial.py
fyquah/circt
cee685bf12dbf27a3f2274e08cd1af6874f70baa
[ "Apache-2.0" ]
null
null
null
frontends/PyCDE/test/polynomial.py
fyquah/circt
cee685bf12dbf27a3f2274e08cd1af6874f70baa
[ "Apache-2.0" ]
null
null
null
# RUN: %PYTHON% %s 2>&1 | FileCheck %s from __future__ import annotations import mlir import pycde from pycde import (Input, Output, Parameter, module, externmodule, generator, types, dim) from circt.dialects import comb, hw @module def PolynomialCompute(coefficients: Coefficients): class Pol...
35.223881
272
0.63411
1,944
0.411864
0
0
1,477
0.312924
0
0
2,573
0.545127
07c24587d23b16e92b579d57a83d8cb4e84073ef
3,430
py
Python
python/examples/service_discovery.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
python/examples/service_discovery.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
python/examples/service_discovery.py
davidgcameron/arc
9813ef5f45e5089507953239de8fa2248f5ad32c
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import arc import sys import os def retrieve(uc, endpoints): # The ComputingServiceRetriever needs the UserConfig to know which credentials # to use in case of HTTPS connections retriever = arc.ComputingServiceRetriever(uc, endpoints) # the constructor of the ComputingServiceRetr...
40.352941
129
0.717201
0
0
0
0
72
0.020991
0
0
1,913
0.557726
07c2fc0684398b705e83193b8a4ddd1551624694
46,071
py
Python
core/domain/rights_manager.py
netajik/oppia
d3780352d615db7438e010c5aa5eb60588bb7de6
[ "Apache-2.0" ]
null
null
null
core/domain/rights_manager.py
netajik/oppia
d3780352d615db7438e010c5aa5eb60588bb7de6
[ "Apache-2.0" ]
null
null
null
core/domain/rights_manager.py
netajik/oppia
d3780352d615db7438e010c5aa5eb60588bb7de6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia 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 requi...
35.303448
80
0.692323
6,342
0.137657
0
0
0
0
0
0
20,921
0.454103
07c453afd778414ad9fee5c8bcdaf13018eeb9f5
1,755
py
Python
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
pkg_resources/_vendor/packaging/_typing.py
GDGSNF/setuptools
3a209029fd2217c039593cd1f6cb378a28527a59
[ "MIT" ]
null
null
null
"""For neatly implementing static typing in packaging. `mypy` - the static type analysis tool we use - uses the `typing` module, which provides core functionality fundamental to mypy's functioning. Generally, `typing` would be imported at runtime and used in that fashion - it acts as a no-op at runtime and does not h...
37.340426
79
0.756125
0
0
0
0
0
0
0
0
1,591
0.906553
07c4707b6186eda818ca02fcf8c20fba9ffa25c7
7,024
py
Python
selfdrive/car/toyota/carcontroller.py
aolin480/openpilot
9ac00c3e5e111a05a0bb10018ccd190571dfff4d
[ "MIT" ]
70
2021-06-18T13:04:10.000Z
2022-03-31T13:58:09.000Z
selfdrive/car/toyota/carcontroller.py
aolin480/openpilot
9ac00c3e5e111a05a0bb10018ccd190571dfff4d
[ "MIT" ]
50
2021-06-16T23:52:55.000Z
2022-03-30T14:05:33.000Z
selfdrive/car/toyota/carcontroller.py
aolin480/openpilot
9ac00c3e5e111a05a0bb10018ccd190571dfff4d
[ "MIT" ]
88
2021-06-23T21:33:19.000Z
2022-03-31T07:27:08.000Z
from cereal import car from common.numpy_fast import clip, interp from selfdrive.car import apply_toyota_steer_torque_limits, create_gas_interceptor_command, make_can_msg from selfdrive.car.toyota.toyotacan import create_steer_command, create_ui_command, \ create_accel_command...
48.777778
152
0.716259
6,264
0.8918
0
0
0
0
0
0
1,603
0.228218