hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
5ddc336e8c10627292e9d9762e105aa2a19572a4
262
py
Python
Chapter 10/trackbackLog.py
Miillky/automate_the_boring_stuff_with_python
284b074b0738c66f38b54fe0fc5f69b3446e7e43
[ "MIT" ]
null
null
null
Chapter 10/trackbackLog.py
Miillky/automate_the_boring_stuff_with_python
284b074b0738c66f38b54fe0fc5f69b3446e7e43
[ "MIT" ]
null
null
null
Chapter 10/trackbackLog.py
Miillky/automate_the_boring_stuff_with_python
284b074b0738c66f38b54fe0fc5f69b3446e7e43
[ "MIT" ]
null
null
null
import traceback try: raise Exception('This is the error message.') except: errorFile = open('./Chapter 10/errorInfo.txt', 'w') errorFile.write(traceback.format_exc()) errorFile.close() print('The traceback info was written to errorInfo.txt')
32.75
60
0.709924
0
0
0
0
0
0
0
0
108
0.412214
5dde2db2c5518f1b83b708f088e5f614029ac9a9
2,794
py
Python
Module_III/PySparkNetworkSimilarityClass.py
wuchiehhan/KDD2019-HandsOn-Tutorial
0377ae4b2a74e9cc08b15c983e4e0f59ab02debe
[ "MIT" ]
null
null
null
Module_III/PySparkNetworkSimilarityClass.py
wuchiehhan/KDD2019-HandsOn-Tutorial
0377ae4b2a74e9cc08b15c983e4e0f59ab02debe
[ "MIT" ]
null
null
null
Module_III/PySparkNetworkSimilarityClass.py
wuchiehhan/KDD2019-HandsOn-Tutorial
0377ae4b2a74e9cc08b15c983e4e0f59ab02debe
[ "MIT" ]
null
null
null
# Databricks notebook source from pyspark.sql.types import * from pyspark.sql import functions as F import base64 import array # COMMAND ---------- # s is a base64 encoded float[] with first element being the magnitude def Base64ToFloatArray(s): arr = array.array('f', base64.b64decode(s)) return (arr[0], arr[1:])...
33.261905
126
0.678597
1,513
0.541518
0
0
82
0.029349
0
0
867
0.310308
5dde83861306805019c9d0827dc8148db30e9997
373
py
Python
fizzbuzz.py
vagnes/fizzbuzzgame
de72ffc5a21fbb3b1cfd930ef632b75697fa830f
[ "WTFPL" ]
null
null
null
fizzbuzz.py
vagnes/fizzbuzzgame
de72ffc5a21fbb3b1cfd930ef632b75697fa830f
[ "WTFPL" ]
null
null
null
fizzbuzz.py
vagnes/fizzbuzzgame
de72ffc5a21fbb3b1cfd930ef632b75697fa830f
[ "WTFPL" ]
null
null
null
print("Press q to quit") quit = False while quit is False: in_val = input("Please enter a positive integer.\n > ") if in_val is 'q': quit = True elif int(in_val) % 3 == 0 and int(in_val) % 5 == 0: print("FizzBuzz") elif int(in_val) % 5 == 0: print("Buzz") elif int(in_val) % ...
23.3125
59
0.530831
0
0
0
0
0
0
0
0
81
0.217158
5ddf93a5acfa110cbd927feae9cad660c39b795d
926
py
Python
lesson10019_projects/pen/data/transition.py
muzudho/py-state-machine-practice
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
[ "MIT" ]
null
null
null
lesson10019_projects/pen/data/transition.py
muzudho/py-state-machine-practice
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
[ "MIT" ]
null
null
null
lesson10019_projects/pen/data/transition.py
muzudho/py-state-machine-practice
e31c066f4cf142b6b6c5ff273b56a0f89428c59e
[ "MIT" ]
null
null
null
from lesson14_projects.pen.data.const import ( A, E_A, E_AN, E_IS, E_OVER, E_PEN, E_PIN, E_THAT, E_THIS, E_WAS, INIT, IS, PEN, THIS, ) pen_transition_doc_v19 = { "title": "This is a pen", "entry_state": INIT, "data": { INIT: { E_OV...
19.702128
46
0.327214
0
0
0
0
0
0
0
0
41
0.044276
5ddff0c682bfeb9cf9d9bdcf324ee0733eb92a14
2,899
py
Python
Animation/Main.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Animation/Main.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
Animation/Main.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
import gd,os,time from Html import Animation_Html from Iteration import Animation_Iteration from Write import Animation_Write from Base import * from Canvas2 import * from Canvas2 import Canvas2 from Image import Image from HTML import HTML __Canvas__=None class Animation( Animation_Html, Animation_...
23.762295
73
0.519489
2,637
0.909624
0
0
0
0
0
0
836
0.288375
5de1c133ca3046f5ca60bc9f85bbcefa4f2854dd
1,839
py
Python
pytorch_metric_learning/miners/distance_weighted_miner.py
junjungoal/pytorch_metric_learning
e56bb440d1ec63e13622025209135a788c6f51c1
[ "MIT" ]
1
2019-11-28T19:31:29.000Z
2019-11-28T19:31:29.000Z
pytorch_metric_learning/miners/distance_weighted_miner.py
junjungoal/pytorch_metric_learning
e56bb440d1ec63e13622025209135a788c6f51c1
[ "MIT" ]
null
null
null
pytorch_metric_learning/miners/distance_weighted_miner.py
junjungoal/pytorch_metric_learning
e56bb440d1ec63e13622025209135a788c6f51c1
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from .base_miner import BasePostGradientMiner import torch from ..utils import loss_and_miner_utils as lmu # adapted from # https://github.com/chaoyuaw/incubator-mxnet/blob/master/example/gluon/ # /embedding_learning/model.py class DistanceWeightedMiner(BasePostGradientMiner): def __init_...
39.978261
85
0.657423
1,585
0.861881
0
0
0
0
0
0
420
0.228385
5de3cc8b6cc08416f6501e8a2abc20d6706d9dfa
1,037
py
Python
Keywords/__init__.py
cassie01/PumpLibrary
c2a4884a36f4c6c6552fa942143ae5d21c120b41
[ "Apache-2.0" ]
null
null
null
Keywords/__init__.py
cassie01/PumpLibrary
c2a4884a36f4c6c6552fa942143ae5d21c120b41
[ "Apache-2.0" ]
null
null
null
Keywords/__init__.py
cassie01/PumpLibrary
c2a4884a36f4c6c6552fa942143ae5d21c120b41
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from .Alarm.alarm import Alarm from .DeliveryView.bolus import Bolus from .DeliveryView.info import Info from .DeliveryView.infusion import Infusion from .DeliveryView.infusion_parameter import InfusionParameter from .DeliveryView.priming import Priming from .HardwareControl.motor import Motor ...
31.424242
62
0.695275
0
0
0
0
0
0
0
0
182
0.175506
5de3f2eb79030c2d37fe6eb8becce065096245d7
1,656
py
Python
src/responsibleai/rai_analyse/constants.py
Azure/automl-devplat2-preview
05f327fe4c2504e9d49001ce26d8b49627214138
[ "MIT" ]
7
2021-05-12T01:52:09.000Z
2021-12-22T17:22:14.000Z
src/responsibleai/rai_analyse/constants.py
Azure/automl-devplat2-preview
05f327fe4c2504e9d49001ce26d8b49627214138
[ "MIT" ]
5
2021-04-16T21:27:44.000Z
2021-04-26T03:17:44.000Z
src/responsibleai/rai_analyse/constants.py
Azure/automl-devplat2-preview
05f327fe4c2504e9d49001ce26d8b49627214138
[ "MIT" ]
null
null
null
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- class DashboardInfo: MODEL_ID_KEY = "id" # To match Model schema MODEL_INFO_FILENAME = "model_info.json" RAI_INSIGHTS_MODEL_...
35.234043
80
0.710145
1,467
0.88587
0
0
0
0
0
0
891
0.538043
5de40eed6f013ca3b73d1af645e0c517f3a9ec93
4,728
py
Python
pulsar/apps/data/redis/store.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
1
2020-11-30T07:36:57.000Z
2020-11-30T07:36:57.000Z
pulsar/apps/data/redis/store.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
null
null
null
pulsar/apps/data/redis/store.py
goodboy/pulsar
e4b42d94b7e262a165782747d65f8b39fb8d3ba9
[ "BSD-3-Clause" ]
null
null
null
from functools import partial from pulsar import Connection, Pool, get_actor from pulsar.utils.pep import to_string from pulsar.apps.data import RemoteStore from pulsar.apps.ds import redis_parser from .client import RedisClient, Pipeline, Consumer, ResponseError from .pubsub import RedisPubSub, RedisChannels class...
33.295775
78
0.635787
4,406
0.931895
0
0
253
0.053511
1,668
0.352792
501
0.105964
5de5717649c5fb1c3b234920122bfea85236921f
1,068
py
Python
tasks/migrations/0005_auto_20200616_0123.py
tschelbs18/fruitful
66635cd521ffc0990275e32298419bfc2167b90b
[ "MIT" ]
null
null
null
tasks/migrations/0005_auto_20200616_0123.py
tschelbs18/fruitful
66635cd521ffc0990275e32298419bfc2167b90b
[ "MIT" ]
4
2020-06-04T14:20:33.000Z
2021-09-22T19:09:22.000Z
tasks/migrations/0005_auto_20200616_0123.py
tschelbs18/fruitful
66635cd521ffc0990275e32298419bfc2167b90b
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-16 05:23 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('tasks', '0004_auto_20200616_0116'), ] operations = [ migrations.AddField( model_name='userreward', ...
28.864865
93
0.601124
946
0.885768
0
0
0
0
0
0
181
0.169476
5de5910c5b5ea17215e0b0e1f87d78465a65ecbe
2,683
py
Python
pcg_libraries/src/pcg_gazebo/parsers/types/vector.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
42
2019-06-26T09:46:03.000Z
2022-03-18T17:56:26.000Z
pcg_libraries/src/pcg_gazebo/parsers/types/vector.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
9
2019-07-18T10:36:05.000Z
2020-10-02T15:26:32.000Z
pcg_libraries/src/pcg_gazebo/parsers/types/vector.py
boschresearch/pcg_gazebo_pkgs
1c112d01847ca4f8da61ce9b273e13d13bc7eb73
[ "Apache-2.0", "BSD-3-Clause" ]
2
2019-11-01T03:20:11.000Z
2020-10-15T23:23:44.000Z
# Copyright (c) 2019 - The Procedural Generation for Gazebo authors # For information on the respective copyright owner see the NOTICE file # # 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 # #...
40.044776
78
0.633619
1,952
0.727544
0
0
0
0
0
0
1,114
0.415207
5de5b5ee5bf23c10f66da04af7327075aad14c24
9,531
py
Python
tests/main/helpers/test_buyers_helpers.py
uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend
2325f01b1bdb13fb5b0afe7fe110c0be0c031da6
[ "MIT" ]
1
2021-05-06T22:37:05.000Z
2021-05-06T22:37:05.000Z
tests/main/helpers/test_buyers_helpers.py
uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend
2325f01b1bdb13fb5b0afe7fe110c0be0c031da6
[ "MIT" ]
108
2017-06-14T10:48:10.000Z
2021-06-11T08:55:25.000Z
tests/main/helpers/test_buyers_helpers.py
uk-gov-mirror/alphagov.digitalmarketplace-briefs-frontend
2325f01b1bdb13fb5b0afe7fe110c0be0c031da6
[ "MIT" ]
5
2017-06-27T15:13:11.000Z
2021-04-10T18:06:29.000Z
import mock import pytest from werkzeug.exceptions import NotFound import app.main.helpers as helpers from dmcontent.content_loader import ContentLoader from dmtestutils.api_model_stubs import BriefStub, FrameworkStub, LotStub content_loader = ContentLoader('tests/fixtures/content') content_loader.load_manifest('dos...
44.125
118
0.615255
9,114
0.956248
0
0
1,922
0.201658
0
0
2,274
0.23859
5de70a07393091d4b0d1b81bb83f4335c31b6482
3,329
py
Python
Plot/src/test/java/io/deephaven/db/plot/example_plots/PlottingPQ.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
null
null
null
Plot/src/test/java/io/deephaven/db/plot/example_plots/PlottingPQ.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
1
2022-03-03T21:24:40.000Z
2022-03-03T21:24:54.000Z
Plot/src/test/java/io/deephaven/db/plot/example_plots/PlottingPQ.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
null
null
null
import deephaven.TableTools as tt import deephaven.Plot as plt t = tt.emptyTable(50)\ .update("X = i + 5", "XLow = X -1", "XHigh = X + 1", "Y = Math.random() * 5", "YLow = Y - 1", "YHigh = Y + 1", "USym = i % 2 == 0 ? `AAPL` : `MSFT`") p = plt.plot("S1", t, "X", "Y").lineColor("black").show() p2 = plt.plot("S1"...
37.829545
153
0.578252
0
0
0
0
0
0
0
0
882
0.264944
5de7879bccf37dcddacbf558d1addbcf9aa0f808
1,366
py
Python
rhoci/test/routes.py
ahmedmagdyawaad/redhat-ci-dashboard
a9c0445add4e99bb44a8075752a62176968278df
[ "Apache-2.0" ]
8
2017-06-29T19:38:40.000Z
2021-07-25T18:55:37.000Z
rhoci/test/routes.py
ahmedmagdyawaad/redhat-ci-dashboard
a9c0445add4e99bb44a8075752a62176968278df
[ "Apache-2.0" ]
39
2017-06-21T07:35:02.000Z
2018-02-26T11:25:03.000Z
rhoci/test/routes.py
ahmedmagdyawaad/redhat-ci-dashboard
a9c0445add4e99bb44a8075752a62176968278df
[ "Apache-2.0" ]
7
2018-01-24T10:31:00.000Z
2021-09-18T12:27:46.000Z
# Copyright 2019 Arie Bregman # # 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 agree...
32.52381
78
0.694729
0
0
0
0
534
0.390922
0
0
783
0.573206
5de7a1ab9ad6ce3cc45b32937415c25c0fb99a65
546
py
Python
mitmproxy/net/http/http1/__init__.py
aarnaut/mitmproxy
a8b6f48374b28954f9d8fb5cabbc4fdcaebe9e3a
[ "MIT" ]
null
null
null
mitmproxy/net/http/http1/__init__.py
aarnaut/mitmproxy
a8b6f48374b28954f9d8fb5cabbc4fdcaebe9e3a
[ "MIT" ]
null
null
null
mitmproxy/net/http/http1/__init__.py
aarnaut/mitmproxy
a8b6f48374b28954f9d8fb5cabbc4fdcaebe9e3a
[ "MIT" ]
null
null
null
from .read import ( read_request_head, read_response_head, connection_close, expected_http_body_size, validate_headers, ) from .assemble import ( assemble_request, assemble_request_head, assemble_response, assemble_response_head, assemble_body, ) __all__ = [ "read_request_head", ...
21.84
50
0.727106
0
0
0
0
0
0
0
0
199
0.364469
5de7e5e6d54e182aae7ef185c563685a2425fd3b
1,211
py
Python
request_token/migrations/0009_requesttokenerror.py
alex-hutton/django-request-token
299c4cb22ce3012c7ef995a648e5b1ea6b8a84d7
[ "MIT" ]
null
null
null
request_token/migrations/0009_requesttokenerror.py
alex-hutton/django-request-token
299c4cb22ce3012c7ef995a648e5b1ea6b8a84d7
[ "MIT" ]
2
2019-11-13T22:22:41.000Z
2019-12-02T22:19:56.000Z
request_token/migrations/0009_requesttokenerror.py
hongquan/django-request-token
76a5f8fce268ff252900341c7dcd7e7d442effe1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2017-05-21 19:33 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('request_token', '0008_convert_token_data_to_jsonfield'), ...
44.851852
210
0.673823
1,022
0.843931
0
0
0
0
0
0
414
0.341866
5de81bead5f0058007dc4a5e3ad313c7ed6b6535
191
py
Python
01-basic-programs/04-lines.py
ncodeitgithub1/python-get-hands-dirty-programs
c9edb9e0bc9b2580737ca185935427343c550f01
[ "Apache-2.0" ]
null
null
null
01-basic-programs/04-lines.py
ncodeitgithub1/python-get-hands-dirty-programs
c9edb9e0bc9b2580737ca185935427343c550f01
[ "Apache-2.0" ]
null
null
null
01-basic-programs/04-lines.py
ncodeitgithub1/python-get-hands-dirty-programs
c9edb9e0bc9b2580737ca185935427343c550f01
[ "Apache-2.0" ]
1
2021-07-19T13:20:34.000Z
2021-07-19T13:20:34.000Z
#4 lines: Fibonacci, tuple assignment parents, babies = (1, 1) while babies < 100: print ('This generation has {0} babies'.format(babies)) parents, babies = (babies, parents + babies)
38.2
59
0.691099
0
0
0
0
0
0
0
0
69
0.361257
5de8ea4c838b0533ab68d0c0085a12cb95b9a807
896
py
Python
winter/controller.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
1
2020-03-28T14:54:28.000Z
2020-03-28T14:54:28.000Z
winter/controller.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
null
null
null
winter/controller.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
null
null
null
import typing from .core import Component _Controller = typing.TypeVar('_Controller') _ControllerType = typing.Type[_Controller] ControllerFactory = typing.NewType('ControllerFactory', typing.Callable[[typing.Type], object]) _controller_factory: typing.Optional[ControllerFactory] = None def controller(controller_cl...
30.896552
95
0.809152
0
0
0
0
0
0
0
0
32
0.035714
5de9426d377676b21fdbfe522c80d5ca38d85f47
7,000
bzl
Python
go/def.bzl
bobg/rules_go
fd11dd2768669dc2cc1f3a11f2b0b81d84e81c32
[ "Apache-2.0" ]
null
null
null
go/def.bzl
bobg/rules_go
fd11dd2768669dc2cc1f3a11f2b0b81d84e81c32
[ "Apache-2.0" ]
1
2022-02-18T15:47:32.000Z
2022-02-18T15:47:32.000Z
go/def.bzl
bobg/rules_go
fd11dd2768669dc2cc1f3a11f2b0b81d84e81c32
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Bazel 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 la...
37.037037
171
0.762143
0
0
0
0
0
0
0
0
5,352
0.764571
5deb3af9396589471b73ff049da7ac957d8d19d7
14,680
py
Python
anyway/parsers/united.py
ayalapol/anyway
ebf2436a8f9b152ae8f4d051c129bac754cb8cc1
[ "BSD-3-Clause" ]
null
null
null
anyway/parsers/united.py
ayalapol/anyway
ebf2436a8f9b152ae8f4d051c129bac754cb8cc1
[ "BSD-3-Clause" ]
null
null
null
anyway/parsers/united.py
ayalapol/anyway
ebf2436a8f9b152ae8f4d051c129bac754cb8cc1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import calendar import csv from datetime import datetime import os from flask_sqlalchemy import SQLAlchemy from sqlalchemy import and_ from ..constants import CONST from ..models import AccidentMarker from ..utilities import init_flask, decode_hebrew, open_utf8 from ..imp...
40.891365
136
0.596322
0
0
2,382
0.160382
0
0
0
0
4,082
0.274845
5deb5f7aaf6a1389fadf9c9089ff41e73863dbba
952
py
Python
libact/query_strategies/tests/test_variance_reduction.py
joequant/libact
4fbf4d59fd0d4e23858b264de2f35f674c50445b
[ "BSD-2-Clause" ]
1
2019-05-09T13:00:45.000Z
2019-05-09T13:00:45.000Z
libact/query_strategies/tests/test_variance_reduction.py
DunZhang/libact
e37e9ed6c36febe701d84b2d495c958ab02f0bc8
[ "BSD-2-Clause" ]
null
null
null
libact/query_strategies/tests/test_variance_reduction.py
DunZhang/libact
e37e9ed6c36febe701d84b2d495c958ab02f0bc8
[ "BSD-2-Clause" ]
1
2021-01-18T20:07:57.000Z
2021-01-18T20:07:57.000Z
import unittest from numpy.testing import assert_array_equal import numpy as np from libact.base.dataset import Dataset from libact.models import LogisticRegression from libact.query_strategies import VarianceReduction from .utils import run_qs class VarianceReductionTestCase(unittest.TestCase): """Variance red...
31.733333
77
0.615546
653
0.685924
0
0
0
0
0
0
69
0.072479
5dec35ee70a7a827dfe8596bcb69fa8833b6491d
15,992
py
Python
hysds/log_utils.py
fgreg/hysds
74a1019665b02f0f475cc4e7fc0a993dd71d7a53
[ "Apache-2.0" ]
null
null
null
hysds/log_utils.py
fgreg/hysds
74a1019665b02f0f475cc4e7fc0a993dd71d7a53
[ "Apache-2.0" ]
null
null
null
hysds/log_utils.py
fgreg/hysds
74a1019665b02f0f475cc4e7fc0a993dd71d7a53
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from builtins import open from builtins import str from future import standard_library standard_library.install_aliases() import os import re import json import copy imp...
36.763218
128
0.619497
0
0
0
0
4,984
0.311656
0
0
4,007
0.250563
5deeffa5857206493c1d342dae064f6fd87a3184
8,920
py
Python
openstack_dashboard/api/rest/swift.py
CplusShen/aurora-horizon
8df16b3b87097d5a19bae3752d4b341ac64bda75
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/api/rest/swift.py
CplusShen/aurora-horizon
8df16b3b87097d5a19bae3752d4b341ac64bda75
[ "Apache-2.0" ]
12
2022-03-22T07:28:29.000Z
2022-03-22T07:29:55.000Z
openstack_dashboard/api/rest/swift.py
CplusShen/aurora-horizon
8df16b3b87097d5a19bae3752d4b341ac64bda75
[ "Apache-2.0" ]
null
null
null
# Copyright 2015, Rackspace, US, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
31.971326
79
0.610762
7,737
0.867377
0
0
7,764
0.870404
0
0
2,967
0.332623
5def303cbd1f1433f2580e86e412f8af092aba1f
5,621
py
Python
datagen.py
kuangliu/pytorch-ssd
02ed1cbe6962e791895ab1c455dc5ddfb87291b9
[ "MIT" ]
124
2017-02-16T01:53:14.000Z
2022-02-22T12:48:13.000Z
datagen.py
droogg/pytorch-ssd
02ed1cbe6962e791895ab1c455dc5ddfb87291b9
[ "MIT" ]
10
2017-07-04T01:38:56.000Z
2021-08-03T09:34:34.000Z
datagen.py
droogg/pytorch-ssd
02ed1cbe6962e791895ab1c455dc5ddfb87291b9
[ "MIT" ]
43
2017-07-31T10:46:23.000Z
2021-02-16T14:12:42.000Z
'''Load image/class/box from a annotation file. The annotation file is organized as: image_name #obj xmin ymin xmax ymax class_index .. ''' from __future__ import print_function import os import sys import os.path import random import numpy as np import torch import torch.utils.data as data import torchvision.t...
31.9375
81
0.534424
5,209
0.926703
0
0
0
0
0
0
1,723
0.306529
5defd443987097ce80f96a0e6f43dc63945abf24
13,258
py
Python
lingvo/core/builder.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
2,611
2018-10-16T20:14:10.000Z
2022-03-31T14:48:41.000Z
lingvo/core/builder.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
249
2018-10-27T06:02:29.000Z
2022-03-30T18:00:39.000Z
lingvo/core/builder.py
allenwang28/lingvo
26d3d6672d3f46d8f281c2aa9f57166ef6296738
[ "Apache-2.0" ]
436
2018-10-25T05:31:45.000Z
2022-03-31T07:26:03.000Z
# Lint as: python3 # Copyright 2020 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 ...
36.827778
81
0.648439
12,079
0.911073
0
0
1,659
0.125132
0
0
7,314
0.551667
5defe80f544d4d152b4eab27921e74e04e7e4df0
4,589
py
Python
instmakelib/instmake_toolnames.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakelib/instmake_toolnames.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
instmakelib/instmake_toolnames.py
gilramir/instmake
7b083a5061be43e9b92bdcf0f3badda7c4107eef
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2010 by Cisco Systems, Inc. """ Manage the tool plugins and use them appropriately. """ import os TOOLNAME_PLUGIN_PREFIX = "toolname" class ToolNameManager: """ToolName plugins have to register with this manager the circumstances under which they wish to be called.""" def __init__(self, pl...
35.573643
78
0.58771
4,436
0.966659
0
0
0
0
0
0
1,342
0.292438
5df1af1171ca12ddbf5a2ce6aeb42a6d24730f8d
12,991
py
Python
raiden/tests/integration/long_running/test_stress.py
tirkarthi/raiden
dbd03ddda039332b54ec0c02d81cbe1100bc8028
[ "MIT" ]
2,101
2016-06-01T11:31:49.000Z
2022-03-27T20:13:19.000Z
raiden/tests/integration/long_running/test_stress.py
tirkarthi/raiden
dbd03ddda039332b54ec0c02d81cbe1100bc8028
[ "MIT" ]
5,291
2016-06-01T18:14:04.000Z
2022-03-31T11:19:09.000Z
raiden/tests/integration/long_running/test_stress.py
tirkarthi/raiden
dbd03ddda039332b54ec0c02d81cbe1100bc8028
[ "MIT" ]
484
2016-06-01T18:21:06.000Z
2022-03-22T10:29:45.000Z
import time from http import HTTPStatus from itertools import count from typing import Sequence import gevent import grequests import pytest import structlog from eth_utils import to_canonical_address from flask import url_for from raiden.api.python import RaidenAPI from raiden.api.rest import APIServer, RestAPI from...
31.531553
99
0.693557
0
0
0
0
2,252
0.173351
0
0
1,222
0.094065
5df24f88464dca8942f1f032db545a5522ed1674
8,796
py
Python
pyabsa/utils/preprocess.py
jackie930/PyABSA
3cf733f8b95610a69c985b4650309c24f42b44b5
[ "MIT" ]
null
null
null
pyabsa/utils/preprocess.py
jackie930/PyABSA
3cf733f8b95610a69c985b4650309c24f42b44b5
[ "MIT" ]
null
null
null
pyabsa/utils/preprocess.py
jackie930/PyABSA
3cf733f8b95610a69c985b4650309c24f42b44b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # file: preprocess.py # author: jackie # Copyright (C) 2021. All Rights Reserved. import os import pandas as pd import argparse import emoji import re from sklearn.model_selection import train_test_split parser = argparse.ArgumentParser() parser.add_argument("--inpath", type=str, required=True...
32.820896
118
0.582651
0
0
0
0
0
0
0
0
2,091
0.233058
5df2f0f840a2ef6d66c1e525c680fc2bedf30ceb
487
py
Python
apps/06_lolcat_factory/you_try/PRD/cat_service.py
dparito/10Apps-Python_w-Andy
77ca1ec280729a9002e49071e2f31cb5bc7b75cd
[ "MIT" ]
1
2019-04-29T17:43:22.000Z
2019-04-29T17:43:22.000Z
apps/06_lolcat_factory/you_try/PRD/cat_service.py
dparito/10Apps-Python_w-Andy
77ca1ec280729a9002e49071e2f31cb5bc7b75cd
[ "MIT" ]
null
null
null
apps/06_lolcat_factory/you_try/PRD/cat_service.py
dparito/10Apps-Python_w-Andy
77ca1ec280729a9002e49071e2f31cb5bc7b75cd
[ "MIT" ]
null
null
null
import os import shutil import requests def get_cat(folder, name): url = "http://consuming-python-services-api.azurewebsites.net/cats/random" data = get_data_from_url(url) save_image(folder, name, data) def get_data_from_url(url): response = requests.get(url, stream=True) return response.raw ...
22.136364
78
0.702259
0
0
0
0
0
0
0
0
78
0.160164
5df3d1e6a9c7a37c58251913284702c80bde4fc2
15,348
py
Python
dask/dataframe/io/hdf.py
TryTestspace/dask
86d4f7d8c6d48ec6c4b1de1b6cfd2d3f4e5a4c1b
[ "BSD-3-Clause" ]
1
2017-10-06T05:59:15.000Z
2017-10-06T05:59:15.000Z
dask/dataframe/io/hdf.py
TryTestspace/dask
86d4f7d8c6d48ec6c4b1de1b6cfd2d3f4e5a4c1b
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/io/hdf.py
TryTestspace/dask
86d4f7d8c6d48ec6c4b1de1b6cfd2d3f4e5a4c1b
[ "BSD-3-Clause" ]
1
2021-03-28T04:50:43.000Z
2021-03-28T04:50:43.000Z
from __future__ import absolute_import, division, print_function from fnmatch import fnmatch from glob import glob import os import uuid from warnings import warn import pandas as pd from toolz import merge from .io import _link from ...base import get_scheduler from ..core import DataFrame, new_dd_object from ... i...
36.028169
95
0.601968
0
0
0
0
0
0
0
0
7,169
0.467097
5df431be7adb55ae6ec852df04ddc2566bd34906
2,411
py
Python
src/charma/media_info/manager.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-01-16T23:36:10.000Z
2020-01-16T23:36:10.000Z
src/charma/media_info/manager.py
mononobi/imovie-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
24
2020-06-08T18:27:04.000Z
2021-06-06T12:01:39.000Z
src/charma/media_info/manager.py
mononobi/charma-server
ed90f5ec0b5ff3996232d5fe49a4f77f96d82ced
[ "BSD-3-Clause" ]
1
2020-12-20T05:29:04.000Z
2020-12-20T05:29:04.000Z
# -*- coding: utf-8 -*- """ media info manager module. """ from pyrin.core.mixin import HookMixin from pyrin.core.structs import Manager import pyrin.utils.path as path_utils from charma.media_info import MediaInfoPackage from charma.media_info.interface import AbstractMediaInfoProvider from charma.media_info.except...
28.702381
90
0.633762
2,042
0.846951
0
0
0
0
0
0
1,119
0.464123
5df7763c501c1594868f6878a3ef39da6fe70cae
842
py
Python
tests/test_parsers.py
FlorisHoogenboom/BoxRec
c9cc5d149318f916facdf57d7dbe94e797d81582
[ "MIT" ]
5
2018-04-20T11:47:43.000Z
2021-05-04T18:54:16.000Z
tests/test_parsers.py
FlorisHoogenboom/BoxRec
c9cc5d149318f916facdf57d7dbe94e797d81582
[ "MIT" ]
1
2018-03-21T08:44:25.000Z
2018-03-22T12:08:17.000Z
tests/test_parsers.py
FlorisHoogenboom/BoxRec
c9cc5d149318f916facdf57d7dbe94e797d81582
[ "MIT" ]
6
2018-03-16T14:05:55.000Z
2018-03-16T14:08:41.000Z
import unittest from boxrec.parsers import FightParser class MockResponse(object): def __init__(self, content, encoding, url): self.content= content self.encoding = encoding self.url = url class TestFightParser(unittest.TestCase): def setUp(self): with open('mock_data/fights/...
25.515152
77
0.63658
778
0.92399
0
0
0
0
0
0
152
0.180523
5df786c7bbc659882d2ccb4bb744e69c8b4ccbd8
4,868
py
Python
hyperdock/common/workqueue.py
ErikGartner/hyperdock
19510b4bf1e123576d7be067555d959cb8a7cf45
[ "Apache-2.0" ]
8
2018-05-07T19:12:35.000Z
2021-12-21T01:30:48.000Z
hyperdock/common/workqueue.py
ErikGartner/hyperdock
19510b4bf1e123576d7be067555d959cb8a7cf45
[ "Apache-2.0" ]
92
2018-05-15T14:57:48.000Z
2019-12-27T10:48:25.000Z
hyperdock/common/workqueue.py
ErikGartner/hyperdock
19510b4bf1e123576d7be067555d959cb8a7cf45
[ "Apache-2.0" ]
2
2019-06-01T22:42:17.000Z
2019-12-25T12:48:36.000Z
from datetime import datetime, timedelta from bson.objectid import ObjectId WORK_TIMEOUT = 600 class WorkQueue: """ A simple MongoDB priority work queue that handles the queue of experiment. """ def __init__(self, mongodb): super().__init__() self._mongodb = mongodb sel...
31.205128
87
0.474528
4,768
0.979458
0
0
0
0
0
0
1,591
0.326828
5df79191a02e9cdc36eab83fa9b24e2f2d9fe213
7,695
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/apache_libcloud-0.15.1-py2.7.egg/libcloud/test/test_connection.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
libcloud/test/test_connection.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
libcloud/test/test_connection.py
elastacloud/libcloud
f3792b2dca835c548bdbce0da2eb71bfc9463b72
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more§ # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "Li...
36.995192
94
0.624172
6,645
0.863436
0
0
0
0
0
0
2,241
0.29119
5df7daeb42f8803f9c7b7af1f59daf2cde2ea6c7
3,605
py
Python
igibson/utils/data_utils/ext_object/scripts/step_1_visual_mesh.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
360
2020-04-02T11:12:09.000Z
2022-03-24T21:46:58.000Z
igibson/utils/data_utils/ext_object/scripts/step_1_visual_mesh.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
169
2020-04-07T21:01:05.000Z
2022-03-31T10:07:39.000Z
igibson/utils/data_utils/ext_object/scripts/step_1_visual_mesh.py
mamadbiabon/iGibson
d416a470240eb7ad86e04fee475ae4bd67263a7c
[ "MIT" ]
94
2020-04-09T23:22:17.000Z
2022-03-17T21:49:03.000Z
import os import sys import bpy script_dir = os.path.dirname(os.path.abspath(__file__)) utils_dir = os.path.join(script_dir, "../../blender_utils") sys.path.append(utils_dir) from utils import bake_model, clean_unused, export_ig_object, import_obj_folder ############################################# # Parse command...
33.073394
115
0.603606
0
0
0
0
0
0
0
0
1,114
0.309015
5df83448e7dd852878051c1b5e24915762ddad3f
3,057
py
Python
ceilometerclient/common/base.py
mail2nsrajesh/python-ceilometerclient
3b4e35abada626ce052f20d55c71fe12ab77052a
[ "Apache-2.0" ]
null
null
null
ceilometerclient/common/base.py
mail2nsrajesh/python-ceilometerclient
3b4e35abada626ce052f20d55c71fe12ab77052a
[ "Apache-2.0" ]
null
null
null
ceilometerclient/common/base.py
mail2nsrajesh/python-ceilometerclient
3b4e35abada626ce052f20d55c71fe12ab77052a
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 OpenStack Foundation # 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 requ...
28.570093
79
0.648021
1,928
0.630684
0
0
123
0.040236
0
0
1,424
0.465816
5dfa61d9200420a717e96bb426552082800e9861
11,020
py
Python
lib/charms/layer/azure.py
freyes/charm-azure-integrator
9c96eed30388e5e7ae2ff590574890e27e845b5c
[ "Apache-2.0" ]
null
null
null
lib/charms/layer/azure.py
freyes/charm-azure-integrator
9c96eed30388e5e7ae2ff590574890e27e845b5c
[ "Apache-2.0" ]
null
null
null
lib/charms/layer/azure.py
freyes/charm-azure-integrator
9c96eed30388e5e7ae2ff590574890e27e845b5c
[ "Apache-2.0" ]
null
null
null
import json import os import re import subprocess from base64 import b64decode from enum import Enum from math import ceil, floor from pathlib import Path from urllib.error import HTTPError from urllib.request import urlopen import yaml from charmhelpers.core import hookenv from charmhelpers.core.unitdata import kv ...
30.955056
79
0.649909
914
0.08294
0
0
307
0.027858
0
0
4,567
0.414428
5dfa81c4561263d9017352c96e5be1e9f43f9cf3
2,220
py
Python
Assignment-1/Code/server3.py
pankajk22/Computer-Networks-Assignments
5c227ef59c31ab52cde160568242dbbc84482bc5
[ "MIT" ]
null
null
null
Assignment-1/Code/server3.py
pankajk22/Computer-Networks-Assignments
5c227ef59c31ab52cde160568242dbbc84482bc5
[ "MIT" ]
null
null
null
Assignment-1/Code/server3.py
pankajk22/Computer-Networks-Assignments
5c227ef59c31ab52cde160568242dbbc84482bc5
[ "MIT" ]
null
null
null
import socket import csv import traceback import threading s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) usrpass={} def openfile(): filename="login_credentials.csv" with open(filename,'r')as csvfile: csv_file = csv.reader(csvfile, delimiter=",") for col in csv_file: usrpas...
23.368421
95
0.578378
0
0
0
0
0
0
0
0
588
0.264865
5dfb825aca8a665a7da3ab055c3e267e40f81b41
3,040
py
Python
research/utils/_check_pipelines.py
joaopfonseca/research
02659512218d077d9ef28d481178e62172ef18cd
[ "MIT" ]
1
2021-01-25T00:09:32.000Z
2021-01-25T00:09:32.000Z
mlresearch/utils/_check_pipelines.py
joaopfonseca/research
ac4ad6fa05b5985050c63dc9e4e18cd00965e09b
[ "MIT" ]
null
null
null
mlresearch/utils/_check_pipelines.py
joaopfonseca/research
ac4ad6fa05b5985050c63dc9e4e18cd00965e09b
[ "MIT" ]
null
null
null
from itertools import product from sklearn.base import clone from sklearn.preprocessing import FunctionTransformer from sklearn.model_selection import ParameterGrid from imblearn.pipeline import Pipeline from rlearn.utils import check_random_states def check_pipelines(objects_list, random_state, n_runs): """Extra...
31.666667
83
0.575329
0
0
0
0
0
0
0
0
514
0.169079
5dfbc6d76c2633ab81a042a9da06802874d69efe
2,986
py
Python
mushroom_rl/utils/plots/common_plots.py
PuzeLiu/mushroom-rl
99942b425e66b4ddcc26009d7105dde23841e95d
[ "MIT" ]
344
2020-01-10T09:45:02.000Z
2022-03-30T09:48:28.000Z
mushroom_rl/utils/plots/common_plots.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
44
2020-01-23T03:00:56.000Z
2022-03-25T17:14:22.000Z
mushroom_rl/utils/plots/common_plots.py
AmmarFahmy/mushroom-rl
2625ee7f64d5613b3b9fba00f0b7a39fece88ca5
[ "MIT" ]
93
2020-01-10T21:17:58.000Z
2022-03-31T17:58:52.000Z
from mushroom_rl.utils.plots import PlotItemBuffer, DataBuffer from mushroom_rl.utils.plots.plot_item_buffer import PlotItemBufferLimited class RewardPerStep(PlotItemBuffer): """ Class that represents a plot for the reward at every step. """ def __init__(self, plot_buffer): """ Constr...
28.990291
79
0.609846
2,833
0.948761
0
0
0
0
0
0
1,735
0.581045
5dfc18ba2772ffd25b6600bc97edfc21e288fb90
13,044
py
Python
libs/python-daemon-2.2.0/test/test_metadata.py
helion-security/helion
1e5f22da9808c4d67bb773b93c5295c72fcaf45a
[ "MIT" ]
1
2021-10-10T20:05:07.000Z
2021-10-10T20:05:07.000Z
libs/python-daemon-2.2.0/test/test_metadata.py
helion-security/helion
1e5f22da9808c4d67bb773b93c5295c72fcaf45a
[ "MIT" ]
null
null
null
libs/python-daemon-2.2.0/test/test_metadata.py
helion-security/helion
1e5f22da9808c4d67bb773b93c5295c72fcaf45a
[ "MIT" ]
5
2020-02-02T14:41:30.000Z
2022-03-18T08:34:01.000Z
# -*- coding: utf-8 -*- # # test/test_metadata.py # Part of ‘python-daemon’, an implementation of PEP 3143. # # This is free software, and you are welcome to redistribute it under # certain conditions; see the end of this file for copyright # information, grant of license, and disclaimer of warranty. """ Unit test for...
35.835165
79
0.611546
10,104
0.771769
0
0
5,267
0.402307
0
0
4,286
0.327375
5dfd3f4f20e57ebcb5265eb99e3913785aac266b
517
py
Python
objectModel/Python/cdm/persistence/cdmfolder/types/purpose_reference.py
wheatdog/CDM
8b6698f4a8b4f44132b12d97f9f261afcfeb798c
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/cdm/persistence/cdmfolder/types/purpose_reference.py
wheatdog/CDM
8b6698f4a8b4f44132b12d97f9f261afcfeb798c
[ "CC-BY-4.0", "MIT" ]
3
2021-05-11T22:31:59.000Z
2021-08-04T04:04:18.000Z
objectModel/Python/cdm/persistence/cdmfolder/types/purpose_reference.py
wheatdog/CDM
8b6698f4a8b4f44132b12d97f9f261afcfeb798c
[ "CC-BY-4.0", "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from typing import Union, List from .purpose import * from .trait_reference import TraitReference from cdm.utilities import JObject class PurposeReference(JObje...
30.411765
94
0.733075
224
0.431599
0
0
0
0
0
0
220
0.423892
5dfe1873a422b9d98cb23a45aa91a24e21973cf8
1,725
py
Python
text_preprocessing/normalizer.py
cyberpunk317/inverted_index
f49ae3ca4f0255928986c1610c5ff8ee38c5f1ff
[ "MIT" ]
9
2021-09-03T10:02:16.000Z
2021-12-22T14:19:33.000Z
text_preprocessing/normalizer.py
cyberpunk317/inverted_index
f49ae3ca4f0255928986c1610c5ff8ee38c5f1ff
[ "MIT" ]
3
2021-04-19T17:13:57.000Z
2022-03-18T15:11:53.000Z
text_preprocessing/normalizer.py
cyberpunk317/inverted_index
f49ae3ca4f0255928986c1610c5ff8ee38c5f1ff
[ "MIT" ]
1
2021-12-11T09:47:46.000Z
2021-12-11T09:47:46.000Z
import re from typing import Union, List import nltk from bs4 import BeautifulSoup class Normalizer: def __init__(self): self.lemmatizer = nltk.stem.WordNetLemmatizer() def normalize(self, x: Union[list, str]) -> List[str]: """ Accepts text (possibly tokenized) and makes it ...
27.822581
86
0.506667
1,639
0.950145
0
0
0
0
0
0
289
0.167536
5dfe4e27d16878f382ef6d6119132647294b2b99
1,874
py
Python
env/lib/python3.7/site-packages/prompt_toolkit/filters/cli.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
2
2020-09-30T00:11:09.000Z
2021-10-04T13:00:38.000Z
env/lib/python3.7/site-packages/prompt_toolkit/filters/cli.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
9
2020-08-11T15:19:55.000Z
2022-03-12T00:11:12.000Z
env/lib/python3.7/site-packages/prompt_toolkit/filters/cli.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
2
2020-08-03T13:02:06.000Z
2020-11-04T03:15:44.000Z
""" For backwards-compatibility. keep this file. (Many people are going to have key bindings that rely on this file.) """ from __future__ import unicode_literals from .app import * __all__ = [ # Old names. 'HasArg', 'HasCompletions', 'HasFocus', 'HasSelection', 'HasValidationError', 'IsDon...
27.558824
88
0.766275
0
0
0
0
0
0
0
0
640
0.341515
5dfec5e4fee06a96072b5a9530a2216e08d3cbd3
1,988
py
Python
genetic/spaces.py
shilpasayura/bk
2b0a1aa9300da80e201264bcf80226b3c5ff4ad6
[ "MIT" ]
4
2018-09-08T10:30:27.000Z
2021-07-23T07:59:24.000Z
genetic/spaces.py
shilpasayura/bk
2b0a1aa9300da80e201264bcf80226b3c5ff4ad6
[ "MIT" ]
null
null
null
genetic/spaces.py
shilpasayura/bk
2b0a1aa9300da80e201264bcf80226b3c5ff4ad6
[ "MIT" ]
6
2018-09-07T05:54:17.000Z
2021-07-23T07:59:25.000Z
#spaces.py ''' AlgoHack Genetic Algorithm for University Semaster Planning Version 0.03 2018 Niranjan Meegammana Shilpasayura.org ''' import xdb def crt_spaces_table(cursor,drop=False): if (drop): sql="DROP TABLE IF EXISTS spaces;" success, count=xdb.runSQL(cursor, sql) sql='''C...
32.064516
147
0.628773
0
0
0
0
0
0
0
0
935
0.470322
5dff31a15c326fed56b2875daa3e36cda971efde
2,062
py
Python
threaded_remote_pi_camera.py
hyansuper/flask-video-streaming
a6ba19519b9ba5470e59e535552b3e8c448d57ae
[ "MIT" ]
7
2020-01-03T17:35:29.000Z
2021-11-24T14:29:50.000Z
threaded_remote_pi_camera.py
hyansuper/flask-video-streaming
a6ba19519b9ba5470e59e535552b3e8c448d57ae
[ "MIT" ]
null
null
null
threaded_remote_pi_camera.py
hyansuper/flask-video-streaming
a6ba19519b9ba5470e59e535552b3e8c448d57ae
[ "MIT" ]
4
2020-04-30T15:41:25.000Z
2021-08-07T17:05:54.000Z
import urllib.request import cv2 import numpy as np import time import threading class ThreadedRemotePiCamera: def __init__(self, pi_address, resolution=(320,240), framerate=10, hflip=False, vflip=False): if hflip and vflip: self.flip = -1 elif hflip: self.flip = 0 e...
31.242424
132
0.541707
1,979
0.959748
67
0.032493
0
0
0
0
232
0.112512
5dff826ca431e889e0cef41a0054e1a64431e876
22,520
py
Python
scheduler/misc/Ec2SpotCustomScheduler_jan19.py
jalawala/custom-kubernetes-scheduler
07ccba57610048185a245257a1501f6273399d80
[ "Apache-2.0" ]
4
2021-02-24T23:42:17.000Z
2021-03-10T06:31:35.000Z
misc-folder-ignore/scheduler/misc/Ec2SpotCustomScheduler_jan19.py
ABottleofWater7/custom-kubernetes-scheduler
f179a45c85291ba8d34d37e11a33396c94fd5bac
[ "Apache-2.0" ]
null
null
null
misc-folder-ignore/scheduler/misc/Ec2SpotCustomScheduler_jan19.py
ABottleofWater7/custom-kubernetes-scheduler
f179a45c85291ba8d34d37e11a33396c94fd5bac
[ "Apache-2.0" ]
2
2021-09-27T09:08:37.000Z
2022-03-21T04:20:07.000Z
#! /usr/bin/python3 import time import random import json import os from pprint import pprint from kubernetes.client.rest import ApiException from pint import UnitRegistry from collections import defaultdict from kubernetes import client, config, watch from timeloop import Timeloop from datetime import timedelt...
42.330827
281
0.607948
0
0
0
0
0
0
0
0
7,541
0.334858
5dffed5f88346db8858c1e4167f535bc237800cb
349
py
Python
local/utils/validate_label_locale.py
DewiBrynJones/docker-deepspeech-cy
99159a746651bd848a8309da7f676045913f3d25
[ "MIT" ]
3
2018-10-11T20:11:28.000Z
2019-02-01T02:46:46.000Z
local/utils/validate_label_locale.py
DewiBrynJones/docker-deepspeech-cy
99159a746651bd848a8309da7f676045913f3d25
[ "MIT" ]
1
2021-01-23T12:56:31.000Z
2021-01-27T15:32:38.000Z
local/utils/validate_label_locale.py
techiaith/docker-deepspeech-cy
99159a746651bd848a8309da7f676045913f3d25
[ "MIT" ]
6
2018-09-24T13:59:53.000Z
2018-10-23T09:29:46.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from clean_transcript import clean_transcript ALPHABET_FILE_PATH = "/DeepSpeech/bin/bangor_welsh/alphabet.txt" def validate_label(label): clean = clean_transcript(ALPHABET_FILE_PATH) cleaned, transcript = clean.clean(label) if cleaned: return transc...
23.266667
64
0.730659
0
0
0
0
0
0
0
0
88
0.252149
b900fe014c618b5968bd75cca2f986adc96f1a10
13,806
py
Python
src/models/nn/adaptive_softmax.py
dumpmemory/state-spaces
2a85503cb3e9e86cc05753950d4a249df9a0fffb
[ "Apache-2.0" ]
513
2021-11-03T23:08:23.000Z
2022-03-31T16:29:18.000Z
src/models/nn/adaptive_softmax.py
dumpmemory/state-spaces
2a85503cb3e9e86cc05753950d4a249df9a0fffb
[ "Apache-2.0" ]
18
2021-11-05T12:42:59.000Z
2022-03-27T19:49:55.000Z
src/models/nn/adaptive_softmax.py
MikeOwino/state-spaces
b6672bca994b6a36347f414faa59761e42b1e2b1
[ "Apache-2.0" ]
47
2021-11-04T01:32:54.000Z
2022-03-30T18:24:26.000Z
# Copyright (c) 2019-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...
39.786744
132
0.563378
12,471
0.903303
0
0
0
0
0
0
2,228
0.161379
b9014ad1cdd3760612e00e54f9b058e7af94d104
11,770
py
Python
the_el/cli.py
CityOfPhiladelphia/the-el
e3a97afc55d41f2e5fd76cef60ad9393dfa23547
[ "MIT" ]
11
2017-04-19T18:44:51.000Z
2022-03-07T22:36:47.000Z
the_el/cli.py
CityOfPhiladelphia/the-el
e3a97afc55d41f2e5fd76cef60ad9393dfa23547
[ "MIT" ]
9
2017-04-19T18:43:13.000Z
2017-12-08T16:42:38.000Z
the_el/cli.py
CityOfPhiladelphia/the-el
e3a97afc55d41f2e5fd76cef60ad9393dfa23547
[ "MIT" ]
3
2017-12-08T15:09:03.000Z
2018-08-14T02:42:01.000Z
import json import csv import sys import os import re import codecs import logging from logging.config import dictConfig import click import yaml from sqlalchemy import create_engine from jsontableschema_sql import Storage from smart_open import smart_open from . import postgres from . import carto csv.field_size_li...
37.603834
134
0.651572
0
0
0
0
9,799
0.83254
0
0
2,177
0.184962
b90258212d799fd07af2bd908c88516410b648a2
6,182
py
Python
examples/asr/experimental/speech_to_text_sclite.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
2
2021-06-23T19:16:59.000Z
2022-02-23T18:49:07.000Z
examples/asr/experimental/speech_to_text_sclite.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
null
null
null
examples/asr/experimental/speech_to_text_sclite.py
vadam5/NeMo
3c5db09539293c3c19a6bb7437011f91261119af
[ "Apache-2.0" ]
12
2021-06-20T08:56:10.000Z
2022-03-16T19:07:10.000Z
# 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...
38.880503
117
0.674054
0
0
41
0.006632
61
0.009867
0
0
1,707
0.276124
b9034036dd7c92efb32754807bdeb44d6dc9be42
1,335
py
Python
accalib/utils.py
pj0620/acca-video-series
1b09548014cc899ded5a8fdd1293f7fc121a98bc
[ "MIT" ]
null
null
null
accalib/utils.py
pj0620/acca-video-series
1b09548014cc899ded5a8fdd1293f7fc121a98bc
[ "MIT" ]
3
2020-04-16T09:24:48.000Z
2021-03-27T19:27:48.000Z
accalib/utils.py
pj0620/acca-video-series
1b09548014cc899ded5a8fdd1293f7fc121a98bc
[ "MIT" ]
1
2020-09-01T05:32:04.000Z
2020-09-01T05:32:04.000Z
from manimlib.imports import * from manimlib.utils import bezier import numpy as np class VectorInterpolator: def __init__(self,points): self.points = points self.n = len(self.points) self.dists = [0] for i in range(len(self.points)): self.dists += [np.linalg.norm( ...
31.785714
100
0.526592
1,250
0.93633
0
0
0
0
0
0
15
0.011236
b90426c42855fd2a5119f138e577d0e9dbffc737
297
py
Python
setup.py
def-mycroft/rapid-plotly
87ba5d9e6894e2c3288435aae9a377647b006e79
[ "MIT" ]
1
2018-11-19T16:23:31.000Z
2018-11-19T16:23:31.000Z
setup.py
def-mycroft/rapid-plotly
87ba5d9e6894e2c3288435aae9a377647b006e79
[ "MIT" ]
10
2018-11-26T17:20:12.000Z
2019-05-06T14:29:54.000Z
setup.py
def-mycroft/rapid-plotly
87ba5d9e6894e2c3288435aae9a377647b006e79
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='rapid_plotly', version='0.1', description='Convenience functions to rapidly create beautiful Plotly graphs', author='Joseph Dasenbrock', author_email='dasenbrockjw@gmail.com', packages=['rapid_plotly'], zip_safe=False)
29.7
84
0.703704
0
0
0
0
0
0
0
0
141
0.474747
b9044d615f386c353b51176e0cfb09ae8fe5c1b6
5,834
py
Python
dodo.py
enerqi/bridge-bidding-systems
30ea2bf6f8bc0b786df4de8571063509d971236f
[ "MIT" ]
2
2020-05-24T17:30:55.000Z
2020-11-22T15:27:56.000Z
dodo.py
enerqi/bridge-bidding-systems
30ea2bf6f8bc0b786df4de8571063509d971236f
[ "MIT" ]
null
null
null
dodo.py
enerqi/bridge-bidding-systems
30ea2bf6f8bc0b786df4de8571063509d971236f
[ "MIT" ]
null
null
null
#! /usr/bin/doit -f # https://pydoit.org # `pip install [--user] doit` adds `doit.exe` to the PATH # - Note `doit auto`, the file watcher only works on Linux/Mac # - All commands are relative to dodo.py (doit runs in the working dir of dodo.py # even if ran from a different directory `doit -f path/to/dodo.py`) from g...
37.159236
118
0.652383
0
0
3,587
0.614844
0
0
0
0
1,967
0.337161
b904eadc54bfc2aeedb89068e48092d072692ffd
620
py
Python
learn/hard-way/EmptyFileError.py
hustbill/Python-auto
9f43bc2613a64a373927047ac52d8e90ffe644f8
[ "Apache-2.0" ]
null
null
null
learn/hard-way/EmptyFileError.py
hustbill/Python-auto
9f43bc2613a64a373927047ac52d8e90ffe644f8
[ "Apache-2.0" ]
null
null
null
learn/hard-way/EmptyFileError.py
hustbill/Python-auto
9f43bc2613a64a373927047ac52d8e90ffe644f8
[ "Apache-2.0" ]
null
null
null
class EmptyFileError(Exception): pass filenames = ["myfile1", "nonExistent", "emptyFile", "myfile2"] for file in filenames: try: f = open(file, 'r') line = f.readline() if line == "": f.close() raise EmptyFileError("%s: is empty" % file) # except IO...
31
73
0.504839
41
0.066129
0
0
0
0
0
0
363
0.585484
b9058a9a6aeb7e495abc710b44e918cfdd30a156
1,288
py
Python
plugins/crumbling_in.py
jimconner/digital_sky
9427cd19dbd9fb1c82ca12fa8f962532d700c67f
[ "MIT" ]
2
2019-03-04T20:38:44.000Z
2019-03-15T22:34:25.000Z
plugins/crumbling_in.py
jimconner/digital_sky
9427cd19dbd9fb1c82ca12fa8f962532d700c67f
[ "MIT" ]
null
null
null
plugins/crumbling_in.py
jimconner/digital_sky
9427cd19dbd9fb1c82ca12fa8f962532d700c67f
[ "MIT" ]
null
null
null
# Crumbling In # Like randomised coloured dots and then they # increase on both sides getting closer and closer into the middle. import sys, traceback, random from numpy import array,full class animation(): def __init__(self,datastore): self.max_led = datastore.LED_COUNT self.pos = 0 self....
28.622222
67
0.470497
1,097
0.851708
0
0
0
0
0
0
126
0.097826
b905b9044ea31f3964e2eca2dbedd8cd13ec51f5
16,884
py
Python
pybleau/app/plotting/tests/test_plot_config.py
KBIbiopharma/pybleau
5cdfce603ad29af874f74f0f527adc6b4c9066e8
[ "MIT" ]
4
2020-02-27T22:38:29.000Z
2021-05-03T05:32:11.000Z
pybleau/app/plotting/tests/test_plot_config.py
KBIbiopharma/pybleau
5cdfce603ad29af874f74f0f527adc6b4c9066e8
[ "MIT" ]
85
2020-02-04T21:57:14.000Z
2021-05-03T14:29:40.000Z
pybleau/app/plotting/tests/test_plot_config.py
KBIbiopharma/pybleau
5cdfce603ad29af874f74f0f527adc6b4c9066e8
[ "MIT" ]
1
2020-02-20T00:45:09.000Z
2020-02-20T00:45:09.000Z
from __future__ import division from unittest import skipIf, TestCase import os from pandas import DataFrame import numpy as np from numpy.testing import assert_array_equal BACKEND_AVAILABLE = os.environ.get("ETS_TOOLKIT", "qt4") != "null" if BACKEND_AVAILABLE: from app_common.apptools.testing_utils import asser...
42.422111
79
0.636105
15,309
0.906716
0
0
11,226
0.66489
0
0
1,972
0.116797
b905bf0f95f0e168b31539b1c4fa3ef57493a4f1
1,220
py
Python
test/integration/languages/test_mixed.py
thomasrockhu/bfg9000
1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a
[ "BSD-3-Clause" ]
72
2015-06-23T02:35:13.000Z
2021-12-08T01:47:40.000Z
test/integration/languages/test_mixed.py
thomasrockhu/bfg9000
1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a
[ "BSD-3-Clause" ]
139
2015-03-01T18:48:17.000Z
2021-06-18T15:45:14.000Z
test/integration/languages/test_mixed.py
thomasrockhu/bfg9000
1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a
[ "BSD-3-Clause" ]
19
2015-12-23T21:24:33.000Z
2022-01-06T04:04:41.000Z
import os.path from .. import * class TestMixed(IntegrationTest): def __init__(self, *args, **kwargs): super().__init__(os.path.join('languages', 'mixed'), *args, **kwargs) def test_build(self): self.build(executable('program')) self.assertOutput([executable('program')], 'hello from ...
33.888889
77
0.644262
959
0.786066
0
0
552
0.452459
0
0
325
0.266393
b906c6820493a72163f757fe7ce4006f0287b820
821
py
Python
code/7/collections/namedtupe_example.py
TeamLab/introduction_to_pythoy_TEAMLAB_MOOC
ebf1ff02d6a341bfee8695eac478ff8297cb97e4
[ "MIT" ]
65
2017-11-01T01:57:21.000Z
2022-02-08T13:36:25.000Z
code/7/collections/namedtupe_example.py
TeamLab/introduction_to_pythoy_TEAMLAB_MOOC
ebf1ff02d6a341bfee8695eac478ff8297cb97e4
[ "MIT" ]
9
2017-11-03T15:05:30.000Z
2018-05-17T03:18:36.000Z
code/7/collections/namedtupe_example.py
TeamLab/introduction_to_pythoy_TEAMLAB_MOOC
ebf1ff02d6a341bfee8695eac478ff8297cb97e4
[ "MIT" ]
64
2017-11-01T01:57:23.000Z
2022-01-19T03:52:12.000Z
from collections import namedtuple # Basic example Point = namedtuple('Point', ['x', 'y']) p = Point(11, y=22) print(p[0] + p[1]) x, y = p print(x, y) print(p.x + p.y) print(Point(x=11, y=22)) from collections import namedtuple import csv f = open("users.csv", "r") next(f) reader = csv.reader(f) student_list = [] fo...
24.147059
77
0.685749
0
0
0
0
0
0
0
0
172
0.209501
b9078d0e4d15cf11492a86d93eb5a61b04a92b6f
1,439
py
Python
test/helper_tools/benchtool.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
4
2018-03-14T03:47:22.000Z
2018-06-28T08:00:39.000Z
test/helper_tools/benchtool.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
1
2021-05-09T11:18:14.000Z
2021-05-09T11:18:14.000Z
test/helper_tools/benchtool.py
dotnes/mitmproxy
5eb17bbf6d47c8d703763bfa41cf1ff3f98a632f
[ "MIT" ]
1
2018-04-22T15:43:46.000Z
2018-04-22T15:43:46.000Z
# Profile mitmdump with apachebench and # yappi (https://code.google.com/p/yappi/) # # Requirements: # - Apache Bench "ab" binary # - pip install click yappi from mitmproxy.main import mitmdump from os import system from threading import Thread import time import yappi import click class ApacheBenchThread(Thread): ...
25.245614
94
0.649062
289
0.200834
0
0
819
0.569145
0
0
445
0.309243
b907c416aa083b16df70a844cea0da2fdc9f29d9
8,922
py
Python
pivpy/graphics.py
alexliberzonlab/pivpy
c1c984cd669fce6f5c0b6a602d6a51ed3fec5954
[ "BSD-3-Clause" ]
1
2018-07-15T07:17:30.000Z
2018-07-15T07:17:30.000Z
pivpy/graphics.py
alexliberzonlab/pivpy
c1c984cd669fce6f5c0b6a602d6a51ed3fec5954
[ "BSD-3-Clause" ]
4
2018-06-14T14:02:45.000Z
2018-07-15T00:19:01.000Z
pivpy/graphics.py
alexliberzonlab/pivpy
c1c984cd669fce6f5c0b6a602d6a51ed3fec5954
[ "BSD-3-Clause" ]
1
2019-07-18T15:25:02.000Z
2019-07-18T15:25:02.000Z
# -*- coding: utf-8 -*- """ Various plots """ import numpy as np import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation, FFMpegWriter import xarray as xr import os def quiver(data, arrScale = 25.0, threshold = None, nthArr = 1, contourLevels = None, colbar = True, logscale = Fa...
32.922509
99
0.553015
0
0
0
0
0
0
0
0
3,550
0.397893
b9081ad94fb9a0b4f6e0a49043c2a08a7969c6fc
1,212
py
Python
configs/my_config/vit_base_aspp.py
BostonCrayfish/mmsegmentation
e8b87242b877bfe0c32ea2630c2fd08977d7dd4b
[ "Apache-2.0" ]
null
null
null
configs/my_config/vit_base_aspp.py
BostonCrayfish/mmsegmentation
e8b87242b877bfe0c32ea2630c2fd08977d7dd4b
[ "Apache-2.0" ]
null
null
null
configs/my_config/vit_base_aspp.py
BostonCrayfish/mmsegmentation
e8b87242b877bfe0c32ea2630c2fd08977d7dd4b
[ "Apache-2.0" ]
null
null
null
# model settings norm_cfg = dict(type='BN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained='pretrain/vit_base_patch16_224.pth', backbone=dict( type='VisionTransformer', img_size=(224, 224), patch_size=16, in_channels=3, embed_dim=768, dept...
28.857143
74
0.587459
0
0
0
0
0
0
0
0
237
0.195545
b9083abf7ea4269348156a83680d8a60f00f6033
69,300
py
Python
tripleo_ansible/ansible_plugins/modules/podman_container.py
smolar/tripleo-ansible
7bd37f019870c032bea71f22b305832932d81424
[ "Apache-2.0" ]
null
null
null
tripleo_ansible/ansible_plugins/modules/podman_container.py
smolar/tripleo-ansible
7bd37f019870c032bea71f22b305832932d81424
[ "Apache-2.0" ]
null
null
null
tripleo_ansible/ansible_plugins/modules/podman_container.py
smolar/tripleo-ansible
7bd37f019870c032bea71f22b305832932d81424
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2019 OpenStack Foundation # 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-...
34.65
99
0.601198
42,070
0.607071
0
0
1,084
0.015642
0
0
35,992
0.519365
b908698cf79967eaadf3686141afa64182f22f9d
4,756
py
Python
setup.py
UdoGi/dark-matter
3d49e89fa5e81f83144119f6216c5774176d203b
[ "MIT" ]
null
null
null
setup.py
UdoGi/dark-matter
3d49e89fa5e81f83144119f6216c5774176d203b
[ "MIT" ]
null
null
null
setup.py
UdoGi/dark-matter
3d49e89fa5e81f83144119f6216c5774176d203b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup # Modified from http://stackoverflow.com/questions/2058802/ # how-can-i-get-the-version-defined-in-setup-py-setuptools-in-my-package def version(): import os import re init = os.path.join('dark', '__init__.py') with open(init) as fp: initDat...
31.919463
75
0.603238
0
0
0
0
0
0
0
0
3,387
0.712153
b9093a206a1a67140ea6cc8087c03166f895cb37
1,732
py
Python
authenticationApp/templatetags/timetags.py
FilipBali/VirtualPortfolio-WebApplication
9236509205e37c2c682b7b2f518f5794a94fd178
[ "MIT" ]
null
null
null
authenticationApp/templatetags/timetags.py
FilipBali/VirtualPortfolio-WebApplication
9236509205e37c2c682b7b2f518f5794a94fd178
[ "MIT" ]
null
null
null
authenticationApp/templatetags/timetags.py
FilipBali/VirtualPortfolio-WebApplication
9236509205e37c2c682b7b2f518f5794a94fd178
[ "MIT" ]
null
null
null
# ====================================================================================================================== # Fakulta informacnich technologii VUT v Brne # Bachelor thesis # Author: Filip Bali (xbalif00) # License: MIT # ======================================================================================...
34.64
120
0.65127
0
0
0
0
0
0
0
0
496
0.286374
b909e91c70f62d03b4cb515c5e970eae1b71dc91
585
py
Python
pycfmodel/model/resources/properties/policy.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
23
2018-06-28T10:45:01.000Z
2021-05-07T11:12:39.000Z
pycfmodel/model/resources/properties/policy.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
27
2019-03-09T08:33:22.000Z
2022-03-03T14:59:11.000Z
pycfmodel/model/resources/properties/policy.py
donatoaz/pycfmodel
1586e290b67d2347493dd4a77d2b0c8ee6c0936b
[ "Apache-2.0" ]
7
2019-03-09T02:18:18.000Z
2021-07-22T20:33:09.000Z
from pycfmodel.model.resources.properties.policy_document import PolicyDocument from pycfmodel.model.resources.properties.property import Property from pycfmodel.model.types import Resolvable, ResolvableStr class Policy(Property): """ Contains information about an attached policy. Properties: - Poli...
32.5
118
0.788034
375
0.641026
0
0
0
0
0
0
269
0.459829
b90a40f6dda56faee8a822969d3d8c8da41382ab
99
py
Python
stlearn/__init__.py
mrahim/stacked-learn
b04b49f65f06de7f5b59ba4139b0f78f8d66d94a
[ "BSD-3-Clause" ]
2
2017-05-23T18:06:53.000Z
2017-08-18T19:03:04.000Z
stlearn/__init__.py
mrahim/stacked-learn
b04b49f65f06de7f5b59ba4139b0f78f8d66d94a
[ "BSD-3-Clause" ]
7
2017-03-14T15:56:20.000Z
2017-05-18T08:28:44.000Z
stlearn/__init__.py
mrahim/stacked-learn
b04b49f65f06de7f5b59ba4139b0f78f8d66d94a
[ "BSD-3-Clause" ]
1
2018-10-05T08:07:44.000Z
2018-10-05T08:07:44.000Z
from .stacking import StackingClassifier, stack_features from .multitask import MultiTaskEstimator
33
56
0.878788
0
0
0
0
0
0
0
0
0
0
b90a7ababb1e0f6301fc1099880a560c64176ef6
4,209
bzl
Python
samples/workload/XNNPACK/toolchain/emscripten_toolchain_config.bzl
utsavm9/wasm-micro-runtime
0960e82db2be30b741f5c83e7a57ea9056b2ab59
[ "Apache-2.0" ]
2
2020-08-27T03:48:31.000Z
2020-09-17T03:02:53.000Z
samples/workload/XNNPACK/toolchain/emscripten_toolchain_config.bzl
utsavm9/wasm-micro-runtime
0960e82db2be30b741f5c83e7a57ea9056b2ab59
[ "Apache-2.0" ]
3
2020-09-11T04:03:00.000Z
2020-09-23T06:16:43.000Z
samples/workload/XNNPACK/toolchain/emscripten_toolchain_config.bzl
utsavm9/wasm-micro-runtime
0960e82db2be30b741f5c83e7a57ea9056b2ab59
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019 Intel Corporation. All rights reserved. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES") load( "@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "feature", "flag_group", "flag_set", "tool_p...
30.5
82
0.434545
0
0
0
0
0
0
0
0
1,245
0.295795
b90aa19934d5d7330ff2185f5e9e641a32b1df92
8,781
py
Python
cloud_storages/gdrive/gdrive.py
toplenboren/safezone
eafad765ed7cd6f6b7607ac07e75fd843d32ee07
[ "MIT" ]
null
null
null
cloud_storages/gdrive/gdrive.py
toplenboren/safezone
eafad765ed7cd6f6b7607ac07e75fd843d32ee07
[ "MIT" ]
null
null
null
cloud_storages/gdrive/gdrive.py
toplenboren/safezone
eafad765ed7cd6f6b7607ac07e75fd843d32ee07
[ "MIT" ]
null
null
null
from __future__ import print_function import json from typing import List from functools import lru_cache from cloud_storages.http_shortcuts import * from database.database import Database from models.models import StorageMetaInfo, Resource, Size from cloud_storages.storage import Storage from cloud_storages.gdrive.c...
38.853982
135
0.59959
7,934
0.901181
0
0
2,499
0.283848
0
0
2,696
0.306224
b90b0ec76c39d933c89c13f5c997460e2300453d
677
py
Python
index/urls.py
darkestmidnight/fedcodeathon2018
2cac972b6eaebd7bfc47c02aade36b0f4a6869ab
[ "MIT" ]
1
2019-02-08T02:15:52.000Z
2019-02-08T02:15:52.000Z
index/urls.py
darkestmidnight/fedcodeathon2018
2cac972b6eaebd7bfc47c02aade36b0f4a6869ab
[ "MIT" ]
null
null
null
index/urls.py
darkestmidnight/fedcodeathon2018
2cac972b6eaebd7bfc47c02aade36b0f4a6869ab
[ "MIT" ]
1
2018-10-23T21:52:39.000Z
2018-10-23T21:52:39.000Z
from django.urls import re_path, include from . import views app_name='logged' # url mappings for the webapp. urlpatterns = [ re_path(r'^$', views.logged_count, name="logged_count"), re_path(r'^loggedusers/', views.logged, name="logged_users"), re_path(r'^settings/', views.user_settings, name="update_info...
42.3125
80
0.698671
0
0
0
0
0
0
0
0
265
0.391433
b90cb0cd96548302814d62e2805216240024b671
3,202
py
Python
scout/dao/item.py
uw-it-aca/scout
be787378c216f1fb172d68914a550a91c62bc264
[ "Apache-2.0" ]
7
2017-01-29T09:51:22.000Z
2022-02-24T16:40:55.000Z
scout/dao/item.py
uw-it-aca/scout
be787378c216f1fb172d68914a550a91c62bc264
[ "Apache-2.0" ]
338
2016-03-21T19:55:04.000Z
2022-03-30T21:12:28.000Z
scout/dao/item.py
uw-it-aca/scout
be787378c216f1fb172d68914a550a91c62bc264
[ "Apache-2.0" ]
4
2016-03-02T01:19:01.000Z
2016-12-13T14:48:31.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from scout.dao.space import get_spots_by_filter, _get_spot_filters, \ _get_extended_info_by_key import copy def get_item_by_id(item_id): spot = get_spots_by_filter([ ('item:id', item_id), ('extended...
28.846847
76
0.584635
0
0
0
0
0
0
0
0
361
0.112742
b90cef65b59792b28b4c92088d99214713e0be27
458
py
Python
juriscraper/opinions/united_states/state/minnctapp.py
umeboshi2/juriscraper
16abceb3747947593841b1c2708de84dcc85c59d
[ "BSD-2-Clause" ]
null
null
null
juriscraper/opinions/united_states/state/minnctapp.py
umeboshi2/juriscraper
16abceb3747947593841b1c2708de84dcc85c59d
[ "BSD-2-Clause" ]
null
null
null
juriscraper/opinions/united_states/state/minnctapp.py
umeboshi2/juriscraper
16abceb3747947593841b1c2708de84dcc85c59d
[ "BSD-2-Clause" ]
1
2021-03-03T00:03:16.000Z
2021-03-03T00:03:16.000Z
#Scraper for Minnesota Court of Appeals Published Opinions #CourtID: minnctapp #Court Short Name: MN #Author: mlr #Date: 2016-06-03 from juriscraper.opinions.united_states.state import minn class Site(minn.Site): # Only subclasses minn for the _download method. def __init__(self, *args, **kwargs): s...
26.941176
58
0.703057
263
0.574236
0
0
0
0
0
0
196
0.427948
b90d416b48352a6528abbda811ab137b9f58c6c2
1,223
py
Python
monty/os/__init__.py
JosephMontoya-TRI/monty
facef1776c7d05c941191a32a0b93f986a9761dd
[ "MIT" ]
null
null
null
monty/os/__init__.py
JosephMontoya-TRI/monty
facef1776c7d05c941191a32a0b93f986a9761dd
[ "MIT" ]
null
null
null
monty/os/__init__.py
JosephMontoya-TRI/monty
facef1776c7d05c941191a32a0b93f986a9761dd
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os import errno from contextlib import contextmanager __author__ = 'Shyue Ping Ong' __copyright__ = 'Copyright 2013, The Materials Project' __version__ = '0.1' __maintainer__ = 'Shyue Ping Ong' __email__ = 'ongsp@ucsd.edu' __date__ = '1/24/14' @contextmanager def cd(pa...
23.075472
111
0.6435
0
0
393
0.321341
409
0.334424
0
0
673
0.550286
b90f4e751b3217015ecc06286993d45ab12fc397
405
py
Python
{{ cookiecutter.repo_name }}/tests/test_environment.py
FrancisMudavanhu/cookiecutter-data-science
be766817a7399ccd714bf03d085609985fa7313a
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/tests/test_environment.py
FrancisMudavanhu/cookiecutter-data-science
be766817a7399ccd714bf03d085609985fa7313a
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/tests/test_environment.py
FrancisMudavanhu/cookiecutter-data-science
be766817a7399ccd714bf03d085609985fa7313a
[ "MIT" ]
null
null
null
import sys REQUIRED_PYTHON = "python3" required_major = 3 def main(): system_major = sys.version_info.major if system_major != required_major: raise TypeError( f"This project requires Python {required_major}." f" Found: Python {sys.version}") else: print(">>> ...
19.285714
62
0.632099
0
0
0
0
0
0
0
0
146
0.360494
b90f54d52259df5370c156bb89c17f8368958017
1,845
py
Python
documents/aws-doc-sdk-examples/python/example_code/kda/kda-python-datagenerator-stockticker.py
siagholami/aws-documentation
2d06ee9011f3192b2ff38c09f04e01f1ea9e0191
[ "CC-BY-4.0" ]
5
2021-08-13T09:20:58.000Z
2021-12-16T22:13:54.000Z
documents/aws-doc-sdk-examples/python/example_code/kda/kda-python-datagenerator-stockticker.py
siagholami/aws-documentation
2d06ee9011f3192b2ff38c09f04e01f1ea9e0191
[ "CC-BY-4.0" ]
null
null
null
documents/aws-doc-sdk-examples/python/example_code/kda/kda-python-datagenerator-stockticker.py
siagholami/aws-documentation
2d06ee9011f3192b2ff38c09f04e01f1ea9e0191
[ "CC-BY-4.0" ]
null
null
null
# snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] # snippet-sourcedescription:[kda-python-datagenerator-stockticker.py demonstrates how to generate sample data for Amazon Kinesis Data Analytics SQL applications.] # snippet-service:[kinesisanalytics] # snippet-keyword:[Python] # sn...
34.811321
162
0.720325
0
0
0
0
0
0
0
0
1,309
0.709485
b90fbfa2a7bb6e18e5af7e82345d7b5cf393db62
2,347
py
Python
backend/app.py
alexespejo/project-argus
53a6a8b1790906044bffbd2db156322938b62da9
[ "MIT" ]
1
2022-03-21T02:13:25.000Z
2022-03-21T02:13:25.000Z
backend/app.py
alexespejo/project-argus
53a6a8b1790906044bffbd2db156322938b62da9
[ "MIT" ]
null
null
null
backend/app.py
alexespejo/project-argus
53a6a8b1790906044bffbd2db156322938b62da9
[ "MIT" ]
null
null
null
import face_recognition from flask import Flask, request, redirect, Response import camera import firestore as db # You can change this to any folder on your system ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'} app = Flask(__name__) def allowed_file(filename): return '.' in filename and \ filename....
26.370787
94
0.672348
0
0
0
0
1,513
0.644653
0
0
459
0.195569
f8d46f993d25bd7f9f34660f23bf18928f5a3963
5,672
py
Python
module/classification_package/src/utils.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
module/classification_package/src/utils.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
module/classification_package/src/utils.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import numpy as np import logging import numbers import torch import math import json import sys from torch.optim.lr_scheduler import LambdaLR from torchvision.transforms.functional import pad class AverageMeter(object): """Computes and stores the average and current value""" def __init__(self): sel...
33.761905
117
0.653738
3,755
0.662024
0
0
0
0
0
0
1,299
0.22902
f8d470d1980749c03e842d69c111ae8c0604cde9
992
py
Python
tests/pylint_plugins/test_assert_raises_without_msg.py
L-Net-1992/mlflow
a90574dbb730935c815ff41a0660b9a823b81630
[ "Apache-2.0" ]
null
null
null
tests/pylint_plugins/test_assert_raises_without_msg.py
L-Net-1992/mlflow
a90574dbb730935c815ff41a0660b9a823b81630
[ "Apache-2.0" ]
null
null
null
tests/pylint_plugins/test_assert_raises_without_msg.py
L-Net-1992/mlflow
a90574dbb730935c815ff41a0660b9a823b81630
[ "Apache-2.0" ]
null
null
null
import pytest from tests.pylint_plugins.utils import create_message, extract_node, skip_if_pylint_unavailable pytestmark = skip_if_pylint_unavailable() @pytest.fixture(scope="module") def test_case(): import pylint.testutils from pylint_plugins import AssertRaisesWithoutMsg class TestAssertRaisesWithou...
30.060606
95
0.768145
114
0.114919
0
0
346
0.34879
0
0
112
0.112903
f8d49b043794456e8669c31d21ba4a68846ab71c
5,088
py
Python
SVassembly/plot_bcs_across_bkpts.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
null
null
null
SVassembly/plot_bcs_across_bkpts.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
null
null
null
SVassembly/plot_bcs_across_bkpts.py
AV321/SVPackage
c9c625af7f5047ddb43ae79f8beb2ce9aadf7697
[ "MIT" ]
1
2019-01-22T19:16:24.000Z
2019-01-22T19:16:24.000Z
import pandas as pd import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.colors import csv from scipy.stats import mode import math as m import os import collections #set working directory #os.chdir("/mnt/ix1/Projects/M002_131217_gastric/P00526/P00526_WG10_15072...
36.085106
228
0.605149
0
0
0
0
0
0
0
0
1,289
0.253341
f8d6b09688dbea2ed0259d01f1aa0504d9acbfdc
821
py
Python
bites/bite029.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite029.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
null
null
null
bites/bite029.py
ChidinmaKO/Chobe-bitesofpy
2f933e6c8877a37d1ce7ef54ea22169fc67417d3
[ "MIT" ]
1
2019-07-16T19:12:52.000Z
2019-07-16T19:12:52.000Z
def get_index_different_char(chars): alnum = [] not_alnum = [] for index, char in enumerate(chars): if str(char).isalnum(): alnum.append(index) else: not_alnum.append(index) result = alnum[0] if len(alnum) < len(not_alnum) else not_alnum[0] return result ...
30.407407
74
0.478685
0
0
0
0
0
0
0
0
161
0.195864
f8d75cfce0f3dc1a5df25624c4dcbf0a3624f6c0
2,917
py
Python
language-detection-webapp/blueprints/langid.py
derlin/SwigSpot_Schwyzertuutsch-Spotting
f38c8243ff34c6e512cadab5e4f51b08dacc16c6
[ "Apache-2.0" ]
6
2018-06-17T07:14:32.000Z
2020-03-02T15:28:25.000Z
language-detection-webapp/blueprints/langid.py
derlin/SwigSpot_Schwyzertuutsch-Spotting
f38c8243ff34c6e512cadab5e4f51b08dacc16c6
[ "Apache-2.0" ]
1
2021-03-31T18:42:26.000Z
2021-03-31T18:42:26.000Z
language-detection-webapp/blueprints/langid.py
derlin/SwigSpot_Schwyzertuutsch-Spotting
f38c8243ff34c6e512cadab5e4f51b08dacc16c6
[ "Apache-2.0" ]
1
2019-04-16T09:18:08.000Z
2019-04-16T09:18:08.000Z
import logging from flask import Blueprint from flask import Flask, render_template, request, flash from flask_wtf import FlaskForm from wtforms import StringField, validators, SelectField, BooleanField from wtforms.fields.html5 import IntegerRangeField from wtforms.widgets import TextArea import langid from utils.u...
29.765306
106
0.65204
1,120
0.383956
0
0
1,393
0.477545
0
0
256
0.087761
f8d7e5ead057431bae183bbe4b52bcbc1bde7f4d
962
py
Python
var/spack/repos/builtin/packages/r-xts/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2020-09-10T22:50:08.000Z
2021-01-12T22:18:54.000Z
var/spack/repos/builtin/packages/r-xts/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
14
2021-07-20T01:04:53.000Z
2022-03-02T01:08:36.000Z
var/spack/repos/builtin/packages/r-xts/package.py
kehw/spack
4f49b1a9301447a8cf880c99820cad65e5c2d7e3
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2021-05-06T00:17:46.000Z
2021-05-06T00:17:46.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RXts(RPackage): """Provide for uniform handling of R's different time-based data classes b...
41.826087
96
0.748441
741
0.77027
0
0
0
0
0
0
783
0.813929
f8d9062a56a02a0e0c258c3b8d23088b9caa04a9
11,421
py
Python
sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/core/BASECLASSES/JSConfigsBCDB.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
# Copyright (C) July 2018: TF TECH NV in Belgium see https://www.threefold.tech/ # In case TF TECH NV ceases to exist (e.g. because of bankruptcy) # then Incubaid NV also in Belgium will get the Copyright & Authorship for all changes made since July 2018 # and the license will automatically become Apache v2 for al...
34.609091
175
0.571228
10,244
0.896944
0
0
0
0
0
0
3,796
0.33237
f8da2f02f4840468e37f0eba92152ef522fab6ae
2,589
py
Python
source/tree.py
holderekt/regression-tree
130fe07262faea8681159092718310d9aefe9889
[ "MIT" ]
null
null
null
source/tree.py
holderekt/regression-tree
130fe07262faea8681159092718310d9aefe9889
[ "MIT" ]
null
null
null
source/tree.py
holderekt/regression-tree
130fe07262faea8681159092718310d9aefe9889
[ "MIT" ]
null
null
null
import utils as utl import error_measures as err # Regression Tree Node class Node: def __init__(self, parent, node_id, index=None, value=None, examples=None, prediction=0): self.index = index self.id = node_id self.prediction = prediction self.value = value self.parent = pa...
29.758621
93
0.588644
2,494
0.963306
0
0
0
0
0
0
178
0.068752
f8dde6ce7a9ea138ac9fe3fc5e28f791075d3425
454
py
Python
src/site/config.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
39
2018-09-05T14:42:05.000Z
2021-09-24T20:21:56.000Z
src/site/config.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
null
null
null
src/site/config.py
ninaamorim/sentiment-analysis-2018-president-election
a5c12f1b659186edbc2dfa916bc82a2cfa2dd67f
[ "MIT" ]
11
2018-12-07T19:43:44.000Z
2021-05-21T21:54:43.000Z
from starlette.applications import Starlette from starlette.middleware.gzip import GZipMiddleware from starlette.middleware.cors import CORSMiddleware from starlette.staticfiles import StaticFiles app = Starlette(debug=False, template_directory='src/site/templates') app.add_middleware(GZipMiddleware, minimum_size=500)...
45.4
76
0.830396
0
0
0
0
0
0
0
0
56
0.123348
f8de8fc01b4a4af13fb95b42532f7a7fe7198cd6
225
py
Python
loadbalanceRL/lib/__init__.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
11
2018-10-29T06:50:43.000Z
2022-03-28T14:26:09.000Z
loadbalanceRL/lib/__init__.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
1
2022-03-01T13:46:25.000Z
2022-03-01T13:46:25.000Z
loadbalanceRL/lib/__init__.py
fqzhou/LoadBalanceControl-RL
689eec3b3b27e121aa45d2793e411f1863f6fc0b
[ "MIT" ]
6
2019-02-05T20:01:53.000Z
2020-09-04T12:30:00.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Contains core logic for Rainman2 """ __author__ = 'Ari Saha (arisaha@icloud.com), Mingyang Liu(liux3941@umn.edu)' __date__ = 'Wednesday, February 14th 2018, 11:42:09 am'
20.454545
76
0.68
0
0
0
0
0
0
0
0
193
0.857778
f8dfe184dbac3633e171f2ced9f8b35d7607d947
717
py
Python
openff/bespokefit/__init__.py
openforcefield/bespoke-f
27b072bd09610dc8209429118d739e1f453edd61
[ "MIT" ]
12
2020-08-28T20:49:00.000Z
2021-11-17T08:50:32.000Z
openff/bespokefit/__init__.py
openforcefield/bespoke-f
27b072bd09610dc8209429118d739e1f453edd61
[ "MIT" ]
95
2020-02-19T18:40:54.000Z
2021-12-02T10:52:23.000Z
openff/bespokefit/__init__.py
openforcefield/bespoke-f
27b072bd09610dc8209429118d739e1f453edd61
[ "MIT" ]
3
2021-04-01T04:22:49.000Z
2021-04-13T03:19:10.000Z
""" BespokeFit Creating bespoke parameters for individual molecules. """ import logging import sys from ._version import get_versions versions = get_versions() __version__ = versions["version"] __git_revision__ = versions["full-revisionid"] del get_versions, versions # Silence verbose messages when running the CLI ...
28.68
86
0.781032
0
0
0
0
0
0
0
0
320
0.446304
f8e0235b8205933db406d18f8b9437b0dca33a40
1,810
py
Python
TRANSFORM/Resources/python/2006LUT_to_SDF.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
29
2018-04-24T17:06:19.000Z
2021-11-21T05:17:28.000Z
TRANSFORM/Resources/python/2006LUT_to_SDF.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
13
2018-04-05T08:34:27.000Z
2021-10-04T14:24:41.000Z
TRANSFORM/Resources/python/2006LUT_to_SDF.py
greenwoodms/TRANSFORM-Library
dc152d4f0298d3f18385f2ea33645d87d7812915
[ "Apache-2.0" ]
17
2018-08-06T22:18:01.000Z
2022-01-29T21:38:17.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 03 11:06:37 2018 @author: vmg """ import sdf import numpy as np # Load 2006 LUT for interpolation # 2006 Groeneveld Look-Up Table as presented in # "2006 CHF Look-Up Table", Nuclear Engineering and Design 237, pp. 190-1922. # This file requires the file 2006LUTdata.tx...
36.2
137
0.651381
0
0
0
0
0
0
0
0
827
0.456906
f8e07bde7c24919fc5325f0451f8753ee945632d
2,836
py
Python
test/asserting/policy.py
tmsanrinsha/vint
8c34196252b43d7361d0f58cb78cf2d3e4e4fbd0
[ "MIT" ]
2
2021-06-15T15:07:28.000Z
2021-10-05T12:23:23.000Z
test/asserting/policy.py
tmsanrinsha/vint
8c34196252b43d7361d0f58cb78cf2d3e4e4fbd0
[ "MIT" ]
null
null
null
test/asserting/policy.py
tmsanrinsha/vint
8c34196252b43d7361d0f58cb78cf2d3e4e4fbd0
[ "MIT" ]
null
null
null
import unittest from pathlib import Path from pprint import pprint from vint.compat.itertools import zip_longest from vint.linting.linter import Linter from vint.linting.config.config_default_source import ConfigDefaultSource class PolicyAssertion(unittest.TestCase): class StubPolicySet(object): def __ini...
31.865169
97
0.685825
2,516
0.887165
0
0
0
0
0
0
162
0.057123
f8e0ad168c40024827eba4f57a5381ccd338e24b
39,902
py
Python
dataprofiler/labelers/character_level_cnn_model.py
gliptak/DataProfiler
37ffbf43652246ef27e070df7ff0d9f1b9529162
[ "Apache-2.0" ]
null
null
null
dataprofiler/labelers/character_level_cnn_model.py
gliptak/DataProfiler
37ffbf43652246ef27e070df7ff0d9f1b9529162
[ "Apache-2.0" ]
1
2021-11-20T01:08:12.000Z
2021-11-20T01:08:12.000Z
dataprofiler/labelers/character_level_cnn_model.py
gliptak/DataProfiler
37ffbf43652246ef27e070df7ff0d9f1b9529162
[ "Apache-2.0" ]
null
null
null
import copy import json import logging import os import sys import time from collections import defaultdict import numpy as np import tensorflow as tf from sklearn import decomposition from .. import dp_logging from . import labeler_utils from .base_model import AutoSubRegistrationMeta, BaseModel, BaseTrainableModel ...
40.38664
136
0.602276
37,611
0.942584
0
0
14,085
0.35299
0
0
15,102
0.378477
f8e1bca5e78231c74ae6a4100aeb7480c5e84ad6
6,031
py
Python
airflow/contrib/plugins/metastore_browser/main.py
Nipica/airflow
211a71f8a6b9d808bd03af84bd77bf8ff0ef247f
[ "Apache-2.0" ]
null
null
null
airflow/contrib/plugins/metastore_browser/main.py
Nipica/airflow
211a71f8a6b9d808bd03af84bd77bf8ff0ef247f
[ "Apache-2.0" ]
1
2019-01-14T17:12:47.000Z
2019-01-14T17:12:47.000Z
airflow/contrib/plugins/metastore_browser/main.py
shubhamod/airflow
04f4622656656d4c55b69d460bbd2ed1379810c4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
33.320442
75
0.62842
4,060
0.673189
0
0
3,827
0.634555
0
0
2,786
0.461947
f8e296b5bc6bda6288119a1eb8117102f686848c
12,255
py
Python
app/lib/manage.py
AaronDewes/compose-nonfree
82ef3e58019ee03d163dea7aff4d7ed18d884238
[ "MIT" ]
5
2021-09-26T18:02:27.000Z
2022-03-30T10:16:03.000Z
app/lib/manage.py
AaronDewes/compose-nonfree
82ef3e58019ee03d163dea7aff4d7ed18d884238
[ "MIT" ]
5
2021-09-23T18:57:00.000Z
2021-11-02T06:47:05.000Z
app/lib/manage.py
AaronDewes/compose-nonfree
82ef3e58019ee03d163dea7aff4d7ed18d884238
[ "MIT" ]
3
2021-10-01T15:14:09.000Z
2022-03-30T10:16:06.000Z
#!/usr/bin/env python3 # SPDX-FileCopyrightText: 2021 Aaron Dewes <aaron.dewes@protonmail.com> # # SPDX-License-Identifier: MIT import stat import tempfile import threading from typing import List from sys import argv import os import requests import shutil import json import yaml import subprocess from lib.composeg...
37.941176
166
0.651652
0
0
0
0
0
0
0
0
4,083
0.33317
f8e31dd1ab5827961bb3c5e7a54cd2196fee2f7f
2,814
py
Python
features/jit-features/query/query.py
YuanruiZJU/SZZ-TSE
093506f9019a0d8b412dad4672525f93150ca181
[ "MIT" ]
13
2019-04-15T12:54:56.000Z
2022-03-09T02:30:14.000Z
features/jit-features/query/query.py
YanYoungZhao/SZZ-TSE
093506f9019a0d8b412dad4672525f93150ca181
[ "MIT" ]
1
2022-01-27T02:33:09.000Z
2022-01-27T02:33:09.000Z
features/jit-features/query/query.py
YanYoungZhao/SZZ-TSE
093506f9019a0d8b412dad4672525f93150ca181
[ "MIT" ]
6
2019-11-04T11:24:13.000Z
2021-12-16T07:53:18.000Z
from query.base import BaseQuery class CommitMetaQuery(BaseQuery): table_name = 'commit_meta' class DiffusionFeaturesQuery(BaseQuery): table_name = 'diffusion_features' class SizeFeaturesQuery(BaseQuery): table_name = 'size_features' class PurposeFeaturesQuery(BaseQuery): table_name = 'purpose_f...
34.317073
76
0.643568
2,759
0.980455
0
0
354
0.1258
0
0
187
0.066453
f8e3234f6fa0a9c3711d4ac7b793885d955f7286
449
py
Python
example/mappers.py
mikeywaites/flask-arrested
6b97ce2ad2765f9acab10f4726e310258aa51de0
[ "MIT" ]
46
2016-06-28T10:25:07.000Z
2019-12-10T20:53:47.000Z
example/mappers.py
mikeywaites/flask-arrested
6b97ce2ad2765f9acab10f4726e310258aa51de0
[ "MIT" ]
4
2018-02-10T10:53:08.000Z
2018-11-07T08:11:06.000Z
example/mappers.py
mikeywaites/flask-arrested
6b97ce2ad2765f9acab10f4726e310258aa51de0
[ "MIT" ]
9
2016-07-20T17:05:46.000Z
2022-02-15T18:40:17.000Z
from kim import Mapper, field from example.models import Planet, Character class PlanetMapper(Mapper): __type__ = Planet id = field.Integer(read_only=True) name = field.String() description = field.String() created_at = field.DateTime(read_only=True) class CharacterMapper(Mapper): __type...
19.521739
47
0.712695
367
0.817372
0
0
0
0
0
0
0
0
f8e3680aea79628533b40e4e3bc074491f7796fd
3,660
py
Python
collections/ansible_collections/community/general/plugins/connection/saltstack.py
escalate/ansible-gitops-example-repository
f7f7a9fcd09abd982f5fcd3bd196809a6c4c2f08
[ "MIT" ]
1
2021-07-16T19:51:04.000Z
2021-07-16T19:51:04.000Z
collections/ansible_collections/community/general/plugins/connection/saltstack.py
escalate/ansible-gitops-example-repository
f7f7a9fcd09abd982f5fcd3bd196809a6c4c2f08
[ "MIT" ]
null
null
null
collections/ansible_collections/community/general/plugins/connection/saltstack.py
escalate/ansible-gitops-example-repository
f7f7a9fcd09abd982f5fcd3bd196809a6c4c2f08
[ "MIT" ]
null
null
null
# Based on local.py (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # Based on chroot.py (c) 2013, Maykel Moya <mmoya@speedyrails.com> # Based on func.py # (c) 2014, Michael Scherer <misc@zarb.org> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt...
36.237624
133
0.668033
2,752
0.751913
0
0
240
0.065574
0
0
1,344
0.367213
f8e37ad4239180526865365831c9ddf7d0371aa5
5,074
py
Python
create/views.py
normaldotcom/webvirtmgr
8d822cb94105abf82eb0ff6651a36c43b0911d2a
[ "Apache-2.0" ]
1
2019-07-16T20:32:44.000Z
2019-07-16T20:32:44.000Z
create/views.py
normaldotcom/webvirtmgr
8d822cb94105abf82eb0ff6651a36c43b0911d2a
[ "Apache-2.0" ]
null
null
null
create/views.py
normaldotcom/webvirtmgr
8d822cb94105abf82eb0ff6651a36c43b0911d2a
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render_to_response from django.http import HttpResponseRedirect from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from servers.models import Compute from create.models import Flavor from instance.models import Instance from libvirt import l...
44.121739
112
0.513599
0
0
0
0
0
0
0
0
551
0.108593
f8e487af25b9797dd2a942cb5666ca85e89e2765
886
py
Python
utils/wassersteinGradientPenalty.py
andimarafioti/GACELA
34649fb01bdecbcb266db046a8b9c48c141f16e1
[ "MIT" ]
15
2020-05-12T02:58:12.000Z
2022-03-14T12:10:56.000Z
utils/wassersteinGradientPenalty.py
tifgan/gacela
cd496cfce128ea7b6191a93639f8f4efac7e7142
[ "MIT" ]
1
2021-05-22T14:02:06.000Z
2021-06-01T13:45:11.000Z
utils/wassersteinGradientPenalty.py
tifgan/gacela
cd496cfce128ea7b6191a93639f8f4efac7e7142
[ "MIT" ]
5
2020-06-18T20:15:00.000Z
2021-11-05T15:45:35.000Z
import torch __author__ = 'Andres' def calc_gradient_penalty_bayes(discriminator, real_data, fake_data, gamma): device = torch.device("cuda" if torch.cuda.is_available() else "cpu") batch_size = real_data.size()[0] alpha = torch.rand(batch_size, 1, 1, 1) alpha = alpha.expand(real_data.size()).to(devi...
42.190476
91
0.688488
0
0
0
0
0
0
0
0
19
0.021445
f8e61b754a032cf61ead46cd66c6dc6f3690b256
121
py
Python
pytest_capture_log_error/test_file.py
butla/experiments
8c8ade15bb01978763d6618342fa42ad7563e38f
[ "MIT" ]
1
2020-06-01T02:41:45.000Z
2020-06-01T02:41:45.000Z
pytest_capture_log_error/test_file.py
butla/experiments
8c8ade15bb01978763d6618342fa42ad7563e38f
[ "MIT" ]
48
2019-12-26T16:38:19.000Z
2021-07-06T13:29:50.000Z
pytest_capture_log_error/test_file.py
butla/experiments
8c8ade15bb01978763d6618342fa42ad7563e38f
[ "MIT" ]
null
null
null
import a_file def test_a(capsys): assert a_file.bla() == 5 assert a_file.LOG_MESSAGE in capsys.readouterr().err
20.166667
56
0.719008
0
0
0
0
0
0
0
0
0
0
f8e61d9aa8b9610c3339494d4c960ec17ee4ba35
286
py
Python
src_py/ui/identify_page.py
Magier/Aetia
7f6045d99904b808e1201f445d0d10b0dce54c37
[ "MIT" ]
null
null
null
src_py/ui/identify_page.py
Magier/Aetia
7f6045d99904b808e1201f445d0d10b0dce54c37
[ "MIT" ]
null
null
null
src_py/ui/identify_page.py
Magier/Aetia
7f6045d99904b808e1201f445d0d10b0dce54c37
[ "MIT" ]
null
null
null
import streamlit as st from ui.session_state import SessionState, get_state from infer import ModelStage def show(state: SessionState): st.header("identify") state = get_state() if state.model.stage < ModelStage.DEFINED: st.error("Please create the model first!")
26
52
0.734266
0
0
0
0
0
0
0
0
42
0.146853
f8e6a09b44f3ad67acebf3ea296df8c1d2d40eaf
4,075
py
Python
openke/data/UniverseTrainDataLoader.py
luofeisg/OpenKE-PuTransE
0bfefb3917e7479520917febd91a9f4d7353c7fc
[ "CC-BY-4.0", "MIT" ]
null
null
null
openke/data/UniverseTrainDataLoader.py
luofeisg/OpenKE-PuTransE
0bfefb3917e7479520917febd91a9f4d7353c7fc
[ "CC-BY-4.0", "MIT" ]
null
null
null
openke/data/UniverseTrainDataLoader.py
luofeisg/OpenKE-PuTransE
0bfefb3917e7479520917febd91a9f4d7353c7fc
[ "CC-BY-4.0", "MIT" ]
null
null
null
''' MIT License Copyright (c) 2020 Rashid Lafraie Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish...
40.75
120
0.694724
2,904
0.712638
0
0
0
0
0
0
1,116
0.273865