hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
b5425155b264243a2c541eb54beb0002facd6762
10,688
py
Python
ass3-airplane_det/DOTA_devkit/dota-v1.5_evaluation_task1.py
Rooooyy/BUAA_PR
5b4d12dc786c3fdc469ae59e0b099e8095aee550
[ "BSD-2-Clause" ]
2
2021-06-09T16:21:53.000Z
2021-08-30T02:31:56.000Z
DOTA_devkit/dota-v1.5_evaluation_task1.py
jedibobo/S2ANet-custom-dataset
869b196d4c33713a5c61bd80064d10a453fb76ef
[ "Apache-2.0" ]
null
null
null
DOTA_devkit/dota-v1.5_evaluation_task1.py
jedibobo/S2ANet-custom-dataset
869b196d4c33713a5c61bd80064d10a453fb76ef
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------- # dota_evaluation_task1 # Licensed under The MIT License [see LICENSE for details] # Written by Jian Ding, based on code from Bharath Hariharan # -------------------------------------------------------- """ To use the code, users should to config detpath, ...
35.273927
124
0.52601
da187b2f97a4dc4bc1d14e1bb0d40ffc22c104d8
544
py
Python
pyomnisci/_loaders.py
jp-harvey/pyomnisci-1
bedaa7002299055a172a3de12ca49129d0a51e5d
[ "Apache-2.0" ]
7
2021-02-05T17:00:21.000Z
2022-02-04T20:55:14.000Z
pyomnisci/_loaders.py
jp-harvey/pyomnisci-1
bedaa7002299055a172a3de12ca49129d0a51e5d
[ "Apache-2.0" ]
19
2021-01-14T18:48:13.000Z
2022-01-13T00:26:22.000Z
pyomnisci/_loaders.py
jp-harvey/pyomnisci-1
bedaa7002299055a172a3de12ca49129d0a51e5d
[ "Apache-2.0" ]
8
2020-11-18T01:58:36.000Z
2022-01-27T19:45:50.000Z
""" Internal helpers for loading data """ from omnisci.thrift.ttypes import TStringRow, TStringValue import collections def _build_input_rows(data): input_data = [] for row in data: input_row = TStringRow() input_row.cols = [ TStringValue("{" + ",".join(str(y) for y in x) + "}") ...
25.904762
65
0.601103
18572fa3240b473fbe11ce48b79a0d0263d3ccdb
1,085
py
Python
setup.py
sujitmandal/scrape-search-engine
b1102e0daf472cb1fb248e075f37217ac60d59b1
[ "MIT" ]
11
2021-02-23T19:30:19.000Z
2022-02-28T16:54:29.000Z
setup.py
sujitmandal/scrape-search-engine
b1102e0daf472cb1fb248e075f37217ac60d59b1
[ "MIT" ]
3
2021-07-05T09:55:53.000Z
2022-03-03T13:45:12.000Z
setup.py
sujitmandal/scrape-search-engine
b1102e0daf472cb1fb248e075f37217ac60d59b1
[ "MIT" ]
3
2020-10-22T01:18:53.000Z
2021-04-28T09:45:28.000Z
__author__ = 'Sujit Mandal' #Date : 22-08-2020 from setuptools import setup def readme(): with open('README.md') as files: README = files.read() return(README) setup( name = 'scrape-search-engine', version = '0.2.0', description = "Search anything on the different Search Engine's it will...
31
100
0.621198
04ff1d796a6705485276317d8554e717ca9c2baa
3,869
py
Python
test/mongo_test.py
julianespinel/stockreader
ad197c70346ce6c26c38ec5a979f58c06f122bfc
[ "MIT" ]
36
2017-01-04T02:12:29.000Z
2021-12-25T05:11:27.000Z
test/mongo_test.py
julianespinel/stockreader
ad197c70346ce6c26c38ec5a979f58c06f122bfc
[ "MIT" ]
24
2016-08-03T01:13:01.000Z
2022-01-27T02:01:24.000Z
test/mongo_test.py
julianespinel/stockreader
ad197c70346ce6c26c38ec5a979f58c06f122bfc
[ "MIT" ]
14
2016-12-04T19:56:28.000Z
2022-01-14T03:18:19.000Z
import unittest import pymongo import test.factories as factories from src.stocks import mongo from src.infrastructure import json class MongoTest(unittest.TestCase): DB_HOST = "localhost" DB_PORT = 27017 TEST_DB_NAME = "test_stockreader_db" def setUp(self): self.mongo = mongo.Mongo(self.DB_...
44.471264
105
0.733006
88128ee7d1aff7978aa6cf754ab0f1cdf45aef69
53
py
Python
api/v1/models/__init__.py
nothink/meguchi
3f57d56183a946b68a38a6592aaae64b0dd8c09b
[ "MIT" ]
null
null
null
api/v1/models/__init__.py
nothink/meguchi
3f57d56183a946b68a38a6592aaae64b0dd8c09b
[ "MIT" ]
null
null
null
api/v1/models/__init__.py
nothink/meguchi
3f57d56183a946b68a38a6592aaae64b0dd8c09b
[ "MIT" ]
null
null
null
from .resource import Resource __all__ = [Resource]
13.25
30
0.773585
34cf786c59a387892f76147e4ae599b83ceccee8
8,378
py
Python
propheto/project/configuration/configuration.py
anthonymichaelclark/propheto
5347a74c0e3fb2698abfef2933585158d445f6a7
[ "Apache-2.0" ]
null
null
null
propheto/project/configuration/configuration.py
anthonymichaelclark/propheto
5347a74c0e3fb2698abfef2933585158d445f6a7
[ "Apache-2.0" ]
null
null
null
propheto/project/configuration/configuration.py
anthonymichaelclark/propheto
5347a74c0e3fb2698abfef2933585158d445f6a7
[ "Apache-2.0" ]
null
null
null
import json import copy from time import time from typing import Optional, List from datetime import datetime, date from .iteration import Iteration from propheto.utilities import unique_id class Configuration: """ Base class for configuration of remote project resources. """ def __init__( se...
33.378486
99
0.568155
fc95cbf2287e23afd125708b0d63c11af1a72fb5
1,473
py
Python
examples/v1/check_permissions.py
samkim/authzed-py
a74642e126ca84a4ef93d9c7fc64941cab79a204
[ "Apache-2.0" ]
13
2021-02-17T02:05:51.000Z
2022-02-10T01:52:32.000Z
examples/v1/check_permissions.py
samkim/authzed-py
a74642e126ca84a4ef93d9c7fc64941cab79a204
[ "Apache-2.0" ]
6
2021-07-17T15:49:10.000Z
2022-03-04T13:01:11.000Z
examples/v1/check_permissions.py
samkim/authzed-py
a74642e126ca84a4ef93d9c7fc64941cab79a204
[ "Apache-2.0" ]
6
2021-03-15T04:35:03.000Z
2022-03-04T11:12:10.000Z
from authzed.api.v1 import ( CheckPermissionRequest, CheckPermissionResponse, Client, ObjectReference, SubjectReference, ) from grpcutil import bearer_token_credentials emilia = SubjectReference( object=ObjectReference( object_type="blog/user", object_id="emilia", ) ) beatri...
23.015625
83
0.7074
da212b4119c094e0e2aec4ce3fd5eb31e4b9e130
3,743
py
Python
server.py
grahampfau/ftp-to-s3
eada6dc67ffcc6ab7a1d921f9dcd3493bc8c5416
[ "MIT" ]
1
2018-02-13T05:43:20.000Z
2018-02-13T05:43:20.000Z
server.py
grahampfau/ftp-to-s3
eada6dc67ffcc6ab7a1d921f9dcd3493bc8c5416
[ "MIT" ]
null
null
null
server.py
grahampfau/ftp-to-s3
eada6dc67ffcc6ab7a1d921f9dcd3493bc8c5416
[ "MIT" ]
1
2019-02-07T14:51:23.000Z
2019-02-07T14:51:23.000Z
import logging import os import threading from queue import Queue from boto.s3.connection import S3Connection from boto.s3.key import Key from pyftpdlib.authorizers import DummyAuthorizer from pyftpdlib.handlers import FTPHandler from pyftpdlib.servers import FTPServer from konfig import Konfig log_format = '%(ascti...
31.191667
74
0.656692
2815f5fbd5026672eb23f36959294840c19234b5
27,382
py
Python
django/http/__init__.py
kcunning/django
1b05546bd50d1bf99e3d0e7def1238edf8d44065
[ "BSD-3-Clause" ]
1
2017-12-05T18:37:01.000Z
2017-12-05T18:37:01.000Z
django/http/__init__.py
kcunning/django
1b05546bd50d1bf99e3d0e7def1238edf8d44065
[ "BSD-3-Clause" ]
null
null
null
django/http/__init__.py
kcunning/django
1b05546bd50d1bf99e3d0e7def1238edf8d44065
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import import datetime import os import re import sys import time import warnings from io import BytesIO from pprint import pformat from urllib import urlencode, quote from urlparse import urljoin, parse_qsl import Cookie # Some versions of Python 2.7 and later won't need this encodin...
36.31565
134
0.610474
33835c3c385c670bc1575e7c0a19257ad81b9a85
900
py
Python
section1/graphs_and_sessions.py
joyjeni/-Learn-Artificial-Intelligence-with-TensorFlow
8ae05456241a3ead3dcb83dd315797380d7acacf
[ "MIT" ]
16
2018-07-06T14:41:49.000Z
2021-11-08T13:12:03.000Z
section1/graphs_and_sessions.py
joyjeni/-Learn-Artificial-Intelligence-with-TensorFlow
8ae05456241a3ead3dcb83dd315797380d7acacf
[ "MIT" ]
null
null
null
section1/graphs_and_sessions.py
joyjeni/-Learn-Artificial-Intelligence-with-TensorFlow
8ae05456241a3ead3dcb83dd315797380d7acacf
[ "MIT" ]
15
2018-07-11T06:14:20.000Z
2021-02-09T21:38:24.000Z
""" File: section1/graphs_and_sessions.py Author: Brandon McKinzie Description: snippets from the slides in video 1.4. """ import tensorflow as tf # ----------------------------------- # Graphs. # ----------------------------------- c = tf.constant(4.0, name='c') assert c.graph is tf.get_default_graph() initial_defa...
23.684211
51
0.568889
5fb87f2712f0447521f54290b91728d25a9c5476
1,870
py
Python
lib/build_test.py
pchaigno/grr
69c81624c281216a45c4bb88a9d4e4b0613a3556
[ "Apache-2.0" ]
null
null
null
lib/build_test.py
pchaigno/grr
69c81624c281216a45c4bb88a9d4e4b0613a3556
[ "Apache-2.0" ]
null
null
null
lib/build_test.py
pchaigno/grr
69c81624c281216a45c4bb88a9d4e4b0613a3556
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Tests for building and repacking clients.""" import os import shutil import stat from grr.lib import build from grr.lib import config_lib from grr.lib import flags from grr.lib import maintenance_utils from grr.lib import test_lib from grr.lib import utils class BuildTests(test_lib.GRRBaseTe...
29.68254
76
0.694652
2b27627202fcf16a1bd8bdf2adc4734f515109a8
45
py
Python
01_hello/hello02_comment.py
rebeckaflynn/tiny_python_projects
692f24dd00769438e7aaa1c45223b701b20a1192
[ "MIT" ]
null
null
null
01_hello/hello02_comment.py
rebeckaflynn/tiny_python_projects
692f24dd00769438e7aaa1c45223b701b20a1192
[ "MIT" ]
null
null
null
01_hello/hello02_comment.py
rebeckaflynn/tiny_python_projects
692f24dd00769438e7aaa1c45223b701b20a1192
[ "MIT" ]
null
null
null
# Purpose: Say hello print('Hello, World!')
11.25
22
0.666667
7955caf0722c623102ee8ce749e23bb9de7fff64
1,434
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp/models/stock_picking.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp/models/stock_picking.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp/models/stock_picking.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import fields, models class StockPickingType(models.Model): _inherit = 'stock.picking.type' code = fields.Selection(selection_add=[('mrp_operation', 'Manufacturing Operation')]) count_mo_todo = f...
47.8
125
0.622734
f331957308ba036570cb7d866470dcdf522e0fcf
461
py
Python
app/migrations/0007_auto_20200323_0246.py
taikhoangg003/django-dashboard-coreui
f0e8acac2428f0eb493b71c7e4010da35b4389f7
[ "MIT" ]
null
null
null
app/migrations/0007_auto_20200323_0246.py
taikhoangg003/django-dashboard-coreui
f0e8acac2428f0eb493b71c7e4010da35b4389f7
[ "MIT" ]
null
null
null
app/migrations/0007_auto_20200323_0246.py
taikhoangg003/django-dashboard-coreui
f0e8acac2428f0eb493b71c7e4010da35b4389f7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-03-23 02:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0006_auto_20200323_0229'), ] operations = [ migrations.AlterField( model_name='padata', name='future_ptc_date...
24.263158
120
0.624729
dcdc4b3a8c7612fb7eae30bb099f4e6b5a84a1ef
790
py
Python
old/dropbox_scripts/file-manipulation/change-extension-of-all-files/change-extension-of-all-files.py
jolitp/automation_scripts
ba0c94e5212f0069b89f75a48fe2e2aafb5c921c
[ "MIT" ]
null
null
null
old/dropbox_scripts/file-manipulation/change-extension-of-all-files/change-extension-of-all-files.py
jolitp/automation_scripts
ba0c94e5212f0069b89f75a48fe2e2aafb5c921c
[ "MIT" ]
null
null
null
old/dropbox_scripts/file-manipulation/change-extension-of-all-files/change-extension-of-all-files.py
jolitp/automation_scripts
ba0c94e5212f0069b89f75a48fe2e2aafb5c921c
[ "MIT" ]
null
null
null
#! /usr/bin/python3 import pathlib import os import sys import json import shutil from colorama import Fore from colorama import Style import subprocess DEBUG = False DEBUG = True path_to_current_directory = pathlib.Path(__file__).parent.absolute() current_directory_name = os.path.basename(path_to_current_directo...
14.90566
86
0.734177
842f133aff6ddc574033a2f7da9fcfc04e218ec7
5,189
py
Python
nicos_mlz/reseda/commands.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/reseda/commands.py
ebadkamil/nicos
0355a970d627aae170c93292f08f95759c97f3b5
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
4
2019-11-08T10:18:16.000Z
2021-01-13T13:07:29.000Z
nicos_mlz/reseda/commands.py
ISISComputingGroup/nicos
94cb4d172815919481f8c6ee686f21ebb76f2068
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2021 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the te...
31.259036
80
0.659279
85bec717f5f09183fd6835e9758eb2afac3f6a00
590
py
Python
Day01-15/code/Day07/findmax.py
EngrSaad2/Python-100-Days
ab0b26714b1df50d02a1433dc82f2a3fb025be5c
[ "Apache-2.0" ]
6
2020-04-22T14:07:51.000Z
2021-09-07T12:55:23.000Z
Day01-15/code/Day07/findmax.py
2462612540/Python-Language
a676d1274a04ff03f1aea0de9c58019d6ef8f5fe
[ "Apache-2.0" ]
null
null
null
Day01-15/code/Day07/findmax.py
2462612540/Python-Language
a676d1274a04ff03f1aea0de9c58019d6ef8f5fe
[ "Apache-2.0" ]
4
2019-08-25T05:51:00.000Z
2021-04-16T08:14:16.000Z
""" 找出列表中最大或最小的元素 Version: 0.1 Author: 骆昊 Date: 2018-03-06 """ def main(): fruits = ['grape', 'apple', 'strawberry', 'waxberry', 'pitaya'] # 直接使用内置的max和min函数找出列表中最大和最小元素 # print(max(fruits)) # print(min(fruits)) max_value = min_value = fruits[0] for index in range(1, len(fruits)): if ...
21.071429
67
0.613559
103b363b2977f80ebaa7e579a56f098e42387e9e
6,612
py
Python
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_reservation_recommendation_details_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_reservation_recommendation_details_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_reservation_recommendation_details_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 may ...
50.861538
133
0.69268
60006f0fae0d4c2ff720dbbd99f829518b617ee6
148
py
Python
src/ros/src/ros_homebot/nodes/test_node.py
chrisspen/homebot
cd1a5a2bddcb90d50a00e67b94297942827fbc61
[ "MIT" ]
8
2017-11-19T01:42:59.000Z
2021-02-08T09:18:58.000Z
src/ros/src/ros_homebot/nodes/test_node.py
chrisspen/homebot
cd1a5a2bddcb90d50a00e67b94297942827fbc61
[ "MIT" ]
24
2017-02-14T16:50:02.000Z
2017-06-07T18:38:20.000Z
src/ros/src/ros_homebot/nodes/test_node.py
chrisspen/homebot
cd1a5a2bddcb90d50a00e67b94297942827fbc61
[ "MIT" ]
6
2017-05-17T03:07:05.000Z
2019-11-14T09:33:06.000Z
#!/usr/bin/env python import time import rospy rospy.init_node('test_node') while 1: rospy.loginfo("Waiting for 1 second...") time.sleep(1)
18.5
44
0.702703
e147cad696762a1e7a637cf470175445cad287f9
28,095
py
Python
utils/bipartite_graph_motif.py
pige99/TME
b069ed159c6ae8835591af13b3fb2bc418e2fef9
[ "MIT" ]
3
2021-07-26T04:52:25.000Z
2022-02-10T04:33:44.000Z
utils/bipartite_graph_motif.py
pige99/TME
b069ed159c6ae8835591af13b3fb2bc418e2fef9
[ "MIT" ]
null
null
null
utils/bipartite_graph_motif.py
pige99/TME
b069ed159c6ae8835591af13b3fb2bc418e2fef9
[ "MIT" ]
null
null
null
import time import bisect import dgl import torch import numpy as np from tqdm import tqdm # Count motif 1 def count_motif_1_1(g, threshold_time, eid): src, dst = g.find_edges(eid) src_out_timestamp = g.edata['timestamp'][g.out_edges(src, form='eid')] src_out_ngr = g.out_edges(src)[1] pivot = g.edata['timest...
49.376098
102
0.735362
dc39e41f29f5b5ef727dbbee5187d55a01b13d45
2,725
py
Python
segmenter/jobs/BaseJob.py
brandongk/segmenter
dbc042d31dc74f1abdc87ae10a6be78ba38ddb91
[ "Unlicense" ]
null
null
null
segmenter/jobs/BaseJob.py
brandongk/segmenter
dbc042d31dc74f1abdc87ae10a6be78ba38ddb91
[ "Unlicense" ]
null
null
null
segmenter/jobs/BaseJob.py
brandongk/segmenter
dbc042d31dc74f1abdc87ae10a6be78ba38ddb91
[ "Unlicense" ]
null
null
null
from launcher import Task import argparse from typing import Dict import os import itertools import sys import pprint import json class BaseJob(Task): @staticmethod def arguments(parser: argparse.ArgumentParser) -> None: parser.add_argument( "dataset", type=str, hel...
34.0625
122
0.543119
20de3445013590c3e600cfd231c598bf84d115a1
5,406
py
Python
binc19/binc.py
david-deboer/covid_binned_data
4ed672974af17614ae559188428a843227f3f5b8
[ "BSD-2-Clause" ]
null
null
null
binc19/binc.py
david-deboer/covid_binned_data
4ed672974af17614ae559188428a843227f3f5b8
[ "BSD-2-Clause" ]
null
null
null
binc19/binc.py
david-deboer/covid_binned_data
4ed672974af17614ae559188428a843227f3f5b8
[ "BSD-2-Clause" ]
null
null
null
import csv import os.path import numpy as np import matplotlib.pyplot as plt from . import stats, binc_util from my_utils import state_variable """ This handles covid_binned_data files. """ color_list = ['b', 'g', 'r', 'c', 'm', 'k', 'tab:blue', 'tab:orange', 'tab:brown', 'tab:olive', 'tab:pink', 'bisqu...
37.804196
100
0.511099
b3e08123cdf4b6311bb7f5c4be0f638bbc456e9a
2,920
py
Python
synergy/db/model/daemon_process_entry.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
synergy/db/model/daemon_process_entry.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
synergy/db/model/daemon_process_entry.py
eggsandbeer/scheduler
18ad32bd7b824ca334e2c5a1bbd10f599dfc2c82
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Bohdan Mushkevych' from odm.document import BaseDocument from odm.fields import StringField, DictField, ListField from synergy.scheduler.scheduler_constants import TYPE_MANAGED, TYPE_FREERUN, TYPE_GARBAGE_COLLECTOR, EXCHANGE_UTILS, \ TYPE_DAEMON PROCESS_NAME = 'process_name' CLASSNAME = 'classname...
32.087912
119
0.658562
13021d885ba3e5d590db561dd4b99dc5b14a61ce
18,146
py
Python
tensorflow/python/framework/importer.py
topsun888/tensorflow
bad7c50b9dc9789ad7dd0a62daca40b7269841ed
[ "Apache-2.0" ]
2
2019-07-05T15:17:01.000Z
2020-04-16T07:25:56.000Z
tensorflow/python/framework/importer.py
kiliczsh/tensorflow
f49aca4532c155597c669cf2189f211cafbebf96
[ "Apache-2.0" ]
1
2021-04-12T03:51:59.000Z
2021-04-12T03:51:59.000Z
tensorflow/python/framework/importer.py
kiliczsh/tensorflow
f49aca4532c155597c669cf2189f211cafbebf96
[ "Apache-2.0" ]
5
2018-02-27T00:34:23.000Z
2022-02-28T16:38:08.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.969163
85
0.646313
0f9e5cda66c64a8c70566706fa6bd291dce725bd
1,142
py
Python
dongmingram/notifications/migrations/0001_initial.py
ldm0408/Dongmingram
9d745734df8f4f4a0ce64be0adc725cbfa1ea63c
[ "MIT" ]
null
null
null
dongmingram/notifications/migrations/0001_initial.py
ldm0408/Dongmingram
9d745734df8f4f4a0ce64be0adc725cbfa1ea63c
[ "MIT" ]
18
2018-05-21T10:17:39.000Z
2022-03-08T22:53:38.000Z
dongmingram/notifications/migrations/0001_initial.py
ldm0408/Dongmingram
9d745734df8f4f4a0ce64be0adc725cbfa1ea63c
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-07-05 10:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('images', '0007_image_tags'), migrations.swappable_dependency(se...
39.37931
145
0.647986
67bacfbe31a274d23ff36a17b6e2e8b67be1419a
9,829
py
Python
reviewboard/admin/security_checks.py
klpyang/reviewboard
d7dabf36e5b492f18048dd7084026bf99d6933c5
[ "MIT" ]
1
2018-08-23T09:19:02.000Z
2018-08-23T09:19:02.000Z
reviewboard/admin/security_checks.py
klpyang/reviewboard
d7dabf36e5b492f18048dd7084026bf99d6933c5
[ "MIT" ]
null
null
null
reviewboard/admin/security_checks.py
klpyang/reviewboard
d7dabf36e5b492f18048dd7084026bf99d6933c5
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import logging import os from django.conf import settings from django.contrib.sites.models import Site from django.core.files.base import ContentFile from django.core.files.storage import FileSystemStorage from django.utils import six from django.utils.six.moves.urllib.error im...
34.609155
79
0.55733
99aa19b872d5816ef270b436bdc3d31232d06435
1,396
py
Python
functions/gcp/callbacks.py
Katolus/functions
c4aff37231432ce6ef4ed6b37c8b5baaede5975a
[ "MIT" ]
4
2022-03-08T08:46:44.000Z
2022-03-19T07:52:11.000Z
functions/gcp/callbacks.py
Katolus/functions
c4aff37231432ce6ef4ed6b37c8b5baaede5975a
[ "MIT" ]
114
2021-10-30T05:48:54.000Z
2022-03-06T10:57:00.000Z
functions/gcp/callbacks.py
Katolus/functions
c4aff37231432ce6ef4ed6b37c8b5baaede5975a
[ "MIT" ]
null
null
null
"""Stores methods for validating GCP commands using typer's callback method""" import typer from functions.config.files import FunctionRegistry from functions.helpers import is_function_in_registry from functions.helpers import is_function_source_valid def check_if_function_name_in_registry( ctx: typer.Context, ...
34.9
84
0.706304
bcedcba739de7d9104c9d4372a83989dd681357e
281
py
Python
src/dynamicCode/bidders.py
Jpfonseca/Blockchain_auction_management
99ea44e1f92b656c19e609eb9f7447b9323970a0
[ "MIT" ]
null
null
null
src/dynamicCode/bidders.py
Jpfonseca/Blockchain_auction_management
99ea44e1f92b656c19e609eb9f7447b9323970a0
[ "MIT" ]
null
null
null
src/dynamicCode/bidders.py
Jpfonseca/Blockchain_auction_management
99ea44e1f92b656c19e609eb9f7447b9323970a0
[ "MIT" ]
1
2020-11-17T06:39:03.000Z
2020-11-17T06:39:03.000Z
# this works def foo(id_client, num_bids): valid_clients = ['WVzMbdOi9f+xgWZ5+jJ7TQ==', 'WuIaYf+KjvlGyJdCkGP7fA=='] for i in range(0, len(valid_clients)): if id_client == valid_clients[i]: return True return False valid = foo(id_client, num_bids)
25.545455
76
0.658363
c36a50f6adff604dd44f961d0360540469d503e5
2,538
py
Python
research/steve/worldmodel_learner.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
153
2020-10-25T13:58:04.000Z
2022-03-07T06:01:54.000Z
research/steve/worldmodel_learner.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
11
2020-07-13T08:29:00.000Z
2022-03-24T07:21:09.000Z
research/steve/worldmodel_learner.py
873040/Abhishek
2ddd716e66bc5cc6e6f0787508dd07da0e02e75a
[ "Apache-2.0" ]
43
2018-12-28T15:01:44.000Z
2022-02-15T06:23:05.000Z
# Copyright 2018 The TensorFlow Authors All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
45.321429
134
0.724586
858727a80a00d770f193a113a48e7717d6b5ffc6
602
py
Python
Templates/06.String/String-BF.py
AlgorithmAndLeetCode/itcharge-LeetCode-Py
2266b6e9add5bd306a1e1eb59d54e9447e641fd3
[ "MIT" ]
1
2022-01-22T15:52:47.000Z
2022-01-22T15:52:47.000Z
Templates/06.String/String-BF.py
AlgorithmAndLeetCode/itcharge-LeetCode-Py
2266b6e9add5bd306a1e1eb59d54e9447e641fd3
[ "MIT" ]
null
null
null
Templates/06.String/String-BF.py
AlgorithmAndLeetCode/itcharge-LeetCode-Py
2266b6e9add5bd306a1e1eb59d54e9447e641fd3
[ "MIT" ]
null
null
null
def bruteForce(T: str, p: str) -> int: n, m = len(T), len(p) i, j = 0, 0 # i 表示文本串 T 的当前位置,j 表示模式串 p 的当前位置 while i < n and j < m: # i 或 j 其中一个到达尾部时停止搜索 if T[i] == p[j]: # 如果相等,则继续进行下一个字符匹配 i += 1 j += 1 else: i ...
33.444444
69
0.392027
9d5e5d4d8970d2e11a09ba42017a5d0392a4d861
1,041
py
Python
theano/gans/BGAN/old/DISC-MNIST-PFAKE/plot_control.py
dendisuhubdy/ccw1_trainstats
0105bddd23366db6b55421e9b3bccd6da2f9aa51
[ "MIT" ]
4
2017-10-29T17:41:17.000Z
2020-04-07T12:51:44.000Z
theano/gans/BGAN/old/DISC-MNIST-PFAKE/plot_control.py
dendisuhubdy/ccw1_trainstats
0105bddd23366db6b55421e9b3bccd6da2f9aa51
[ "MIT" ]
null
null
null
theano/gans/BGAN/old/DISC-MNIST-PFAKE/plot_control.py
dendisuhubdy/ccw1_trainstats
0105bddd23366db6b55421e9b3bccd6da2f9aa51
[ "MIT" ]
4
2017-11-26T21:53:28.000Z
2020-04-07T12:51:45.000Z
import matplotlib matplotlib.use('Agg') from matplotlib import pyplot as plt from gumbel_mnist import train as gumbel_train from rw_mnist import train as rw_train gumbel_hard_arr = ["True", "False"] optimGD_arr = ['adam', 'rmsprop', 'sgd'] learning_rate_arr = [1e-2, 1e-3, 1e-4, 1e-5] anneal_rate_arr = [0.01, 0.001, 0.0...
34.7
82
0.676273
216f622cd5f3ca7e64c18704204910fdf5480c95
3,442
py
Python
scripts/example-scripts/GeostreamDatapointPlotter.py
julianpistorius/computing-pipeline
708a861c0011ee20cb1d08179bba122362b69180
[ "BSD-3-Clause" ]
21
2016-09-21T15:51:10.000Z
2022-01-25T23:28:05.000Z
scripts/example-scripts/GeostreamDatapointPlotter.py
julianpistorius/computing-pipeline
708a861c0011ee20cb1d08179bba122362b69180
[ "BSD-3-Clause" ]
569
2015-10-01T21:49:01.000Z
2021-03-22T22:52:32.000Z
scripts/example-scripts/GeostreamDatapointPlotter.py
julianpistorius/computing-pipeline
708a861c0011ee20cb1d08179bba122362b69180
[ "BSD-3-Clause" ]
13
2016-04-13T05:34:49.000Z
2019-11-05T19:17:40.000Z
import requests from datetime import datetime import matplotlib.pyplot as plt import numpy as np url = "https://terraref.ncsa.illinois.edu/clowder/api/geostreams/datapoints?key=Pb3AUSqnUw&stream_id=300" response = requests.get(url) if response.status_code == 200: json = response.json() times = [] win...
35.484536
128
0.63713
f4ec8954080e34450fa52a61d61052d9f27457b9
54,095
py
Python
custom/icds_reports/reports/awc_reports.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/reports/awc_reports.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
custom/icds_reports/reports/awc_reports.py
dborowiecki/commcare-hq
f2f4fa67faec09040a98502f5657444075b63f2e
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict from datetime import datetime, timedelta, date from dateutil.relativedelta import relativedelta from dateutil.rrule import MONTHLY, rrule, DAILY, WEEKLY, MO from django.db.models import F from django.db.models.aggregates import Sum, Avg from django.utils.translation import ugettext...
41.547619
118
0.537295
b2a5b47b7c28d6c43a2653586924b7b33261b6a8
2,204
py
Python
scintilla/scripts/splitbins.py
zufuliu/notepad2
c55d0b02f6910b84ab8a3dd735afbffb1d45d0d4
[ "MIT" ]
1,238
2017-06-26T01:23:11.000Z
2022-03-31T03:04:04.000Z
scintilla/scripts/splitbins.py
zufuliu/notepad2
c55d0b02f6910b84ab8a3dd735afbffb1d45d0d4
[ "MIT" ]
401
2017-08-04T11:26:06.000Z
2022-03-31T23:48:47.000Z
scintilla/scripts/splitbins.py
zufuliu/notepad2
c55d0b02f6910b84ab8a3dd735afbffb1d45d0d4
[ "MIT" ]
140
2018-02-10T13:19:01.000Z
2022-03-29T04:15:17.000Z
# splitbins() is based on Python source # https://github.com/python/cpython/blob/main/Tools/unicode/makeunicodedata.py # Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Python Software Foundation; # All Rights Reserved # see Python-LICENSE...
27.55
84
0.655172
a0acecbf310f3f0905d5819c02e4587922ec8875
1,987
py
Python
Text-Adventure/text-adventure_original.py
leisheng1234567890/Python_game
5aeab477a4b21c6a6d0f25305172e2d4d7d6c6ba
[ "MIT" ]
10
2019-02-27T07:57:32.000Z
2021-06-04T07:15:49.000Z
Text-Adventure/text-adventure_original.py
leisheng1234567890/Python_game
5aeab477a4b21c6a6d0f25305172e2d4d7d6c6ba
[ "MIT" ]
null
null
null
Text-Adventure/text-adventure_original.py
leisheng1234567890/Python_game
5aeab477a4b21c6a6d0f25305172e2d4d7d6c6ba
[ "MIT" ]
7
2019-02-28T08:51:57.000Z
2022-03-25T12:43:59.000Z
directions = ['north','south','east','west'] # Data structure to store details of each location in the game class Location: # Constructor - set up def __init__(self, name, description): self.name = name self.description = description self.linkedLocations = {} # Empty dictionary - will...
39.74
119
0.685959
42ba21a1228f1def1864cb88feaf5fe1ed9ae817
31,967
py
Python
openerp/addons/base/tests/test_base.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
3
2016-01-29T14:39:49.000Z
2018-12-29T22:42:00.000Z
openerp/addons/base/tests/test_base.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
2
2016-03-23T14:29:41.000Z
2017-02-20T17:11:30.000Z
openerp/addons/base/tests/test_base.py
ntiufalara/openerp7
903800da0644ec0dd9c1dcd34205541f84d45fe4
[ "MIT" ]
null
null
null
import unittest2 import openerp.tests.common as common from openerp.osv.orm import except_orm class test_base(common.TransactionCase): def setUp(self): super(test_base,self).setUp() self.res_partner = self.registry('res.partner') self.res_users = self.registry('res.users') self.re...
69.043197
158
0.57015
051473fa1324fd22f12bda78680b2634132572f7
3,230
py
Python
discordbot/stocks/government/contracts.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
1
2021-12-31T04:10:42.000Z
2021-12-31T04:10:42.000Z
discordbot/stocks/government/contracts.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
discordbot/stocks/government/contracts.py
DidierRLopes/GST-discordbot
8ff7f7557f5db62ea33d63cfc11ee7ae5f9de56c
[ "MIT" ]
null
null
null
import os import discord from matplotlib import pyplot as plt import pandas as pd from gamestonk_terminal.config_plot import PLOT_DPI from gamestonk_terminal.stocks.government import quiverquant_model from gamestonk_terminal.helper_funcs import plot_autoscale import discordbot.config_discordbot as cfg from discordbot...
32.959184
87
0.619814
650ec0ed16cfa407c59933e234915de5b02a71ea
166
py
Python
notebooks/2018.11.09 Quasiquotes.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Quasiquotes.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Quasiquotes.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
#%% from ast import parse from astunparse import dump #%% print(dump(parse("1 + 1").body[0])) #%% import inspect #%% f = lambda: 1 + 1 print(inspect.getsource(f))
11.857143
35
0.644578
5a583aac7dd65b431dffa0b1bd81c4defa5ba413
5,644
py
Python
libs/numpy/compat/py3k.py
rocketbot-cl/recognition
cca8a87070ccaca3a26e37345c36ab1bf836e258
[ "MIT" ]
353
2020-12-10T10:47:17.000Z
2022-03-31T23:08:29.000Z
libs/numpy/compat/py3k.py
rocketbot-cl/recognition
cca8a87070ccaca3a26e37345c36ab1bf836e258
[ "MIT" ]
80
2020-12-10T09:54:22.000Z
2022-03-30T22:08:45.000Z
libs/numpy/compat/py3k.py
rocketbot-cl/recognition
cca8a87070ccaca3a26e37345c36ab1bf836e258
[ "MIT" ]
63
2020-12-10T17:10:34.000Z
2022-03-28T16:27:07.000Z
""" Python 3.X compatibility tools. While this file was originally intended for Python 2 -> 3 transition, it is now used to create a compatibility layer between different minor versions of Python 3. While the active version of numpy may not support a given version of python, we allow downstream libraries to c...
30.181818
82
0.622962
144de06b7610854871123976df8f66b8c55e559b
1,088
py
Python
vyper/tests/parser/syntax/test_functions_call.py
ssteiger/Vyper-Contract-GUI-Depreciated
3ba9df1b7f7cf871beaddd3ae2af06b6a94ef7fe
[ "MIT" ]
null
null
null
vyper/tests/parser/syntax/test_functions_call.py
ssteiger/Vyper-Contract-GUI-Depreciated
3ba9df1b7f7cf871beaddd3ae2af06b6a94ef7fe
[ "MIT" ]
null
null
null
vyper/tests/parser/syntax/test_functions_call.py
ssteiger/Vyper-Contract-GUI-Depreciated
3ba9df1b7f7cf871beaddd3ae2af06b6a94ef7fe
[ "MIT" ]
null
null
null
import pytest from pytest import ( raises, ) from vyper import ( compiler, ) from vyper.exceptions import ( ParserException, StructureException, ) fail_list = [ """ @public def foo() -> uint256: doesnotexist(2, uint256) return convert(2, uint256) """, """ @public def foo() -> uint2...
17
55
0.650735
da34e2dfd6b2ba932485cb3c82858eec766fc405
31,446
py
Python
pyLib/plotTools.py
jpkeskinen/P4UL
28b96c0d7292385e3a8ea237bf62a85fbd051556
[ "MIT" ]
null
null
null
pyLib/plotTools.py
jpkeskinen/P4UL
28b96c0d7292385e3a8ea237bf62a85fbd051556
[ "MIT" ]
null
null
null
pyLib/plotTools.py
jpkeskinen/P4UL
28b96c0d7292385e3a8ea237bf62a85fbd051556
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import glob import numpy as np import matplotlib.pyplot as plt from utilities import dataFromDict from matplotlib.ticker import FormatStrFormatter # 08.04.2016: Mona added an option for colorbar bounds to addImagePlot plt.rc('xtick', labelsize=24); #plt.rc('ytick.major', size=10) p...
30.500485
140
0.53603
5e0eb57105efe69723d39209b3a32df4b28f1ad9
2,404
py
Python
legal-api/src/legal_api/resources/business/business_aliases.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
8
2019-06-19T16:16:15.000Z
2021-08-28T23:56:40.000Z
legal-api/src/legal_api/resources/business/business_aliases.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
796
2019-03-07T19:25:50.000Z
2022-03-31T20:32:57.000Z
legal-api/src/legal_api/resources/business/business_aliases.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
82
2019-01-30T20:06:14.000Z
2022-03-29T20:38:31.000Z
# Copyright © 2020 Province of British Columbia # # 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 agr...
32.931507
100
0.670965
51f419a1b371ad569e930024b72cf52eb4dc5700
3,004
py
Python
hpccm/templates/downloader.py
hcheung01/hpc-container-maker
107cd9e6a6930f67b1a261bec739fe9de85c8a49
[ "Apache-2.0" ]
1
2020-07-19T15:47:32.000Z
2020-07-19T15:47:32.000Z
hpccm/templates/downloader.py
hcheung01/hpc-container-maker
107cd9e6a6930f67b1a261bec739fe9de85c8a49
[ "Apache-2.0" ]
null
null
null
hpccm/templates/downloader.py
hcheung01/hpc-container-maker
107cd9e6a6930f67b1a261bec739fe9de85c8a49
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020, NVIDIA CORPORATION. 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 appli...
35.341176
79
0.61518
8e360ec4f00a160ac2568950a890e191def38b0e
802
py
Python
pure_contracts.py
simon-graham/pure_interface
da7bf05151c1c906c753987fbf7e3251905b4ba0
[ "MIT" ]
10
2018-08-27T04:15:53.000Z
2021-08-18T09:45:35.000Z
pure_contracts.py
simon-graham/pure_interface
da7bf05151c1c906c753987fbf7e3251905b4ba0
[ "MIT" ]
35
2018-08-27T04:17:44.000Z
2021-09-22T05:39:57.000Z
pure_contracts.py
tim-mitchell/pure_interface
46a2de2574f4543980303cafd89cfcbdb643fbbb
[ "MIT" ]
3
2018-09-19T21:32:01.000Z
2020-11-17T00:58:55.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import warnings import pure_interface from pure_interface import InterfaceError # alias for convenience try: import contracts # https://pypi.python.org/pypi/PyContracts class ContractType(pure_interf...
28.642857
97
0.753117
2887e70579375037d6d1af7a742897b79f8f3160
2,223
py
Python
mopidy/utils/process.py
woutervanwijk/mopidy
135379efafed41e9537bb0747ece42547c0f0e3d
[ "Apache-2.0" ]
2
2015-06-07T19:05:30.000Z
2021-11-17T12:01:05.000Z
mopidy/utils/process.py
woutervanwijk/mopidy
135379efafed41e9537bb0747ece42547c0f0e3d
[ "Apache-2.0" ]
null
null
null
mopidy/utils/process.py
woutervanwijk/mopidy
135379efafed41e9537bb0747ece42547c0f0e3d
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import logging import signal try: import _thread as thread # Python 3 except ImportError: import thread # Python 2 import threading from pykka import ActorDeadError from pykka.registry import ActorRegistry logger = logging.getLogger(__name__) SIGNALS = dict( (k,...
28.87013
78
0.654071
b6a88fe4a371365bfcb1d9ff677bf70cb5bcfc29
491
py
Python
pyot/utils/sync.py
paaksing/Pyot
0af13ff453ff3065427b93fadae0b92935b791c8
[ "MIT" ]
60
2020-08-29T02:04:31.000Z
2022-03-20T14:51:24.000Z
pyot/utils/sync.py
paaksing/Pyot
0af13ff453ff3065427b93fadae0b92935b791c8
[ "MIT" ]
2
2021-04-08T03:06:01.000Z
2022-02-04T15:27:16.000Z
pyot/utils/sync.py
paaksing/Pyot
0af13ff453ff3065427b93fadae0b92935b791c8
[ "MIT" ]
15
2020-11-30T23:31:11.000Z
2022-02-11T13:31:13.000Z
from typing import Awaitable, Callable, TypeVar from functools import wraps import asyncio R = TypeVar("R") def async_to_sync(func: Callable[..., Awaitable[R]]) -> Callable[..., R]: '''Wraps `asyncio.run` on an async function making it sync callable.''' if not asyncio.iscoroutinefunction(func): rais...
28.882353
75
0.680244
54a652bdf5cbd824ecd3ff319964e93cde2e191c
4,351
py
Python
experiments/vitchyr/end2end_sac/pointmass_from_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/end2end_sac/pointmass_from_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/end2end_sac/pointmass_from_state.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
import numpy as np import rlkit.misc.hyperparameter as hyp import rlkit.torch.pytorch_util as ptu from multiworld.core.flat_goal_env import FlatGoalEnv from multiworld.core.image_env import ImageEnv from multiworld.envs.pygame.point2d import Point2DEnv from rlkit.data_management.env_replay_buffer import EnvReplayBuffe...
28.437908
74
0.624224
bd5348c2a4c048215e3dbd59e2515b291356e8b7
4,380
py
Python
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_contact_folders_child_folders_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_contact_folders_child_folders_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
msgraph-cli-extensions/v1_0/usersfunctions_v1_0/azext_usersfunctions_v1_0/vendored_sdks/usersfunctions/aio/operations/_users_contact_folders_child_folders_operations.py
thewahome/msgraph-cli
33127d9efa23a0e5f5303c93242fbdbb73348671
[ "MIT" ]
null
null
null
# 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 may ...
43.8
135
0.679452
f617dc5c18f9d6599f8f76b1879575d72a7c4d14
4,825
py
Python
src/testing/gtest/test/gtest_color_test.py
zhaohaibin/BreakpadForWindows
61cc4d4b626579766f42a3135a90c1e83adb18bf
[ "BSD-3-Clause" ]
33
2015-02-19T17:58:15.000Z
2022-03-30T03:18:40.000Z
deps/breakpad/src/testing/gtest/test/gtest_color_test.py
kans/birgo
d9aca7356933c4bb95f5649353acbc95e3083a57
[ "Apache-2.0" ]
5
2015-08-21T14:49:35.000Z
2021-08-25T06:53:21.000Z
deps/breakpad/src/testing/gtest/test/gtest_color_test.py
kans/birgo
d9aca7356933c4bb95f5649353acbc95e3083a57
[ "Apache-2.0" ]
22
2015-01-04T10:37:36.000Z
2021-08-16T11:46:32.000Z
#!/usr/bin/env python # # Copyright 2008, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
37.992126
76
0.713782
9fb97d257441a856cdbcb1f2f2d31c69b9b84f32
31
py
Python
homeassistant/components/gstreamer/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/gstreamer/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/gstreamer/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The gstreamer component."""
15.5
30
0.677419
66a4a2fe43f622f839275db66f1064478c14aad3
1,489
py
Python
MLX90640/visualizer_test.py
Nekostone/activity-levels-monitoring
9197924586425f3f881846742d05c48a242169ac
[ "MIT" ]
null
null
null
MLX90640/visualizer_test.py
Nekostone/activity-levels-monitoring
9197924586425f3f881846742d05c48a242169ac
[ "MIT" ]
5
2020-07-21T13:42:23.000Z
2022-03-12T00:44:32.000Z
MLX90640/visualizer_test.py
Nekostone/activity-levels-monitoring
9197924586425f3f881846742d05c48a242169ac
[ "MIT" ]
1
2020-03-05T12:11:27.000Z
2020-03-05T12:11:27.000Z
import matplotlib.pyplot as plt import numpy as np from file_utils import create_folder_if_absent, get_all_files, get_frame from visualizer import init_heatmap, update_heatmap, write_gif_from_npy """ Test Visualizer """ def test_plot_random(): array_shape = (24,32) min_value = 30 max_value = 40 plot = init_...
28.09434
80
0.752183
56071edbb7a2f2c878f37cc00d1d3e9f1a997317
11,912
py
Python
trax/layers/combinators_test.py
rlanka4/trax
26850af6c43180b6499d26b62dc0c324a146c7fa
[ "Apache-2.0" ]
null
null
null
trax/layers/combinators_test.py
rlanka4/trax
26850af6c43180b6499d26b62dc0c324a146c7fa
[ "Apache-2.0" ]
null
null
null
trax/layers/combinators_test.py
rlanka4/trax
26850af6c43180b6499d26b62dc0c324a146c7fa
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2020 The Trax 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 applicable law or a...
38.550162
87
0.693251
d891b37cfb446ea422f18499be5b3161f5520d65
20,315
py
Python
sdk/python/pulumi_aws/neptune/subnet_group.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/neptune/subnet_group.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/neptune/subnet_group.py
alexbowers/pulumi-aws
7dbdb03b1e4f7c0d51d5b5d17233ff4465c3eff5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
43.594421
258
0.635491
051422514af7adcad5b056787032d72afd2b8c46
7,472
py
Python
main.py
xabarass/cil-tweeter
cf6c09879ef4cd431a61b6573a5b0f9e03ea3309
[ "MIT" ]
null
null
null
main.py
xabarass/cil-tweeter
cf6c09879ef4cd431a61b6573a5b0f9e03ea3309
[ "MIT" ]
null
null
null
main.py
xabarass/cil-tweeter
cf6c09879ef4cd431a61b6573a5b0f9e03ea3309
[ "MIT" ]
null
null
null
import logging import config from TwitterDataset import TwitterDataSet from Vocabulary import read_vocabulary_from_file, ouput_vocabulary_statistics, RegularizingPreprocessor, LexicalPreprocessor, StemmingPreprocessor, CharacterBasedPreprocessor from NeuralNetwork import Network, AdaBoostModel, StaticAdaBoostModel,...
47.291139
174
0.662607
0ace26c5ee311051835f4298cda233ba855dabb7
2,158
py
Python
handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
handler_factory.py
weenerberg/guildtracker
1957018cdaa93678b6591248905804dc4d892d04
[ "MIT" ]
null
null
null
import logging from zetas_handler import ZetasHandler from arena_ranks_handler import ArenaRanksHandler, TestArenaRanksHandler from units_handler import UnitsHandler from unit_mappings_handler import UnitMappingsHandler from zeta_reviews_handler import ZetaReviewsHandler logger = logging.getLogger(__name__) class Han...
58.324324
193
0.823911
edaea9475365311fcccd10a8b914f5db0a1bc8f9
3,436
py
Python
python/oneflow/compatible/single_client/test/xrt/test_scalar_op.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/xrt/test_scalar_op.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/xrt/test_scalar_op.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 law or agr...
30.954955
82
0.679569
1c9c13b966ed1d8642bc1dbe94e7db88f1cf22b7
37,257
py
Python
src/werkzeug/serving.py
Saif807380/werkzeug
8ca0b2e3dc2101b95585518d85448d08b3b63568
[ "BSD-3-Clause" ]
1
2021-06-09T16:16:01.000Z
2021-06-09T16:16:01.000Z
src/werkzeug/serving.py
Saif807380/werkzeug
8ca0b2e3dc2101b95585518d85448d08b3b63568
[ "BSD-3-Clause" ]
null
null
null
src/werkzeug/serving.py
Saif807380/werkzeug
8ca0b2e3dc2101b95585518d85448d08b3b63568
[ "BSD-3-Clause" ]
null
null
null
"""A WSGI and HTTP server for use **during development only**. This server is convenient to use, but is not designed to be particularly stable, secure, or efficient. Use a dedicate WSGI server and HTTP server when deploying to production. It provides features like interactive debugging and code reloading. Use ``run_si...
34.950281
88
0.599941
b1238b392db5b6ed0b6b276db07671ce34097a41
485
py
Python
catalog/migrations/0062_auto_20210408_0026.py
Novel-Public-Health/Novel-Public-Health
fbb7dd0da64ae4fc9641097ca8056152129bd83b
[ "CC0-1.0" ]
null
null
null
catalog/migrations/0062_auto_20210408_0026.py
Novel-Public-Health/Novel-Public-Health
fbb7dd0da64ae4fc9641097ca8056152129bd83b
[ "CC0-1.0" ]
null
null
null
catalog/migrations/0062_auto_20210408_0026.py
Novel-Public-Health/Novel-Public-Health
fbb7dd0da64ae4fc9641097ca8056152129bd83b
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.2 on 2021-04-08 04:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0061_profile'), ] operations = [ migrations.AlterField( model_name='profile', name='user_type', ...
25.526316
156
0.589691
5c8f74e629743595efa08883b7ae4f2884f56205
6,860
py
Python
attackgraph/testing/testENV.py
wyz2368/deepRL
b92c7dc9c6dbec5ff217162c4fcce35695eabcbb
[ "MIT" ]
null
null
null
attackgraph/testing/testENV.py
wyz2368/deepRL
b92c7dc9c6dbec5ff217162c4fcce35695eabcbb
[ "MIT" ]
null
null
null
attackgraph/testing/testENV.py
wyz2368/deepRL
b92c7dc9c6dbec5ff217162c4fcce35695eabcbb
[ "MIT" ]
null
null
null
from attackgraph import DagGenerator as dag import random import numpy as np import time import os from attackgraph import rand_strategies_payoff as rp from attackgraph.sample_strategy import rand_att_str_generator, rand_def_str_generator from attackgraph import game_data from attackgraph.util import set_global_seed fr...
26.796875
86
0.701458
f7920e29528988094a3f163b43956f8350a2e1c6
3,125
py
Python
bspider/commands/__init__.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
3
2020-06-19T03:52:29.000Z
2021-05-21T05:50:46.000Z
bspider/commands/__init__.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
2
2021-03-31T19:39:03.000Z
2021-05-12T02:10:26.000Z
bspider/commands/__init__.py
littlebai3618/bspider
ff4d003cd0825247db4efe62db95f9245c0a303c
[ "BSD-3-Clause" ]
null
null
null
""" 整个 command 模块都参考了scrapy 的 commands模块 这里引用了scrapy 中的代码:https://github.com/scrapy/scrapy/blob/master/scrapy/commands/__init__.py """ import os import re from optparse import OptionGroup from os.path import join from shutil import ignore_patterns, copy2, copystat import bspider IGNORE = ignore_patterns('*.pyc', '.sv...
28.409091
89
0.5968
bcfcf0da80e009527a63eafa041c5e7d9a60327f
11,248
py
Python
src/oci/opsi/models/macs_managed_external_host_insight.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/opsi/models/macs_managed_external_host_insight.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/opsi/models/macs_managed_external_host_insight.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
38.389078
245
0.664207
1bccce4af3d315ed6234c93304e1346f81c1e070
192
py
Python
tokenwiser/extension/__init__.py
Btibert3/tokenwiser
64f78be285d24ebc53bcc6991466517aed633888
[ "Apache-2.0" ]
50
2020-11-21T04:29:34.000Z
2022-02-12T11:16:52.000Z
tokenwiser/extension/__init__.py
Btibert3/tokenwiser
64f78be285d24ebc53bcc6991466517aed633888
[ "Apache-2.0" ]
33
2020-11-26T11:03:52.000Z
2021-12-04T20:27:44.000Z
tokenwiser/extension/__init__.py
Btibert3/tokenwiser
64f78be285d24ebc53bcc6991466517aed633888
[ "Apache-2.0" ]
7
2021-04-07T08:54:34.000Z
2021-11-11T00:18:17.000Z
from ._extension import ( attach_hyphen_extension, attach_sklearn_extension, sklearn_method, ) __all__ = ["attach_hyphen_extension", "attach_sklearn_extension", "sklearn_method"]
24
83
0.776042
c43e3f52ce4dfe4d855ef2f2639b10ae02b033d5
16,706
py
Python
posthog/api/signup.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
58
2020-08-26T16:26:18.000Z
2022-03-30T05:32:23.000Z
posthog/api/signup.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
15
2021-11-09T10:49:34.000Z
2021-11-09T16:11:01.000Z
posthog/api/signup.py
brave-care/posthog
8edd14a16ad936fb241dcf856925e9f2ea87cba4
[ "MIT" ]
13
2020-09-08T13:27:07.000Z
2022-03-19T17:27:10.000Z
from typing import Any, Dict, Optional, Union, cast import posthoganalytics from django import forms from django.conf import settings from django.contrib.auth import login, password_validation from django.core.exceptions import ValidationError from django.db import IntegrityError, transaction from django.http import H...
39.03271
124
0.678499
0eed7f2c8ea6a73085f41a2f5b5b18624afa32db
31,208
py
Python
tests/unit/test_image.py
wuchih-amazon/sagemaker-python-sdk
716b2591d7c050a1ecb26d91cda1733302dd38a5
[ "Apache-2.0" ]
1
2020-09-22T19:13:36.000Z
2020-09-22T19:13:36.000Z
tests/unit/test_image.py
wuchih-amazon/sagemaker-python-sdk
716b2591d7c050a1ecb26d91cda1733302dd38a5
[ "Apache-2.0" ]
1
2019-04-23T19:32:17.000Z
2019-04-23T19:32:17.000Z
tests/unit/test_image.py
wuchih-amazon/sagemaker-python-sdk
716b2591d7c050a1ecb26d91cda1733302dd38a5
[ "Apache-2.0" ]
1
2020-04-30T07:43:57.000Z
2020-04-30T07:43:57.000Z
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
37.330144
102
0.676878
528f70a603776fba21d1b2867bba2294a8d8b171
4,588
py
Python
src/helow/reporter/serializers.py
BuildForSDG/team-079
817fd17f566be07c4b225c769ba6576462f080b8
[ "MIT" ]
null
null
null
src/helow/reporter/serializers.py
BuildForSDG/team-079
817fd17f566be07c4b225c769ba6576462f080b8
[ "MIT" ]
null
null
null
src/helow/reporter/serializers.py
BuildForSDG/team-079
817fd17f566be07c4b225c769ba6576462f080b8
[ "MIT" ]
null
null
null
"""The serializer class for all endpoints.""" from rest_framework import serializers from django.contrib.auth import get_user_model from reporter.models import IncidentReport, Place, IncidentType from config import Config as config class UserSerializer(serializers.Serializer): """User serializer class.""" i...
38.881356
98
0.717306
a7348497853933b78d8b132874bbe54747fe8345
634
py
Python
recipes/Python/578176_Click_counter_for_Windows/recipe-578176.py
tdiprima/code
61a74f5f93da087d27c70b2efe779ac6bd2a3b4f
[ "MIT" ]
2,023
2017-07-29T09:34:46.000Z
2022-03-24T08:00:45.000Z
recipes/Python/578176_Click_counter_for_Windows/recipe-578176.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
32
2017-09-02T17:20:08.000Z
2022-02-11T17:49:37.000Z
recipes/Python/578176_Click_counter_for_Windows/recipe-578176.py
unhacker/code
73b09edc1b9850c557a79296655f140ce5e853db
[ "MIT" ]
780
2017-07-28T19:23:28.000Z
2022-03-25T20:39:41.000Z
# -*- coding: utf-8 -*- ''' Click counter Left click: +1 Right click: -1 Middle click: Reset ''' import pyHook import pythoncom print(__doc__) click = 0 def left_down(event): global click click += 1 print(click) return True def right_down(event): global click click -= 1 print(click) ...
14.744186
40
0.690852
f07486c75788e245f7d0afd6c99ade614c8b1c1e
13,764
py
Python
sdk/lusid_asyncio/models/interest_rate_swap.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/interest_rate_swap.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
sdk/lusid_asyncio/models/interest_rate_swap.py
finbourne/lusid-sdk-python-asyncio-preview
290f93590ab5485661216c8622d3de9f7af0ed60
[ "MIT" ]
null
null
null
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 0.11.3923 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getf...
44.4
513
0.672406
a0717de16734fc5fca1cb26d5cf5e133d88b4bfc
23,775
py
Python
aiida/backends/djsite/querybuilder_django/querybuilder_django.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
1
2019-04-29T12:39:31.000Z
2019-04-29T12:39:31.000Z
aiida/backends/djsite/querybuilder_django/querybuilder_django.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
aiida/backends/djsite/querybuilder_django/querybuilder_django.py
tomzhang/aiida_core
949810e9f3daff0f748c5c9aa1dde4f5222bb49b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
38.658537
109
0.543596
754efeb117c966ab4ec29a10d93113198c0c187b
1,253
py
Python
nlp_utils.py
UKPLab/acl2017-theta_evaluation_summarization
e96868622c81cfe752be3795639b2fb415a5ee27
[ "Apache-2.0" ]
1
2021-08-24T13:06:09.000Z
2021-08-24T13:06:09.000Z
nlp_utils.py
Zhujunnan/acl2017-theta_evaluation_summarization
e96868622c81cfe752be3795639b2fb415a5ee27
[ "Apache-2.0" ]
null
null
null
nlp_utils.py
Zhujunnan/acl2017-theta_evaluation_summarization
e96868622c81cfe752be3795639b2fb415a5ee27
[ "Apache-2.0" ]
4
2017-08-04T10:08:01.000Z
2018-04-04T10:53:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division, unicode_literals # Get the python version (used to try decode an unknow instance to unicode) from sys import version_info PY3 = version_info[0] == 3 # Use classical Snowball stemmer for english impo...
27.23913
75
0.75419
70bd01d586dd7f8eea86542a16620ff09dd532e5
1,913
py
Python
Solutions/context_managers/raises.py
UWPCE-PythonCert/InstructorResources
13b1cfa4cad6a8c3491f8a602c8afda5400c9ac7
[ "Unlicense" ]
null
null
null
Solutions/context_managers/raises.py
UWPCE-PythonCert/InstructorResources
13b1cfa4cad6a8c3491f8a602c8afda5400c9ac7
[ "Unlicense" ]
1
2020-12-20T17:07:17.000Z
2020-12-20T17:07:17.000Z
Solutions/context_managers/raises.py
UWPCE-PythonCert/InstructorResources
13b1cfa4cad6a8c3491f8a602c8afda5400c9ac7
[ "Unlicense" ]
null
null
null
#!/usr/bin/env """ A couple nifty context managers """ import pytest class Failed(AssertionError): pass class Raises: def __init__(self, *args): print("initializing:", args) self.exceptions = args def __enter__(self): """nothing to be done here.""" pass def __exit__...
23.9125
75
0.604286
3e07f925e00bc7234535c433585744e3e5fad517
6,842
py
Python
synapse/federation/sender/transaction_manager.py
littlebenlittle/synapse
0eccf531466d762ede0dd365284a8465bfb18d0f
[ "Apache-2.0" ]
1
2021-04-27T19:04:56.000Z
2021-04-27T19:04:56.000Z
synapse/federation/sender/transaction_manager.py
littlebenlittle/synapse
0eccf531466d762ede0dd365284a8465bfb18d0f
[ "Apache-2.0" ]
null
null
null
synapse/federation/sender/transaction_manager.py
littlebenlittle/synapse
0eccf531466d762ede0dd365284a8465bfb18d0f
[ "Apache-2.0" ]
1
2021-09-27T14:45:52.000Z
2021-09-27T14:45:52.000Z
# -*- coding: utf-8 -*- # Copyright 2019 New Vector 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 la...
35.268041
84
0.560216
ce565923d8ea1d443ea14a76e71d9fd48b1a5863
1,991
py
Python
sdk/python/feast/templates/spark/example.py
jbvaningen/feast
70d4a1335312747521fc57e7742abf7eb85c12a6
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/templates/spark/example.py
jbvaningen/feast
70d4a1335312747521fc57e7742abf7eb85c12a6
[ "Apache-2.0" ]
null
null
null
sdk/python/feast/templates/spark/example.py
jbvaningen/feast
70d4a1335312747521fc57e7742abf7eb85c12a6
[ "Apache-2.0" ]
null
null
null
# # # # # # # # # # # # # # # # # # # # # # # # # This is an example feature definition file # # # # # # # # # # # # # # # # # # # # # # # # # from datetime import timedelta from pathlib import Path from feast import Entity, Feature, FeatureView, ValueType from feast.infra.offline_stores.contrib.spark_offline_store....
30.166667
87
0.698644
11ec79710f89b06deafd91461a3224c19335cfba
1,319
py
Python
exercicios/ex112/utilidadescev/moeda/__init__.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
exercicios/ex112/utilidadescev/moeda/__init__.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
exercicios/ex112/utilidadescev/moeda/__init__.py
gabrielaraujo3/exercicios-python
37a431854205e489cb7cede8fcae459bfef75a39
[ "MIT" ]
null
null
null
def aumentar(preco=0, taxa=0, formato=False): """ -> Calcula o aumentoo de um determinado preço, retornando o resultado com ou sem formatação. :param preco: o preço que se quer reajustar. :param taxa: qual é a porcentagem do aumento. :param formato: quer a saída formatada ou não? :return: o ...
30.674419
67
0.639121
f90e9035d79693f4c0777851555345f59deb6fa9
719
py
Python
WORDPLEASE/src/users/permissions.py
agdwm/08_KC_Python-Django_Entrega
cb28879624e7a8634cef703774894ff128557055
[ "MIT" ]
null
null
null
WORDPLEASE/src/users/permissions.py
agdwm/08_KC_Python-Django_Entrega
cb28879624e7a8634cef703774894ff128557055
[ "MIT" ]
2
2020-06-05T17:23:57.000Z
2021-03-19T21:53:45.000Z
WORDPLEASE/src/users/permissions.py
agdwm/08_KC_Python_Django_Entrega
cb28879624e7a8634cef703774894ff128557055
[ "MIT" ]
null
null
null
from rest_framework.permissions import BasePermission class UsersPermission(BasePermission): def has_permission(self, request, view): # We are importing "UserDetailAPI" here to avoid the Circular Dependency from users.api import UserDetailAPI if request.method == "POST" or request.user.i...
31.26087
105
0.705146
e0e32c682a4277921e8ec96e569bcc383c9962aa
3,750
py
Python
ecs_container_exporter/io_metrics.py
chroto/ecs-container-exporter
ea18a9f72b03f8184a443a86bc46b13cc3be7a99
[ "MIT" ]
null
null
null
ecs_container_exporter/io_metrics.py
chroto/ecs-container-exporter
ea18a9f72b03f8184a443a86bc46b13cc3be7a99
[ "MIT" ]
null
null
null
ecs_container_exporter/io_metrics.py
chroto/ecs-container-exporter
ea18a9f72b03f8184a443a86bc46b13cc3be7a99
[ "MIT" ]
null
null
null
import logging from collections import defaultdict from ecs_container_exporter.utils import create_metric, create_task_metrics, TASK_CONTAINER_NAME_TAG log = logging.getLogger() def calculate_io_metrics(stats, task_container_tags): """ Calculate IO metrics from the below data: "blkio_stats": { "...
30.991736
100
0.454133
80c1fdfe9eeea2166f0d717ef71ee3a1b2ef9725
15,834
py
Python
cse547/data.py
kspathak/cse547
2379c6435c871720aa7da53d3c8066a628e81830
[ "MIT" ]
null
null
null
cse547/data.py
kspathak/cse547
2379c6435c871720aa7da53d3c8066a628e81830
[ "MIT" ]
null
null
null
cse547/data.py
kspathak/cse547
2379c6435c871720aa7da53d3c8066a628e81830
[ "MIT" ]
1
2021-02-18T01:39:20.000Z
2021-02-18T01:39:20.000Z
from collections import OrderedDict, defaultdict import cv2 from math import ceil, floor import os import pickle import logging from typing import Callable, Dict, List, Optional, Set import numpy as np from PIL import Image import torch import torch.nn as nn from torch.utils.data import Dataset, DataLoader from pyco...
40.809278
141
0.598459
7a612c9601367a245fd3d51de7e25d66c0b71194
2,538
py
Python
libpermian/events/test_events.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
null
null
null
libpermian/events/test_events.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
9
2022-02-07T14:14:10.000Z
2022-03-22T09:17:16.000Z
libpermian/events/test_events.py
velezd/permian
b52189f44c3112ad933a6b1e303a6b30c272651a
[ "MIT" ]
3
2022-01-20T09:17:39.000Z
2022-03-08T00:35:58.000Z
import unittest from libpermian.events.factory import EventFactory from libpermian.events.base import Event from libpermian.events.builtin import UnknownEvent class TestEvent(Event): pass class Test2Event(Event): pass class Test2FooEvent(Event): pass class TestEventFactory(unittest.TestCase): OLD_EV...
32.961039
84
0.674547
a568335adb3437d803de6bf3ae7786a08f00dc82
2,363
py
Python
desuwa/cli.py
megagonlabs/desuwa
f29ab3149f47852cfbe4634f7e440abac66ddf10
[ "Apache-2.0" ]
5
2021-04-20T08:30:40.000Z
2021-05-22T15:45:14.000Z
desuwa/cli.py
megagonlabs/desuwa
f29ab3149f47852cfbe4634f7e440abac66ddf10
[ "Apache-2.0" ]
21
2021-05-11T00:44:46.000Z
2022-03-31T01:12:32.000Z
desuwa/cli.py
megagonlabs/desuwa
f29ab3149f47852cfbe4634f7e440abac66ddf10
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import argparse from pathlib import Path import desuwa.predicate from desuwa.rule import loads_tags from desuwa.rule.rule_mrph import RulerMrph, RulesLevelMrph from desuwa.rule.rule_tag import RulerTag, RulesLevelTag from desuwa.util import get_mlist DEFAULT_RULE_BASE = Path(__file__).parent....
30.688312
100
0.619975
d0c45401766b143f8f665b24856f87379f6819dd
3,395
py
Python
2020/day23_sol.py
vladan-stojnic/AdventOfCode
f694179a5d62c42112a0f8e50a6f75c18760e8eb
[ "MIT" ]
null
null
null
2020/day23_sol.py
vladan-stojnic/AdventOfCode
f694179a5d62c42112a0f8e50a6f75c18760e8eb
[ "MIT" ]
null
null
null
2020/day23_sol.py
vladan-stojnic/AdventOfCode
f694179a5d62c42112a0f8e50a6f75c18760e8eb
[ "MIT" ]
null
null
null
import math class Node: def __init__(self, value=None, next_node=None): self.value = value self.next_node = next_node class CircularList: def __init__(self, values=None): self.head = None self.length = 0 self.min = None self.max = None self.elements = {}...
23.741259
81
0.540501
8ef9827c220417cb2b711f39b3cd1d6d65ae945c
1,939
py
Python
setup.py
myhro/bootstrap-vz-deb
16cdb8bbea979f0c084d5b9adbb9ee572e343065
[ "Apache-2.0" ]
null
null
null
setup.py
myhro/bootstrap-vz-deb
16cdb8bbea979f0c084d5b9adbb9ee572e343065
[ "Apache-2.0" ]
null
null
null
setup.py
myhro/bootstrap-vz-deb
16cdb8bbea979f0c084d5b9adbb9ee572e343065
[ "Apache-2.0" ]
null
null
null
from setuptools import setup from setuptools import find_packages import os.path def find_version(path): import re version_file = open(path).read() version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) if version_match: return version_match.group(1) raise RuntimeError("Unable to ...
45.093023
95
0.605982
7a5982e8c6f9251868f58353d2d70e70fb87959c
283
py
Python
assingment/student_score.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
assingment/student_score.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
assingment/student_score.py
thepros847/python_programiing
d177f79d0d1f21df434bf3f8663ae6469fcf8357
[ "MIT" ]
null
null
null
student_score = float(input("Enter student exams score:")) if student_score >= 90: print("student gets a laptop") elif student_score >= 59: print("student gets a tablet") elif student_score >= 0: print("student gets a nothing") else: print (" student not specify")
25.727273
58
0.689046
69603c1f843a39570903fedad24f73314c691f8a
111,028
py
Python
youtube_dl/extractor/youtube.py
rajkotraja/YTDownloader
01a0c511ebfa56699c1f58164c679b24f7972681
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/youtube.py
rajkotraja/YTDownloader
01a0c511ebfa56699c1f58164c679b24f7972681
[ "Unlicense" ]
null
null
null
youtube_dl/extractor/youtube.py
rajkotraja/YTDownloader
01a0c511ebfa56699c1f58164c679b24f7972681
[ "Unlicense" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals import itertools import json import os.path import random import re import time import traceback from .common import InfoExtractor, SearchInfoExtractor from ..jsinterp import JSInterpreter from ..swfinterp import SWFInterpreter from ..compat import ( compa...
46.06971
226
0.532289
10d9151df48209c6518cf47cef431472ba6db007
433
py
Python
committees/migrations/0045_committeespage_description.py
meagles/site
c54a61a0e9e98788086d0d9300baebbcac7fb625
[ "MIT" ]
null
null
null
committees/migrations/0045_committeespage_description.py
meagles/site
c54a61a0e9e98788086d0d9300baebbcac7fb625
[ "MIT" ]
null
null
null
committees/migrations/0045_committeespage_description.py
meagles/site
c54a61a0e9e98788086d0d9300baebbcac7fb625
[ "MIT" ]
null
null
null
# Generated by Django 3.2.11 on 2022-01-11 05:35 from django.db import migrations import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('committees', '0044_auto_20220109_0118'), ] operations = [ migrations.AddField( model_name='committeespage', ...
21.65
63
0.632794
041fcbb376bbd32f69b6ec283dabdaea9f55af8b
1,010
py
Python
bokeh/app.py
intuinno/capviz
46a18b6e3ed0a279e7c966fbfd3f3955db501cf7
[ "MIT" ]
null
null
null
bokeh/app.py
intuinno/capviz
46a18b6e3ed0a279e7c966fbfd3f3955db501cf7
[ "MIT" ]
null
null
null
bokeh/app.py
intuinno/capviz
46a18b6e3ed0a279e7c966fbfd3f3955db501cf7
[ "MIT" ]
null
null
null
from numpy.random import random from bokeh.io import curdoc from bokeh.layouts import column, row from bokeh.plotting import ColumnDataSource, Figure from bokeh.models.widgets import Select, TextInput def get_data(N): return dict(x=random(size=N), y=random(size=N), r=random(size=N) * 0.034) source = ColumnDataSo...
28.055556
77
0.718812
673348c900f2efa1b72a27143d4df7dbd75d7d89
7,969
py
Python
third_party/protobuf26/reflection.py
stdft112/depot_tools
52c7211807930272424213ff6127c209de790eca
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/protobuf26/reflection.py
stdft112/depot_tools
52c7211807930272424213ff6127c209de790eca
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/protobuf26/reflection.py
stdft112/depot_tools
52c7211807930272424213ff6127c209de790eca
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Protocol Buffers - Google's data interchange format # Copyright 2008 Google Inc. All rights reserved. # http://code.google.com/p/protobuf/ # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions o...
38.684466
80
0.759568
cec68cffe62818f86bcb7602204a99a0b0faaee7
2,120
py
Python
src/projects/migrations/0002_projectpermission_userpermissiongroupprojectpermission_userprojectpermission.py
nixplay/bullet-train-api
608422d174443a4d9178d875ccaeb756a771e908
[ "BSD-3-Clause" ]
1,259
2021-06-10T11:24:09.000Z
2022-03-31T10:30:44.000Z
src/projects/migrations/0002_projectpermission_userpermissiongroupprojectpermission_userprojectpermission.py
nixplay/bullet-train-api
608422d174443a4d9178d875ccaeb756a771e908
[ "BSD-3-Clause" ]
392
2021-06-10T11:12:29.000Z
2022-03-31T10:13:53.000Z
src/projects/migrations/0002_projectpermission_userpermissiongroupprojectpermission_userprojectpermission.py
nixplay/bullet-train-api
608422d174443a4d9178d875ccaeb756a771e908
[ "BSD-3-Clause" ]
58
2021-06-11T03:18:07.000Z
2022-03-31T14:39:10.000Z
# Generated by Django 2.2.10 on 2020-02-16 20:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('users', '0024_auto_2020...
40.769231
122
0.595755
ae512c49edadeb7e9fe1c733b66eb7670f6347b6
535
py
Python
libs/yowsup/yowsup/yowsup/layers/protocol_privacy/layer.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
22
2017-07-14T20:01:17.000Z
2022-03-08T14:22:39.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_privacy/layer.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
6
2017-07-14T21:03:50.000Z
2021-06-10T19:08:32.000Z
libs/yowsup/yowsup/yowsup/layers/protocol_privacy/layer.py
akshitpradhan/TomHack
837226e7b38de1140c19bc2d478eeb9e379ed1fd
[ "MIT" ]
13
2017-07-14T20:13:14.000Z
2020-11-12T08:06:05.000Z
from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer from .protocolentities import * class YowPrivacyProtocolLayer(YowProtocolLayer): def __init__(self): handleMap = { "iq": (self.recvIq, self.sendIq) } super(YowPrivacyProtocolLayer, self).__init__(handleMap) ...
28.157895
67
0.654206
d936bb78a27b77b8fadc963c9db698090024d1ca
1,240
py
Python
project_euler/problem_021/sol1.py
sourcery-ai-bot/Python
f1444aca73068e0c55f60ec63b12c53b402e54dd
[ "MIT" ]
null
null
null
project_euler/problem_021/sol1.py
sourcery-ai-bot/Python
f1444aca73068e0c55f60ec63b12c53b402e54dd
[ "MIT" ]
null
null
null
project_euler/problem_021/sol1.py
sourcery-ai-bot/Python
f1444aca73068e0c55f60ec63b12c53b402e54dd
[ "MIT" ]
null
null
null
""" Amicable Numbers Problem 21 Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n). If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers. For example, the proper divisors of 220 are 1, 2, 4, 5, 10,...
23.846154
79
0.589516
34ad2db0477662b87e374cd5be15b26b0053b6dc
101
py
Python
hw_twitterapi/twitterapiapp/apps.py
cerob/bounswe2018group6
6f18bfa629a7422862151050a4e187163baddb68
[ "MIT" ]
12
2018-02-06T06:52:07.000Z
2021-04-11T15:19:15.000Z
hw_twitterapi/twitterapiapp/apps.py
ozgursolak/bounswe2018group6
6f18bfa629a7422862151050a4e187163baddb68
[ "MIT" ]
151
2018-02-11T20:53:48.000Z
2019-01-08T08:35:46.000Z
hw_twitterapi/twitterapiapp/apps.py
ozgursolak/bounswe2018group6
6f18bfa629a7422862151050a4e187163baddb68
[ "MIT" ]
7
2018-02-06T20:27:25.000Z
2019-02-23T10:10:01.000Z
from django.apps import AppConfig class TwitterapiappConfig(AppConfig): name = 'twitterapiapp'
16.833333
37
0.782178
5b14b287d93b77b6e449d20c57f89371d2a5578e
4,318
py
Python
rocketchat_bot_app_bridge/BotBackendController.py
JargeZ/RocketChat-Simple-AppBot
859e5e2138ce19ed7cbb7f5888583924a6830103
[ "MIT" ]
3
2021-07-28T20:03:34.000Z
2022-01-26T14:08:04.000Z
rocketchat_bot_app_bridge/BotBackendController.py
JargeZ/RocketChat-Simple-AppBot
859e5e2138ce19ed7cbb7f5888583924a6830103
[ "MIT" ]
null
null
null
rocketchat_bot_app_bridge/BotBackendController.py
JargeZ/RocketChat-Simple-AppBot
859e5e2138ce19ed7cbb7f5888583924a6830103
[ "MIT" ]
null
null
null
import json import os import webhook_listener from loguru import logger import requests from rocketchat_bot_app_bridge.definitions.application import IBackendRequest, IToBackendButtonClick, EventType, \ IFromBackendRequestSendMessage from rocketchat_bot_app_bridge.definitions.message import IMessage from rocketch...
35.68595
118
0.602131
d54d7d31d526b1be713145942d13c9b3de734d0d
868
py
Python
Python/0021_merge_two_sorted_lists.py
codingyen/CodeAlone
b16653957258ac09f74bb1a380f29dd93e055a44
[ "MIT" ]
2
2018-08-20T04:38:06.000Z
2019-02-03T07:48:28.000Z
Python/0021_merge_two_sorted_lists.py
codingyen/CodeAlone
b16653957258ac09f74bb1a380f29dd93e055a44
[ "MIT" ]
null
null
null
Python/0021_merge_two_sorted_lists.py
codingyen/CodeAlone
b16653957258ac09f74bb1a380f29dd93e055a44
[ "MIT" ]
null
null
null
# What additional node do we need? # while condition? # curr = curr.next class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: def mergeTwoLists(self, l1, l2): curr = dummy = ListNode(0) while l1 and l2: if l1.val <...
22.842105
41
0.531106
8daaa0f70d7006a8abae26e22ea9e2bd901b0693
1,463
py
Python
src/arg_taker.py
maph420/yt_downloader
fac8681295875f0638330f9af333a109638b150f
[ "MIT" ]
null
null
null
src/arg_taker.py
maph420/yt_downloader
fac8681295875f0638330f9af333a109638b150f
[ "MIT" ]
null
null
null
src/arg_taker.py
maph420/yt_downloader
fac8681295875f0638330f9af333a109638b150f
[ "MIT" ]
null
null
null
import sys import argparse argsList=["-s","-d","--search","--download","-h","--help"] class unknown_parameter(Exception): pass def helpDisplay(): print("\n--------------------------------------") print("\tYT DOWNLOADER") print("\tmade by maph") print("--------------------------------------\n") ...
38.5
179
0.623377
bf9030f4eee7f7b2a4fee948b8a363510add52c8
82,855
py
Python
module4/Supporting Materials/subsample_covid.py
tcxxxx/SARS-CoV-2_workshop
93d93016a3ce955e3cde7e360417de695e47e0d6
[ "MIT" ]
18
2021-03-12T16:19:33.000Z
2021-09-04T18:19:57.000Z
module4/Supporting Materials/subsample_covid.py
babasaraki/SARS-CoV-2_workshop
5ff032a2d485d5bdda137c28634c8b51273f3040
[ "MIT" ]
null
null
null
module4/Supporting Materials/subsample_covid.py
babasaraki/SARS-CoV-2_workshop
5ff032a2d485d5bdda137c28634c8b51273f3040
[ "MIT" ]
14
2021-03-16T22:24:20.000Z
2021-05-04T13:56:50.000Z
#!/usr/bin/env python3 # # Subsample sequences # # # Author: Josh Cherry import os, sys, getopt, itertools import datetime, time, hashlib, random, pickle # Read fasta (from course.py) def fasta_read(fname_or_fid): """ Read sequences from a file in FASTA format. Returns a dictionary whose values are seque...
36.451826
100
0.487659
949bc1da5f62cb15ee831e9c9fde3c3d1b30f083
1,143
py
Python
test_algo.py
offthewallace/Extreme-clicking-Annotation
1fab5b7db668bebe1cc16e05030adb9f43327d7d
[ "MIT" ]
1
2020-04-27T23:52:56.000Z
2020-04-27T23:52:56.000Z
test_algo.py
offthewallace/Extreme-clicking-Annotation
1fab5b7db668bebe1cc16e05030adb9f43327d7d
[ "MIT" ]
null
null
null
test_algo.py
offthewallace/Extreme-clicking-Annotation
1fab5b7db668bebe1cc16e05030adb9f43327d7d
[ "MIT" ]
null
null
null
import math import numpy as np import sys, os import matplotlib.pyplot as plt from lxml import etree as ET import cv2 import random import pdb #ROW=640 #COL=640 img = cv2.imread('messi5.jpg') #print(path) point1x=309 point1y=76 point2x=56 point2y=149 point3x=367 point3y=635 point4x=617 point4y=571 (ROW,COL,_)= img....
23.8125
69
0.727909
cd90d1c57bb5a081e84666b3b2f953a0c67319c6
16,454
py
Python
experimental/language_structure/psl/psl_model_multiwoz_test.py
dvdzhang/uncertainty-baselines
8ce0d7494e5cae0719c1b750da4b61564e536636
[ "Apache-2.0" ]
null
null
null
experimental/language_structure/psl/psl_model_multiwoz_test.py
dvdzhang/uncertainty-baselines
8ce0d7494e5cae0719c1b750da4b61564e536636
[ "Apache-2.0" ]
null
null
null
experimental/language_structure/psl/psl_model_multiwoz_test.py
dvdzhang/uncertainty-baselines
8ce0d7494e5cae0719c1b750da4b61564e536636
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines 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 ap...
41.550505
110
0.656679
28e95434d5656e29feacd80157f4d9ec492b2fb8
2,325
py
Python
data.py
renqianluo/DAG2N
28381776ed26cd7148de8424c00f9b56ece72281
[ "Apache-2.0" ]
2
2018-06-29T07:51:27.000Z
2019-02-07T15:19:54.000Z
data.py
renqianluo/DAG2N
28381776ed26cd7148de8424c00f9b56ece72281
[ "Apache-2.0" ]
null
null
null
data.py
renqianluo/DAG2N
28381776ed26cd7148de8424c00f9b56ece72281
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import os import sys import random parser = argparse.ArgumentParser() # Basic model parameters. parser.add_argument('--data_dir', type=str, dest='data_dir', default='/tmp/cifar10_data', ...
26.724138
89
0.688172
994cb90d0d7583dd30e4a45f6c1fba6dccb468ad
5,387
py
Python
BParkingNano/python/tracksBPark_cff.py
nancymarinelli/BParkingNANO
d220fc7afb4f570dee0ca58d0ae84dc3e5befa95
[ "Apache-2.0" ]
null
null
null
BParkingNano/python/tracksBPark_cff.py
nancymarinelli/BParkingNANO
d220fc7afb4f570dee0ca58d0ae84dc3e5befa95
[ "Apache-2.0" ]
null
null
null
BParkingNano/python/tracksBPark_cff.py
nancymarinelli/BParkingNANO
d220fc7afb4f570dee0ca58d0ae84dc3e5befa95
[ "Apache-2.0" ]
1
2020-06-19T08:55:56.000Z
2020-06-19T08:55:56.000Z
import FWCore.ParameterSet.Config as cms from PhysicsTools.NanoAOD.common_cff import * tracksBPark = cms.EDProducer('TrackMerger', beamSpot = cms.InputTag("offlineBeamSpot"), trgMuon = cms.InputTag("muonTrgSelector:trgMuons"), ...
61.91954
149
0.635604
a061b9ca5f5e16b86b177f0efb181ee6283460f5
15,453
py
Python
vm_server/send/proto/request_pb2.py
googleinterns/automated-windows-vms
860edbba8956edc3b76893b2c1283eeacca8a0f6
[ "Apache-2.0" ]
3
2020-06-02T09:24:13.000Z
2020-11-17T10:14:35.000Z
vm_server/send/proto/request_pb2.py
googleinterns/automated-windows-vms
860edbba8956edc3b76893b2c1283eeacca8a0f6
[ "Apache-2.0" ]
6
2020-06-09T13:48:05.000Z
2022-03-12T00:43:38.000Z
vm_server/send/proto/request_pb2.py
googleinterns/automated-windows-vms
860edbba8956edc3b76893b2c1283eeacca8a0f6
[ "Apache-2.0" ]
1
2020-10-12T21:37:26.000Z
2020-10-12T21:37:26.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/request.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _sy...
39.320611
1,255
0.753317
80f927f24c133e72117f306e0c43702fb88fafdc
2,162
py
Python
setup.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
33
2019-12-05T15:20:26.000Z
2022-03-27T17:53:57.000Z
setup.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
12
2020-03-23T08:54:32.000Z
2021-11-07T14:33:04.000Z
setup.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
16
2019-12-05T14:10:57.000Z
2021-07-30T14:12:10.000Z
from setuptools import setup meta = {} with open("athena/meta.py") as fp: exec(fp.read(), meta) # Package meta-data. IMPORTNAME = meta['__title__'] PIPNAME = meta['__packagename__'] DESCRIPTION = ( "Advanced Techniques for High dimensional parameter spaces to Enhance " "Numerical Analysis" ) URL = 'https:...
30.450704
76
0.689639
2b3654468d8b7c4f3914d8d26f2584bda6965ed3
363
py
Python
src/shell/shell.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
null
null
null
src/shell/shell.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
null
null
null
src/shell/shell.py
vkhaydarov/PlantEye
bfc4f59023cfa97012ce0e5ca1b94f97b88b6f69
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from src.configuration.config_provider import ConfigProvider class Shell(ABC): @abstractmethod def import_configuration(self, config_provider: ConfigProvider): pass @abstractmethod def apply_configuration(self): pass @abstractmethod def att...
21.352941
68
0.727273