hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
08cacbe2a9eaec926c72cf6036c9fc14eb85587e
16,448
py
Python
sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_transforms_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_transforms_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/media/azure-mgmt-media/azure/mgmt/media/aio/operations/_transforms_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "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.057592
206
0.669382
08caf440b24375da4a8e0384c91f08c4cb10df4c
17
py
Python
btd6_memory_info/generated/NinjaKiwi/Players/Files/files.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/Players/Files/files.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/NinjaKiwi/Players/Files/files.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class Files: pass
17
17
0.823529
08cb0926f66e34256f92cd78b02466a1c4bbc4ae
2,281
py
Python
src/morphforgecontrib/simulation/synapse_templates/exponential_form/expsyn/core.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
1
2021-01-21T11:31:59.000Z
2021-01-21T11:31:59.000Z
src/morphforgecontrib/simulation/synapse_templates/exponential_form/expsyn/core.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
src/morphforgecontrib/simulation/synapse_templates/exponential_form/expsyn/core.py
mikehulluk/morphforge
2a95096f144ed4ea487decb735ce66706357d3c7
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are...
39.327586
99
0.674704
08cb0ff26b3416b63de6131eed3b141a4d13fa2b
1,444
py
Python
app/auth/views.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
app/auth/views.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
app/auth/views.py
Kevson102/Pitches
a1c41b83edf687135edf35dc068696ea6b7bf824
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, flash, request from flask_login import login_user, login_required, logout_user from . import auth from ..models import User from .forms import RegistrationForm, LoginForm from .. import db from ..email import mail_message @auth.route('/login', methods = ['GET', 'PO...
33.581395
102
0.718837
08cb18da26f2e68f30dc4b961d0dc49709af5d6a
8,592
py
Python
src/xhorizon/diagram_tools/diagram_classes.py
xh-diagrams/xhorizon
20b3f2f0f621ca2a31c9f6a1d5fcd06692a700ce
[ "MIT" ]
null
null
null
src/xhorizon/diagram_tools/diagram_classes.py
xh-diagrams/xhorizon
20b3f2f0f621ca2a31c9f6a1d5fcd06692a700ce
[ "MIT" ]
null
null
null
src/xhorizon/diagram_tools/diagram_classes.py
xh-diagrams/xhorizon
20b3f2f0f621ca2a31c9f6a1d5fcd06692a700ce
[ "MIT" ]
null
null
null
""" This module defines the classes diagram region block which are used to construct and plot diagrams. """ import numpy as np import matplotlib.pyplot as plt from xhorizon.diagram_tools import coord_transf as coord from xhorizon.diagram_tools.block_masks import rstar_minmax, uv_range from xhorizon.diagram_tools ...
25.571429
100
0.682845
08cb1c91fb339f0dde29fa2be7d2fca2e555c3c7
6,035
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/operations/_private_link_resources_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 ...
44.051095
211
0.706877
08cb567eaf7c9efd4f738b21bd14e22ac513b1c1
4,452
py
Python
cross-modal-search/evaluate.py
rudranshsharma123/examples
299b97c18a747dea53fae81e2300b4837bc30ded
[ "Apache-2.0" ]
null
null
null
cross-modal-search/evaluate.py
rudranshsharma123/examples
299b97c18a747dea53fae81e2300b4837bc30ded
[ "Apache-2.0" ]
null
null
null
cross-modal-search/evaluate.py
rudranshsharma123/examples
299b97c18a747dea53fae81e2300b4837bc30ded
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2021 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import os import hashlib import click from jina import Flow from jina import Document from dataset import input_index_data cur_dir = os.path.dirname(os.path.abspath(__file__)) sum_of_score = 0 num_of_searches = 0 ...
37.1
111
0.613657
08cb5bd2f45fd69c4162ccbfdcb5cdb17df0b0d8
8,002
py
Python
toontown/pets/PetLookerAI.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/pets/PetLookerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/pets/PetLookerAI.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from panda3d.core import * from panda3d.direct import * from direct.directnotify import DirectNotifyGlobal from direct.showbase import DirectObject from otp.ai.AIZoneData import AIZoneData from toontown.toonbase import ToontownGlobals from toontown.pets import PetConstants def getStartLookingAtOtherEvent(lookingAvId):...
43.021505
115
0.664334
08cb5d6e1a68691c4c2da0cad259dbff6d7ad0f6
2,077
py
Python
project/lint/migrations/0006_auto__add_field_report_github_url.py
yumike/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
4
2015-06-22T13:30:00.000Z
2020-03-19T07:17:12.000Z
project/lint/migrations/0006_auto__add_field_report_github_url.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
3
2020-02-12T01:17:37.000Z
2021-06-10T20:37:44.000Z
project/lint/migrations/0006_auto__add_field_report_github_url.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
1
2015-09-18T10:45:45.000Z
2015-09-18T10:45:45.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Report.github_url' db.add_column('lint_report', 'github_url', self.gf('django.db.models.fi...
46.155556
144
0.56572
08cb8cfe914fe586a1b3dc2452dafac2b0c3aad1
615
py
Python
terrascript/resource/abergmeier/exasol.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/abergmeier/exasol.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/abergmeier/exasol.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/abergmeier/exasol.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:16:02 UTC) import terrascript class exasol_connection(terrascript.Resource): pass class exasol_physical_schema(terrascript.Resource): pass class exasol_role(terrascript.Resource): pass class ex...
16.184211
73
0.738211
08cb92de1c5b15438372ce401519bea310eb0a82
503
py
Python
tests/xlfunctions_vs_excel/eomonth_test.py
ckp95/xlcalculator
8f3f04a2a0a2ecb12c3d5837a5b13519137ae427
[ "MIT" ]
54
2020-04-26T09:18:29.000Z
2022-03-30T08:47:45.000Z
tests/xlfunctions_vs_excel/eomonth_test.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
41
2020-05-04T04:12:36.000Z
2022-01-31T02:41:05.000Z
tests/xlfunctions_vs_excel/eomonth_test.py
st-lo/xlcalculator
19190ec90e948b7ab1eceb06448b96cc1728bc51
[ "MIT" ]
21
2020-05-21T20:49:23.000Z
2022-02-20T14:15:56.000Z
from .. import testing class EDateTest(testing.FunctionalTestCase): filename = "EOMONTH.xlsx" def test_counta_evaluation_A1(self): excel_value = self.evaluator.get_cell_value('Sheet1!A1') value = self.evaluator.evaluate('Sheet1!A1') self.assertEqual(excel_value, value) def test_e...
31.4375
64
0.703777
08cb9839a99a1da01f9bece4b5f1fdbfd8b02f6d
38,802
py
Python
lingua_franca/lang/parse_ca.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
lingua_franca/lang/parse_ca.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
lingua_franca/lang/parse_ca.py
joanisc/lingua-franca
96fd7d82282f0ec9b1507385ac6be3d6b29ab23b
[ "Apache-2.0" ]
null
null
null
# # Copyright 2017 Mycroft AI 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 writ...
35.500457
79
0.430957
08cbd355701432e995e462d2cdfa4c2968b05418
3,257
py
Python
imperative/python/test/unit/core/test_dtype_intbx.py
chenbo123222/MegEngine
8230ea2d0b16422136ad27b4073d523b524aa4e6
[ "Apache-2.0" ]
3
2020-10-23T06:33:57.000Z
2020-10-23T06:34:06.000Z
imperative/python/test/unit/core/test_dtype_intbx.py
yang-shuohao/MegEngine
2e8742086563ea442c357b14560245c54e0aa0a3
[ "Apache-2.0" ]
null
null
null
imperative/python/test/unit/core/test_dtype_intbx.py
yang-shuohao/MegEngine
2e8742086563ea442c357b14560245c54e0aa0a3
[ "Apache-2.0" ]
null
null
null
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY ...
32.247525
88
0.669328
08cc4f0dff088f93b9ac43ca52e5bb4959c54020
1,279
py
Python
imgfac/TargetImage.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
1
2019-06-16T07:05:24.000Z
2019-06-16T07:05:24.000Z
imgfac/TargetImage.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
null
null
null
imgfac/TargetImage.py
henrysher/imgfac
e0979139a93b055f018f460b1404cc9b1796c838
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # Copyright 2012 Red Hat, 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 applica...
33.657895
107
0.706802
08cc5c0d20f5f10d9d3c3f40d186527bedd45565
5,978
py
Python
src/gedml/core/evaluators/metrics.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
src/gedml/core/evaluators/metrics.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
src/gedml/core/evaluators/metrics.py
wangck20/GeDML
1f76ac2094d7b88be7fd4eb6145e5586e547b9ca
[ "MIT" ]
null
null
null
import numpy as np import torch import logging from scipy.special import comb # sklearn from sklearn.cluster import KMeans from sklearn.neighbors import NearestNeighbors from sklearn.decomposition import PCA # faiss try: import faiss except ModuleNotFoundError: logging.warning("Faiss Package Not Found! (metric...
40.391892
167
0.693878
08cc9af46662f1ca2c3a440b42a4883afb987920
4,473
py
Python
api_env/app/recipe/tests/test_ingredients_api.py
AnuragTimilsina/recipe-app-api
77ed8c0aa490727dd4c54fcfb698426510c8a48d
[ "MIT" ]
null
null
null
api_env/app/recipe/tests/test_ingredients_api.py
AnuragTimilsina/recipe-app-api
77ed8c0aa490727dd4c54fcfb698426510c8a48d
[ "MIT" ]
null
null
null
api_env/app/recipe/tests/test_ingredients_api.py
AnuragTimilsina/recipe-app-api
77ed8c0aa490727dd4c54fcfb698426510c8a48d
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Ingredient, Recipe from recipe.serializers import IngredientSerializer INGREDIENTS_URL = reverse('recipe...
34.674419
82
0.645875
08cc9d160530f3c1974804d8dc24fcee0454f0e8
494
py
Python
archive/test.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
null
null
null
archive/test.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
3
2021-03-01T17:03:05.000Z
2021-07-19T17:11:34.000Z
archive/test.py
JarryShaw/zlogging
f5c2bec37bc68d295cd4d9557b13d96f20a21b71
[ "BSD-3-Clause" ]
1
2020-05-22T15:16:44.000Z
2020-05-22T15:16:44.000Z
# -*- coding: utf-8 -*- """Unittest cases.""" import os import unittest import zlogging # pylint: disable=import-error ROOT = os.path.dirname(os.path.realpath(__file__)) class TestZLogging(unittest.TestCase): """Test ZLogging.""" maxDiff = None def test_load(self): with open(os.path.join(ROO...
19.76
72
0.637652
08cca25b000cb2402bf778bbdf2e6104fa38e877
12,528
py
Python
Proj029Pipelines/pipeline_proj029.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
3
2016-04-04T22:54:14.000Z
2017-04-01T09:37:54.000Z
Proj029Pipelines/pipeline_proj029.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
Proj029Pipelines/pipeline_proj029.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
""" ===================================================== Analysis for project 29 ===================================================== :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python """ # load modules from ruffus import * import CGAT.Experiment as E import logging as L import CGAT.Database as Data...
37.963636
121
0.434706
08ccb5271abd0d6d61ec97bd7664c8e37b30af21
583
py
Python
tests/__init__.py
yaph/logya
9647f58a0b8653b56ad64332e235a76cab3acda9
[ "MIT" ]
12
2015-03-04T03:23:56.000Z
2020-11-17T08:09:17.000Z
tests/__init__.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
78
2015-01-05T11:40:41.000Z
2022-01-23T21:05:39.000Z
tests/__init__.py
elaOnMars/logya
a9f256ac8840e21b348ac842b35683224e25b613
[ "MIT" ]
6
2015-04-20T06:58:42.000Z
2022-01-31T00:36:29.000Z
# -*- coding: utf-8 -*- import unittest class LogyaBaseTestCase(unittest.TestCase): def setUp(self): self.config = { 'site': { 'base_url': 'http://localhost:8080' }, 'content': { 'index': {'template': 'index.html'}, 'doc'...
26.5
67
0.409949
08ccbed665bc2c576e3a672bd7ce346a2e252b16
7,909
py
Python
assignment2/q1_test.py
Anchorboy/CS224n
3a2656a2beec90351dd30892bb93a4ced3e317d3
[ "MIT" ]
null
null
null
assignment2/q1_test.py
Anchorboy/CS224n
3a2656a2beec90351dd30892bb93a4ced3e317d3
[ "MIT" ]
null
null
null
assignment2/q1_test.py
Anchorboy/CS224n
3a2656a2beec90351dd30892bb93a4ced3e317d3
[ "MIT" ]
null
null
null
import time import numpy as np import tensorflow as tf from q1_softmax import softmax from q1_softmax import cross_entropy_loss from model import Model from utils.general_utils import get_minibatches class Config(object): """Holds model hyperparams and data information. The config class is used to store var...
39.545
109
0.631433
08ccd53695338030df6ff2ea5f1d747fda12e1a2
7,079
py
Python
lib/galaxy/webapps/galaxy/controllers/tool_runner.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/webapps/galaxy/controllers/tool_runner.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/webapps/galaxy/controllers/tool_runner.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
""" Controller handles external tool related requests """ import logging from markupsafe import escape import galaxy.util from galaxy import web from galaxy.tools import DataSourceTool from galaxy.web import error, url_for from galaxy.web.base.controller import BaseUIController log = logging.getLogger(__name__) cl...
47.831081
153
0.62636
08ccf126f19220be18faf484f364391a8c25baab
859
py
Python
python/string/0929_unique_email_addresses.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
6
2019-07-15T13:23:57.000Z
2020-01-22T03:12:01.000Z
python/string/0929_unique_email_addresses.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
null
null
null
python/string/0929_unique_email_addresses.py
linshaoyong/leetcode
ea052fad68a2fe0cbfa5469398508ec2b776654f
[ "MIT" ]
1
2019-07-24T02:15:31.000Z
2019-07-24T02:15:31.000Z
class Solution(object): def numUniqueEmails(self, emails): """ :type emails: List[str] :rtype: int """ es = set() for email in emails: skip = False r = [] for i in range(0, len(email)): if email[i] == '@': ...
27.709677
46
0.420256
08cd445106dc0c9c3686503c7a2f802e71fc50b0
3,889
py
Python
nexus-ingest/nexus-xd-python-modules/tests/checker.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
nexus-ingest/nexus-xd-python-modules/tests/checker.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
nexus-ingest/nexus-xd-python-modules/tests/checker.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
import sys, re import numpy as np from netCDF4 import Dataset class XD_Stream_Analyzer: def __init__(self, xd_stream): self._stream = xd_stream def get_var_names(self): # Try one version of the NEXUS Spring XD syntax. p = re.compile('tilereadingprocessor.+?--environment=(.+?)[-|\|]') ...
40.510417
162
0.654153
08cd6b19dc3c8aa17364b1d7141a0717f16a4e74
6,469
py
Python
website/conferences/views.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
website/conferences/views.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
website/conferences/views.py
dplorimer/osf
9f3f400f62dc7bde18532949ed35bf1d3f6ec3d6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import httplib import logging from modularodm import Q from modularodm.exceptions import ModularOdmException from framework.exceptions import HTTPError from framework.flask import redirect from framework.transactions.context import TokuTransaction from framework.transactions.handl...
28.004329
86
0.640284
08cdb74ed774e3deac3012f4168b2c4e75e6f827
2,215
py
Python
homeassistant/components/smartthings/switch.py
gentlehus/home-assistant
e7f53c8674c61194d597f1b3e151157957bf7357
[ "Apache-2.0" ]
null
null
null
homeassistant/components/smartthings/switch.py
gentlehus/home-assistant
e7f53c8674c61194d597f1b3e151157957bf7357
[ "Apache-2.0" ]
null
null
null
homeassistant/components/smartthings/switch.py
gentlehus/home-assistant
e7f53c8674c61194d597f1b3e151157957bf7357
[ "Apache-2.0" ]
1
2019-09-28T07:06:08.000Z
2019-09-28T07:06:08.000Z
"""Support for switches through the SmartThings cloud API.""" from homeassistant.components.switch import SwitchDevice from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN DEPENDENCIES = ['smartthings'] async def async_setup_platform( hass, config, async_add_entities, discovery_info=None)...
33.560606
76
0.703837
08cdd9a92aafe95b0183edbc918c00b452556cfd
794
py
Python
src/idpproxy/social/facebook/__init__.py
rohe/IdPproxy
da0d52222f54d4c1dee8bcf98d1a5407a3349711
[ "BSD-2-Clause" ]
9
2015-06-25T05:17:03.000Z
2018-01-10T14:31:09.000Z
src/idpproxy/social/facebook/__init__.py
NORDUnet/IdPproxy
1b2221d8704645ec4b76c27e4ea84b9ce4243e27
[ "BSD-2-Clause" ]
null
null
null
src/idpproxy/social/facebook/__init__.py
NORDUnet/IdPproxy
1b2221d8704645ec4b76c27e4ea84b9ce4243e27
[ "BSD-2-Clause" ]
null
null
null
import urlparse from idpproxy.social.oauth2 import OAuth2 from oic.oauth2.message import Message from oic.oauth2.message import SINGLE_REQUIRED_STRING from oic.oauth2.message import SINGLE_OPTIONAL_INT import logging logger = logging.getLogger(__name__) # Facebook version class FacebookAccessTokenResponse(Message): ...
30.538462
68
0.741814
08cde8e44911a9961e2a9be16250726f28ebf6ee
71
py
Python
GaitSet/model/network/__init__.py
JinkaiZheng/TraND
a8babc34073ee126789969bd97e149bae4015953
[ "MIT" ]
33
2021-05-13T08:37:10.000Z
2022-03-15T11:51:35.000Z
GaitSet/model/network/__init__.py
JinkaiZheng/TraND
a8babc34073ee126789969bd97e149bae4015953
[ "MIT" ]
null
null
null
GaitSet/model/network/__init__.py
JinkaiZheng/TraND
a8babc34073ee126789969bd97e149bae4015953
[ "MIT" ]
1
2021-07-24T07:30:30.000Z
2021-07-24T07:30:30.000Z
from .triplet import TripletLoss from .gaitset import SetNet, SetNet_OU
35.5
38
0.84507
08ce1632edcf565954b47a1c2e81845f4fbb6e92
1,909
py
Python
venv/Lib/site-packages/pyrogram/raw/base/message_reply_header.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/base/message_reply_header.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/base/message_reply_header.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
38.18
98
0.647459
08ce1aedeef85cbf5ff42aa896f7f4d66fbf65ad
3,655
py
Python
tests/integration/questionnaire/test_questionnaire_question_guidance.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/questionnaire/test_questionnaire_question_guidance.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
tests/integration/questionnaire/test_questionnaire_question_guidance.py
ons-eq-team/eq-questionnaire-runner
8d029097faa2b9d53d9621064243620db60c62c7
[ "MIT" ]
null
null
null
from tests.integration.integration_test_case import IntegrationTestCase class TestQuestionnaireQuestionGuidance(IntegrationTestCase): def test_question_guidance(self): # Given I launch a questionnaire with various guidance self.launchSurvey("test_question_guidance") self.post(action="start...
39.728261
90
0.668947
08ce3258d383c2cf7f4c480f683c1bc3a5146806
11,635
py
Python
cogs/EmbedBuilder.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
9
2020-02-14T02:07:39.000Z
2022-01-08T03:25:22.000Z
cogs/EmbedBuilder.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
16
2020-02-14T02:10:29.000Z
2022-02-04T14:50:58.000Z
cogs/EmbedBuilder.py
jakebacker/Gompei-Bot
dba3b11874ca19c22f170b8a01928af2b3fb2bd8
[ "MIT" ]
8
2020-02-21T14:28:07.000Z
2022-02-04T14:49:04.000Z
from cogs.Permissions import moderator_perms from datetime import datetime, timezone from discord.ext import commands import dateutil.parser as parser import discord import typing def has_embed(self, ctx): return ctx.author in self.embeds class EmbedBuilder(commands.Cog): def __init__(self, bot): s...
39.57483
119
0.587709
08ce45e14c0a27208d320d4fc80d8f911df14d48
3,565
py
Python
hatchet/readers/pyinstrument_reader.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
hatchet/readers/pyinstrument_reader.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
hatchet/readers/pyinstrument_reader.py
TauferLab/llnl-hatchet
c7d12888d71d2b23058facd3025e7dcfa12cbb39
[ "MIT" ]
null
null
null
# Copyright 2017-2022 Lawrence Livermore National Security, LLC and other # Hatchet Project Developers. See the top-level LICENSE file for details. # # SPDX-License-Identifier: MIT import json import pandas as pd import hatchet.graphframe from hatchet.node import Node from hatchet.graph import Graph from hatchet.fra...
36.010101
88
0.591304
08ce5ca8e833fdd88f9c45b668f0914fcc70acd0
163,465
py
Python
tensorflow/python/estimator/canned/head_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/python/estimator/canned/head_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/python/estimator/canned/head_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
26
2017-04-12T16:25:44.000Z
2018-10-30T10:10:15.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.461634
81
0.652433
08ce8314815d0bdea1bb97fb8f5af7310bada27e
5,755
py
Python
exp4/exp4f.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
exp4/exp4f.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
5
2017-05-22T20:32:07.000Z
2017-06-02T21:06:23.000Z
exp4/exp4f.py
Haunter17/MIR_SU17
0eaefb8cab78ca896c1ed0074892c296110eb161
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import h5py import time import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import sys FAST_FLAG = 0 # Functions for initializing neural nets parameters def init_weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1, dtype=tf.float32) r...
34.668675
100
0.66881
08ce8e79d7a73de9f3f6898ef265155c6a76ba65
52,212
py
Python
entitylib2.py
Calvin-Ruiz/entitylib2
8a8d6142628a91c24dd7c9d3e7c3c52eda20ca30
[ "MIT" ]
1
2018-11-19T17:45:48.000Z
2018-11-19T17:45:48.000Z
entitylib2.py
Calvin-Ruiz/entitylib2
8a8d6142628a91c24dd7c9d3e7c3c52eda20ca30
[ "MIT" ]
null
null
null
entitylib2.py
Calvin-Ruiz/entitylib2
8a8d6142628a91c24dd7c9d3e7c3c52eda20ca30
[ "MIT" ]
null
null
null
from random import randint from time import time, sleep try: import pygame except: import os print("ImportError : Pygame wasn't installed !") print("Should I install pygame right now ?") if input().upper() in ["OUI", "O", "Y", "YES", "INSTALL", "INSTALLER", "TRUE", "1", "CMD", "PIP", "OK"]: ...
42.311183
175
0.453536
08ceb7481db3dd285457b8101aa16751b9861415
4,327
py
Python
scene_network/inference.py
dgriffiths3/finding-your-center
6eea1ed5d1bbd9064828133111e96f3395a3afcc
[ "MIT" ]
17
2020-05-22T02:24:52.000Z
2021-07-27T09:13:40.000Z
scene_network/inference.py
dgriffiths3/finding-your-center
6eea1ed5d1bbd9064828133111e96f3395a3afcc
[ "MIT" ]
3
2021-10-12T23:06:51.000Z
2022-02-09T23:40:17.000Z
scene_network/inference.py
dgriffiths3/finding-your-center
6eea1ed5d1bbd9064828133111e96f3395a3afcc
[ "MIT" ]
3
2020-07-09T23:32:12.000Z
2021-01-25T11:37:27.000Z
import os import sys import glob import colorsys sys.path.insert(0, './') os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import numpy as np import pyvista as pv import tensorflow as tf from scene_network.model import ObjDetectorModel from utils import helpers, tf_utils, losses def plot_scene(scene, scene_pts, scene_ext,...
27.04375
102
0.645944
08cebbfb65494d143e2d89cbb2a3b72cb391e634
531
py
Python
tests/test_clock.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
1
2021-07-23T09:44:11.000Z
2021-07-23T09:44:11.000Z
tests/test_clock.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
null
null
null
tests/test_clock.py
dsvictor94/aiortc
081d05e4e8fab41bc787da26ef7b2c46e2e92be4
[ "BSD-3-Clause" ]
null
null
null
import datetime from unittest import TestCase from aiortc.clock import datetime_from_ntp, datetime_to_ntp class ClockTest(TestCase): def test_datetime_from_ntp(self): dt = datetime.datetime(2018, 6, 28, 9, 3, 5, 423998, tzinfo=datetime.timezone.utc) self.assertEqual(datetime_from_ntp(160595930447...
35.4
90
0.743879
08cec132c866d5ddfbb5222d2fbf45ac2dde4c05
2,438
py
Python
BigBiGAN-TensorFlow2.0/data_all.py
a7b23/CS236G-project
8bde7d54ca3d22e13703fe72dfb998b38d9cd8b4
[ "MIT" ]
2
2021-02-23T07:07:32.000Z
2021-03-11T21:13:26.000Z
BigBiGAN-TensorFlow2.0/data_all.py
a7b23/CS236G-project
8bde7d54ca3d22e13703fe72dfb998b38d9cd8b4
[ "MIT" ]
null
null
null
BigBiGAN-TensorFlow2.0/data_all.py
a7b23/CS236G-project
8bde7d54ca3d22e13703fe72dfb998b38d9cd8b4
[ "MIT" ]
3
2021-02-23T09:02:48.000Z
2021-02-27T06:14:42.000Z
import tensorflow as tf import tensorflow_datasets as tfds from data_util import preprocess_image NUM_CALLS = tf.data.experimental.AUTOTUNE NUM_PREFETCH = tf.data.experimental.AUTOTUNE mnist = tf.keras.datasets.mnist (mnist_images, mnist_labels), _ = mnist.load_data() def map_fn(image, label): # Sample one mni...
35.852941
124
0.650123
08cec2a2521938e9eac69b1316e5139002dc11fd
12,476
py
Python
services/traction/acapy_client/model/indy_proof_proof_proofs_proof.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
12
2022-01-29T20:30:03.000Z
2022-03-29T11:46:14.000Z
services/traction/acapy_client/model/indy_proof_proof_proofs_proof.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
38
2021-11-22T17:52:50.000Z
2022-03-31T17:52:00.000Z
services/traction/acapy_client/model/indy_proof_proof_proofs_proof.py
Open-Earth-Foundation/traction
908b555a7f408a88541b7692d3730e37a297c919
[ "Apache-2.0" ]
9
2021-11-22T18:05:48.000Z
2022-03-29T11:25:08.000Z
""" Aries Cloud Agent No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0.7.2 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from acapy_cli...
43.02069
163
0.569734
08ced4cf5c00bfd3872ab0d8a7e956fdbd233307
255
py
Python
wheelchair/api/database/__init__.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
3
2020-06-17T07:59:08.000Z
2020-07-05T08:59:11.000Z
wheelchair/api/database/__init__.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
null
null
null
wheelchair/api/database/__init__.py
vd2org/wheelchair
94f833a0f977a94547d1783d57ca7ed61db870b6
[ "MIT" ]
null
null
null
# Copyright (C) 2019-2021 by Vd. # This file is part of Wheelchair, the async CouchDB connector. # Wheelchair is released under the MIT License (see LICENSE). from .database import Database from .database import DatabaseProxy from .view import ViewQuery
31.875
63
0.784314
08cef84ee6da8d2d82b70a476ccabaf688389f00
13,366
py
Python
setup.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
null
null
null
setup.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
null
null
null
setup.py
virthead/panda-server
d2b65f788c4539dc103641ca2a8052cb18729d44
[ "Apache-2.0" ]
null
null
null
# # # Setup prog for Panda Server # # # set PYTHONPATH to use the current directory first import sys sys.path.insert(0,'.') # noqa: E402 import os import pwd import grp import re import site import stat import getpass import socket import distutils from setuptools import setup from setuptools.command.install import ...
40.138138
114
0.531498
08cf00cf0808f9ffbb6dc30d4176071c0c67716a
1,193
py
Python
server_automation/postgress/postgress_adapter.py
MapColonies/automation-server-test
209d98420aeb7da258d18cd15511c8b5f602d0c4
[ "MIT" ]
1
2021-01-05T09:42:52.000Z
2021-01-05T09:42:52.000Z
server_automation/postgress/postgress_adapter.py
MapColonies/automation-server-test
209d98420aeb7da258d18cd15511c8b5f602d0c4
[ "MIT" ]
null
null
null
server_automation/postgress/postgress_adapter.py
MapColonies/automation-server-test
209d98420aeb7da258d18cd15511c8b5f602d0c4
[ "MIT" ]
1
2021-01-28T07:57:05.000Z
2021-01-28T07:57:05.000Z
import logging from server_automation.configuration import config_ingestion from mc_automation_tools import postgres _log = logging.getLogger('server_automation.postgress.postgress_adapter') def get_current_job_id(product_id, product_version, db_name=config_ingestion.PG_JOB_TASK_DB_NAME): """This method query an...
51.869565
116
0.782062
08cf0507a411402caa1a413f918741cd93c1893e
4,173
py
Python
savu/data/meta_data.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/data/meta_data.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/data/meta_data.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2014 Diamond Light Source Ltd. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
34.204918
79
0.597891
08cf168e36bc236c9209e024591fdc47b38df2f1
7,226
py
Python
kaldi/fstext/special.py
fgvbrt/pykaldi
c4e867de96b5ff5ef66a79f611d19251a857d2ab
[ "Apache-2.0" ]
2
2020-02-27T13:42:10.000Z
2020-08-27T10:28:02.000Z
kaldi/fstext/special.py
yongxuUSTC/pykaldi
b7a54d91fa07cf86838172afffaf158c7a058498
[ "Apache-2.0" ]
null
null
null
kaldi/fstext/special.py
yongxuUSTC/pykaldi
b7a54d91fa07cf86838172afffaf158c7a058498
[ "Apache-2.0" ]
1
2018-08-31T17:51:19.000Z
2018-08-31T17:51:19.000Z
from ._context_fst import * from ._context_fst_inl import * from ._deterministic_fst import * from . import _determinize_lattice from ._push_special import * from . import _special_ops from ._special_ops import * from ._table_matcher import * from .. import fstext as _fst import _getters import _weight def compose_c...
35.421569
80
0.671879
08cf171e8cfe2c7c1b764ee659a14b257a300779
562
py
Python
angalabiri/users/validators.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
1
2021-03-25T14:06:23.000Z
2021-03-25T14:06:23.000Z
angalabiri/users/validators.py
dark-codr/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
5
2021-09-08T03:08:46.000Z
2022-03-12T00:56:35.000Z
angalabiri/users/validators.py
me-edavids/ebiangala
0af3de29b2afa71df3e138cd16ecddc69fbd597d
[ "MIT" ]
null
null
null
import os import magic from django.core.exceptions import ValidationError def validate_user_photo_extension(value): valid_mime_types = ['image/svg+xml', 'image/jpeg', 'image/png'] file_mime_type = magic.from_buffer(value.read(1024), mime=True) if file_mime_type not in valid_mime_types: raise Valida...
40.142857
67
0.729537
08cf2bfd0072a55b0ebb9fe2746e2373ba5d1fc3
4,849
py
Python
src/python/services/base_app/base_app.py
rockmind/LoveAndMarriage
2877d6af626eff2a3134a05ab7f03c52f14fde5c
[ "Apache-2.0" ]
null
null
null
src/python/services/base_app/base_app.py
rockmind/LoveAndMarriage
2877d6af626eff2a3134a05ab7f03c52f14fde5c
[ "Apache-2.0" ]
1
2021-12-18T16:07:39.000Z
2021-12-18T16:07:39.000Z
src/python/services/base_app/base_app.py
rockmind/LoveAndMarriage
2877d6af626eff2a3134a05ab7f03c52f14fde5c
[ "Apache-2.0" ]
null
null
null
from base64 import b64encode from datetime import datetime, timedelta from time import time from fastapi import status, FastAPI, Depends, HTTPException, Request, Response from fastapi.security import OAuth2PasswordBearer, OAuth2PasswordRequestForm from jose import JWTError, jwt from jsonrpcserver import async_dispatch...
29.932099
97
0.735203
08cf3ba004cf0dbda6d2b360c97bf25d099e3b54
1,532
py
Python
.guides/secure/strings/q12-test.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
.guides/secure/strings/q12-test.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
.guides/secure/strings/q12-test.py
codio-content/cs-intro-python-fundamentals
7b59810b6fb98089d3b725a3b898a6403a32c447
[ "MIT" ]
null
null
null
import ast, requests, os, random print("<html>") print("<style>error{color:red;font-weight:bold}success{color:darkgreen;font-weight:bold}hint{color:blue}*[stacktrace]{font-size:9px;color:darkgray;line-height:11px}inline-code{font-family:monospace}</style>") def report_score(score, maxp): score = max(0, score) if ...
37.365854
208
0.70235
08cfa248be705bc301cec2187b9b089bd8a47edb
6,735
py
Python
SCRAPE/Lib/site-packages/twisted/python/_pydoctor.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/python/_pydoctor.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
SCRAPE/Lib/site-packages/twisted/python/_pydoctor.py
Chinmoy-Prasad-Dutta/scrapy_scraper
09f6abfc3bcf10ee28f486d83b450c89a07e066e
[ "MIT" ]
null
null
null
# -*- test-case-name: twisted.python.test.test_pydoctor -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Support for a few things specific to documenting Twisted using pydoctor. FIXME: https://github.com/twisted/pydoctor/issues/106 This documentation does not link to pydoctor API as the...
32.853659
86
0.620935
08cffc361a31d5d7f102e01ceab7ddce9d478bda
3,742
py
Python
jmath/approximation/integration.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
7
2021-06-25T12:57:08.000Z
2021-12-29T21:53:30.000Z
jmath/approximation/integration.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-08-11T02:16:12.000Z
2021-08-12T06:05:21.000Z
jmath/approximation/integration.py
JHay0112/jmath
3bccf7353c07152ff49ec6aa56785918c9f710ed
[ "MIT" ]
1
2021-09-20T21:25:55.000Z
2021-09-20T21:25:55.000Z
''' Approximations of definite integrals ''' # - Imports from typing import Callable, Generator, Iterable # - Functions def partition(f: Callable[[float], float], start: float, end: float, divisions: int) -> Generator[float, None, None]: ''' Partitions a function, returning the start and end points ...
25.630137
117
0.589257
08d01b39a6d8f6a1b278eaccc49db4727992eb95
9,357
py
Python
disvis/IO/mrc.py
haddocking/disvis
a922bd079b41ad5ef3ac33f4e68968f8978626d2
[ "Apache-2.0" ]
4
2017-12-27T13:09:43.000Z
2021-07-20T09:45:58.000Z
disvis/IO/mrc.py
haddocking/disvis
a922bd079b41ad5ef3ac33f4e68968f8978626d2
[ "Apache-2.0" ]
17
2015-06-08T03:43:00.000Z
2022-03-09T13:12:16.000Z
disvis/IO/mrc.py
haddocking/disvis
a922bd079b41ad5ef3ac33f4e68968f8978626d2
[ "Apache-2.0" ]
11
2015-07-06T18:25:27.000Z
2020-10-08T13:14:16.000Z
from __future__ import division, absolute_import, print_function import sys import os.path from struct import pack, unpack from collections import OrderedDict import numpy as np def parse_mrc(fid): mrcfile = MRCFile(fid) array = mrcfile.density voxelspacing = mrcfile.voxelspacing origin = mrcfile.or...
31.505051
90
0.517046
08d01f288198437e700391f1dd4e3c7742f668d0
5,650
py
Python
experiments/steven/vae_test_2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/vae_test_2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/steven/vae_test_2.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.launchers.experiments.disentanglement.contextual_encoder_distance_launcher import ( encoder_goal_conditioned_sac_experiment ) from rlkit.launchers.launcher_util import run_experiment if __name__ == "__main__": variant = dict( env_id='OneObjectPickAndPl...
30.706522
94
0.540177
08d030e272a6380e5ca27cc1586e13f395865027
761
py
Python
merge_txt_file.py
ZHUXUHAN/Tools
98a0776f460febc69af5523e2c69d7702ee04876
[ "MIT" ]
1
2019-11-20T12:16:21.000Z
2019-11-20T12:16:21.000Z
merge_txt_file.py
ZHUXUHAN/Python-Tools
98a0776f460febc69af5523e2c69d7702ee04876
[ "MIT" ]
null
null
null
merge_txt_file.py
ZHUXUHAN/Python-Tools
98a0776f460febc69af5523e2c69d7702ee04876
[ "MIT" ]
null
null
null
def merge_text_file(first_filename, second_filename, merged_filename): ''' Merge two text files, the sequence of two file's content maybe changed. example: source_file_1 = "a.txt" source_file_2 = "b.txt" merged_file = "merged.txt" merge_text_file(source_file_1, source_file_2, merged_file) ...
33.086957
75
0.662286
08d06fac6cb7e445ee329c1ad08b2280790c13fe
1,009
py
Python
src/segmentation/models/unet/loss.py
prhuppertz/Burned_Area_Detection
4091e8a5ba22c1db28b4accd71cf2994d544ffab
[ "Apache-2.0" ]
5
2021-03-30T02:22:42.000Z
2022-01-18T20:12:30.000Z
src/segmentation/models/unet/loss.py
prhuppertz/Burned_Area_Detection
4091e8a5ba22c1db28b4accd71cf2994d544ffab
[ "Apache-2.0" ]
null
null
null
src/segmentation/models/unet/loss.py
prhuppertz/Burned_Area_Detection
4091e8a5ba22c1db28b4accd71cf2994d544ffab
[ "Apache-2.0" ]
3
2021-04-26T02:08:05.000Z
2021-08-15T20:12:31.000Z
import torch.nn.functional as F from torch import nn import torch class DiceLoss(nn.Module): def __init__(self): super(DiceLoss, self).__init__() def forward(self, inputs, targets, smooth=1): # comment out if your model contains a sigmoid or equivalent activation layer inputs = torch....
25.225
86
0.656095
08d0831d5d44f4db39d4d3eb4c8bc6db98f31600
8,044
py
Python
axonius_api_client/cli/grp_adapters/grp_cnx/grp_common.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
11
2020-01-31T00:28:26.000Z
2022-03-25T20:27:08.000Z
axonius_api_client/cli/grp_adapters/grp_cnx/grp_common.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
83
2020-01-22T12:52:38.000Z
2022-02-07T16:20:18.000Z
axonius_api_client/cli/grp_adapters/grp_cnx/grp_common.py
kf-careem/axonius_api_client
27767c896ca446e74ca5d69e087e1a0dcf7157ec
[ "MIT" ]
16
2019-08-23T17:44:31.000Z
2022-01-06T00:57:34.000Z
# -*- coding: utf-8 -*- """Command line interface for Axonius API Client.""" from ....constants.adapters import CNX_SANE_DEFAULTS from ....exceptions import CnxAddError from ....parsers.tables import tablize_cnxs, tablize_schemas from ....tools import json_dump, listify, pathlib from ...context import click PATH_PROMP...
26.460526
99
0.557061
08d08904afca69f13110b76d6aa712e7f3c89a18
601
py
Python
serie4/plot.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
serie4/plot.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
serie4/plot.py
Koopakiller/Edu-NLA
8376557cab9f74cedd19ee1573a8c71d7e415dd4
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use("TkAgg") import matplotlib.pyplot as plt import numpy import math def plot(parameter_list, data_points_list): e = math.e x = numpy.arange(0, 25, 0.01) for entry in parameter_list: a, b, c, d, k, n, _, _, _ = entry plt.plot(x, a * (e ** (d*x)) + b * (e ** (...
23.115385
103
0.56406
08d0e2b7affd9335088aa0b08273dbf179a1c8a4
31,320
py
Python
modules/core/methods/timeplot.py
nursix/DRKCM
09328289ff721c416494398aa751ff99906327cb
[ "MIT" ]
3
2022-01-26T08:07:54.000Z
2022-03-21T21:53:52.000Z
modules/core/methods/timeplot.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
modules/core/methods/timeplot.py
nursix/eden-asp
e49f46cb6488918f8d5a163dcd5a900cd686978c
[ "MIT" ]
null
null
null
""" TimePlot Report Copyright: 2013-2022 (c) Sahana Software Foundation 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 t...
36.674473
84
0.444636
08d0f56a2766215404286c11b5a794068fcc9511
849
py
Python
servers/xgboostserver/xgboostserver/XGBoostServer.py
pravingadakh/seldon-core
a72257fa851033ee09513a0b6b310087eb625e85
[ "Apache-2.0" ]
1
2021-06-14T12:58:38.000Z
2021-06-14T12:58:38.000Z
servers/xgboostserver/xgboostserver/XGBoostServer.py
pravingadakh/seldon-core
a72257fa851033ee09513a0b6b310087eb625e85
[ "Apache-2.0" ]
16
2019-12-16T22:22:13.000Z
2022-03-12T00:07:55.000Z
servers/xgboostserver/xgboostserver/XGBoostServer.py
pravingadakh/seldon-core
a72257fa851033ee09513a0b6b310087eb625e85
[ "Apache-2.0" ]
1
2020-03-29T18:56:33.000Z
2020-03-29T18:56:33.000Z
import numpy as np import seldon_core from seldon_core.user_model import SeldonComponent from typing import Dict, List, Union, Iterable import os import xgboost as xgb BOOSTER_FILE = "model.bst" class XGBoostServer(SeldonComponent): def __init__(self, model_uri: str): super().__init__() self.model...
31.444444
117
0.680801
08d0f85f2599fce74eebb697820f91f181a5855f
1,889
py
Python
st2common/st2common/util/jsonify.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2common/st2common/util/jsonify.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2common/st2common/util/jsonify.py
FairwindsOps/st2
2b76ca740c4af0d6b2c1d1ba5534ce4133fd16fa
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use th...
26.236111
99
0.68396
08d103d3fa0e106ddac90139c6b1ca4daf6a625b
3,696
py
Python
among.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
2
2015-05-25T10:47:30.000Z
2017-12-12T18:15:00.000Z
among.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
among.py
strickyak/aphid
12469858facdc9d7f110bf6c895e58eae9fb728f
[ "MIT" ]
null
null
null
from go import io, log, math.rand, regexp, time import A, bundle, keyring, pubsub, rbundle WATCHDOG_PERIOD = 300.0 MAX_BACKOFF = 120 class Among: def __init__(aphid, my_id :str, peer_map :dict): .aphid = aphid .ring = .aphid.ring .bus = .aphid.bus must my_id in peer_map .my_id = my_id .peer_...
28.430769
95
0.630682
08d15c6e8b104d055f6ddc4e12e2cc1bfb3b14bd
781
py
Python
alipay/aop/api/response/AlipayMarketingActivityOrdervoucherCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/response/AlipayMarketingActivityOrdervoucherCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/response/AlipayMarketingActivityOrdervoucherCreateResponse.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayMarketingActivityOrdervoucherCreateResponse(AlipayResponse): def __init__(self): super(AlipayMarketingActivityOrdervoucherCreateResponse, self).__init__() self....
30.038462
122
0.738796
08d17beffe7ae9fa172c39e7c21c2965c43d38c3
12,627
py
Python
pysot/tracker/siamrpn_attack_template_search.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/tracker/siamrpn_attack_template_search.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
pysot/tracker/siamrpn_attack_template_search.py
wattanapong/DFA
c05851beca2f8739f80531eb4de2f61639715cab
[ "Apache-2.0" ]
null
null
null
# Copyright (c) SenseTime. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np import torch.nn.functional as F import cv2 import torch, pdb, os from pysot.core.config import cfg fr...
40.085714
164
0.557615
08d17d0f8718664d3970a1497f8bf6b349e7c147
12,492
py
Python
src/gcg/algos/gcg.py
gkahn13/GtS
8186177de430d4bfef253bb0ea584ee60dc58d3a
[ "MIT" ]
74
2019-02-12T04:52:01.000Z
2021-06-11T00:19:45.000Z
src/gcg/algos/gcg.py
gkahn13/GtS
8186177de430d4bfef253bb0ea584ee60dc58d3a
[ "MIT" ]
5
2019-02-27T13:38:56.000Z
2020-11-30T11:29:28.000Z
src/gcg/algos/gcg.py
gkahn13/GtS
8186177de430d4bfef253bb0ea584ee60dc58d3a
[ "MIT" ]
16
2019-02-20T12:09:25.000Z
2022-02-09T12:49:09.000Z
import os import subprocess from gcg.samplers.sampler import Sampler from gcg.data.timer import timeit from gcg.data.logger import logger from gcg.data.file_manager import FileManager from gcg.data import mypickle from gcg.misc import utils class GCG(object): def __init__(self, exp_name, ...
41.919463
126
0.596702
08d1953096224c8eebeb2f35ac971a6539526f2d
1,353
py
Python
models/femnist/cnn_container.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
4
2021-09-03T02:44:14.000Z
2022-03-04T03:28:09.000Z
models/femnist/cnn_container.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
null
null
null
models/femnist/cnn_container.py
mingxuts/multi-center-fed-learning
9262ddaefb79b14ea44b61ffce200b82d31b0af1
[ "BSD-2-Clause" ]
2
2021-10-10T11:57:53.000Z
2022-02-15T20:27:10.000Z
import tensorflow as tf import logging tf.get_logger().setLevel(logging.ERROR) import numpy as np IMAGE_SIZE = 28 def get_conv_dimension(filter_list): with tf.Graph().as_default(): with tf.Session() as sess: """Model function for CNN.""" features = tf.placeholder( ...
34.692308
86
0.578714
08d1a5aefdc43601c03ea0b19aa24b44639370c0
1,075
py
Python
avwx_api/structs.py
lucasbstn/avwx-api
1f638dde328e57f80a11466034c6e027d0f25557
[ "MIT" ]
null
null
null
avwx_api/structs.py
lucasbstn/avwx-api
1f638dde328e57f80a11466034c6e027d0f25557
[ "MIT" ]
null
null
null
avwx_api/structs.py
lucasbstn/avwx-api
1f638dde328e57f80a11466034c6e027d0f25557
[ "MIT" ]
null
null
null
""" Michael duPont - michael@mdupont.com avwx_api.structs - Parameter dataclasses """ # pylint: disable=C0111 # stdlib from dataclasses import dataclass from typing import List, Tuple, Union # module from avwx import Station @dataclass class Params: format: str @dataclass class ReportParams(Params): opti...
15.357143
49
0.729302
08d1aa0d72cd508eade8eab9023e5e08192374d2
5,928
py
Python
src/test/tests/databases/silo_datatypes.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/silo_datatypes.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/silo_datatypes.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: silo_datatypes.py # # Tests: All varieties of datatypes, centering, variable types, # meshtypes and force-single mode. # # Programmer: Mark C. Miller, Thu Jul 15 14:42:12 PDT 2010 # ...
40.054054
94
0.565789
08d1bde839aebaba2d46e40ae80bd33aa4295b4c
2,428
py
Python
2019/12/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
2
2020-12-04T09:45:38.000Z
2020-12-07T14:06:12.000Z
2019/12/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
2019/12/solution2.py
frenzymadness/aoc
c9018e757bae61a696e675a827aef873995abdd3
[ "WTFPL" ]
null
null
null
from itertools import combinations, cycle four_zeros = [(0,0,0) for _ in range(4)] # Load from file with open("test.txt") as input_file: lines = input_file.readlines() moons = [] # Parse moons coordinates for line in lines: line = line.strip() line = line.rstrip(">").lstrip("<") coords = [int(part.s...
27.280899
86
0.609555
08d1cecb5b2809d6285512c823b9bf2f5f455d83
590
py
Python
examples/mp/be2_mp2.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
2
2021-09-17T06:10:17.000Z
2022-01-22T23:37:22.000Z
examples/mp/be2_mp2.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
null
null
null
examples/mp/be2_mp2.py
seunghoonlee89/pyscf-ecCC-TCC
2091566fb83c1474e40bf74f271be2ce4611f60c
[ "Apache-2.0" ]
2
2021-09-16T23:37:42.000Z
2021-10-14T23:00:39.000Z
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' A simple example to run MP2 calculation. ''' import pyscf from pyscf import gto, scf, lo, tools, symm mol = gto.M(atom = 'Be 0.0000 0.000000 2.0000;\ Be 0.0000 0.000000 0.0000', basis = "sto3g",...
21.851852
131
0.605085
08d1d0c50c46dc01a4444d414c3723c5bc049a09
3,869
py
Python
alipay/aop/api/domain/MorphoTemplateItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/MorphoTemplateItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/MorphoTemplateItem.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MorphoUser import MorphoUser class MorphoTemplateItem(object): def __init__(self): self._gmt_modified = None self._name = None self._owner = None ...
28.659259
83
0.569139
08d1d4416de87e8959c19b69897f1002a41482e8
17,610
py
Python
future/dmrgscf/nevpt_mpi.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
future/dmrgscf/nevpt_mpi.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
future/dmrgscf/nevpt_mpi.py
gmwang18/pyscf
fcd6877751661c8a9743c1c872a4a2b65f6dd7ac
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # # Author: Sheng Guo <shengg@princeton.edu> # Qiming Sun <osirpt.sun@gmail.com> # import os import sys import time import math import subprocess from functools import reduce import numpy import h5py import pyscf.lib from pyscf.lib import logger from pyscf.lib import chkfile from pyscf.dm...
36.01227
138
0.581431
08d1f7a69a29ec656a15068abc93b2ce4a2c3474
3,205
py
Python
plot_scripts/isomap_embed_test.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
plot_scripts/isomap_embed_test.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
plot_scripts/isomap_embed_test.py
lzamparo/SdA_reduce
1dc11f23b395f316df5f41448542d2d5c2e619ff
[ "BSD-3-Clause" ]
null
null
null
from sklearn import metrics from sklearn.mixture import GMM from sklearn.preprocessing import scale from sklearn.manifold import Isomap import logging, os from optparse import OptionParser import sys from time import time import numpy as np import pandas as pd from tables import * from extract_datasets import extract...
34.095745
104
0.653666
08d211fa39da56fd7b7ee2c191098b5d38b15f92
169
py
Python
tests/__init__.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/__init__.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/__init__.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
from pipda import options # don't warn on ast node detection failure in pytest assert statements options.warn_astnode_failure = False # options.assume_all_piping = True
33.8
70
0.822485
08d21ac218bdd9f53900939a6d702238c4540d9f
32,830
py
Python
tests/clock/test_clock_AsyncTempoClock.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/clock/test_clock_AsyncTempoClock.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
tests/clock/test_clock_AsyncTempoClock.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import asyncio import logging import random import statistics import pytest from supriya.clock import AsyncTempoClock, TimeUnit repeat_count = 5 logger = logging.getLogger("supriya.test") @pytest.fixture(autouse=True) def log_everything(caplog): caplog.set_level(logging.DEBUG, logger="supriya") @pytest.fixt...
37.953757
87
0.543131
08d223a562ed8cb4999841ee65752816e1baf641
4,957
py
Python
singlecell/collate_FLNC_gene_info.py
smyang2018/cDNA_Cupcake
5717e5f125070a5d79cd5eb43f2318cb5b6494fa
[ "BSD-3-Clause-Clear" ]
2
2019-09-11T21:27:00.000Z
2019-10-29T08:57:01.000Z
singlecell/collate_FLNC_gene_info.py
Vikash84/cDNA_Cupcake
1660160e2424c7780e3091567318a6a499aa4675
[ "BSD-3-Clause-Clear" ]
null
null
null
singlecell/collate_FLNC_gene_info.py
Vikash84/cDNA_Cupcake
1660160e2424c7780e3091567318a6a499aa4675
[ "BSD-3-Clause-Clear" ]
1
2022-03-17T03:12:28.000Z
2022-03-17T03:12:28.000Z
""" Given: 1. single cell UMI, BC file (ccs -> umi, bc) 2. collapse group.txt (ccs -> pbid) 3. SQANTI classification (pbid -> transcript, isoform, category) 4. optional ontarget file (pbid -> ontarget or not) Output a collated infor file that is: <ccs>, <pbid>, <transcript>, <gene>, <category>, <ont...
40.966942
151
0.637079
08d263361a1137d4abaca43b9228203e0d4be52e
2,791
py
Python
modelscript/scripts/glossaries/printer.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
1
2019-02-22T14:27:06.000Z
2019-02-22T14:27:06.000Z
modelscript/scripts/glossaries/printer.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
4
2015-12-18T10:30:02.000Z
2015-12-18T10:36:28.000Z
modelscript/scripts/glossaries/printer.py
ScribesZone/ModelScribes
a36be1047283f2e470dc2dd4353f2a714377bb7d
[ "MIT" ]
null
null
null
# coding=utf-8 from typing import Optional from modelscript.base.modelprinters import ( ModelPrinter, ModelSourcePrinter, ModelPrinterConfig, ) from modelscript.metamodels.glossaries import ( GlossaryModel, METAMODEL ) from modelscript.scripts.textblocks.printer import ( TextBlockPrinter ) _...
28.191919
70
0.604801
08d2b67646c47ae0f119bc3940086c7ff48125a9
4,397
py
Python
services/article/new_article_servicer.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-17T23:18:39.000Z
2021-03-06T02:56:46.000Z
services/article/new_article_servicer.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
3
2020-03-21T08:47:34.000Z
2020-05-11T21:56:56.000Z
services/article/new_article_servicer.py
CPSSD/rabble
88ad5f4cfd49c00037ffdd0f0b5d463dcbf299c9
[ "MIT" ]
1
2020-03-17T14:13:54.000Z
2020-03-17T14:13:54.000Z
from services.proto import article_pb2 from services.proto import database_pb2 from services.proto import create_pb2 from services.proto import mdc_pb2 from services.proto import recommend_posts_pb2 from services.proto import search_pb2 from utils.articles import convert_to_tags_string, md_to_html class NewArticleSer...
38.234783
118
0.653627
08d2c185303483140ff27045d4498ce7d6c2e522
5,301
py
Python
tensorflow/python/framework/random_seed.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
2
2020-09-14T03:11:08.000Z
2022-02-21T19:06:44.000Z
tensorflow/python/framework/random_seed.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
null
null
null
tensorflow/python/framework/random_seed.py
amineferchichi/tensorflow
4ac9c09d5ca57a03b8daa5fb9e295947b1619854
[ "Apache-2.0" ]
1
2019-06-19T08:43:23.000Z
2019-06-19T08:43:23.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...
33.13125
89
0.692699
08d2c76907b6097b1fda5acb5e8d119df514e574
6,426
py
Python
components/google-cloud/google_cloud_pipeline_components/container/experimental/gcp_launcher/job_remote_runner.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
components/google-cloud/google_cloud_pipeline_components/container/experimental/gcp_launcher/job_remote_runner.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
components/google-cloud/google_cloud_pipeline_components/container/experimental/gcp_launcher/job_remote_runner.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow 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 applicabl...
42
106
0.631964
08d2eabbd96b40fce1b869d9db695cd7b986aa85
13,555
py
Python
train_progan.py
Gerryflap/progan_experiments
8da6337bafc416ccd32289a998055def92408d23
[ "MIT" ]
null
null
null
train_progan.py
Gerryflap/progan_experiments
8da6337bafc416ccd32289a998055def92408d23
[ "MIT" ]
null
null
null
train_progan.py
Gerryflap/progan_experiments
8da6337bafc416ccd32289a998055def92408d23
[ "MIT" ]
null
null
null
import math import os import time from datetime import date, datetime import torchvision from torch.utils.data import DataLoader import torchvision.transforms as transforms import torch.nn.functional as F import torch import util from models import ProGANDiscriminator, ProGANGenerator # Algo from models_additional i...
40.462687
169
0.567023
08d31b53b525db79b7626aebe3cf889f0ce9fb97
948
py
Python
scripts/add_logged_types.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
1
2015-05-22T14:11:17.000Z
2015-05-22T14:11:17.000Z
scripts/add_logged_types.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
2
2021-09-02T20:01:35.000Z
2022-01-26T19:47:35.000Z
scripts/add_logged_types.py
joeedh/fairmotion
5c322fc012cdd94ddc2f21d68264c845b3c2c770
[ "MIT" ]
null
null
null
import os, sys, os.path import js_sources files = [] crfiles = set() for f in js_sources.sources: if "path.ux" in f: continue if not f.endswith(".js"): continue file = open(f, "rb") buf = file.read() file.close() count1 = buf.count(b"\n") count2 = buf.count(b"\r") has_cr = count2 >= ...
19.346939
126
0.546414
08d36cfb357b549227986ea526ecdf62779252a8
2,945
py
Python
scripts/nn/cifar/dataset.py
carlzhangweiwen/gazelle_mpc
45818ccf6375100a8fe2680f44f37d713380aa5c
[ "MIT" ]
50
2018-10-05T02:46:53.000Z
2022-03-20T08:47:46.000Z
scripts/nn/cifar/dataset.py
WeiBenqiang/gazelle_mpc
f4eb3bae09bf4897f2651946eac7dee17e094a6f
[ "MIT" ]
7
2018-10-11T17:19:12.000Z
2022-03-08T16:45:11.000Z
scripts/nn/cifar/dataset.py
WeiBenqiang/gazelle_mpc
f4eb3bae09bf4897f2651946eac7dee17e094a6f
[ "MIT" ]
20
2018-12-09T17:44:11.000Z
2022-03-01T12:13:21.000Z
import torch from torchvision import datasets, transforms from torch.utils.data import DataLoader import os def get10(batch_size, data_root='/home/chiraag/research/datasets', train=True, val=True, **kwargs): data_root = os.path.expanduser(os.path.join(data_root, 'cifar10-data')) num_workers = kwargs.setdefault...
41.478873
100
0.570798
08d3723bc0cf04764cf7468287f4f945753eaf94
49,467
py
Python
tests/api/v1_3_3/test_discovery.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v1_3_3/test_discovery.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
tests/api/v1_3_3/test_discovery.py
nonstdout/dnacentersdk
dbbbc4baa5300aa9e5c9193f2ea71438018095f5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """DNACenterAPI discovery API fixtures and tests. Copyright (c) 2019-2020 Cisco and/or its affiliates. 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,...
29.064042
307
0.709887
08d3c0ecc79e143a8faab8ba67eb7f4ea4024f0d
10,823
py
Python
src/bloombox/schema/products/Edible_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
4
2018-01-23T20:13:11.000Z
2018-07-28T22:36:09.000Z
src/bloombox/schema/products/Edible_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
159
2018-02-02T09:55:52.000Z
2021-07-21T23:41:59.000Z
src/bloombox/schema/products/Edible_pb2.py
Bloombox/Python
1b125fbdf54efb390afe12aaa966f093218c4387
[ "Apache-2.0" ]
3
2018-01-23T20:13:15.000Z
2020-01-17T01:07:53.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: products/Edible.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import messa...
37.842657
1,458
0.743047
08d3cc12d530b4515e84ee962b2e82e26cd7ede3
2,210
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/esp_atcontrol_cheerlights.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/esp_atcontrol_cheerlights.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
24
2018-12-17T18:35:04.000Z
2022-03-26T16:10:05.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/esp_atcontrol_cheerlights.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
14
2021-02-20T17:40:56.000Z
2022-01-01T19:53:38.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import busio from digitalio import DigitalInOut from digitalio import Direction import neopixel import adafruit_fancyled.adafruit_fancyled as fancy # ESP32 SPI from adafruit_espatcontrol import ( ...
26
86
0.704072
08d3d55c2fe0d117d2bc1f54328b46785b9781e9
2,542
py
Python
django_graphene_starter/django_graphene_starter/views.py
ngshiheng/django-graphene-starter
81151b0dc30ed6d1d493be611e930c749044941d
[ "MIT" ]
9
2021-01-14T02:53:02.000Z
2021-12-29T21:39:37.000Z
django_graphene_starter/django_graphene_starter/views.py
ngshiheng/django-graphene-starter
81151b0dc30ed6d1d493be611e930c749044941d
[ "MIT" ]
20
2021-01-28T00:49:06.000Z
2022-01-14T19:04:27.000Z
django_graphene_starter/django_graphene_starter/views.py
ngshiheng/django-graphene-starter
81151b0dc30ed6d1d493be611e930c749044941d
[ "MIT" ]
2
2021-10-12T19:24:52.000Z
2021-12-29T21:39:53.000Z
import logging from typing import Union from django.conf import settings from django.http.request import HttpRequest from django.http.response import HttpResponse, JsonResponse from django.shortcuts import render from django.utils.decorators import method_decorator from django.views.generic import View from graphene_d...
39.71875
207
0.754524
08d423e4cfc39d1eedd83bede8cd0d3039799303
8,483
py
Python
UMA-TEST/application_util/show_results.py
yinjunbo/UMA-MOT
46110c3fae15d440cc3e6b1ac49fc1272082c212
[ "MIT" ]
90
2020-03-26T02:12:21.000Z
2022-03-08T06:32:24.000Z
UMA-TEST/application_util/show_results.py
yinjunbo/UMA-MOT
46110c3fae15d440cc3e6b1ac49fc1272082c212
[ "MIT" ]
7
2020-05-13T03:07:03.000Z
2022-03-08T06:34:02.000Z
UMA-TEST/application_util/show_results.py
yinjunbo/UMA-MOT
46110c3fae15d440cc3e6b1ac49fc1272082c212
[ "MIT" ]
16
2020-03-26T10:21:08.000Z
2022-02-21T10:49:40.000Z
import argparse import os import cv2 import numpy as np import colorsys from image_viewer import ImageViewer class Track: def __init__(self, track_bbox, track_id): self.track_bbox = track_bbox self.track_id = track_id def gather_sequence_info(sequence_dir, det_dir, result_dir): ...
34.766393
94
0.622775
08d42b1fe39b37a801e809c29a9fff8beda98b52
83
py
Python
sparv/modules/treetagger/__init__.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
17
2018-09-21T07:01:45.000Z
2022-02-24T23:26:49.000Z
sparv/modules/treetagger/__init__.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
146
2018-11-13T19:13:25.000Z
2022-03-31T09:57:56.000Z
sparv/modules/treetagger/__init__.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
5
2019-02-14T00:50:38.000Z
2021-03-29T15:37:41.000Z
"""Annotations from TreeTagger for various languages.""" from . import treetagger
20.75
56
0.771084
08d44404dcc116e64021f1418d0f563e46ed2363
357
py
Python
apps/migrations/0003_alter_resourcestub_unique_together.py
s-nagaev/stubborn
092c42f57a3e9f6704171d56ce0bee5f12b29519
[ "MIT" ]
1
2022-01-21T18:52:20.000Z
2022-01-21T18:52:20.000Z
apps/migrations/0003_alter_resourcestub_unique_together.py
s-nagaev/stubborn
092c42f57a3e9f6704171d56ce0bee5f12b29519
[ "MIT" ]
4
2022-01-07T10:08:18.000Z
2022-02-06T10:15:22.000Z
apps/migrations/0003_alter_resourcestub_unique_together.py
s-nagaev/stubborn
c5ad0f02c70ea59af9ecddda76339ae3b3999cd3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-11-04 11:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('apps', '0002_auto_20211102_2006'), ] operations = [ migrations.AlterUniqueTogether( name='resourcestub', unique_together={('...
19.833333
50
0.602241
08d45ed73f3ae4b580d7078272e79fef22ef67c5
9,992
py
Python
tensorflow/contrib/opt/python/training/addsign_test.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/opt/python/training/addsign_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/opt/python/training/addsign_test.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2017 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...
37.992395
80
0.594576
08d4880dc458fa4769add7b6933533f490e6b72e
7,524
py
Python
VAE/evaluate.py
BensonRen/idlm_Ben
0d83780232d6341575daf88792959542aef82132
[ "MIT" ]
3
2019-08-28T17:10:29.000Z
2020-11-22T14:06:45.000Z
VAE/evaluate.py
BensonRen/idlm_Ben
0d83780232d6341575daf88792959542aef82132
[ "MIT" ]
1
2019-11-03T12:02:43.000Z
2019-11-20T02:04:36.000Z
VAE/evaluate.py
BensonRen/idlm_Ben
0d83780232d6341575daf88792959542aef82132
[ "MIT" ]
2
2019-08-29T02:32:56.000Z
2019-12-22T17:44:26.000Z
import argparse import tensorflow as tf import data_reader import model_maker import VAE_network_maker import network_helper import plotsAnalysis import os import numpy as np import matplotlib.pyplot as plt import os import pandas as pd import flag_reader import time_recorder import get_pred_truth_file def compare_tru...
44.258824
136
0.631047
08d4acc72d6d93f344a3c7bced4b7bc4ef6d2221
1,919
py
Python
pymeterreader/device_lib/common.py
Schwaneberg/pymeterreader
b91a24b2da3899d2f485f17154db1cc816d64359
[ "BSD-2-Clause" ]
5
2020-10-20T20:36:31.000Z
2022-03-18T07:23:05.000Z
pymeterreader/device_lib/common.py
Schwaneberg/pymeterreader
b91a24b2da3899d2f485f17154db1cc816d64359
[ "BSD-2-Clause" ]
1
2022-02-28T20:15:49.000Z
2022-02-28T21:25:13.000Z
pymeterreader/device_lib/common.py
Schwaneberg/pymeterreader
b91a24b2da3899d2f485f17154db1cc816d64359
[ "BSD-2-Clause" ]
3
2021-01-01T17:28:42.000Z
2021-01-18T16:47:12.000Z
""" Common code for all readers """ import typing as tp from dataclasses import dataclass, field from datetime import datetime, timezone, timedelta from string import digits, ascii_letters, punctuation import humanfriendly LEGAL_CHARACTERS = digits + ascii_letters + punctuation @dataclass(frozen=True) class Channel...
27.414286
104
0.700365
08d4b2550baead3dda6474a25d11a2a40004726c
8,100
py
Python
ml3d/datasets/customdataset.py
kylevedder/Open3D-ML
87ec50ed81d531377b1bb27e5c16f964201eadb0
[ "MIT" ]
447
2020-10-14T23:16:41.000Z
2021-07-27T06:57:45.000Z
ml3d/datasets/customdataset.py
kylevedder/Open3D-ML
87ec50ed81d531377b1bb27e5c16f964201eadb0
[ "MIT" ]
118
2020-10-14T10:20:37.000Z
2021-07-27T12:23:18.000Z
ml3d/datasets/customdataset.py
kylevedder/Open3D-ML
87ec50ed81d531377b1bb27e5c16f964201eadb0
[ "MIT" ]
80
2020-10-14T17:35:48.000Z
2021-07-23T08:48:17.000Z
import numpy as np import os, sys, glob, pickle from pathlib import Path from os.path import join, exists, dirname, abspath import random from sklearn.neighbors import KDTree from tqdm import tqdm import logging from .base_dataset import BaseDataset, BaseDatasetSplit from ..utils import make_dir, DATASET logging.basi...
34.468085
97
0.592346
08d4c2ee87d89ec9c6a2de1ebdd8b620e271de5b
5,286
py
Python
src/command_modules/azure-cli-redis/azure/cli/command_modules/redis/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-redis/azure/cli/command_modules/redis/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-redis/azure/cli/command_modules/redis/custom.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
45.965217
440
0.692206
08d4d915f324b9fa0f759736a83eeffc76254e34
7,664
py
Python
setup.py
iparask/campaign_manager
7d7f3934fdde6acadc7581825697c89009fcf6fd
[ "MIT" ]
1
2019-12-18T16:46:35.000Z
2019-12-18T16:46:35.000Z
setup.py
radical-project/campaign_manager
7d7f3934fdde6acadc7581825697c89009fcf6fd
[ "MIT" ]
22
2019-12-12T16:31:36.000Z
2020-12-14T22:45:40.000Z
setup.py
iparask/campaign_manager
7d7f3934fdde6acadc7581825697c89009fcf6fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = 'Ioannis Paraskevakos' __email__ = 'g.paraskev@rutgers.edu' __copyright__ = 'Copyright 2018-19' __license__ = 'MIT' """ Setup script, only usable via pip. """ import re import os import sys import glob import shutil import subprocess as sp name = 'radical.cm' mod_roo...
37.203883
99
0.521399
08d4eb10dcf4918ee8366cf3a26a0e9b2198e8e4
3,457
py
Python
src/dataset.py
adrianmatias/ml4grownups
2ead636d99acc1e67e48789514fc87691f799ebc
[ "MIT" ]
null
null
null
src/dataset.py
adrianmatias/ml4grownups
2ead636d99acc1e67e48789514fc87691f799ebc
[ "MIT" ]
null
null
null
src/dataset.py
adrianmatias/ml4grownups
2ead636d99acc1e67e48789514fc87691f799ebc
[ "MIT" ]
null
null
null
import os import pandas as pd import numpy as np from conf import Conf from typing import List from sklearn.model_selection import train_test_split CONF = Conf() def main(): dataset = Dataset( data_user=get_data("users_onboarding_paywall.tsv"), data_activity=get_data("activities_per_day.tsv"), ...
27.879032
82
0.623951
08d4f3d5da64d254efc7cb2508d9e71e3fa9ff12
850
py
Python
abc/abc250/d/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
abc/abc250/d/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
abc/abc250/d/main.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
import sys import math from collections import defaultdict, deque, Counter sys.setrecursionlimit(10 ** 6) stdin = sys.stdin INF = float('inf') ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline().strip() def eratosthenes(N): prime = [ True ] * (N + 1) LI...
20.238095
53
0.530588
08d50910c744ffd9328821fc9a57b4b2f3f9467c
568
py
Python
setup.py
Edinburgh-Genome-Foundry/GeneAlloy
e96e7e1da0d64cc0baf543be2992f763238161a5
[ "MIT" ]
1
2020-03-19T16:43:46.000Z
2020-03-19T16:43:46.000Z
setup.py
Edinburgh-Genome-Foundry/GeneAlloy
e96e7e1da0d64cc0baf543be2992f763238161a5
[ "MIT" ]
null
null
null
setup.py
Edinburgh-Genome-Foundry/GeneAlloy
e96e7e1da0d64cc0baf543be2992f763238161a5
[ "MIT" ]
null
null
null
import ez_setup from setuptools import setup, find_packages ez_setup.use_setuptools() version = {} with open("genealloy/version.py") as fp: exec(fp.read(), version) setup( name="genealloy", version=version["__version__"], author="Peter Vegh", description="GeneAlloy helps designing overlapping se...
24.695652
67
0.707746
08d513cbcd9fa5fc67ff9cb50805c63bd955eba5
3,942
py
Python
bigml/laminar/numpy_ops.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:38.000Z
2021-08-30T20:18:38.000Z
bigml/laminar/numpy_ops.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
null
null
null
bigml/laminar/numpy_ops.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:40.000Z
2021-08-30T20:18:40.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2017-2019 BigML # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
23.60479
75
0.620751
08d527137c2daa1d86ff5483f245de964dff0fb4
623
py
Python
harvest/models/mk.py
lmaurits/harvest
df6b549096da8ae2f4ed38aa2be19c7e82fa60e3
[ "BSD-2-Clause" ]
1
2016-10-23T13:24:44.000Z
2016-10-23T13:24:44.000Z
harvest/models/mk.py
lmaurits/harvest
df6b549096da8ae2f4ed38aa2be19c7e82fa60e3
[ "BSD-2-Clause" ]
null
null
null
harvest/models/mk.py
lmaurits/harvest
df6b549096da8ae2f4ed38aa2be19c7e82fa60e3
[ "BSD-2-Clause" ]
null
null
null
import harvest.dataframe from harvest.models.beastsimulator import BeastSimulator from harvest.models.beastxml import BeastXml class MkSimulator(BeastSimulator): def __init__(self, tree, n_features, n_states): BeastSimulator.__init__(self, tree, n_features) height = self.tree.max_distance_from_roo...
32.789474
77
0.682183
08d552937092505d9bf6329977560e50a8ef9e27
628
py
Python
experiments/2013-09-02-time-series.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
151
2015-01-09T19:25:05.000Z
2022-01-05T02:05:52.000Z
experiments/2013-09-02-time-series.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
1
2016-08-04T13:12:51.000Z
2016-08-04T13:12:51.000Z
experiments/2013-09-02-time-series.py
jaesikchoi/gpss-research
2a64958a018f1668f7b8eedf33c4076a63af7868
[ "MIT" ]
59
2015-02-04T19:13:58.000Z
2021-07-28T23:36:09.000Z
Experiment(description='Repeat of 28th Aug experiment', data_dir='../data/tsdlr-250/', max_depth=8, random_order=True, k=1, debug=False, local_computation=False, n_rand=4, sd=4, max_jobs=400, verbose=False...
31.4
72
0.530255
08d55946a1101d215ec9fb326d53461cc99acae1
1,568
py
Python
Sign-Language-Recognition/code/common/config.py
lhvubtqn/Sign-Language-Recognition
5623f0bdbfbcb2b9663b870ac8d1dec2d2ed78e4
[ "MIT" ]
131
2016-02-01T18:09:27.000Z
2022-03-23T16:30:43.000Z
Sign-Language-Recognition/code/common/config.py
lhvubtqn/Sign-Language-Recognition
5623f0bdbfbcb2b9663b870ac8d1dec2d2ed78e4
[ "MIT" ]
10
2017-01-29T12:20:33.000Z
2022-01-27T07:45:29.000Z
Sign-Language-Recognition/code/common/config.py
lhvubtqn/Sign-Language-Recognition
5623f0bdbfbcb2b9663b870ac8d1dec2d2ed78e4
[ "MIT" ]
47
2017-03-18T07:50:58.000Z
2021-07-23T10:56:49.000Z
import os def get_config(key): global config return config[key] def add_config(key, value): global config config[key] = value def merge_paths(key, path): return os.path.join(get_config(key), path) def populate_config(): # Configure these variables as per your needs add_config('data_...
29.037037
71
0.692602
08d561455950bd8f6836f1e578341d1e110e7a53
6,910
py
Python
doc/graphs/_modules/auxiliary_samples.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
null
null
null
doc/graphs/_modules/auxiliary_samples.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
null
null
null
doc/graphs/_modules/auxiliary_samples.py
boryana-ilieva/respy
c3f600eefbb54d4f34ae2cc1e52d4d32c03ba0dc
[ "MIT" ]
1
2020-10-31T19:40:22.000Z
2020-10-31T19:40:22.000Z
""" This module contains auxiliary functions to plot some information on the RESTUD economy. """ # standard library import matplotlib.pylab as plt import numpy as np import shutil import shlex import os from mpl_toolkits.mplot3d import Axes3D from matplotlib.ticker import FuncFormatter from matplotlib import cm # Ev...
26.576923
102
0.601013