hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
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
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794d02d598caebdad524d1816be8af3b20dd8e84
365
py
Python
setup.py
brunoilponseisae/bottle-cas
2a031cea87abe1ec819701a94a4a82d70f105cc3
[ "BSD-3-Clause" ]
null
null
null
setup.py
brunoilponseisae/bottle-cas
2a031cea87abe1ec819701a94a4a82d70f105cc3
[ "BSD-3-Clause" ]
null
null
null
setup.py
brunoilponseisae/bottle-cas
2a031cea87abe1ec819701a94a4a82d70f105cc3
[ "BSD-3-Clause" ]
null
null
null
import setuptools setuptools.setup(name='bottle-cas-python3', version='3.0.0', description='A fork of bottle-cas package supporting python3', author='Bruno Ilponse', url='http://github.com/brunoilponseisae/bottle-cas', packages=['bottle_cas'], python_requires='>=3.6', install...
30.416667
68
0.663014
794d02f48c71f40e2d825863b8204e88bd9ce388
3,353
py
Python
UniGrammarRuntime/backends/multilanguage/antlr4.py
UniGrammar/UniGrammarRuntime.py
58097f1d03f35c346a0534d1eb821b98edd25ad5
[ "Unlicense" ]
null
null
null
UniGrammarRuntime/backends/multilanguage/antlr4.py
UniGrammar/UniGrammarRuntime.py
58097f1d03f35c346a0534d1eb821b98edd25ad5
[ "Unlicense" ]
null
null
null
UniGrammarRuntime/backends/multilanguage/antlr4.py
UniGrammar/UniGrammarRuntime.py
58097f1d03f35c346a0534d1eb821b98edd25ad5
[ "Unlicense" ]
null
null
null
import typing from ...grammarClasses import LL from ...IParsingBackend import IParsingBackend, ToolSpecificGrammarASTWalkStrategy from ...ToolMetadata import Product, ToolMetadata antlr4 = None try: from antlrCompile.backends.python import ANTLRInternalClassesPython from antlrCompile.core import ANTLRParserFactory...
30.481818
185
0.778407
794d032847686cd58db8599cdbfe682972a91a39
1,048
py
Python
docker/duktape-wiki-build-ubuntu-18.04/run.py
svaarala/duktape-wiki
2a1bfa8345e67b2d8d6274a08f1cbfc0296766c9
[ "MIT" ]
26
2016-05-03T20:37:36.000Z
2022-03-09T15:07:03.000Z
docker/duktape-wiki-build-ubuntu-18.04/run.py
svaarala/duktape-wiki
2a1bfa8345e67b2d8d6274a08f1cbfc0296766c9
[ "MIT" ]
87
2015-09-02T22:49:37.000Z
2021-07-23T15:02:10.000Z
docker/duktape-wiki-build-ubuntu-18.04/run.py
svaarala/duktape-wiki
2a1bfa8345e67b2d8d6274a08f1cbfc0296766c9
[ "MIT" ]
18
2016-05-13T12:02:21.000Z
2021-11-12T13:44:36.000Z
#!/usr/bin/env python2 import os import sys import subprocess import zipfile import StringIO def main(): # Unpack ZIP from stdin, contains input repo snapshot etc. zf = zipfile.ZipFile(StringIO.StringIO(sys.stdin.read())) zf.extractall() os.chdir('duktape-wiki') # Actual dist build. os.syste...
33.806452
151
0.682252
794d03a946fda703a6693cc7edf2305d8a5d8b2a
537
py
Python
app.py
Misschl/flask-fresh
df17fd377b9e27aaad9fe0c5582c56098d09068c
[ "Apache-2.0" ]
null
null
null
app.py
Misschl/flask-fresh
df17fd377b9e27aaad9fe0c5582c56098d09068c
[ "Apache-2.0" ]
null
null
null
app.py
Misschl/flask-fresh
df17fd377b9e27aaad9fe0c5582c56098d09068c
[ "Apache-2.0" ]
1
2020-12-21T14:01:53.000Z
2020-12-21T14:01:53.000Z
from flask import Flask import config from utils.core import DemoInit from utils.extentions import db, session, admin, csrf app = Flask( __name__, template_folder=config.TEMPLATE_FOLDER, static_folder=config.STATIC_FOLDER ) app.config.from_object(config) demo = DemoInit(app) extentions = [ db, s...
16.272727
53
0.726257
794d045b561ffeaa0626f86590b2260ef403de71
7,968
py
Python
kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
lp67/python
33c5ea9835356410ce4a9fa54a02c6a2a22143c6
[ "Apache-2.0" ]
4
2019-11-19T10:33:47.000Z
2022-03-01T03:33:52.000Z
kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
mohramadan911/PythonClientAPI
5d111812c81b7a573ac8661d1aec60bb97072412
[ "Apache-2.0" ]
2
2021-08-10T16:35:31.000Z
2021-09-14T04:53:06.000Z
# 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.20 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import si...
38.307692
367
0.646084
794d04a429cc7d79656eb901731942118f7f9e4c
1,768
py
Python
tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.py
torilov/ClickHouse
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
[ "Apache-2.0" ]
2
2020-08-31T08:39:21.000Z
2020-12-29T08:19:11.000Z
tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.py
torilov/ClickHouse
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
[ "Apache-2.0" ]
null
null
null
tests/queries/0_stateless/00964_live_view_watch_events_heartbeat.py
torilov/ClickHouse
bbbe51033dfd5b8c3d54e168475ca707ac7ec0b4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys import signal CURDIR = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, os.path.join(CURDIR, 'helpers')) from client import client, prompt, end_of_block log = None # uncomment the line below for debugging #log=sys.stdout with client(name='client1>', log=log) ...
33.358491
94
0.688914
794d04eda71a36740be3cea3af6206ca660461ad
31,369
py
Python
AppServer/google/appengine/api/logservice/logservice.py
echoi-appscale/appscale
bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc
[ "Apache-2.0" ]
1
2016-02-24T02:26:35.000Z
2016-02-24T02:26:35.000Z
AppServer/google/appengine/api/logservice/logservice.py
echoi-appscale/appscale
bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc
[ "Apache-2.0" ]
null
null
null
AppServer/google/appengine/api/logservice/logservice.py
echoi-appscale/appscale
bff3d6a9d42b0c2dd58796c4fc6aa1ddd2c00bcc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2007 Google 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 o...
31.49498
80
0.692244
794d05fcacd42514f9fc73136e0211e0c799d42d
49
py
Python
Codeforces/A_Dubstep.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/A_Dubstep.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
Codeforces/A_Dubstep.py
anubhab-code/Competitive-Programming
de28cb7d44044b9e7d8bdb475da61e37c018ac35
[ "MIT" ]
null
null
null
print (" ".join(input().split('WUB')).strip(" "))
49
49
0.55102
794d067a9e679b854bf72d1e2687ce97410646e8
27,460
py
Python
caffe2/python/examples/imagenet_trainer.py
wenhaopeter/read_pytorch_code
491f989cd918cf08874dd4f671fb7f0142a0bc4f
[ "Intel", "X11" ]
40
2021-06-01T07:37:59.000Z
2022-03-25T01:42:09.000Z
caffe2/python/examples/imagenet_trainer.py
wenhaopeter/read_pytorch_code
491f989cd918cf08874dd4f671fb7f0142a0bc4f
[ "Intel", "X11" ]
14
2021-06-01T11:52:46.000Z
2022-03-25T02:13:08.000Z
caffe2/python/examples/imagenet_trainer.py
wenhaopeter/read_pytorch_code
491f989cd918cf08874dd4f671fb7f0142a0bc4f
[ "Intel", "X11" ]
7
2021-07-20T19:34:26.000Z
2022-03-13T21:07:36.000Z
# Module caffe2.python.examples.resnet50_trainer from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import logging import numpy as np import time import os from caffe2.python import core, workspace, exper...
37.513661
88
0.605353
794d0699485b201c5b1dc6dff70c4bd91f3d3998
327
py
Python
tests/test_app/library/loans/views.py
Pijuli/django-jazzmin
e3f9d45183d58f78bf4c6793969490631a84681d
[ "MIT" ]
972
2020-05-12T19:51:01.000Z
2022-03-31T20:18:33.000Z
tests/test_app/library/loans/views.py
Pijuli/django-jazzmin
e3f9d45183d58f78bf4c6793969490631a84681d
[ "MIT" ]
290
2020-05-12T17:35:21.000Z
2022-03-31T15:18:59.000Z
tests/test_app/library/loans/views.py
Pijuli/django-jazzmin
e3f9d45183d58f78bf4c6793969490631a84681d
[ "MIT" ]
166
2020-06-11T10:50:47.000Z
2022-03-24T12:19:00.000Z
from django.views.generic import TemplateView from django.contrib.admin.sites import site class CustomView(TemplateView): template_name = "loans/custom.html" def get_context_data(self, **kwargs): ctx = super().get_context_data(**kwargs) ctx.update(site.each_context(self.request)) retu...
27.25
51
0.721713
794d06b118f73f84830493463806b2128c9f87dc
15,417
py
Python
kubernetes/test/test_io_xk8s_cluster_infrastructure_v1alpha4_aws_cluster.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_io_xk8s_cluster_infrastructure_v1alpha4_aws_cluster.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_io_xk8s_cluster_infrastructure_v1alpha4_aws_cluster.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "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: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
59.755814
281
0.512746
794d070bb58d699ffe9286af979c96b85869f3e6
2,590
py
Python
src/sql/interpretor.py
tsellam/syllabus
112d9d47715a85181bd4afb19acfdd17a895eaad
[ "MIT" ]
null
null
null
src/sql/interpretor.py
tsellam/syllabus
112d9d47715a85181bd4afb19acfdd17a895eaad
[ "MIT" ]
null
null
null
src/sql/interpretor.py
tsellam/syllabus
112d9d47715a85181bd4afb19acfdd17a895eaad
[ "MIT" ]
1
2021-04-15T04:51:05.000Z
2021-04-15T04:51:05.000Z
from collections import * try: import instabase.notebook.ipython.utils as ib ib.import_pyfile('./ops.py', 'ops') except: pass from ops import * def run_op(op, f=lambda t:t): """ This function interprets the current operator and constructs an appropriate callback function to send to the parent operator ...
22.920354
76
0.535907
794d07798c5f1b6841aca064b6aed00ca4aa7b7c
894
py
Python
population/config/urls.py
Zachary-Jackson/population-statistical-visualization
6d29119e8f7d181786293b6bd3f0c1900a1fa6b7
[ "BSD-3-Clause" ]
null
null
null
population/config/urls.py
Zachary-Jackson/population-statistical-visualization
6d29119e8f7d181786293b6bd3f0c1900a1fa6b7
[ "BSD-3-Clause" ]
null
null
null
population/config/urls.py
Zachary-Jackson/population-statistical-visualization
6d29119e8f7d181786293b6bd3f0c1900a1fa6b7
[ "BSD-3-Clause" ]
null
null
null
"""config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
35.76
77
0.704698
794d077b308646d88ea156c101b66acca5300cf4
1,197
py
Python
azure_blob_loadgen.py
lawrencegripper/airflow-testing
e059cd2491a1507c5b759861b6fa7d540be78d19
[ "MIT" ]
null
null
null
azure_blob_loadgen.py
lawrencegripper/airflow-testing
e059cd2491a1507c5b759861b6fa7d540be78d19
[ "MIT" ]
null
null
null
azure_blob_loadgen.py
lawrencegripper/airflow-testing
e059cd2491a1507c5b759861b6fa7d540be78d19
[ "MIT" ]
null
null
null
from datetime import timedelta, datetime import airflow from airflow import DAG from airflow.operators.dagrun_operator import TriggerDagRunOperator from airflow.operators.python_operator import PythonOperator args = { 'owner': 'airflow', 'start_date': airflow.utils.dates.days_ago(2), } dag = DAG( dag_id="...
28.5
142
0.675021
794d07f03002987e9d5736620f67c6413858f67f
143
py
Python
example/validator/development_settings.py
thekashifmalik/dynaconf
2cb4ad53e9dff7ed2582a48ec975fa86780ab911
[ "MIT" ]
null
null
null
example/validator/development_settings.py
thekashifmalik/dynaconf
2cb4ad53e9dff7ed2582a48ec975fa86780ab911
[ "MIT" ]
null
null
null
example/validator/development_settings.py
thekashifmalik/dynaconf
2cb4ad53e9dff7ed2582a48ec975fa86780ab911
[ "MIT" ]
null
null
null
EXAMPLE = True MYSQL_HOST = 'development.com' VERSION = 1 AGE = 15 NAME = 'MIKE' IMAGE_1 = 'aaa' IMAGE_2 = 'bbb' IMAGE_4 = 'a' IMAGE_5 = 'b'
11.916667
30
0.643357
794d0805d7c47b1105492ab28e5f72a701e9f5c8
76,090
py
Python
transiter_ny_mta/transiter_ny_mta/proto/subwaytrips_pb2/transiter_ny_mta_subwaytrips_gtfs_rt_base_pb2.py
Pizza-Ratz/transiter-ny
40091d3ff0c1b9e046b0d3ca708acb81df5019c6
[ "MIT" ]
1
2021-01-25T16:02:14.000Z
2021-01-25T16:02:14.000Z
transiter_ny_mta/transiter_ny_mta/proto/subwaytrips_pb2/transiter_ny_mta_subwaytrips_gtfs_rt_base_pb2.py
Pizza-Ratz/transiter-ny
40091d3ff0c1b9e046b0d3ca708acb81df5019c6
[ "MIT" ]
null
null
null
transiter_ny_mta/transiter_ny_mta/proto/subwaytrips_pb2/transiter_ny_mta_subwaytrips_gtfs_rt_base_pb2.py
Pizza-Ratz/transiter-ny
40091d3ff0c1b9e046b0d3ca708acb81df5019c6
[ "MIT" ]
1
2021-07-02T14:34:04.000Z
2021-07-02T14:34:04.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: transiter-ny-mta-subwaytrips-gtfs-rt-base.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from go...
35.129271
8,003
0.619635
794d08eff63a69dc1d8843339c4b288181abe2e2
2,566
py
Python
Frontend/PULP_node.py
jmihali/dory
dedfb693a887a46d96e8e8a0d28979417a1f8344
[ "Apache-2.0" ]
null
null
null
Frontend/PULP_node.py
jmihali/dory
dedfb693a887a46d96e8e8a0d28979417a1f8344
[ "Apache-2.0" ]
null
null
null
Frontend/PULP_node.py
jmihali/dory
dedfb693a887a46d96e8e8a0d28979417a1f8344
[ "Apache-2.0" ]
null
null
null
# should work even without -*- # -*- coding: utf-8 -*- #!/bin/bash # PULP_node.py # Alessio Burrello <alessio.burrello@unibo.it> # # Copyright (C) 2019-2020 University of Bologna # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You...
34.213333
79
0.636399
794d0935d418bc64e08a73e6441521e398790f74
1,240
py
Python
Python/StationX/1. Python Basics/5functions.py
aguswake1/Courses_and_stuff
841e2a8316c976488c3e40866c336dcbdb57cce2
[ "Apache-2.0" ]
null
null
null
Python/StationX/1. Python Basics/5functions.py
aguswake1/Courses_and_stuff
841e2a8316c976488c3e40866c336dcbdb57cce2
[ "Apache-2.0" ]
null
null
null
Python/StationX/1. Python Basics/5functions.py
aguswake1/Courses_and_stuff
841e2a8316c976488c3e40866c336dcbdb57cce2
[ "Apache-2.0" ]
null
null
null
#Functions DRY = Don't Repeat Yourself """ def say_hi(name = 'Dean', nickname = "puppy"): # Default value #Doc string, function says hi ¿what does this function do or why does it exist? print("hi {}! {}".format(name, nickname)) say_hi() say_hi("Sam", "moose") help(say_hi) # type q to exit the help screen #...
27.555556
153
0.649194
794d093aab7757df27819baa843442744d595760
3,290
py
Python
scrapers/scraper_golea.py
do5562/SLEDIMedO
1abba7e5454b251244213abe3cd8cdadd1c94475
[ "MIT" ]
null
null
null
scrapers/scraper_golea.py
do5562/SLEDIMedO
1abba7e5454b251244213abe3cd8cdadd1c94475
[ "MIT" ]
null
null
null
scrapers/scraper_golea.py
do5562/SLEDIMedO
1abba7e5454b251244213abe3cd8cdadd1c94475
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup as bs import hashlib from database.dbExecutor import dbExecutor import datetime base_url = 'https://www.golea.si' full_url = 'https://www.golea.si/aktualno/page/' #dodaj se stevilo strani - prva stran je 0 headers = {'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 1...
28.362069
149
0.620061
794d099c7ec7c5044056b961b07b9fbf0aee6966
606
py
Python
blog/migrations/0006_auto_20201009_2136.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
blog/migrations/0006_auto_20201009_2136.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
blog/migrations/0006_auto_20201009_2136.py
JiajiaHuang/smonus
95ec209ae3562ea73ee9ce4c22a0d3a3f0975210
[ "Unlicense" ]
null
null
null
# Generated by Django 2.2.1 on 2020-10-09 13:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0005_auto_20201008_1805'), ] operations = [ migrations.AlterField( model_name='article', name='clicked', ...
25.25
80
0.594059
794d0a496f51c8e7d770352e916bf650f283270a
674
py
Python
tests/plugins/tasks/commands/test_remote_command.py
tejasmokashi1992/nornir
7933c7fcca3953037485a5c02b79b7cf15865a23
[ "Apache-2.0" ]
1
2020-07-19T19:54:54.000Z
2020-07-19T19:54:54.000Z
tests/plugins/tasks/commands/test_remote_command.py
tejasmokashi1992/nornir
7933c7fcca3953037485a5c02b79b7cf15865a23
[ "Apache-2.0" ]
null
null
null
tests/plugins/tasks/commands/test_remote_command.py
tejasmokashi1992/nornir
7933c7fcca3953037485a5c02b79b7cf15865a23
[ "Apache-2.0" ]
1
2020-05-26T13:36:18.000Z
2020-05-26T13:36:18.000Z
from nornir.core.exceptions import CommandError from nornir.plugins.tasks import commands from tests import skip pytestmark = skip class Test(object): def test_remote_command(self, nornir): result = nornir.run(commands.remote_command, command="hostname") assert result for h, r in result.i...
30.636364
75
0.676558
794d0a51d89645d03b7513ca368c452011957c47
7,902
py
Python
data_steward/common.py
ratuagga/curation
047b984f20643e21bf3ab1e309903abaf816ecd5
[ "MIT" ]
1
2021-04-05T18:06:25.000Z
2021-04-05T18:06:25.000Z
data_steward/common.py
rfrancis1/curation
b4c0a71408a54b8af0723107fcbd5ce0cfa79438
[ "MIT" ]
null
null
null
data_steward/common.py
rfrancis1/curation
b4c0a71408a54b8af0723107fcbd5ce0cfa79438
[ "MIT" ]
null
null
null
# Python imports import os # Project imports from constants.bq_utils import VALIDATION_DATASET_REGEX from constants.validation.participants.identity_match import REPORT_DIRECTORY_REGEX import jinja2 # AOU required PII tables PII_WILDCARD = 'pii*' PII_NAME = 'pii_name' PII_EMAIL = 'pii_email' PII_PHONE_NUMBER = 'pii_p...
32.385246
112
0.802835
794d0aaa64db85bc24d6fdf70948726225287d3f
2,605
py
Python
papers/CS-F-LTR/src/decision_tree_semi.py
mindspore-ai/contrib
85dccac7a2ba6e962092ecd51aefd962d7f2aeac
[ "Apache-2.0" ]
2
2021-11-10T06:16:55.000Z
2022-02-22T11:30:04.000Z
papers/CS-F-LTR/src/decision_tree_semi.py
mindspore-ai/contrib
85dccac7a2ba6e962092ecd51aefd962d7f2aeac
[ "Apache-2.0" ]
null
null
null
papers/CS-F-LTR/src/decision_tree_semi.py
mindspore-ai/contrib
85dccac7a2ba6e962092ecd51aefd962d7f2aeac
[ "Apache-2.0" ]
1
2022-03-22T06:03:15.000Z
2022-03-22T06:03:15.000Z
"""[summary] """ import pickle import os import numpy as np from sklearn.tree import DecisionTreeClassifier from utils import evaluation from scipy.stats import mode class DecisionTreeSemi: """[summary] """ def __init__(self, train_relevance_labels, train_features, test_relevance_labels, ...
33.831169
91
0.54856
794d0b22d99afa9075fe32c6a957c3565c066b46
1,540
py
Python
samples/generated_samples/dialogflow_generated_dialogflowcx_v3beta1_deployments_list_deployments_sync.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3beta1_deployments_list_deployments_sync.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
samples/generated_samples/dialogflow_generated_dialogflowcx_v3beta1_deployments_list_deployments_sync.py
nicain/python-dialogflow-cx
2292ff540aea24c3c831a5ffe1604c2c022ccb82
[ "Apache-2.0" ]
null
null
null
# -*- 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 or...
34.222222
85
0.771429
794d0c085a26f65be9aa6736bace3173213bdac3
279
py
Python
bootcamp/account/signup/forms.py
alexandrelff/bootcamp
57f7dff02d1dfbfae25fb993ef42710b1b61b7ba
[ "MIT" ]
null
null
null
bootcamp/account/signup/forms.py
alexandrelff/bootcamp
57f7dff02d1dfbfae25fb993ef42710b1b61b7ba
[ "MIT" ]
null
null
null
bootcamp/account/signup/forms.py
alexandrelff/bootcamp
57f7dff02d1dfbfae25fb993ef42710b1b61b7ba
[ "MIT" ]
null
null
null
from allauth.account.forms import SignupForm from captcha.fields import ReCaptchaField class UserSpamForm(SignupForm): reCAPTCHA = ReCaptchaField() field_order = [ "username", "email", "password1", "password2", "reCAPTCHA" ]
23.25
44
0.634409
794d0c4b0521e92018696b3ef0a2269ba019cd37
2,042
py
Python
malcolm/parts/ca/caactionpart.py
dls-controls/github-publish-test
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
[ "Apache-2.0" ]
null
null
null
malcolm/parts/ca/caactionpart.py
dls-controls/github-publish-test
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
[ "Apache-2.0" ]
null
null
null
malcolm/parts/ca/caactionpart.py
dls-controls/github-publish-test
25f6ce1af28eff9930f65e4f2c9fb0474e0b570c
[ "Apache-2.0" ]
null
null
null
import cothread from cothread import catools from malcolm.core import Part, method_takes, REQUIRED, MethodMeta from malcolm.core.vmetas import StringMeta, NumberMeta, BooleanMeta from malcolm.controllers.defaultcontroller import DefaultController @method_takes( "name", StringMeta("name of the created method"), R...
40.039216
79
0.653281
794d0c84aa5e1a93487113f7d468fc8fea0c66cd
4,759
py
Python
predict_styleptb.py
yoonkim/neural-qcfg
c5a2ea05e3108f83e5833f8d0bc368638bab6c9a
[ "MIT" ]
35
2021-09-03T01:47:47.000Z
2022-03-18T00:59:35.000Z
predict_styleptb.py
yoonkim/neural-qcfg
c5a2ea05e3108f83e5833f8d0bc368638bab6c9a
[ "MIT" ]
null
null
null
predict_styleptb.py
yoonkim/neural-qcfg
c5a2ea05e3108f83e5833f8d0bc368638bab6c9a
[ "MIT" ]
1
2021-12-09T11:59:57.000Z
2021-12-09T11:59:57.000Z
#!/usr/bin/env python3 import sys import os import argparse import json import random import shutil import copy import pickle import torch from torch import cuda import numpy as np import time import logging from tokenizer import Tokenizer from utils import * from torch.nn.utils.rnn import pad_sequence parser = argpa...
34.992647
95
0.630595
794d0ddae18317df417802939150574e8eafd5e9
412
py
Python
tilecloud/store/wmts.py
wendymhelson/tilecloud
70f54d24d05e4e350317b12defd56e4eebe1f2c1
[ "Unlicense" ]
null
null
null
tilecloud/store/wmts.py
wendymhelson/tilecloud
70f54d24d05e4e350317b12defd56e4eebe1f2c1
[ "Unlicense" ]
null
null
null
tilecloud/store/wmts.py
wendymhelson/tilecloud
70f54d24d05e4e350317b12defd56e4eebe1f2c1
[ "Unlicense" ]
null
null
null
from tilecloud.layout.wmts import WMTSTileLayout from tilecloud.store.url import URLTileStore class WMTSTileStore(URLTileStore): def __init__( self, url=None, layer=None, style=None, format=None, tile_matrix_set=None, tile_matrix=None, **kwargs ): layout = WMTSTileLayout(url, layer, style, for...
37.454545
109
0.735437
794d0e2ef3fbb74fb662a438dd3ec008f84f7a62
403
py
Python
facebook_lite/wsgi.py
mobolajijohnson13/facebook-all
e1d04694f9ddd7c50b63871aa9a39843d2977971
[ "MIT" ]
null
null
null
facebook_lite/wsgi.py
mobolajijohnson13/facebook-all
e1d04694f9ddd7c50b63871aa9a39843d2977971
[ "MIT" ]
null
null
null
facebook_lite/wsgi.py
mobolajijohnson13/facebook-all
e1d04694f9ddd7c50b63871aa9a39843d2977971
[ "MIT" ]
null
null
null
""" WSGI config for facebook_lite project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
794d0e492cbbab665290c66ad10631e29f150508
1,724
py
Python
Exscript/util/collections.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
226
2015-01-20T19:59:06.000Z
2022-01-02T11:13:01.000Z
Exscript/util/collections.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
155
2015-01-02T07:56:27.000Z
2022-01-09T20:56:19.000Z
Exscript/util/collections.py
saveshodhan/exscript
72718eee3e87b345d5a5255be9824e867e42927b
[ "MIT" ]
114
2015-01-03T11:48:17.000Z
2022-01-26T02:50:43.000Z
from __future__ import unicode_literals, absolute_import from future import standard_library standard_library.install_aliases() from builtins import str from builtins import chr from builtins import range from builtins import object import copy from collections import OrderedDict, Callable, defaultdict class OrderedDe...
31.345455
74
0.642691
794d0ed375dacffa47ccd1e6871e98f506fcfc90
1,385
py
Python
lweutils.py
lucidworks/citibike-demo
57c0ff44e28673e1ebb3dadebbdcd8758e98cbb4
[ "Apache-2.0" ]
2
2017-01-18T00:12:21.000Z
2018-10-04T13:31:33.000Z
lweutils.py
lucidworks/citibike-demo
57c0ff44e28673e1ebb3dadebbdcd8758e98cbb4
[ "Apache-2.0" ]
null
null
null
lweutils.py
lucidworks/citibike-demo
57c0ff44e28673e1ebb3dadebbdcd8758e98cbb4
[ "Apache-2.0" ]
null
null
null
import os import json import httplib2 HTTP_CLIENT = httplib2.Http() ## def get_env(key, default=None): if key in os.environ: return os.environ[key] return default ## def parse_opts(args): data = {} for arg in args: key, val = arg.split('=', 1) # make a list out of any key sp...
21.640625
72
0.555957
794d0f18af99b3e0fb307f54e58251adb3517805
9,437
py
Python
frappe/app.py
stephenBDT/frappe
4756b70812973d38725405aa342a4b436239c296
[ "MIT" ]
null
null
null
frappe/app.py
stephenBDT/frappe
4756b70812973d38725405aa342a4b436239c296
[ "MIT" ]
2
2021-04-25T22:12:37.000Z
2021-04-30T13:31:35.000Z
frappe/app.py
ahashad/frappe-1
3fb0af4c2d99f4365c37734abbbc3715a9afd755
[ "MIT" ]
1
2021-11-13T10:27:20.000Z
2021-11-13T10:27:20.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import os from six import iteritems import logging from werkzeug.local import LocalManager from werkzeug.wrappers import Request, Response from werkzeug.e...
28.859327
103
0.751828
794d0f90924c7a7aa4c9c4fc29622ea7e2257f2c
3,710
py
Python
models/ciee/weather_model.py
phgupta/XBOS
acc59f33600943569d62c145dae11a1775296b44
[ "BSD-2-Clause" ]
27
2016-04-26T17:26:56.000Z
2021-08-22T15:11:55.000Z
models/ciee/weather_model.py
phgupta/XBOS
acc59f33600943569d62c145dae11a1775296b44
[ "BSD-2-Clause" ]
75
2017-02-17T18:00:37.000Z
2019-06-20T04:12:08.000Z
models/ciee/weather_model.py
vishalbelsare/XBOS
1fea0b024d97ae142d97b3a94510403928ed44b7
[ "BSD-2-Clause" ]
20
2017-07-28T14:50:04.000Z
2020-01-16T05:04:54.000Z
from xbos import get_client from xbos.services.mdal import * from xbos.services.hod import HodClient import pandas as pd import pytz from sklearn.metrics import mean_squared_error from dateutil import rrule from datetime import datetime, timedelta # data clients mdal = MDALClient("xbos/mdal") hod = HodClient("xbos/hod...
34.672897
101
0.687871
794d104d5919bdffde44dbd4facd472c2810fae2
13,654
py
Python
Lib/test/test_peepholer.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
854
2017-09-11T16:42:28.000Z
2022-03-27T14:17:09.000Z
Lib/test/test_peepholer.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
164
2017-09-24T20:40:32.000Z
2021-10-30T01:35:05.000Z
Lib/test/test_peepholer.py
livioso/cpython
077061a7b24917aaf31057885c69919c5a553c88
[ "PSF-2.0" ]
73
2017-09-13T18:07:48.000Z
2022-03-17T13:02:29.000Z
import dis import unittest from test.bytecode_helper import BytecodeTestCase def count_instr_recursively(f, opname): count = 0 for instr in dis.get_instructions(f): if instr.opname == opname: count += 1 if hasattr(f, '__code__'): f = f.__code__ for c in f.co_consts: ...
38.570621
81
0.508056
794d1177cae6c33f0bc2ec787b8a58029b889893
379
py
Python
python/testData/inspections/PyMethodParametersInspectionInitSubclass/test.py
jnthn/intellij-community
8fa7c8a3ace62400c838e0d5926a7be106aa8557
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/inspections/PyMethodParametersInspectionInitSubclass/test.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/inspections/PyMethodParametersInspectionInitSubclass/test.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
class QuestBase: def __init_subclass__(cls, swallow, **kwargs): cls.swallow = swallow super().__init_subclass__(**kwargs) class QuestBase: def __init_subclass__(<weak_warning descr="Usually first parameter of such methods is named 'cls'">self</weak_warning>, swallow, **kwargs): self.sw...
37.9
143
0.699208
794d11823cd260f3694a72b71aab70719c3081bb
2,821
py
Python
deeplytough/datasets/custom.py
truatpasteurdotfr/DeeplyTough
fd4737b464c5724312a97654548bcf9cb3b2e258
[ "FTL", "Xnet", "Net-SNMP" ]
105
2019-04-03T20:39:32.000Z
2022-03-25T01:24:46.000Z
deeplytough/datasets/custom.py
truatpasteurdotfr/DeeplyTough
fd4737b464c5724312a97654548bcf9cb3b2e258
[ "FTL", "Xnet", "Net-SNMP" ]
11
2020-01-10T17:16:57.000Z
2022-02-21T12:55:39.000Z
deeplytough/datasets/custom.py
truatpasteurdotfr/DeeplyTough
fd4737b464c5724312a97654548bcf9cb3b2e258
[ "FTL", "Xnet", "Net-SNMP" ]
32
2019-04-07T12:18:58.000Z
2022-02-06T21:51:18.000Z
import os from misc.utils import htmd_featurizer class Custom: """ An arbitrary user dataset Assumes that the dataset is placed in `$STRUCTURE_DATA_DIR/relpath`, containing bunch of protein and pocket structures, which are referred in `pairs.csv`. This file contains a quadruplet on each line indicati...
40.884058
101
0.601914
794d12373a8b3f25a31cfb2d92eef859882ba71e
7,588
py
Python
app/myBasicAsyncioPubSub.py
elsampsa/aws-iot-testbed
0668d3df9b2d9d937001ccf321464e7c4a6470fc
[ "WTFPL" ]
null
null
null
app/myBasicAsyncioPubSub.py
elsampsa/aws-iot-testbed
0668d3df9b2d9d937001ccf321464e7c4a6470fc
[ "WTFPL" ]
null
null
null
app/myBasicAsyncioPubSub.py
elsampsa/aws-iot-testbed
0668d3df9b2d9d937001ccf321464e7c4a6470fc
[ "WTFPL" ]
null
null
null
"""Connecting, subscribing, receiving and sending messages with MQTT client This version uses the callback version of the API (connectAsync, publishAsync, etc.) ..but we turn & twist that version into asyncio (async/await) code that starts to look pretty nice. API reference for the original library: https://s3.amaz...
30.845528
135
0.60622
794d125939ff0c264838a6e9d76b6c99a692c07c
22,714
py
Python
meta_pseudo_labels/training_utils.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
meta_pseudo_labels/training_utils.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
meta_pseudo_labels/training_utils.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 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...
42.219331
80
0.663511
794d137cd47d15940e210c1c23a33d6f90ffb0b7
3,566
py
Python
tests/integration/session/test_sign_out_and_exit.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
tests/integration/session/test_sign_out_and_exit.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
tests/integration/session/test_sign_out_and_exit.py
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
from app.survey_config.business_config import BASE_URL from tests.integration.integration_test_case import IntegrationTestCase SIGN_OUT_URL_PATH = "/sign-out" SIGNED_OUT_URL_PATH = "/signed-out" ACCOUNT_SERVICE_LOG_OUT_URL = "http://localhost/logout" ACCOUNT_SERVICE_LOG_OUT_URL_PATH = "/logout" class TestSaveAndSign...
40.067416
83
0.727145
794d13ce8f3ebeb2ae5d1ab85599214871e13dfd
10,197
py
Python
corehq/apps/smsbillables/interface.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/smsbillables/interface.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
1
2021-06-02T04:45:16.000Z
2021-06-02T04:45:16.000Z
corehq/apps/smsbillables/interface.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from django.db.models.aggregates import Count from couchexport.models import Format from dimagi.utils.dates import DateSpan from corehq.apps.accounting.filters import DateCreatedFilter from corehq.apps.reports.datatables import DataTablesColumn, DataTablesHeader from corehq.apps.reports.generic import GenericTabularR...
37.488971
115
0.620771
794d13df2cc88c7ef5554a121f8cb1abfa053606
1,004
py
Python
beacon/nn/models/sequential.py
dusanerdeljan/beacon
be0bfc324ed2def9fb5d39be39f346b914b73686
[ "MIT" ]
10
2020-04-17T20:26:22.000Z
2021-10-14T03:17:53.000Z
beacon/nn/models/sequential.py
dusanerdeljan/beacon
be0bfc324ed2def9fb5d39be39f346b914b73686
[ "MIT" ]
null
null
null
beacon/nn/models/sequential.py
dusanerdeljan/beacon
be0bfc324ed2def9fb5d39be39f346b914b73686
[ "MIT" ]
2
2020-10-15T12:05:08.000Z
2022-01-23T15:42:36.000Z
from beacon.nn.module import Module class Sequential(Module): def __init__(self, *layers): """ Sequential model. ## Parameters layers: `tuple(Module)` - List of modules ## Example usage ```python from beacon.nn.modules import Sequential from beacon...
26.421053
84
0.531873
794d143ac832a69b52404f6643e4698173c3e6b1
98,213
py
Python
tests/components/mqtt/test_cover.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
tests/components/mqtt/test_cover.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/mqtt/test_cover.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""The tests for the MQTT cover platform.""" from unittest.mock import patch import pytest from homeassistant.components import cover from homeassistant.components.cover import ( ATTR_CURRENT_POSITION, ATTR_CURRENT_TILT_POSITION, ATTR_POSITION, ATTR_TILT_POSITION, ) from homeassistant.components.mqtt ...
32.095752
107
0.591123
794d1639433e46b61c5a932940ac1015c7fa9ee0
593
py
Python
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
5
2019-06-01T13:16:00.000Z
2022-03-02T10:21:59.000Z
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
null
null
null
tomolab/DataSources/PET/__init__.py
TomographyLab/TomoLab
86b9a5894ef1660d7f4de39f560f1f92024b40f8
[ "Apache-2.0" ]
1
2019-06-01T13:19:18.000Z
2019-06-01T13:19:18.000Z
# -*- coding: utf-8 -*- # tomolab # Michele Scipioni # Harvard University, Martinos Center for Biomedical Imaging # University of Pisa __all__ = ['convert_listmode_dicom_to_interfile', 'import_interfile_projection', 'export_interfile_projection', 'import_h5f_projection', 'import_interfile_volume...
37.0625
105
0.812816
794d1659c3149283d507df6f36c3a4dd468bc07d
1,525
py
Python
analyzer/migrations/0001_initial.py
awwong1/semscrape
7e7184a35d6cc96bad9a2e64ab7211b20df4dad6
[ "Apache-2.0" ]
null
null
null
analyzer/migrations/0001_initial.py
awwong1/semscrape
7e7184a35d6cc96bad9a2e64ab7211b20df4dad6
[ "Apache-2.0" ]
null
null
null
analyzer/migrations/0001_initial.py
awwong1/semscrape
7e7184a35d6cc96bad9a2e64ab7211b20df4dad6
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-06 19:19 import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ("crawler", "0004_rssentry_dl_html"), ] operati...
29.901961
87
0.443934
794d167a257241b4ad475e04e3c5f64a99e7b07b
2,008
py
Python
tenable/nessus/permissions.py
tecnobabble/pyTenable
29e7ee65cdee70fbaaade295a9a5055c4d80b17f
[ "MIT" ]
1
2022-03-01T17:17:19.000Z
2022-03-01T17:17:19.000Z
tenable/nessus/permissions.py
tecnobabble/pyTenable
29e7ee65cdee70fbaaade295a9a5055c4d80b17f
[ "MIT" ]
null
null
null
tenable/nessus/permissions.py
tecnobabble/pyTenable
29e7ee65cdee70fbaaade295a9a5055c4d80b17f
[ "MIT" ]
1
2022-03-01T17:17:30.000Z
2022-03-01T17:17:30.000Z
''' Permissions =========== Methods described in this section relate to the the permissions API. These methods can be accessed at ``Nessus.permissions``. .. rst-class:: hide-signature .. autoclass:: PermissionsAPI :members: ''' from typing import Dict, Optional, List from typing_extensions import Literal from ten...
29.529412
74
0.49502
794d168ef4b9a1b8ff2aafa438c8aee846acfaa2
3,375
py
Python
chemreg/lists/tests/factories.py
Chemical-Curation/chemcurator
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
1
2020-10-05T18:02:24.000Z
2020-10-05T18:02:24.000Z
chemreg/lists/tests/factories.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
207
2020-01-30T19:17:44.000Z
2021-02-24T19:45:29.000Z
chemreg/lists/tests/factories.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
null
null
null
from datetime import datetime import factory from chemreg.common.factory import ControlledVocabularyFactory, DjangoSerializerFactory from chemreg.lists.serializers import ( AccessibilityTypeSerializer, ExternalContactSerializer, IdentifierTypeSerializer, ListSerializer, ListTypeSerializer, Rec...
30.133929
87
0.730667
794d173ea68a6bca97c13d15b53a7a43930d651f
10,423
py
Python
skimage/measure/tests/test_fit.py
blink1073/scikit-image
46a8df9c32c5b79d38bc3a1f75dd4fbfeddf98f7
[ "BSD-3-Clause" ]
null
null
null
skimage/measure/tests/test_fit.py
blink1073/scikit-image
46a8df9c32c5b79d38bc3a1f75dd4fbfeddf98f7
[ "BSD-3-Clause" ]
null
null
null
skimage/measure/tests/test_fit.py
blink1073/scikit-image
46a8df9c32c5b79d38bc3a1f75dd4fbfeddf98f7
[ "BSD-3-Clause" ]
1
2019-12-13T15:25:06.000Z
2019-12-13T15:25:06.000Z
import numpy as np from numpy.testing import assert_equal, assert_raises, assert_almost_equal from skimage.measure import LineModelND, CircleModel, EllipseModel, ransac from skimage.transform import AffineTransform from skimage.measure.fit import _dynamic_max_trials from skimage._shared._warnings import expected_warnin...
33.088889
77
0.655473
794d17db7957e3659bb203ff3714f3a1b33655eb
374
py
Python
timeweb/timewebapp/migrations/0012_auto_20210416_2315.py
snapsnap123/TimeWeb
9e3a3459fa71f6edf730addf3c7e15d87b6c80b5
[ "Apache-2.0" ]
1
2021-11-29T18:37:02.000Z
2021-11-29T18:37:02.000Z
timeweb/timewebapp/migrations/0012_auto_20210416_2315.py
renardtnt1/TimeWeb
3684bb2ba368b55a4d50995e7e0e3b9405cba004
[ "Apache-2.0" ]
null
null
null
timeweb/timewebapp/migrations/0012_auto_20210416_2315.py
renardtnt1/TimeWeb
3684bb2ba368b55a4d50995e7e0e3b9405cba004
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.8 on 2021-04-17 06:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('timewebapp', '0011_auto_20210416_2312'), ] operations = [ migrations.RenameField( model_name='settingsmodel', old_name='defn...
19.684211
50
0.596257
794d17e2c844c24ebee9cb94a448a6c8ad243842
1,702
py
Python
odex/section/header.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
7
2018-06-14T10:40:47.000Z
2021-05-18T08:55:34.000Z
odex/section/header.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
1
2020-05-28T08:59:50.000Z
2020-05-28T08:59:50.000Z
odex/section/header.py
callmejacob/dexfactory
2de996927ee9f036b2c7fc6cb04f43ac790f35af
[ "BSD-2-Clause" ]
3
2018-02-28T02:08:06.000Z
2018-09-12T03:09:18.000Z
# -- coding: utf-8 -- from tool import * class OdexHeader(object): """ 头部结构,固定大小0x28 struct header { u1 magic[8]; // 魔数,必须为'dey\n036\n' u4 dex_off; // dex段的字节偏移量 u4 dex_size; // dex段的字节长度 u4 deps_off; // deps段的字节偏移量 u4 deps_size; // deps段的字节长度 u4 opt_off; // opt段的字节偏移量 u4 opt...
31.518519
79
0.582844
794d185553b96ff1311ceba62539896445d54115
28,290
py
Python
salt/cloud/clouds/proxmox.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/proxmox.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
1
2015-09-02T12:49:48.000Z
2015-09-02T19:22:58.000Z
salt/cloud/clouds/proxmox.py
johngrasty/salt
f66b18d8ee52eb988c3dbd8ba3ff6a6173c8aea5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Proxmox Cloud Module ====================== .. versionadded:: 2014.7.0 The Proxmox cloud module is used to control access to cloud providers using the Proxmox system (KVM / OpenVZ). Set up the cloud configuration at ``/etc/salt/cloud.providers`` or ``/etc/salt/cloud.providers.d/proxmox.c...
29.841772
107
0.596783
794d186f38322d8e4be5910f8bb9db43181109f8
12,561
py
Python
audio/edison/mfcc/mfcc_utils.py
noah95/edison
652af8ed4c99c11000a6c0136d770583a5318d8e
[ "Apache-2.0" ]
3
2020-09-16T18:43:40.000Z
2022-03-24T12:09:05.000Z
audio/edison/mfcc/mfcc_utils.py
noah95/edison
652af8ed4c99c11000a6c0136d770583a5318d8e
[ "Apache-2.0" ]
13
2020-11-13T18:50:47.000Z
2022-03-12T00:29:36.000Z
audio/edison/mfcc/mfcc_utils.py
noah95/edison
652af8ed4c99c11000a6c0136d770583a5318d8e
[ "Apache-2.0" ]
2
2020-09-16T18:43:46.000Z
2021-04-14T06:33:53.000Z
# -*- coding: utf-8 -*- # @Author: Noah Huetter # @Date: 2020-04-16 16:23:59 # @Last Modified by: Noah Huetter # @Last Modified time: 2020-05-27 16:31:39 import numpy as np from scipy.fftpack import dct from tqdm import tqdm # mel freq. constants -> https://en.wikipedia.org/wiki/Mel_scale from config import * ...
36.835777
133
0.699944
794d1874242c368798f7f24525a407f9eb8dbe45
95
py
Python
test.py
davidcoe/arvsearth
72e1d938a93eecf0424585d545aa2939d7c075fd
[ "Unlicense" ]
null
null
null
test.py
davidcoe/arvsearth
72e1d938a93eecf0424585d545aa2939d7c075fd
[ "Unlicense" ]
null
null
null
test.py
davidcoe/arvsearth
72e1d938a93eecf0424585d545aa2939d7c075fd
[ "Unlicense" ]
null
null
null
import arvsearth if __name__ == '__main__': import doctest doctest.testmod(arvsearth)
15.833333
30
0.726316
794d188e1cf2569448b86adc3865abef9bd8bcf8
1,290
py
Python
supervisor/bus.py
agners/hassio
42d993575ba94159046112d5ab16fac82ff5fe57
[ "Apache-2.0" ]
584
2020-01-31T18:53:10.000Z
2022-03-29T21:12:15.000Z
supervisor/bus.py
agners/hassio
42d993575ba94159046112d5ab16fac82ff5fe57
[ "Apache-2.0" ]
1,056
2020-01-30T09:59:44.000Z
2022-03-31T10:15:32.000Z
supervisor/bus.py
agners/hassio
42d993575ba94159046112d5ab16fac82ff5fe57
[ "Apache-2.0" ]
295
2020-02-03T11:30:42.000Z
2022-03-31T18:53:14.000Z
"""Bus event system.""" from __future__ import annotations import logging from typing import Any, Awaitable, Callable import attr from .const import BusEvent from .coresys import CoreSys, CoreSysAttributes _LOGGER: logging.Logger = logging.getLogger(__name__) class Bus(CoreSysAttributes): """Handle Bus event ...
29.318182
73
0.670543
794d1a5db76da527d03c25e4deb2280d8b45cbda
1,889
py
Python
djangoProject/assignments/forms.py
swasthikcnayak/team-sankalp-scl-maxo
4b8d66e5866ac954cbc6434da4c68d3e08a146c5
[ "MIT" ]
1
2020-12-27T15:12:06.000Z
2020-12-27T15:12:06.000Z
djangoProject/assignments/forms.py
swasthikcnayak/team-sankalp-scl-maxo
4b8d66e5866ac954cbc6434da4c68d3e08a146c5
[ "MIT" ]
3
2020-12-12T18:00:45.000Z
2021-01-06T09:52:32.000Z
djangoProject/assignments/forms.py
swasthikcnayak/team-sankalp-scl-maxo
4b8d66e5866ac954cbc6434da4c68d3e08a146c5
[ "MIT" ]
4
2020-12-10T13:01:53.000Z
2020-12-29T19:14:09.000Z
from django import forms from assignments.models import Assignment, Submission #Creating assignments class AssignmentCreationForm(forms.ModelForm): class Meta: model = Assignment fields = ['assignment_name', 'start_time', 'end_time', 'maximum_marks', 'description', 'question'] widgets = { ...
41.977778
117
0.663843
794d1b16ac75e4c9977e6b246051ef02897283a9
3,932
py
Python
PYTHONG/GUI/Builder.py
roadkillsanta/JAPY
1a5383d7fc3a1c08c689f609cdcbb7d58fb84956
[ "Apache-2.0" ]
1
2016-10-03T23:00:44.000Z
2016-10-03T23:00:44.000Z
PYTHONG/GUI/Builder.py
roadkillsanta/JAPY
1a5383d7fc3a1c08c689f609cdcbb7d58fb84956
[ "Apache-2.0" ]
null
null
null
PYTHONG/GUI/Builder.py
roadkillsanta/JAPY
1a5383d7fc3a1c08c689f609cdcbb7d58fb84956
[ "Apache-2.0" ]
null
null
null
import Tkinter as tk from Tkinter import * import init, time, os global gridx global gridy root = tk.tk() def textBox(text, lines, chars, row, column, rowspan, columnspan, ipadx, ipady, padx, pady, sticky, self): self = Text(root, height=lines, width=chars) self.grid(row=row, column=column, rowspan=rowspan, ...
29.787879
138
0.623093
794d1ded48b8c8cefd36c4052d8bb72b409ef5a3
1,491
py
Python
backend/prompt/urls.py
yashpatel7025/django-prompt
07fef6967d6bfe1d3bb4f663470e7b26c1aa25c2
[ "MIT" ]
null
null
null
backend/prompt/urls.py
yashpatel7025/django-prompt
07fef6967d6bfe1d3bb4f663470e7b26c1aa25c2
[ "MIT" ]
null
null
null
backend/prompt/urls.py
yashpatel7025/django-prompt
07fef6967d6bfe1d3bb4f663470e7b26c1aa25c2
[ "MIT" ]
null
null
null
"""prompt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
36.365854
99
0.715627
794d1ea78efbba4cd5017f22273c660e0c444f0b
11,321
py
Python
src/onevision/cv/imgproc/filtering/filter.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/cv/imgproc/filtering/filter.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/cv/imgproc/filtering/filter.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ from __future__ import annotations import torch import torch.nn.functional as F from torch import Tensor from onevision.cv.imgproc.filtering.kernels import normalize_kernel2d __all__ = [ "filter2d", "filter2d_separable", "filter3d", ] # MARK: - Fu...
35.712934
88
0.514177
794d1f0bac4c187350a0638abb0682a58cc74e6f
8,119
py
Python
evap/evaluation/tests/test_auth.py
PonderKoKo/EvaP
3e44eb660eec244846fdf10a1460f2e32dcfdef0
[ "MIT" ]
null
null
null
evap/evaluation/tests/test_auth.py
PonderKoKo/EvaP
3e44eb660eec244846fdf10a1460f2e32dcfdef0
[ "MIT" ]
null
null
null
evap/evaluation/tests/test_auth.py
PonderKoKo/EvaP
3e44eb660eec244846fdf10a1460f2e32dcfdef0
[ "MIT" ]
null
null
null
import urllib from unittest.mock import patch from django.conf import settings from django.contrib.auth.models import Group from django.core import mail from django.test import override_settings from django.urls import reverse from model_bakery import baker from evap.evaluation import auth from evap.evaluation.models...
45.61236
118
0.6975
794d20b6c2b3ee1594a307763cfab85c129b5a81
2,093
py
Python
aliyun-python-sdk-das/aliyunsdkdas/request/v20200116/GetQueryOptimizeExecErrorSampleRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-das/aliyunsdkdas/request/v20200116/GetQueryOptimizeExecErrorSampleRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-das/aliyunsdkdas/request/v20200116/GetQueryOptimizeExecErrorSampleRequest.py
yndu13/aliyun-openapi-python-sdk
12ace4fb39fe2fb0e3927a4b1b43ee4872da43f5
[ "Apache-2.0" ]
null
null
null
# 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...
33.758065
90
0.760153
794d21fb1c97d16a25443f88ec5dccad5d4ec07a
1,365
py
Python
test/test_skill_entry.py
NeonDaniel/ovos_skill_manager
4be30da451c5620f12f5029874414a4503981388
[ "Apache-2.0" ]
null
null
null
test/test_skill_entry.py
NeonDaniel/ovos_skill_manager
4be30da451c5620f12f5029874414a4503981388
[ "Apache-2.0" ]
null
null
null
test/test_skill_entry.py
NeonDaniel/ovos_skill_manager
4be30da451c5620f12f5029874414a4503981388
[ "Apache-2.0" ]
null
null
null
import unittest from ovos_skills_manager.skill_entry import SkillEntry # TODO setup a test skill repo, since a random url can simply vanish or be # modified class TestGithubBranchParsing(unittest.TestCase): def test_url(self): branch_from_json = "https://github.com/JarbasSkills/skill-bandcamp" ...
40.147059
115
0.721612
794d22138aff2d55c69b99da4853b8f10a1802d9
20
py
Python
test/__init__.py
superkerokero/hinabe
9fa00d1cbdee2b046426c8ed0c7c269556125337
[ "MIT" ]
26
2018-02-17T02:47:44.000Z
2021-12-30T16:31:56.000Z
test/__init__.py
superkerokero/hinabe
9fa00d1cbdee2b046426c8ed0c7c269556125337
[ "MIT" ]
7
2018-10-09T14:09:10.000Z
2022-02-17T07:25:54.000Z
test/__init__.py
superkerokero/hinabe
9fa00d1cbdee2b046426c8ed0c7c269556125337
[ "MIT" ]
3
2021-09-13T02:20:07.000Z
2022-02-22T06:43:20.000Z
""" Test module """
5
11
0.5
794d2233d344593821b4bd386d38fcb40a2c9dfd
1,305
py
Python
minecraft/backend/trace_player_other.py
Utmost-Happiness-Planet/pyCraft-UHP
dad580e8114e904bbb052fc0d27f1ff8a93dd953
[ "Apache-2.0" ]
5
2022-01-17T05:45:48.000Z
2022-02-19T03:33:02.000Z
minecraft/backend/trace_player_other.py
Utmost-Happiness-Planet/pyCraft-UHP
dad580e8114e904bbb052fc0d27f1ff8a93dd953
[ "Apache-2.0" ]
1
2022-01-15T15:05:23.000Z
2022-01-21T06:02:49.000Z
minecraft/backend/trace_player_other.py
Utmost-Happiness-Planet/pyCraft-UHP
dad580e8114e904bbb052fc0d27f1ff8a93dd953
[ "Apache-2.0" ]
null
null
null
from minecraft.networking.connection import Connection from minecraft.networking.packets.clientbound.play import SpawnPlayerPacket, EntityPositionDeltaPacket from .Player import Player, PlayerSelf def register_connection(c: Connection, player: PlayerSelf): connection = c """ TODO: 实时记录其他玩家的位置信息提交...
38.382353
120
0.634483
794d226d11aeb72089609a2493b953cd6462a253
34,893
py
Python
jupyter/.build/config/jupyter_notebook_config.py
sdwalker62/Log-Diagnostics-Archive
50f898435901e130d9f78059a6fc243a51ad8701
[ "MIT" ]
25
2019-09-10T02:27:51.000Z
2022-03-16T05:28:31.000Z
jupyter/.build/config/jupyter_notebook_config.py
sdwalker62/Log-Diagnostics-Archive
50f898435901e130d9f78059a6fc243a51ad8701
[ "MIT" ]
15
2021-05-07T15:07:32.000Z
2022-03-08T17:32:36.000Z
jupyter/.build/config/jupyter_notebook_config.py
sdwalker62/Log-Diagnostics-Archive
50f898435901e130d9f78059a6fc243a51ad8701
[ "MIT" ]
12
2019-11-05T12:36:41.000Z
2022-02-09T20:26:49.000Z
# Configuration file for jupyter-notebook. #------------------------------------------------------------------------------ # Application(SingletonConfigurable) configuration #------------------------------------------------------------------------------ ## This is an application. ## The date format used by logging f...
38.986592
103
0.701
794d236580930323b9d39b0f32440e15b29271d8
865
py
Python
byceps/services/email/transfer/models.py
homeworkprod/byceps
cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e
[ "BSD-3-Clause" ]
23
2015-08-03T23:28:54.000Z
2018-12-12T20:11:45.000Z
byceps/services/email/transfer/models.py
homeworkprod/byceps
cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e
[ "BSD-3-Clause" ]
1
2018-09-30T18:18:24.000Z
2018-09-30T18:18:24.000Z
byceps/services/email/transfer/models.py
homeworkprod/byceps
cd0f9f37f7b5eb517106ec761acc7e0bdf75e22e
[ "BSD-3-Clause" ]
9
2015-08-06T16:41:36.000Z
2018-09-25T11:17:31.000Z
""" byceps.services.email.transfer.models ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2014-2022 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from dataclasses import dataclass from email.utils import formataddr from typing import Optional fro...
20.595238
72
0.685549
794d23f6922189c75b7751aa5aa16ae22ec0df1c
1,123
py
Python
yt/data_objects/tests/test_clone.py
Carreau/yt
d7e1cf22a8349b8a62b9c569017643ee233d9c4f
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/data_objects/tests/test_clone.py
Carreau/yt
d7e1cf22a8349b8a62b9c569017643ee233d9c4f
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/data_objects/tests/test_clone.py
Carreau/yt
d7e1cf22a8349b8a62b9c569017643ee233d9c4f
[ "BSD-3-Clause-Clear" ]
null
null
null
from yt.testing import assert_array_equal, assert_equal, fake_random_ds def test_clone_sphere(): # Now we test that we can get different radial velocities based on field # parameters. fields = ("density", "velocity_x", "velocity_y", "velocity_z") units = ("g/cm**3", "cm/s", "cm/s", "cm/s") # Get t...
32.085714
76
0.609973
794d2434c2ad823274f70638e6da883a50cd1ff1
2,963
py
Python
pra_request_tracker/pra_request_tracker/record_requests/tests/test_models.py
SeattleDSA/pra-request-tracker
0c4c628d249efc579faaa8f1d352fa0d120a510c
[ "MIT" ]
1
2021-09-30T20:25:49.000Z
2021-09-30T20:25:49.000Z
pra_request_tracker/pra_request_tracker/record_requests/tests/test_models.py
SeattleDSA/pra-request-tracker
0c4c628d249efc579faaa8f1d352fa0d120a510c
[ "MIT" ]
14
2021-06-29T18:04:09.000Z
2021-07-23T20:15:46.000Z
pra_request_tracker/pra_request_tracker/record_requests/tests/test_models.py
SeattleDSA/pra-request-tracker
0c4c628d249efc579faaa8f1d352fa0d120a510c
[ "MIT" ]
null
null
null
from django.test import TestCase from ..models import Agency, RecordRequest, RecordRequestFile from .factories import ( AgencyFactory, CorrespondenceFactory, RecordRequestFactory, RecordRequestFileFactory, ) class AgencyTestCase(TestCase): def test_agency_request_count(self): agency = Age...
32.206522
88
0.703341
794d25035da68882bb0e87718b5181168167842e
21,726
py
Python
docker/third-party/nnUNet/nnunet/network_architecture/generic_UNet.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
docker/third-party/nnUNet/nnunet/network_architecture/generic_UNet.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
docker/third-party/nnUNet/nnunet/network_architecture/generic_UNet.py
LucasFidon/trustworthy-ai-fetal-brain-segmentation
84959da54d8c2fb156da2b06cca30fa31a1c926d
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
46.324094
180
0.626715
794d2577c8dc7b5115f2c003d637576be8634a86
1,956
py
Python
server/db_util.py
sherryx8/Shortcut
4ccc3fef7965406eb72205c707f46998af1fdd6a
[ "Apache-2.0" ]
null
null
null
server/db_util.py
sherryx8/Shortcut
4ccc3fef7965406eb72205c707f46998af1fdd6a
[ "Apache-2.0" ]
null
null
null
server/db_util.py
sherryx8/Shortcut
4ccc3fef7965406eb72205c707f46998af1fdd6a
[ "Apache-2.0" ]
null
null
null
from texttable import Texttable def pretty_print_results(cur, rv): t = Texttable() colnames = [col[0] for col in cur.description] t.add_rows([colnames] + rv) print t.draw() def make_dicts(cursor, row): """ Turn query results into dictionaries keyed by column name """ ...
24.45
71
0.557771
794d258be85f140b8af1b9f6438ea4b7f067e9d8
13,931
py
Python
viadot/flows/supermetrics_to_adls.py
PanczykowskiK/viadot
44e269790b3debb02318ff4c4f07638b3a37d800
[ "MIT" ]
null
null
null
viadot/flows/supermetrics_to_adls.py
PanczykowskiK/viadot
44e269790b3debb02318ff4c4f07638b3a37d800
[ "MIT" ]
null
null
null
viadot/flows/supermetrics_to_adls.py
PanczykowskiK/viadot
44e269790b3debb02318ff4c4f07638b3a37d800
[ "MIT" ]
null
null
null
import json import os import shutil from pathlib import Path from typing import Any, Dict, List, Union import pandas as pd import pendulum import prefect from prefect import Flow, Task, apply_map, task from prefect.backend import set_key_value from prefect.tasks.secrets import PrefectSecret from prefect.utilities impo...
39.916905
177
0.658316
794d25a7c42e13c36332e8c16e8fd9fe705bba82
14,628
py
Python
docs/conf.py
appsembler/LingoX
70c3e0080fda72443161d9c5d4927405cbe14919
[ "MIT" ]
null
null
null
docs/conf.py
appsembler/LingoX
70c3e0080fda72443161d9c5d4927405cbe14919
[ "MIT" ]
8
2018-05-23T15:00:40.000Z
2019-02-26T07:19:45.000Z
docs/conf.py
appsembler/LingoX
70c3e0080fda72443161d9c5d4927405cbe14919
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=invalid-name """ localizerx documentation build configuration file. This file is execfile()d with the current directory set to its containing dir. Note that not all possible configuration values are present in this autogenerated file. All configuration values have a default;...
28.852071
120
0.708641
794d26dc5503dd677feb335d2df7d3116df66b62
185
py
Python
project/api/serializers/city.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
null
null
null
project/api/serializers/city.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-06-07T14:06:05.000Z
2021-06-18T16:27:29.000Z
project/api/serializers/city.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-07-27T20:40:18.000Z
2021-09-12T16:48:19.000Z
from rest_framework import serializers from ..models import City class CitySerializer(serializers.ModelSerializer): class Meta: exclude = ['region'] model = City
18.5
50
0.708108
794d27cee69624dda6864e452cd6acfa7d81f3e2
1,637
py
Python
core/tests/performance_tests/exploration_player_test.py
bching/oppia
9e9b6d756859b8bc1e46f88a1be8736f8398a8d8
[ "Apache-2.0" ]
3
2021-06-26T09:45:19.000Z
2021-11-17T11:11:39.000Z
core/tests/performance_tests/exploration_player_test.py
bching/oppia
9e9b6d756859b8bc1e46f88a1be8736f8398a8d8
[ "Apache-2.0" ]
7
2019-08-20T08:30:43.000Z
2022-02-12T18:47:57.000Z
core/tests/performance_tests/exploration_player_test.py
bching/oppia
9e9b6d756859b8bc1e46f88a1be8736f8398a8d8
[ "Apache-2.0" ]
1
2021-08-04T13:03:16.000Z
2021-08-04T13:03:16.000Z
# Copyright 2016 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 required by applicable ...
36.377778
74
0.772755
794d28850ddc86cf5e794ac63077d54bdf11f3a3
1,983
py
Python
autotest/gdrivers/dipex.py
mihadyuk/gdal
d4627981715b82ff368547ef00ef26e0b9207048
[ "MIT" ]
null
null
null
autotest/gdrivers/dipex.py
mihadyuk/gdal
d4627981715b82ff368547ef00ef26e0b9207048
[ "MIT" ]
null
null
null
autotest/gdrivers/dipex.py
mihadyuk/gdal
d4627981715b82ff368547ef00ef26e0b9207048
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test DIPEx driver # Author: Even Rouault, <even dot rouault at mines dash paris dot org> # #######################################################################...
35.410714
79
0.621281
794d29a5de5b42198864b009ff5c65ea111b8408
1,087
py
Python
bin/updatenotable.py
doksu/TA-updatenotable
b6f017cacff417a2612703cb439946a748f8b857
[ "MIT" ]
1
2020-12-10T16:47:10.000Z
2020-12-10T16:47:10.000Z
bin/updatenotable.py
doksu/TA-updatenotable
b6f017cacff417a2612703cb439946a748f8b857
[ "MIT" ]
null
null
null
bin/updatenotable.py
doksu/TA-updatenotable
b6f017cacff417a2612703cb439946a748f8b857
[ "MIT" ]
null
null
null
import splunk.Intersplunk, splunk.rest # The following is derived from Luke Murphey's post: https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-edit-notable-events-in-es-programatically.html keywords, options = splunk.Intersplunk.getKeywordsAndOptions() results, dummyresults, settings = splunk.Intersplunk.getOrg...
35.064516
156
0.713891
794d2b267d0bbcfba91f58c57c889ca84c4c0baf
3,417
py
Python
utilities/test/test_postgres_util.py
diego-hermida/ClimateChangeApp
576d49ec5b76f709cc86874ffb03f4a38dbbbbfd
[ "MIT" ]
2
2018-07-01T20:36:46.000Z
2019-11-01T22:47:06.000Z
utilities/test/test_postgres_util.py
diego-hermida/ClimateChangeApp
576d49ec5b76f709cc86874ffb03f4a38dbbbbfd
[ "MIT" ]
1
2021-06-10T20:28:53.000Z
2021-06-10T20:28:53.000Z
utilities/test/test_postgres_util.py
diego-hermida/ClimateChangeApp
576d49ec5b76f709cc86874ffb03f4a38dbbbbfd
[ "MIT" ]
null
null
null
from copy import deepcopy from unittest import TestCase, mock from unittest.mock import Mock import utilities.postgres_util _GLOBAL_CONFIG = deepcopy(utilities.postgres_util.GLOBAL_CONFIG) _GLOBAL_CONFIG['POSTGRES_DATABASE'] = _GLOBAL_CONFIG['POSTGRES_DATABASE'] + '_test' _GLOBAL_CONFIG['POSTGRES_USERNAME'] = _GLOBAL...
44.376623
120
0.689494
794d2bb5660160e76ef13703312b94dd3ec4d9b7
1,398
py
Python
epsilonGreedy/greedyOptimistic.py
JackSchaible/sulphur
1d054131cfc427c0e962d95a32203be075cf730c
[ "MIT" ]
null
null
null
epsilonGreedy/greedyOptimistic.py
JackSchaible/sulphur
1d054131cfc427c0e962d95a32203be075cf730c
[ "MIT" ]
null
null
null
epsilonGreedy/greedyOptimistic.py
JackSchaible/sulphur
1d054131cfc427c0e962d95a32203be075cf730c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import bandit class greedyOptimistic: def __init__(self): self.payoutModifier1 = 1.0 self.payoutModifier2 = 2.0 self.payoutModifier3 = 3.0 self.iterations = 10000 self.means = [10, 10, 10] self.bandits = [bandit.Ba...
31.066667
134
0.612303
794d2ca5430bb4706bc35727ca97fade2867c566
551
py
Python
manage.py
alternativebackend/alternative_backend
d27ea4c10eb039e79080be2ced34f22e2558bdf7
[ "MIT" ]
null
null
null
manage.py
alternativebackend/alternative_backend
d27ea4c10eb039e79080be2ced34f22e2558bdf7
[ "MIT" ]
null
null
null
manage.py
alternativebackend/alternative_backend
d27ea4c10eb039e79080be2ced34f22e2558bdf7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "alternative_backend.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import ...
34.4375
83
0.693285
794d2d03334a3dfcb866f33008c4e5055e29500e
1,012
py
Python
vars/generateAccounts.py
awalende/workshop-image
3b219733c2a9b28e423bad66ed08f2d789e1b3c0
[ "Apache-2.0" ]
null
null
null
vars/generateAccounts.py
awalende/workshop-image
3b219733c2a9b28e423bad66ed08f2d789e1b3c0
[ "Apache-2.0" ]
null
null
null
vars/generateAccounts.py
awalende/workshop-image
3b219733c2a9b28e423bad66ed08f2d789e1b3c0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import argparse import sys import random import string import hashlib import crypt from passlib.hash import sha512_crypt def randomString(stringLength=6): """Generate a random string of letters and digits """ lettersAndDigits = string.ascii_lowercase + string.digits return ''.join(ran...
25.3
80
0.619565
794d2d31817e82a43a2daaa31b9a081e86171541
16,954
py
Python
benchmarks/benchmark.py
Dotnester/estee
55c0834db3d7da407b7c37d46fa41b5b563e2bbe
[ "MIT" ]
4
2018-09-26T07:57:36.000Z
2021-05-13T10:35:34.000Z
benchmarks/benchmark.py
Dotnester/estee
55c0834db3d7da407b7c37d46fa41b5b563e2bbe
[ "MIT" ]
2
2018-11-06T21:01:14.000Z
2019-03-21T22:06:52.000Z
benchmarks/benchmark.py
Dotnester/estee
55c0834db3d7da407b7c37d46fa41b5b563e2bbe
[ "MIT" ]
4
2018-10-02T20:42:05.000Z
2019-02-19T14:49:57.000Z
import collections import itertools import multiprocessing import os import random import re import signal import sys import threading import time import traceback import click import numpy import pandas as pd from tqdm import tqdm from estee.common import imode from estee.schedulers import WorkStealingScheduler from...
33.374016
99
0.608411
794d2d4831f01310526020161cca56628c08fa26
3,065
py
Python
spotijjjy/abc_client.py
maxtarasuik/Spotijjjy
c08abedcec129afab29eaa58c04243cbf8600dd9
[ "MIT" ]
null
null
null
spotijjjy/abc_client.py
maxtarasuik/Spotijjjy
c08abedcec129afab29eaa58c04243cbf8600dd9
[ "MIT" ]
null
null
null
spotijjjy/abc_client.py
maxtarasuik/Spotijjjy
c08abedcec129afab29eaa58c04243cbf8600dd9
[ "MIT" ]
null
null
null
import json import requests from datetime import datetime, timedelta import difflib from datetime import datetime from spotijjjy import SongService ##### APC Config ##### __ABC_URL__ = "https://music.abcradio.net.au/api/v1/plays/search.json?" __STATIONS__ = ["doublej", "triplej", "jazz"] __JJJ_SEARCH_LIMIT__...
38.3125
153
0.575204
794d2debbfc3a19eb39de114c9e136c439ee98e0
59
py
Python
features/__init__.py
Fumiya-Matsumoto/telecom_customer
18d2109c327765155ea82e746a3791185f10f8fb
[ "RSA-MD" ]
null
null
null
features/__init__.py
Fumiya-Matsumoto/telecom_customer
18d2109c327765155ea82e746a3791185f10f8fb
[ "RSA-MD" ]
null
null
null
features/__init__.py
Fumiya-Matsumoto/telecom_customer
18d2109c327765155ea82e746a3791185f10f8fb
[ "RSA-MD" ]
null
null
null
from .base import Feature, get_arguments, generate_features
59
59
0.864407
794d2e8d8ccab1c7abe9145e49cec52e6e31be28
31,869
py
Python
geoist/catalog/QCmulti.py
irxat/geoist
658aadab8074bffcbc6b3861671d35b3012502e9
[ "MIT" ]
53
2018-11-17T03:29:55.000Z
2022-03-18T02:36:25.000Z
geoist/catalog/QCmulti.py
irxat/geoist
658aadab8074bffcbc6b3861671d35b3012502e9
[ "MIT" ]
3
2018-11-28T11:37:51.000Z
2019-01-30T01:52:45.000Z
geoist/catalog/QCmulti.py
irxat/geoist
658aadab8074bffcbc6b3861671d35b3012502e9
[ "MIT" ]
35
2018-11-17T03:29:57.000Z
2022-03-23T17:57:06.000Z
#!/usr/bin/env python """Code for creating figures comparing two catalogs spanning the same time frame. Run `QCmulti.py -h` for command line options. """ import os import sys import errno import argparse import time import shutil from datetime import datetime from math import sqrt, degrees, radians, sin, cos, atan2, pi...
41.281088
109
0.561204
794d2f440a4a094a0bdf3b48ee2135d957481b0d
1,950
py
Python
webapps/nfs/rFile/NFPportable/spinal/pyscripts/go_association_experimental.py
xuwenjian85/NFPscanner-webserver
456208dbc526a7ce59b41e68051a3a28475c74f2
[ "Apache-2.0" ]
null
null
null
webapps/nfs/rFile/NFPportable/spinal/pyscripts/go_association_experimental.py
xuwenjian85/NFPscanner-webserver
456208dbc526a7ce59b41e68051a3a28475c74f2
[ "Apache-2.0" ]
null
null
null
webapps/nfs/rFile/NFPportable/spinal/pyscripts/go_association_experimental.py
xuwenjian85/NFPscanner-webserver
456208dbc526a7ce59b41e68051a3a28475c74f2
[ "Apache-2.0" ]
null
null
null
import sys class GoAssociation: def __init__(self, id_filename, go_filename, out_filename): outfile = open(out_filename, "w") idtoname = open(id_filename) gofile = open(go_filename) M1 = {} for line in idtoname: cols = line.split() M1[cols[0]] = [] for name in cols: M1[cols[0]].append(name) ...
27.857143
118
0.598974
794d2fe9e536cf8b2ae96e4539cf9a964fa94fe5
798
py
Python
src_dataset/dataset_parallel.py
jamesrchen/Combinatorial-3D-Shape-Generation
0f2dc9a4c6f5844cbce53fe4f2b7244cadf6231e
[ "MIT" ]
null
null
null
src_dataset/dataset_parallel.py
jamesrchen/Combinatorial-3D-Shape-Generation
0f2dc9a4c6f5844cbce53fe4f2b7244cadf6231e
[ "MIT" ]
null
null
null
src_dataset/dataset_parallel.py
jamesrchen/Combinatorial-3D-Shape-Generation
0f2dc9a4c6f5844cbce53fe4f2b7244cadf6231e
[ "MIT" ]
null
null
null
from geometric_primitives import brick from geometric_primitives import bricks from geometric_primitives import rules import dataset_common if __name__ == '__main__': list_rules = rules.LIST_RULES_2_4 print(list_rules) list_bricks_ = [] for rule in list_rules: bricks_ = bricks.Bricks(100) ...
26.6
81
0.657895
794d30287bc2ece6b4a0e1666e47022d2e658a34
87,953
py
Python
virtual/lib/python3.6/site-packages/numpy/core/tests/test_regression.py
jameskomo/coffee-data-visualization
6b0812c8791c9cbcb264bafae0cf1d02a6ea30b8
[ "MIT" ]
1
2019-09-20T04:38:37.000Z
2019-09-20T04:38:37.000Z
virtual/lib/python3.6/site-packages/numpy/core/tests/test_regression.py
jameskomo/coffee-data-visualization
6b0812c8791c9cbcb264bafae0cf1d02a6ea30b8
[ "MIT" ]
1
2021-06-02T00:41:48.000Z
2021-06-02T00:41:48.000Z
virtual/lib/python3.6/site-packages/numpy/core/tests/test_regression.py
jameskomo/coffee-data-visualization
6b0812c8791c9cbcb264bafae0cf1d02a6ea30b8
[ "MIT" ]
null
null
null
from __future__ import division, absolute_import, print_function import copy import sys import gc import tempfile import pytest from os import path from io import BytesIO from itertools import chain import numpy as np from numpy.testing import ( assert_, assert_equal, IS_PYPY, assert_almost_equal, ass...
35.42207
93
0.543654
794d30d10afb6110883e21e1cb40fee08c400786
825
py
Python
cotidia/crm/menu.py
guillaumepiot/cotidia-crm
9f46d3b4fb1bc84f553c649e121b945e68a0bdab
[ "BSD-3-Clause" ]
null
null
null
cotidia/crm/menu.py
guillaumepiot/cotidia-crm
9f46d3b4fb1bc84f553c649e121b945e68a0bdab
[ "BSD-3-Clause" ]
null
null
null
cotidia/crm/menu.py
guillaumepiot/cotidia-crm
9f46d3b4fb1bc84f553c649e121b945e68a0bdab
[ "BSD-3-Clause" ]
null
null
null
from django.urls import reverse from cotidia.crm.conf import settings def admin_menu(context): menu_list = [] if settings.CRM_ENABLE_ACTION: menu_list.append({ "text": "Actions", "url": reverse("crm-admin:action-list"), "permissions": ["crm.add_action", "crm.chang...
29.464286
69
0.578182
794d3190aba1765f850c7f6a0334b66a011ebcd5
13,420
py
Python
utils/eulerangles.py
jinyier/ai_pointnet_attack
4ef16a898f99e825c445ebc7aad7ba1fd953f8f0
[ "MIT" ]
4
2020-04-23T01:26:19.000Z
2022-03-09T08:04:35.000Z
utils/eulerangles.py
jinyier/ai_pointnet_attack
4ef16a898f99e825c445ebc7aad7ba1fd953f8f0
[ "MIT" ]
1
2021-12-26T23:56:38.000Z
2021-12-26T23:56:38.000Z
utils/eulerangles.py
jinyier/ai_pointnet_attack
4ef16a898f99e825c445ebc7aad7ba1fd953f8f0
[ "MIT" ]
null
null
null
# emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the NiBabel package for the # copyright and license terms. # ### ### ### #...
32.02864
99
0.613189
794d3383b89171f69db008f51626552173254cae
370
py
Python
wxpusher/tests/config.py
hnauto/wxpusher-sdk-python
6787c0bdd7bef673b1a3f56984f6587c07bb0546
[ "Apache-2.0" ]
null
null
null
wxpusher/tests/config.py
hnauto/wxpusher-sdk-python
6787c0bdd7bef673b1a3f56984f6587c07bb0546
[ "Apache-2.0" ]
null
null
null
wxpusher/tests/config.py
hnauto/wxpusher-sdk-python
6787c0bdd7bef673b1a3f56984f6587c07bb0546
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Unittest configuration sample. File: config.sample.py Author: huxuan Email: i(at)huxuan.org """ # the `appToken` for test. TOKEN = ${{ secrets.WX_PUSHER_TOKEN }} # the `uids` for test, note that it should be a list. UIDS = [ '', ] # the `topic_ids` for test, note ...
17.619048
58
0.637838
794d33882ffc01806d6ca32b4d020e2736af1b0a
65
py
Python
utils/hrnet/__init__.py
wufanyou/Traffic4Cast-2020-TLab
5226bb1d2db40badb33c6b0ffe659fc6e9dca544
[ "Apache-2.0" ]
3
2020-11-03T16:04:22.000Z
2021-05-22T15:38:24.000Z
utils/hrnet/__init__.py
wufanyou/Traffic4Cast-2020-TLab
5226bb1d2db40badb33c6b0ffe659fc6e9dca544
[ "Apache-2.0" ]
null
null
null
utils/hrnet/__init__.py
wufanyou/Traffic4Cast-2020-TLab
5226bb1d2db40badb33c6b0ffe659fc6e9dca544
[ "Apache-2.0" ]
null
null
null
from .config import get_cfg from .seg_hrnet import get_seg_model
21.666667
36
0.846154
794d342da46bb612a35842b1ed51c3d6d5287f97
2,376
py
Python
src/chat/consumers.py
ckz8780/django_channels
63518d7b9362f73e7222a519a1ae0dd4a0544793
[ "MIT" ]
null
null
null
src/chat/consumers.py
ckz8780/django_channels
63518d7b9362f73e7222a519a1ae0dd4a0544793
[ "MIT" ]
null
null
null
src/chat/consumers.py
ckz8780/django_channels
63518d7b9362f73e7222a519a1ae0dd4a0544793
[ "MIT" ]
null
null
null
import asyncio import json from django.contrib.auth import get_user_model from channels.consumer import AsyncConsumer from channels.db import database_sync_to_async from .models import Thread, ChatMessage class ChatConsumer(AsyncConsumer): async def websocket_connect(self, event): # When the socket connec...
33
86
0.617424
794d351df84fc9304e962f21f1b81b28f13b1aa0
3,106
py
Python
tests/ut/python/metrics/test_cosine_similarity.py
GuoSuiming/mindspore
48afc4cfa53d970c0b20eedfb46e039db2a133d5
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/ut/python/metrics/test_cosine_similarity.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/ut/python/metrics/test_cosine_similarity.py
forwhat461/mindspore
59a277756eb4faad9ac9afcc7fd526e8277d4994
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2021 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...
32.354167
118
0.690277
794d358ea6ad1bc78020915df6010de98c8872f6
547
py
Python
manage.py
lixiaolongxl/DBlog
7de45c9d571499109f46c1e05be764062e7554f9
[ "MIT" ]
null
null
null
manage.py
lixiaolongxl/DBlog
7de45c9d571499109f46c1e05be764062e7554f9
[ "MIT" ]
11
2020-03-24T17:45:37.000Z
2022-03-12T00:04:10.000Z
manage.py
lixiaolongxl/DBlog
7de45c9d571499109f46c1e05be764062e7554f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'eastnotes.settings.local') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Djan...
34.1875
79
0.689214
794d361ffaeae35d1cd85a3f772c74710c6c991b
9,267
py
Python
ur3_man_bringup/script/robotiq_2f_85_driver.py
I-Quotient-Robotics/ur3_man
0d87f553c3f5680289094ed3262b224f80f032a6
[ "MIT" ]
1
2019-12-07T11:35:36.000Z
2019-12-07T11:35:36.000Z
ur3_man_bringup/script/robotiq_2f_85_driver.py
I-Quotient-Robotics/ur3_man
0d87f553c3f5680289094ed3262b224f80f032a6
[ "MIT" ]
null
null
null
ur3_man_bringup/script/robotiq_2f_85_driver.py
I-Quotient-Robotics/ur3_man
0d87f553c3f5680289094ed3262b224f80f032a6
[ "MIT" ]
1
2019-12-07T12:01:13.000Z
2019-12-07T12:01:13.000Z
#!/usr/bin/env python """-------------------------------------------------------------------- COPYRIGHT 2015 Stanley Innovation Inc. Software License Agreement: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistribu...
43.303738
134
0.616704
794d3669b73656690d9655403d17fe8f79925a67
2,245
py
Python
rsa/txx.py
userElaina/hg8
235dbeca3d58b94e1378ac4240ed8424791ae561
[ "MIT" ]
null
null
null
rsa/txx.py
userElaina/hg8
235dbeca3d58b94e1378ac4240ed8424791ae561
[ "MIT" ]
null
null
null
rsa/txx.py
userElaina/hg8
235dbeca3d58b94e1378ac4240ed8424791ae561
[ "MIT" ]
null
null
null
import math import sympy from Crypto.Util.number import * e = 65537 def get_p(): x = 11124440021748127159092076861405454814981575144744508857178576572929321435002942998531420985771090167262256877805902135304112271641074498386662361391760451 y = 1112444002174812715909207686140545481498157514474450885...
59.078947
786
0.838753
794d36e4400fb05c98982de2626e267a68185fd3
1,178
py
Python
embedding/_fasttext/_emb_matrix_fasttext.py
vd1371/CBSA
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
[ "MIT" ]
null
null
null
embedding/_fasttext/_emb_matrix_fasttext.py
vd1371/CBSA
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
[ "MIT" ]
null
null
null
embedding/_fasttext/_emb_matrix_fasttext.py
vd1371/CBSA
f2b3f03c91ccd9ec02c2331f43573d7d6e72fd47
[ "MIT" ]
null
null
null
import os import numpy as np from multiprocessing import current_process if current_process().name == "MainProcess": from tensorflow.keras.preprocessing.text import Tokenizer from ._load_embedding import _load_embedding from DataLoader import load_unique_words def emb_matrix_fasttext(X, **params): emb_dimen...
31
86
0.716469
794d373d4b031511167633d77764cf229ee06434
5,143
py
Python
azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_os_profile.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_os_profile.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
2
2016-09-30T21:40:24.000Z
2017-11-10T18:16:18.000Z
azure-mgmt-compute/azure/mgmt/compute/v2016_04_30_preview/models/virtual_machine_scale_set_os_profile.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
60.505882
185
0.685009
794d374c7379fa7888f12f42eec83ee89db77904
391
py
Python
canvas.py
emile-bernard/OpenCV-Mp4-HSV
c73b4338f5c38fc1027380c3f545f33ace432e2c
[ "MIT" ]
1
2020-07-23T14:13:39.000Z
2020-07-23T14:13:39.000Z
canvas.py
emile-bernard/OpenCV_Real_Time_RBG_Histogram
a40fe620b6e6d0e53647d40f95ba743e01342c40
[ "MIT" ]
null
null
null
canvas.py
emile-bernard/OpenCV_Real_Time_RBG_Histogram
a40fe620b6e6d0e53647d40f95ba743e01342c40
[ "MIT" ]
null
null
null
import tkinter as tk class Canvas: def __init__(self, parent, videoCapture): self.canvas = tk.Canvas(parent, width = videoCapture.getWidth(), height = videoCapture.getHeight()) self.draw() def draw(self): self.canvas.pack(side = "left") def createImage(self, x, y, image, anchor): ...
30.076923
107
0.652174
794d3823e703a9efb3834939777f06af7e8c6d00
4,665
py
Python
utils/lecture_utils.py
Hermes-Berkeley-Org/hermes-resource-server
ff8ac3a72e29db385c7def0c107e2d9d1d8aa9ed
[ "MIT" ]
1
2020-05-25T04:58:00.000Z
2020-05-25T04:58:00.000Z
utils/lecture_utils.py
Hermes-Berkeley-Org/hermes-resource-server
ff8ac3a72e29db385c7def0c107e2d9d1d8aa9ed
[ "MIT" ]
21
2018-09-01T17:53:18.000Z
2021-04-30T20:36:30.000Z
utils/lecture_utils.py
Hermes-Berkeley-Org/hermes-resource-server
ff8ac3a72e29db385c7def0c107e2d9d1d8aa9ed
[ "MIT" ]
null
null
null
import requests from requests.exceptions import RequestException, ConnectionError from urllib.parse import urlparse, parse_qs from utils.errors import ( InvalidLectureLinkError, VideoParseError, NoCourseFoundError, YoutubeError, LectureAlreadyExists ) from utils.youtube_client import YoutubeClient from utils.d...
36.732283
83
0.650375
794d3846effd44b4d6eb167fac2bc8769bfb543d
215
py
Python
distrib/package.py
Bauer-C/opengl-exercises
1660347844b6703dd3317d9b8f9344028e94de3e
[ "WTFPL" ]
3
2017-11-21T08:05:12.000Z
2021-09-23T12:39:53.000Z
distrib/package.py
Bauer-C/opengl-exercises
1660347844b6703dd3317d9b8f9344028e94de3e
[ "WTFPL" ]
1
2022-02-02T22:03:19.000Z
2022-02-08T00:11:18.000Z
distrib/package.py
Bauer-C/opengl-exercises
1660347844b6703dd3317d9b8f9344028e94de3e
[ "WTFPL" ]
5
2017-11-28T08:04:15.000Z
2022-01-13T23:27:46.000Z
from utils import * HgUpdate33() version = raw_input("Enter version number (ex : 0003) :") Package("OpenGL-tutorial_v"+version+"_33.zip"); HgUpdate21() Package("OpenGL-tutorial_v"+version+"_21.zip"); HgUpdate33()
23.888889
57
0.730233
794d38502552460bfbdab3734e3dd6dc86cd4196
1,695
py
Python
terngrad/inception/pruning_common.py
feifeibear/dist-tensorflow
af6ae012f1454aff2c58d26808705e01ed2f1376
[ "Apache-2.0" ]
null
null
null
terngrad/inception/pruning_common.py
feifeibear/dist-tensorflow
af6ae012f1454aff2c58d26808705e01ed2f1376
[ "Apache-2.0" ]
null
null
null
terngrad/inception/pruning_common.py
feifeibear/dist-tensorflow
af6ae012f1454aff2c58d26808705e01ed2f1376
[ "Apache-2.0" ]
2
2019-06-04T07:28:27.000Z
2020-11-01T22:20:29.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf def pruning_gradients(grads_and_vars, percent, residual_grads): """ pruning grads according to the percent. """ gradients, variables = zip(*grads_and_vars) pruned_gr...
40.357143
91
0.688496