hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
b7c06f515d7439b0a77375fbc6fb115fb4977fe1
1,042
py
Python
swarmlib/util/functions.py
nkoutsov/swarmlib
fa70a5d9de50de5dacd5d499eba3b6bb72c39c05
[ "BSD-3-Clause" ]
null
null
null
swarmlib/util/functions.py
nkoutsov/swarmlib
fa70a5d9de50de5dacd5d499eba3b6bb72c39c05
[ "BSD-3-Clause" ]
null
null
null
swarmlib/util/functions.py
nkoutsov/swarmlib
fa70a5d9de50de5dacd5d499eba3b6bb72c39c05
[ "BSD-3-Clause" ]
null
null
null
# ------------------------------------------------------------------------------------------------------ # Copyright (c) Leo Hanisch. All rights reserved. # Licensed under the BSD 3-Clause License. See LICENSE.txt in the project root for license information. # ---------------------------------------------------------...
33.612903
104
0.600768
b7c327b6206469cd0cf73575f1196729fde0be3b
1,695
py
Python
nps/network_entity.py
Dry8r3aD/penta-nps
a4c74a2cd90eb2f95158e2040b7eca7056b062db
[ "MIT" ]
6
2016-09-25T07:26:22.000Z
2022-03-16T06:30:05.000Z
nps/network_entity.py
Dry8r3aD/penta-nps
a4c74a2cd90eb2f95158e2040b7eca7056b062db
[ "MIT" ]
14
2016-10-04T00:02:20.000Z
2017-02-22T03:06:21.000Z
nps/network_entity.py
Dry8r3aD/penta-nps
a4c74a2cd90eb2f95158e2040b7eca7056b062db
[ "MIT" ]
5
2016-10-06T04:53:32.000Z
2019-12-08T13:48:58.000Z
# -*- coding: UTF-8 -*- from collections import deque # def set_use_nat_port(self, use_or_not): # self._use_nat_port = use_or_not # # def get_use_nat_port(self): # return self._use_nat_port # # def set_dut_nat_port(self, port): # self._nat_port = port # # def get_dut_nat_port(self): #...
25.298507
54
0.645428
b7c3aa3be6cad1fc615356fe4a0db24f49f796d6
898
py
Python
source/_sample/scipy/interp_spline_interest.py
showa-yojyo/notebook
82c15074c24d64a1dfcb70a526bc1deb2ecffe68
[ "MIT" ]
14
2016-04-13T08:10:02.000Z
2021-04-19T09:42:51.000Z
source/_sample/scipy/interp_spline_interest.py
showa-yojyo/note
5f262ecda3df132cb66206c465d16e174061d6b9
[ "MIT" ]
88
2017-09-27T15:07:05.000Z
2019-10-02T04:05:03.000Z
source/_sample/scipy/interp_spline_interest.py
showa-yojyo/note
5f262ecda3df132cb66206c465d16e174061d6b9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """interp_spline_interest.py: Demonstrate spline interpolation. """ from scipy.interpolate import splrep, splev import numpy as np import matplotlib.pyplot as plt # pylint: disable=invalid-name # Interest rates of Jan, Feb, Mar, Jun, Dec. x = np.array([1, 2, 3, 6, 12]) y = np.array([0.080, 0.100...
24.944444
63
0.679287
b7c3bf02cb16b87bf7d4abf283104f4f08eda387
1,351
py
Python
Pytorch/Scratch CNN and Pytorch/part1-convnet/tests/test_sgd.py
Kuga23/Deep-Learning
86980338208c702b6bfcbcfffdb18498e389a56b
[ "MIT" ]
3
2022-01-16T14:46:57.000Z
2022-02-20T22:40:16.000Z
Pytorch/Scratch CNN and Pytorch/part1-convnet/tests/test_sgd.py
Kuga23/Deep-Learning
86980338208c702b6bfcbcfffdb18498e389a56b
[ "MIT" ]
null
null
null
Pytorch/Scratch CNN and Pytorch/part1-convnet/tests/test_sgd.py
Kuga23/Deep-Learning
86980338208c702b6bfcbcfffdb18498e389a56b
[ "MIT" ]
6
2021-09-29T11:42:37.000Z
2022-02-02T02:33:51.000Z
import unittest import numpy as np from optimizer import SGD from modules import ConvNet from .utils import *
28.744681
104
0.624722
b7c3c9491c620a60056834ce6902dd96ab059f3b
3,373
py
Python
Scripts/simulation/tunable_utils/create_object.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/tunable_utils/create_object.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/tunable_utils/create_object.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\tunable_utils\create_object.py # Compiled at: 2020-05-07 00:26:47 # Size of source mod 2**32: 4106 b...
54.403226
240
0.714794
b7c4849c094e9c707d5b2331ea5e37f6828cbb6d
1,583
py
Python
题源分类/LeetCode/LeetCode日刷/python/47.全排列-ii.py
ZhengyangXu/Algorithm-Daily-Practice
3017a3d476fc9a857026190ea4fae2911058df59
[ "MIT" ]
null
null
null
题源分类/LeetCode/LeetCode日刷/python/47.全排列-ii.py
ZhengyangXu/Algorithm-Daily-Practice
3017a3d476fc9a857026190ea4fae2911058df59
[ "MIT" ]
null
null
null
题源分类/LeetCode/LeetCode日刷/python/47.全排列-ii.py
ZhengyangXu/Algorithm-Daily-Practice
3017a3d476fc9a857026190ea4fae2911058df59
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=47 lang=python3 # # [47] II # # https://leetcode-cn.com/problems/permutations-ii/description/ # # algorithms # Medium (59.58%) # Likes: 371 # Dislikes: 0 # Total Accepted: 78.7K # Total Submissions: 132.1K # Testcase Example: '[1,1,2]' # # # # : # # : [1,1,2] # : # [ # [1,1,2], # ...
21.986111
67
0.475679
b7c4b41079ffcb026b138a48570833eeaf51d196
149
py
Python
testing/run-tests.py
8enmann/blobfile
34bf6fac2a0cd4ff5eb5c3e4964914758f264c0b
[ "Unlicense" ]
21
2020-02-26T08:00:20.000Z
2022-02-28T00:06:50.000Z
testing/run-tests.py
8enmann/blobfile
34bf6fac2a0cd4ff5eb5c3e4964914758f264c0b
[ "Unlicense" ]
146
2020-02-28T18:15:53.000Z
2022-03-24T06:37:57.000Z
testing/run-tests.py
8enmann/blobfile
34bf6fac2a0cd4ff5eb5c3e4964914758f264c0b
[ "Unlicense" ]
15
2020-04-10T08:31:57.000Z
2022-02-28T03:43:02.000Z
import subprocess as sp import sys sp.run(["pip", "install", "-e", "."], check=True) sp.run(["pytest", "blobfile"] + sys.argv[1:], check=True)
24.833333
58
0.604027
b7c583ce42f7da52ba4b620e07b7b1dce4f64729
6,467
py
Python
examples/Components/collision/PrimitiveCreation.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
examples/Components/collision/PrimitiveCreation.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
examples/Components/collision/PrimitiveCreation.py
sofa-framework/issofa
94855f488465bc3ed41223cbde987581dfca5389
[ "OML" ]
null
null
null
import Sofa import random from cmath import * ############################################################################################ # this is a PythonScriptController example script ############################################################################################ ###################################...
34.216931
256
0.66043
b7c6df93916a72fa3dc3b5903a942a8fbc2d13cd
350
py
Python
examples/tensorboard/nested.py
dwolfschlaeger/guildai
f82102ad950d7c89c8f2c2eafe596b2d7109dc57
[ "Apache-2.0" ]
694
2018-11-30T01:06:30.000Z
2022-03-31T14:46:26.000Z
examples/tensorboard/nested.py
dwolfschlaeger/guildai
f82102ad950d7c89c8f2c2eafe596b2d7109dc57
[ "Apache-2.0" ]
323
2018-11-05T17:44:34.000Z
2022-03-31T16:56:41.000Z
examples/tensorboard/nested.py
dwolfschlaeger/guildai
f82102ad950d7c89c8f2c2eafe596b2d7109dc57
[ "Apache-2.0" ]
68
2019-04-01T04:24:47.000Z
2022-02-24T17:22:04.000Z
import tensorboardX with tensorboardX.SummaryWriter("foo") as w: w.add_scalar("a", 1.0, 1) w.add_scalar("a", 2.0, 2) with tensorboardX.SummaryWriter("foo/bar") as w: w.add_scalar("a", 3.0, 3) w.add_scalar("a", 4.0, 4) with tensorboardX.SummaryWriter("foo/bar/baz") as w: w.add_scalar("a", 5.0, 5) ...
25
52
0.634286
b7c7e5d7b1958fefce1bb2170ee1a05f5b0e1bc0
444
py
Python
cobalt/__init__.py
NicolasDenoyelle/cobalt
08742676214e728ed83f3a90a118b9c020a347fd
[ "BSD-3-Clause" ]
null
null
null
cobalt/__init__.py
NicolasDenoyelle/cobalt
08742676214e728ed83f3a90a118b9c020a347fd
[ "BSD-3-Clause" ]
null
null
null
cobalt/__init__.py
NicolasDenoyelle/cobalt
08742676214e728ed83f3a90a118b9c020a347fd
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Copyright 2020 UChicago Argonne, LLC. # (c.f. AUTHORS, LICENSE) # For more info, see https://xgitlab.cels.anl.gov/argo/cobalt-python-wrapper # SPDX-License-Identifier: BSD-3-Clause #########################################################...
37
79
0.481982
b7c83d7466393b727423c1185dc55c5006258a81
859
py
Python
anand.py
kyclark/py-grepper
ca7a17b1ffc2d666d62da6c80eb4cbc0bd2e547e
[ "MIT" ]
null
null
null
anand.py
kyclark/py-grepper
ca7a17b1ffc2d666d62da6c80eb4cbc0bd2e547e
[ "MIT" ]
null
null
null
anand.py
kyclark/py-grepper
ca7a17b1ffc2d666d62da6c80eb4cbc0bd2e547e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os orderNumbers = open("orders.txt", "r") #Order numbers to match #Network path to a directory of files that has full details of the order directoryEntries = os.scandir("") outputFile = open("matchedData.dat", "w") for entry in directoryEntries: print("Currently parsing file ", en...
31.814815
76
0.696158
b7c97b1397f5b96121b2b0909bc775d38cbcd523
2,968
py
Python
tests/test_manager.py
Vizzuality/cog_worker
ae12d2fc42945fedfea4a22394247db9a73d867e
[ "MIT" ]
24
2021-08-23T14:51:02.000Z
2021-12-20T09:45:10.000Z
tests/test_manager.py
Vizzuality/cog_worker
ae12d2fc42945fedfea4a22394247db9a73d867e
[ "MIT" ]
null
null
null
tests/test_manager.py
Vizzuality/cog_worker
ae12d2fc42945fedfea4a22394247db9a73d867e
[ "MIT" ]
1
2021-08-24T01:09:36.000Z
2021-08-24T01:09:36.000Z
import pytest import rasterio as rio from rasterio.io import DatasetWriter from cog_worker import Manager from rasterio import MemoryFile, crs TEST_COG = "tests/roads_cog.tif" def test_preview(molleweide_manager, sample_function): arr, bbox = molleweide_manager.preview(sample_function, max_size=123) assert...
31.913978
83
0.686995
b7c9f4fcfbbd13ff61698bd25e58c747a3f4a5c0
1,031
py
Python
CLIP/experiments/tagger/main_binary.py
ASAPP-H/clip2
e8ba2a3cf4be01ec26bde5107c5a2813bddf8a3b
[ "MIT" ]
null
null
null
CLIP/experiments/tagger/main_binary.py
ASAPP-H/clip2
e8ba2a3cf4be01ec26bde5107c5a2813bddf8a3b
[ "MIT" ]
3
2021-09-08T02:07:49.000Z
2022-03-12T00:33:51.000Z
CLIP/experiments/tagger/main_binary.py
ASAPP-H/clip2
e8ba2a3cf4be01ec26bde5107c5a2813bddf8a3b
[ "MIT" ]
null
null
null
from train import train_model from utils import * import os import sys pwd = os.environ.get('CLIP_DIR') DATA_DIR = "%s/data/processed/" % pwd exp_name = "non_multilabel" run_name = "sentence_structurel_with_crf" train_file_name = "MIMIC_train_binary.csv" dev_file_name = "MIMIC_val_binary.csv" test_file_name = "test_b...
25.775
72
0.696411
b7caeb322abf8aa00666ef3387b5272abace4020
528
py
Python
persons/urls.py
nhieckqo/lei
f461d8dcbc8f9e037c661abb18b226aa6fa7acae
[ "MIT" ]
null
null
null
persons/urls.py
nhieckqo/lei
f461d8dcbc8f9e037c661abb18b226aa6fa7acae
[ "MIT" ]
null
null
null
persons/urls.py
nhieckqo/lei
f461d8dcbc8f9e037c661abb18b226aa6fa7acae
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = 'persons' urlpatterns = [ path('', views.PersonsTableView.as_view(),name='persons_list'), path('persons_details/<int:pk>',views.PersonsUpdateView.as_view(),name='persons_details_edit'), path('persons_details/create',views.PersonsCreateView.as_vie...
40.615385
108
0.753788
b7cb10c335526f698fe7f642c39ab4db21115697
246
py
Python
logxs/__version__.py
minlaxz/logxs
e225e7a3c69b01595e1f2c11552b70e4b1540d47
[ "MIT" ]
null
null
null
logxs/__version__.py
minlaxz/logxs
e225e7a3c69b01595e1f2c11552b70e4b1540d47
[ "MIT" ]
null
null
null
logxs/__version__.py
minlaxz/logxs
e225e7a3c69b01595e1f2c11552b70e4b1540d47
[ "MIT" ]
null
null
null
__title__ = 'logxs' __description__ = 'Replacing with build-in `print` with nice formatting.' __url__ = 'https://github.com/minlaxz/logxs' __version__ = '0.3.2' __author__ = 'Min Latt' __author_email__ = 'minminlaxz@gmail.com' __license__ = 'MIT'
35.142857
73
0.747967
b7cb5d32a878f3d9855d96b75ff3e715c839115f
977
py
Python
src/PyMud/Systems/system.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
src/PyMud/Systems/system.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
src/PyMud/Systems/system.py
NichCritic/pymud
583ec16f5a75dc7b45146564b39851291dc07b6c
[ "MIT" ]
null
null
null
import time
23.261905
71
0.551689
b7cb98a29e28bbca96a3da9a3ddecb43eea2b232
2,918
py
Python
hytra/plugins/transition_feature_vector_construction/transition_feature_subtraction.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
hytra/plugins/transition_feature_vector_construction/transition_feature_subtraction.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
hytra/plugins/transition_feature_vector_construction/transition_feature_subtraction.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
from hytra.pluginsystem import transition_feature_vector_construction_plugin import numpy as np from compiler.ast import flatten
35.585366
91
0.48732
b7cbae55dbd90dfb87f2e9c515ec5098f54466ea
5,438
py
Python
sprites/player.py
hectorpadin1/FICGames
6d75c3ef74f0d6d2881021833fe06cd67e207ab1
[ "MIT" ]
null
null
null
sprites/player.py
hectorpadin1/FICGames
6d75c3ef74f0d6d2881021833fe06cd67e207ab1
[ "MIT" ]
null
null
null
sprites/player.py
hectorpadin1/FICGames
6d75c3ef74f0d6d2881021833fe06cd67e207ab1
[ "MIT" ]
1
2022-03-29T15:38:18.000Z
2022-03-29T15:38:18.000Z
from matplotlib.style import available import pygame as pg from sprites.character import Character from pygame.math import Vector2 from settings import * from math import cos, pi from control import Controler from sprites.gun import MachineGun, Pistol, Rifle from managers.resourcemanager import ResourceManager as GR fr...
36.743243
142
0.590291
b7cbe1a4f3d3609804f5ba47a2634ce6c4505d36
716
py
Python
yocto/poky/bitbake/lib/bb/ui/crumbs/__init__.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
16
2017-01-17T15:20:43.000Z
2021-03-19T05:45:14.000Z
yocto/poky/bitbake/lib/bb/ui/crumbs/__init__.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
415
2016-12-20T17:20:45.000Z
2018-09-23T07:59:23.000Z
yocto/poky/bitbake/lib/bb/ui/crumbs/__init__.py
jxtxinbing/ops-build
9008de2d8e100f3f868c66765742bca9fa98f3f9
[ "Apache-2.0" ]
10
2016-12-20T13:24:50.000Z
2021-03-19T05:46:43.000Z
# # Gtk+ UI pieces for BitBake # # Copyright (C) 2006-2007 Richard Purdie # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be ...
39.777778
73
0.765363
b7cc1da3745ec1958d532f60dd1185d8b2057b84
10,198
py
Python
mytardisbf/migrations/0001_initial_data.py
keithschulze/mytardisbf
cc15fc9af89cf96c4d860c41fe5b0f366d4ee0d6
[ "MIT" ]
2
2020-07-09T01:21:00.000Z
2022-02-06T17:33:57.000Z
mytardisbf/migrations/0001_initial_data.py
keithschulze/mytardisbf
cc15fc9af89cf96c4d860c41fe5b0f366d4ee0d6
[ "MIT" ]
14
2015-07-21T05:12:58.000Z
2017-11-16T10:46:30.000Z
mytardisbf/migrations/0001_initial_data.py
keithschulze/mytardisbf
cc15fc9af89cf96c4d860c41fe5b0f366d4ee0d6
[ "MIT" ]
4
2015-08-04T10:57:29.000Z
2017-11-28T10:50:33.000Z
# -*- coding: utf-8 -*- from django.db import migrations from tardis.tardis_portal.models import ( Schema, ParameterName, DatafileParameter, DatafileParameterSet ) from mytardisbf.apps import ( OMESCHEMA, BFSCHEMA ) def forward_func(apps, schema_editor): """Create mytardisbf schemas and pa...
24.995098
80
0.499314
b7cc56e3520e5aa20afd04452b3d297df2206e1a
1,473
py
Python
ipmanagement/models.py
smilelhong/ip_manage
7581c596a84e943dc5dea4122eca3de14263992b
[ "Apache-2.0" ]
null
null
null
ipmanagement/models.py
smilelhong/ip_manage
7581c596a84e943dc5dea4122eca3de14263992b
[ "Apache-2.0" ]
null
null
null
ipmanagement/models.py
smilelhong/ip_manage
7581c596a84e943dc5dea4122eca3de14263992b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models from datetime import datetime # Create your models here.
64.043478
104
0.745418
b7d02035de2ed671a7db2b55074f9e4dd487d817
9,616
py
Python
tests/scripts/thread-cert/border_router/MATN_05_ReregistrationToSameMulticastGroup.py
kkasperczyk-no/sdk-openthread
385e19da1ae15f27872c2543b97276a42f102ead
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/border_router/MATN_05_ReregistrationToSameMulticastGroup.py
kkasperczyk-no/sdk-openthread
385e19da1ae15f27872c2543b97276a42f102ead
[ "BSD-3-Clause" ]
null
null
null
tests/scripts/thread-cert/border_router/MATN_05_ReregistrationToSameMulticastGroup.py
kkasperczyk-no/sdk-openthread
385e19da1ae15f27872c2543b97276a42f102ead
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2021, The OpenThread Authors. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright # ...
39.089431
119
0.629992
b7d0fb3e2eab434c02f0ab81e51febbe5297c8ae
3,457
py
Python
senseye_cameras/input/camera_pylon.py
senseye-inc/senseye-cameras
9d9cdb95e64aaa8d08aa56bd9a79641263e65940
[ "BSD-3-Clause" ]
5
2020-03-20T17:07:35.000Z
2022-01-25T23:48:52.000Z
senseye_cameras/input/camera_pylon.py
senseye-inc/senseye-cameras
9d9cdb95e64aaa8d08aa56bd9a79641263e65940
[ "BSD-3-Clause" ]
5
2020-03-05T20:55:06.000Z
2022-03-24T22:41:56.000Z
senseye_cameras/input/camera_pylon.py
senseye-inc/senseye-cameras
9d9cdb95e64aaa8d08aa56bd9a79641263e65940
[ "BSD-3-Clause" ]
null
null
null
import time import logging try: from pypylon import pylon except: pylon = None from . input import Input log = logging.getLogger(__name__) # writes the framenumber to the 8-11 bytes of the image as a big-endian set of octets # converts time from a float in seconds to an int64 in microseconds # writes the ti...
33.563107
102
0.60486
b7d28e8d5b3bd12fe72a9a971fff5626e0a64791
3,100
py
Python
vise/tests/util/phonopy/test_phonopy_input.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
16
2020-07-14T13:14:05.000Z
2022-03-04T13:39:30.000Z
vise/tests/util/phonopy/test_phonopy_input.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
10
2021-03-15T20:47:45.000Z
2021-08-19T00:47:12.000Z
vise/tests/util/phonopy/test_phonopy_input.py
kumagai-group/vise
8adfe61ad8f31767ec562f02f271e2495f357cd4
[ "MIT" ]
6
2020-03-03T00:42:39.000Z
2022-02-22T02:34:47.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021. Distributed under the terms of the MIT License. from phonopy.interface.calculator import read_crystal_structure from phonopy.structure.atoms import PhonopyAtoms from vise.util.phonopy.phonopy_input import structure_to_phonopy_atoms import numpy as np # # def test_make_...
41.333333
73
0.59
b7d2c3d5b85f7571232ad665184ca7a2e111ef5a
1,419
py
Python
2020/day15.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2020/day15.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
2020/day15.py
andypymont/adventofcode
912aa48fc5b31ec9202fb9654380991fc62afcd1
[ "MIT" ]
null
null
null
""" 2020 Day 15 https://adventofcode.com/2020/day/15 """ from collections import deque from typing import Dict, Iterable, Optional import aocd # type: ignore def main() -> None: """ Calculate and output the solutions based on the real puzzle input. """ data = aocd.get_data(year=2020, day=15) e...
25.8
82
0.621564
b7d37af2b6bf8f16d281543414e0b3b8888f7e5c
1,121
py
Python
src/spring-cloud/azext_spring_cloud/_validators_enterprise.py
SanyaKochhar/azure-cli-extensions
ff845c73e3110d9f4025c122c1938dd24a43cca0
[ "MIT" ]
2
2021-03-23T02:34:41.000Z
2021-06-03T05:53:34.000Z
src/spring-cloud/azext_spring_cloud/_validators_enterprise.py
SanyaKochhar/azure-cli-extensions
ff845c73e3110d9f4025c122c1938dd24a43cca0
[ "MIT" ]
21
2021-03-16T23:04:40.000Z
2022-03-24T01:45:54.000Z
src/spring-cloud/azext_spring_cloud/_validators_enterprise.py
SanyaKochhar/azure-cli-extensions
ff845c73e3110d9f4025c122c1938dd24a43cca0
[ "MIT" ]
9
2021-03-11T02:59:39.000Z
2022-02-24T21:46:34.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
56.05
131
0.667261
b7d4dda1b3752a19244c734487e74c4425e170d8
8,796
py
Python
fluentql/function.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
4
2020-04-15T10:50:03.000Z
2021-07-22T12:23:50.000Z
fluentql/function.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
2
2020-05-24T08:54:56.000Z
2020-05-24T09:04:31.000Z
fluentql/function.py
RaduG/fluentql
653a77bb95b40724eb58744f5f8dbed9c88eaebd
[ "MIT" ]
null
null
null
from typing import Any, TypeVar, Union from types import MethodType, FunctionType from .base_types import BooleanType, Constant, StringType, Collection, Referenceable from .type_checking import TypeChecker AnyArgs = TypeVar("AnyArgs") NoArgs = TypeVar("NoArgs") VarArgs = TypeVar("VarArgs") T = TypeVar("T") class...
23.393617
96
0.624034
b7d5141df884819f6f2e7164679f65c6fbc05ccf
5,741
py
Python
trainer.py
tkuboi/my-Punctuator
17c2c43f3397387b7c21a8ef25584c4fdab73f1b
[ "MIT" ]
3
2018-11-29T02:12:12.000Z
2020-01-15T10:52:38.000Z
trainer.py
tkuboi/my-Punctuator
17c2c43f3397387b7c21a8ef25584c4fdab73f1b
[ "MIT" ]
3
2020-01-15T10:52:25.000Z
2020-05-03T17:24:56.000Z
trainer.py
tkuboi/my-Punctuator
17c2c43f3397387b7c21a8ef25584c4fdab73f1b
[ "MIT" ]
5
2018-11-19T13:37:31.000Z
2021-06-25T07:03:38.000Z
"""This script is for training and evaluating a model.""" import sys import os import traceback import numpy as np from functools import partial from utils import * from punctuator import Punctuator from bidirectional_gru_with_gru import BidirectionalGruWithGru from keras.callbacks import ModelCheckpoint from keras.m...
43.492424
1,454
0.708413
b7d54fe8e9a77f05bf236b9a737834d1a8f3821a
5,719
py
Python
gqn_v2/gqn_predictor.py
goodmattg/tf-gqn
a2088761f11a9806500dcaf28edc28ecd7fc514e
[ "Apache-2.0" ]
null
null
null
gqn_v2/gqn_predictor.py
goodmattg/tf-gqn
a2088761f11a9806500dcaf28edc28ecd7fc514e
[ "Apache-2.0" ]
null
null
null
gqn_v2/gqn_predictor.py
goodmattg/tf-gqn
a2088761f11a9806500dcaf28edc28ecd7fc514e
[ "Apache-2.0" ]
null
null
null
""" Contains a canned predictor for a GQN. """ import os import json import numpy as np import tensorflow as tf from .gqn_graph import gqn_draw from .gqn_params import create_gqn_config def _normalize_pose(pose): """ Converts a camera pose into the GQN format. Args: pose: [x, y, z, yaw, pitch]; x, y, z i...
36.660256
110
0.652736
b7d6284562e6fc98442dc3568881e4543f4597b6
6,054
py
Python
mamba/post_solve_handling.py
xhochy/mamba
249546a95abf358f116cc1b546bfb51e427001fd
[ "BSD-3-Clause" ]
null
null
null
mamba/post_solve_handling.py
xhochy/mamba
249546a95abf358f116cc1b546bfb51e427001fd
[ "BSD-3-Clause" ]
null
null
null
mamba/post_solve_handling.py
xhochy/mamba
249546a95abf358f116cc1b546bfb51e427001fd
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2019, QuantStack # SPDX-License-Identifier: BSD-3-Clause from conda.base.constants import DepsModifier, UpdateModifier from conda._vendor.boltons.setutils import IndexedSet from conda.core.prefix_data import PrefixData from conda.models.prefix_graph import PrefixGraph from conda...
47.669291
96
0.652296
b7d668041de4ae36e76a177a55158ac9e8eab418
264
py
Python
Young Physicist.py
techonair/Codeforces
1f854424e2de69ea4fdf7c6cde8ab04eddfb4566
[ "MIT" ]
null
null
null
Young Physicist.py
techonair/Codeforces
1f854424e2de69ea4fdf7c6cde8ab04eddfb4566
[ "MIT" ]
null
null
null
Young Physicist.py
techonair/Codeforces
1f854424e2de69ea4fdf7c6cde8ab04eddfb4566
[ "MIT" ]
null
null
null
num = input() lucky = 0 for i in num: if i == '4' or i == '7': lucky += 1 counter = 0 for c in str(lucky): if c == '4' or c == '7': counter += 1 if counter == len(str(lucky)): print("YES") else: print("NO")
11
30
0.431818
b7d7bf07253855c146dc1edf490b5b90c54ec05e
477
py
Python
snakebids/utils/__init__.py
tkkuehn/snakebids
641026ea91c84c4403f0a654d2aaf2bfa50eaa19
[ "MIT" ]
null
null
null
snakebids/utils/__init__.py
tkkuehn/snakebids
641026ea91c84c4403f0a654d2aaf2bfa50eaa19
[ "MIT" ]
null
null
null
snakebids/utils/__init__.py
tkkuehn/snakebids
641026ea91c84c4403f0a654d2aaf2bfa50eaa19
[ "MIT" ]
null
null
null
from snakebids.utils.output import ( Mode, get_time_hash, prepare_output, retrofit_output, write_config_file, write_output_mode, ) from snakebids.utils.snakemake_io import ( glob_wildcards, regex, update_wildcard_constraints, ) __all__ = [ "Mode", "get_time_hash", "glob_...
18.346154
42
0.681342
b7d83061ac773421e6029dc4c038d3f9bc4b0679
659
py
Python
examples/custom_renderer/custom_renderer.py
victorbenichoux/vizno
87ed98f66914a27e4b71d835734ca2a17a09412f
[ "MIT" ]
5
2020-12-02T08:46:06.000Z
2022-01-15T12:58:27.000Z
examples/custom_renderer/custom_renderer.py
victorbenichoux/vizno
87ed98f66914a27e4b71d835734ca2a17a09412f
[ "MIT" ]
null
null
null
examples/custom_renderer/custom_renderer.py
victorbenichoux/vizno
87ed98f66914a27e4b71d835734ca2a17a09412f
[ "MIT" ]
null
null
null
import pydantic from vizno.renderers import ContentConfiguration, render from vizno.report import Report r = Report() r.widget(CustomObject(parameter=10)) r.render("./output") r.widget( CustomObject(parameter=1000), name="It works with a name", description="and a description", ) r.render("./output")
19.969697
56
0.728376
b7d854946bf40e07210624df5e0576dbd5f15fb1
945
py
Python
coregent/net/core.py
landoffire/coregent
908aaacbb7b2b9d8ea044d47b9518e8914dad08b
[ "Apache-2.0" ]
1
2021-04-25T07:26:07.000Z
2021-04-25T07:26:07.000Z
coregent/net/core.py
neurite-interactive/coregent
908aaacbb7b2b9d8ea044d47b9518e8914dad08b
[ "Apache-2.0" ]
null
null
null
coregent/net/core.py
neurite-interactive/coregent
908aaacbb7b2b9d8ea044d47b9518e8914dad08b
[ "Apache-2.0" ]
2
2021-06-12T23:00:12.000Z
2021-06-12T23:01:57.000Z
import abc import collections.abc import socket __all__ = ['get_socket_type', 'get_server_socket', 'get_client_socket', 'SocketReader', 'SocketWriter', 'JSONReader', 'JSONWriter']
21
71
0.671958
b7d90dcc48241b77ca82bd93f406aefe69d173b9
360
py
Python
hackdayproject/urls.py
alstn2468/Naver_Campus_Hackday_Project
e8c3b638638182ccb8b4631c03cf5cb153c7278a
[ "MIT" ]
1
2019-11-15T05:03:54.000Z
2019-11-15T05:03:54.000Z
hackdayproject/urls.py
alstn2468/Naver_Campus_Hackday_Project
e8c3b638638182ccb8b4631c03cf5cb153c7278a
[ "MIT" ]
null
null
null
hackdayproject/urls.py
alstn2468/Naver_Campus_Hackday_Project
e8c3b638638182ccb8b4631c03cf5cb153c7278a
[ "MIT" ]
null
null
null
from django.urls import path, include from django.contrib import admin import hackdayproject.main.urls as main_urls import hackdayproject.repo.urls as repo_urls urlpatterns = [ path('admin/', admin.site.urls), path('oauth/', include('social_django.urls', namespace='social')), path('', include(main_urls)), ...
30
70
0.727778
b7d98d9548c561ff4d20a9c30014735028dc693b
19,134
py
Python
tests/test_ciftify_recon_all.py
lgrennan/ciftify
8488423bd081370614b676a2e1d1a8dbfd9aba1c
[ "MIT" ]
null
null
null
tests/test_ciftify_recon_all.py
lgrennan/ciftify
8488423bd081370614b676a2e1d1a8dbfd9aba1c
[ "MIT" ]
null
null
null
tests/test_ciftify_recon_all.py
lgrennan/ciftify
8488423bd081370614b676a2e1d1a8dbfd9aba1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest import logging import importlib import copy import os from mock import patch from nose.tools import raises logging.disable(logging.CRITICAL) ciftify_recon_all = importlib.import_module('ciftify.bin.ciftify_recon_all')
40.710638
89
0.669907
b7da270be2ee04de235dd0dfc5b966c52ba7cf65
35,831
py
Python
Wrangle OSM Dataset.py
Boykai/Project-3-Wrangle-OpenStreetMap-Dataset
493a4346ae12fb0fe853d4d07e4e8b03ef6a430f
[ "MIT" ]
1
2017-09-01T11:07:26.000Z
2017-09-01T11:07:26.000Z
Wrangle OSM Dataset.py
Boykai/Project-3-Wrangle-OpenStreetMap-Dataset
493a4346ae12fb0fe853d4d07e4e8b03ef6a430f
[ "MIT" ]
null
null
null
Wrangle OSM Dataset.py
Boykai/Project-3-Wrangle-OpenStreetMap-Dataset
493a4346ae12fb0fe853d4d07e4e8b03ef6a430f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Tue Jan 17 16:19:36 2017 @author: Boykai ''' #!/usr/bin/env python # -*- coding: utf-8 -*- import xml.etree.cElementTree as ET # Use cElementTree or lxml if too slow from collections import defaultdict import re import pprint import string import codecs import json import os f...
40.996568
127
0.471966
b7da43e450c1cde9be925061435a5d471ad6ae05
640
py
Python
Wrapping/Python/vtkmodules/__init__.py
cads-build/VTK
ee0c9688a082c88bfe070afc08f4eb0f0a546487
[ "BSD-3-Clause" ]
1
2019-09-11T12:30:57.000Z
2019-09-11T12:30:57.000Z
Wrapping/Python/vtkmodules/__init__.py
AndyJMR/VTK
3cc9e5f7539107e5dbaeadc2d28f7a8db6de8571
[ "BSD-3-Clause" ]
null
null
null
Wrapping/Python/vtkmodules/__init__.py
AndyJMR/VTK
3cc9e5f7539107e5dbaeadc2d28f7a8db6de8571
[ "BSD-3-Clause" ]
null
null
null
r""" Currently, this package is experimental and may change in the future. """ from __future__ import absolute_import #------------------------------------------------------------------------------ # this little trick is for static builds of VTK. In such builds, if # the user imports this Python package in a non-stat...
37.647059
79
0.582813
b7daad942b4ee13674b01a3bc7990323f036b3a5
1,176
py
Python
Financely/basic_app/models.py
Frostday/Financely
23226aca0ad21971cb61d13509e16651b304d207
[ "MIT" ]
8
2021-05-28T16:09:36.000Z
2022-02-27T23:12:48.000Z
Financely/basic_app/models.py
Frostday/Financely
23226aca0ad21971cb61d13509e16651b304d207
[ "MIT" ]
null
null
null
Financely/basic_app/models.py
Frostday/Financely
23226aca0ad21971cb61d13509e16651b304d207
[ "MIT" ]
8
2021-05-28T16:01:48.000Z
2022-02-27T23:12:50.000Z
from django.db import models from django.contrib.auth.models import User # Create your models here.
40.551724
119
0.747449
b7dd25cebefde2e55f7311a4ace4a861586de3c9
1,299
py
Python
lims/models/shipping.py
razorlabs/BRIMS-backend
2c5b7bd126debec459b775e9d11e96fc09975059
[ "MIT" ]
1
2020-03-20T23:00:24.000Z
2020-03-20T23:00:24.000Z
lims/models/shipping.py
razorlabs/BRIMS-backend
2c5b7bd126debec459b775e9d11e96fc09975059
[ "MIT" ]
null
null
null
lims/models/shipping.py
razorlabs/BRIMS-backend
2c5b7bd126debec459b775e9d11e96fc09975059
[ "MIT" ]
1
2020-03-09T09:57:25.000Z
2020-03-09T09:57:25.000Z
from django.db import models """ ShipmentModels have a one to many relationship with boxes and aliquot Aliquot and Box foreign keys to a ShipmentModel determine manifest contents for shipping purposes (resolved in schema return for manifest view) """
34.184211
79
0.628176
b7defbba24700ce1dff5cfd0c991ccf13a0c39e0
1,857
py
Python
part-2/2-iterators/Example-consuming_iterators_manually.py
boconlonton/python-deep-dive
c01591a4943c7b77d4d2cd90a8b23423280367a3
[ "MIT" ]
null
null
null
part-2/2-iterators/Example-consuming_iterators_manually.py
boconlonton/python-deep-dive
c01591a4943c7b77d4d2cd90a8b23423280367a3
[ "MIT" ]
null
null
null
part-2/2-iterators/Example-consuming_iterators_manually.py
boconlonton/python-deep-dive
c01591a4943c7b77d4d2cd90a8b23423280367a3
[ "MIT" ]
null
null
null
""" Consuming Iterator manually """ from collections import namedtuple def cast(data_type, value): """Cast the value into a correct data type""" if data_type == 'DOUBLE': return float(value) elif data_type == 'STRING': return str(value) elif data_type == 'INT': return int(value...
27.308824
58
0.525579
b7dfa49c85bfb3c402f6a966ce46d040dfc275f6
1,675
py
Python
instance_server/services/startpage.py
Geierhaas/developer-observatory
f2e840ab9a283ea82353a8c5bbb6b1905567fbe4
[ "MIT" ]
4
2017-08-26T04:51:52.000Z
2022-01-02T23:07:48.000Z
instance_server/services/startpage.py
Geierhaas/developer-observatory
f2e840ab9a283ea82353a8c5bbb6b1905567fbe4
[ "MIT" ]
3
2020-11-04T11:13:55.000Z
2021-03-08T19:47:52.000Z
instance_server/services/startpage.py
Geierhaas/developer-observatory
f2e840ab9a283ea82353a8c5bbb6b1905567fbe4
[ "MIT" ]
6
2017-10-24T14:44:05.000Z
2022-01-13T14:26:05.000Z
#! Copyright (C) 2017 Christian Stransky #! #! This software may be modified and distributed under the terms #! of the MIT license. See the LICENSE file for details. from flask import Flask, redirect, request, make_response from shutil import copyfile import json import requests import os.path import uuid ...
34.183673
110
0.677612
b7e02aed4c2632acfe7ae12115128aac02a396d3
672
py
Python
utils/linalg.py
cimat-ris/TrajectoryInference
27d1d2d692df52b403cf6557ecba628f818cd380
[ "Apache-2.0" ]
6
2019-11-05T00:56:06.000Z
2021-12-05T21:11:14.000Z
utils/linalg.py
cimat-ris/TrajectoryInference
27d1d2d692df52b403cf6557ecba628f818cd380
[ "Apache-2.0" ]
2
2021-05-22T11:16:45.000Z
2021-05-31T00:42:07.000Z
utils/linalg.py
cimat-ris/TrajectoryInference
27d1d2d692df52b403cf6557ecba628f818cd380
[ "Apache-2.0" ]
1
2021-05-22T10:35:18.000Z
2021-05-22T10:35:18.000Z
import numpy as np import math import logging from termcolor import colored # Check a matrix for: negative eigenvalues, asymmetry and negative diagonal values
29.217391
82
0.616071
b7e0fbad2360576b896a69e1a30c6d6156b68c38
282
py
Python
problemsets/Codeforces/Python/A1020.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A1020.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
problemsets/Codeforces/Python/A1020.py
juarezpaulino/coderemite
a4649d3f3a89d234457032d14a6646b3af339ac1
[ "Apache-2.0" ]
null
null
null
""" * * Author: Juarez Paulino(coderemite) * Email: juarez.paulino@gmail.com * """ I=lambda:map(int,input().split()) f=abs n,_,a,b,k=I() while k: p,q,u,v=I() P=[a,b] if a<=q<=b:P+=[q] if a<=v<=b:P+=[v] print([min(f(q-x)+f(v-x)for x in P)+f(p-u),f(q-v)][p==u]) k-=1
17.625
59
0.521277
b7e289ea7bf92691efc481deeec6261bf7909c3b
850
py
Python
get_tweet.py
Na27i/tweet_generator
92a5156e041982dd12d9850445f15a599fb6ec5e
[ "MIT" ]
null
null
null
get_tweet.py
Na27i/tweet_generator
92a5156e041982dd12d9850445f15a599fb6ec5e
[ "MIT" ]
null
null
null
get_tweet.py
Na27i/tweet_generator
92a5156e041982dd12d9850445f15a599fb6ec5e
[ "MIT" ]
null
null
null
import json import sys import pandas args = sys.argv if len(args) == 1 : import main as settings else : import sub as settings from requests_oauthlib import OAuth1Session CK = settings.CONSUMER_KEY CS = settings.CONSUMER_SECRET AT = settings.ACCESS_TOKEN ATS = settings.ACCESS_TOKEN_SECRET t...
22.972973
64
0.661176
b7e377e1a140ad61d79142b999a2e7a703c9e2ef
1,284
py
Python
idact/detail/config/validation/validate_scratch.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
5
2018-12-06T15:40:34.000Z
2019-06-19T11:22:58.000Z
idact/detail/config/validation/validate_scratch.py
garstka/idact
b9c8405c94db362c4a51d6bfdf418b14f06f0da1
[ "MIT" ]
9
2018-12-06T16:35:26.000Z
2019-04-28T19:01:40.000Z
idact/detail/config/validation/validate_scratch.py
intdata-bsc/idact
54cb65a711c145351e205970c27c83e6393cccf5
[ "MIT" ]
2
2019-04-28T19:18:58.000Z
2019-06-17T06:56:28.000Z
"""This module contains a function for validating a scratch config entry.""" import re from idact.detail.config.validation.validation_error_message import \ validation_error_message VALID_SCRATCH_DESCRIPTION = 'Non-empty absolute path, or environment' \ ' variable name.' VALID_SCRATC...
29.181818
96
0.660436
b7e39de3f444fe8cb279979f19de1ae9ea72a25e
10,135
py
Python
paramak/parametric_components/blanket_fp.py
zmarkan/paramak
ecf9a46394adb4d6bb5744000ec6e2f74c30f2ba
[ "MIT" ]
null
null
null
paramak/parametric_components/blanket_fp.py
zmarkan/paramak
ecf9a46394adb4d6bb5744000ec6e2f74c30f2ba
[ "MIT" ]
null
null
null
paramak/parametric_components/blanket_fp.py
zmarkan/paramak
ecf9a46394adb4d6bb5744000ec6e2f74c30f2ba
[ "MIT" ]
null
null
null
import warnings from typing import Callable, List, Optional, Union import mpmath import numpy as np import paramak import sympy as sp from paramak import RotateMixedShape, diff_between_angles from paramak.parametric_components.tokamak_plasma_plasmaboundaries import \ PlasmaBoundaries from scipy.interpolate import...
36.456835
79
0.597139
b7e4658365995b8bd790113c73797283daaf0910
907
py
Python
3.7.1/solution.py
luxnlex/stepic-python
92a4b25391f76935c3c2a70fb8552e7f93928d9b
[ "MIT" ]
1
2021-05-07T18:20:51.000Z
2021-05-07T18:20:51.000Z
3.7.1/solution.py
luxnlex/stepic-python
92a4b25391f76935c3c2a70fb8552e7f93928d9b
[ "MIT" ]
null
null
null
3.7.1/solution.py
luxnlex/stepic-python
92a4b25391f76935c3c2a70fb8552e7f93928d9b
[ "MIT" ]
2
2017-12-27T07:51:57.000Z
2020-08-03T22:10:55.000Z
s=str(input()) a=[] for i in range(len(s)): si=s[i] a.append(si) b=[] n=str(input()) for j in range(len(n)): sj=n[j] b.append(sj) p={} for pi in range(len(s)): key=s[pi] p[key]=0 j1=0 for i in range(0,len(a)): key=a[i] while j1<len(b): bj=b[0] if key in p: p[k...
14.868852
31
0.485116
b7e4fae61f0aabd32e88f180183fcddc115ab0ca
4,352
py
Python
airbyte-integrations/connectors/source-plaid/source_plaid/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
2
2022-03-02T13:46:05.000Z
2022-03-05T12:31:28.000Z
airbyte-integrations/connectors/source-plaid/source_plaid/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
29
2021-10-07T17:20:29.000Z
2021-12-27T13:07:09.000Z
airbyte-integrations/connectors/source-plaid/source_plaid/source.py
OTRI-Unipd/OTRI-airbyte
50eeeb773f75246e86c6e167b0cd7d2dda6efe0d
[ "MIT" ]
1
2021-07-30T07:24:51.000Z
2021-07-30T07:24:51.000Z
# # Copyright (c) 2021 Airbyte, Inc., all rights reserved. # import datetime import json from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Tuple, Union import plaid from airbyte_cdk.logger import AirbyteLogger from airbyte_cdk.models import SyncMode from airbyte_cdk.sources import AbstractSou...
35.966942
135
0.667509
b7e5547eb715244c2608406503ff045d83d45b75
17,939
py
Python
demo/demo.py
taewhankim/DeepHRnet
c316b4a9f5f3002f6fcc0398c12d80de82195ef0
[ "MIT" ]
null
null
null
demo/demo.py
taewhankim/DeepHRnet
c316b4a9f5f3002f6fcc0398c12d80de82195ef0
[ "MIT" ]
null
null
null
demo/demo.py
taewhankim/DeepHRnet
c316b4a9f5f3002f6fcc0398c12d80de82195ef0
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import csv import os import shutil from PIL import Image import torch import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim import torch.utils.data import torch.utils...
36.911523
118
0.572997
b7e6129db622711592b894cfa7f14f8bbe198a09
2,749
py
Python
feemodeldata/plotting/plotwaits.py
bitcoinfees/bitcoin-feemodel-data
3eb09cf2a64b1aa23d328484bbcd7e4d55291898
[ "MIT" ]
2
2015-07-10T20:14:54.000Z
2017-06-08T11:01:03.000Z
feemodeldata/plotting/plotwaits.py
bitcoinfees/bitcoin-feemodel-data
3eb09cf2a64b1aa23d328484bbcd7e4d55291898
[ "MIT" ]
null
null
null
feemodeldata/plotting/plotwaits.py
bitcoinfees/bitcoin-feemodel-data
3eb09cf2a64b1aa23d328484bbcd7e4d55291898
[ "MIT" ]
null
null
null
from __future__ import division import sqlite3 from bisect import bisect_left import plotly.plotly as py from plotly.graph_objs import Scatter, Figure, Layout, Data, YAxis, XAxis from feemodel.util import DataSample from feemodel.app.predict import PVALS_DBFILE from feemodeldata.plotting.plotrrd import BASEDIR d...
28.936842
75
0.628592
b7e7c6200dfbf2600bb1a1bc581331cb427697e7
5,181
py
Python
utils/pytorch_utils.py
shoegazerstella/BTC-ISMIR19
fc4c8ef792711460d98b502ddc2e5befc800d2e5
[ "MIT" ]
1
2020-07-23T23:46:24.000Z
2020-07-23T23:46:24.000Z
utils/pytorch_utils.py
shoegazerstella/BTC-ISMIR19
fc4c8ef792711460d98b502ddc2e5befc800d2e5
[ "MIT" ]
null
null
null
utils/pytorch_utils.py
shoegazerstella/BTC-ISMIR19
fc4c8ef792711460d98b502ddc2e5befc800d2e5
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F from torch.autograd import Variable import numpy as np import os import math from utils import logger use_cuda = torch.cuda.is_available() # utility # optimization # reference: http://pytorch.org/docs/master/_modules/torch/optim/lr_scheduler.html#ReduceLROnPlateau ...
35.244898
107
0.640803
b7e805c3fdc6130f33ad7d70c4f57afa4833b9f9
3,630
py
Python
ecosante/users/schemas/__init__.py
betagouv/recosante-api
4560b2cf2ff4dc19597792fe15a3805f6259201d
[ "MIT" ]
3
2021-09-24T14:07:51.000Z
2021-12-14T13:48:34.000Z
ecosante/users/schemas/__init__.py
betagouv/recosante-api
4560b2cf2ff4dc19597792fe15a3805f6259201d
[ "MIT" ]
187
2021-03-25T16:43:49.000Z
2022-03-23T14:40:31.000Z
ecosante/users/schemas/__init__.py
betagouv/recosante-api
4560b2cf2ff4dc19597792fe15a3805f6259201d
[ "MIT" ]
null
null
null
from dataclasses import field from marshmallow import Schema, ValidationError, post_load, schema from marshmallow.validate import OneOf, Length from marshmallow.fields import Bool, Str, List, Nested, Email from flask_rebar import ResponseSchema, RequestSchema, errors from ecosante.inscription.models import Inscription ...
43.214286
115
0.689532
b7ea33cae6c817255b7381a86f5b2cf3631857b7
933
py
Python
Course 01 - Getting Started with Python/Extra Studies/Basics/ex022.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
9
2022-03-22T16:45:17.000Z
2022-03-25T20:22:35.000Z
Course 01 - Getting Started with Python/Extra Studies/Basics/ex022.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
null
null
null
Course 01 - Getting Started with Python/Extra Studies/Basics/ex022.py
marcoshsq/python_practical_exercises
77136cd4bc0f34acde3380ffdc5af74f7a960670
[ "MIT" ]
3
2022-03-22T17:03:38.000Z
2022-03-29T17:20:55.000Z
import math # Exercise 017: Right Triangle """Write a program that reads the length of the opposite side and the adjacent side of a right triangle. Calculate and display the length of the hypotenuse.""" # To do this we will use the Pythagorean theorem: a^2 = b^2 + c^2 # Method 01, without the module Math: # First we...
38.875
104
0.710611
b7ebf597cf4af041d284ceb92dfc3840fcf8cea7
146
py
Python
annuaire/commands/__init__.py
djacomy/layer-annuaire
b0312534e31dd98d98568a83918cf7dd583aa4c7
[ "MIT" ]
null
null
null
annuaire/commands/__init__.py
djacomy/layer-annuaire
b0312534e31dd98d98568a83918cf7dd583aa4c7
[ "MIT" ]
null
null
null
annuaire/commands/__init__.py
djacomy/layer-annuaire
b0312534e31dd98d98568a83918cf7dd583aa4c7
[ "MIT" ]
null
null
null
"""Package groups the different commands modules.""" from annuaire.commands import download, import_lawyers __all__ = [download, import_lawyers]
29.2
54
0.80137
b7eda2093d6d54b12bba13592c13c99ac642ca74
15,883
py
Python
eventsourcing/application/actors.py
vladimirnani/eventsourcing
f49d2b9aaa585073aca4dc20c59d46db5a14eb57
[ "BSD-3-Clause" ]
1
2020-02-10T08:12:31.000Z
2020-02-10T08:12:31.000Z
eventsourcing/application/actors.py
vladimirnani/eventsourcing
f49d2b9aaa585073aca4dc20c59d46db5a14eb57
[ "BSD-3-Clause" ]
null
null
null
eventsourcing/application/actors.py
vladimirnani/eventsourcing
f49d2b9aaa585073aca4dc20c59d46db5a14eb57
[ "BSD-3-Clause" ]
null
null
null
import logging from thespian.actors import * from eventsourcing.application.process import ProcessApplication, Prompt from eventsourcing.application.system import System, SystemRunner from eventsourcing.domain.model.events import subscribe, unsubscribe from eventsourcing.interface.notificationlog import RecordManager...
37.637441
116
0.661336
b7edb2af66a1ef0492b215ff19713cb25d91778e
4,517
py
Python
sudoku/board.py
DariaMinieieva/sudoku_project
acfe6b6ff4e0343ad0dae597e783f9da40a7faee
[ "MIT" ]
5
2021-05-27T09:26:30.000Z
2021-05-28T10:33:46.000Z
sudoku/board.py
DariaMinieieva/sudoku_project
acfe6b6ff4e0343ad0dae597e783f9da40a7faee
[ "MIT" ]
null
null
null
sudoku/board.py
DariaMinieieva/sudoku_project
acfe6b6ff4e0343ad0dae597e783f9da40a7faee
[ "MIT" ]
1
2021-05-28T08:43:05.000Z
2021-05-28T08:43:05.000Z
"""This module implements backtracking algorithm to solve sudoku."""
30.938356
92
0.556121
b7f128c1c030f4883afe9da12b85ac98f1c9b3dd
9,603
py
Python
openfl/component/ca/ca.py
saransh09/openfl-1
beba571929a56771f2fc1671154a3dbe60b38785
[ "Apache-2.0" ]
null
null
null
openfl/component/ca/ca.py
saransh09/openfl-1
beba571929a56771f2fc1671154a3dbe60b38785
[ "Apache-2.0" ]
1
2022-03-02T18:07:11.000Z
2022-03-10T02:43:12.000Z
openfl/component/ca/ca.py
saransh09/openfl-1
beba571929a56771f2fc1671154a3dbe60b38785
[ "Apache-2.0" ]
1
2022-03-03T00:50:15.000Z
2022-03-03T00:50:15.000Z
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Aggregator module.""" import base64 import json import os import platform import shutil import signal import subprocess import time import urllib.request from logging import getLogger from pathlib import Path from subprocess import c...
34.793478
97
0.656357
b7f17afa5fddb406481a5085256bccee3d1bcc8c
574
py
Python
bin/optimization/cosmo_optimizer_hod_only.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
null
null
null
bin/optimization/cosmo_optimizer_hod_only.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
16
2016-11-04T22:24:32.000Z
2018-05-01T22:53:39.000Z
bin/optimization/cosmo_optimizer_hod_only.py
mclaughlin6464/pearce
746f2bf4bf45e904d66996e003043661a01423ba
[ "MIT" ]
3
2016-10-04T08:07:52.000Z
2019-05-03T23:50:01.000Z
from pearce.emulator import OriginalRecipe, ExtraCrispy import numpy as np training_file = '/home/users/swmclau2/scratch/PearceRedMagicWpCosmo.hdf5' em_method = 'gp' split_method = 'random' a = 1.0 z = 1.0/a - 1.0 fixed_params = {'z':z, 'cosmo': 1}#, 'r':0.18477483} n_leaves, n_overlap = 5, 2 emu = ExtraCrispy(tra...
23.916667
115
0.721254
b7f255f31605c7a9c29e736bc41dc0df25f503be
294
py
Python
tests/test_xmllint_map_html.py
sthagen/python-xmllint_map_html
23363cfe1c126bc72efddf8fea084283375e2204
[ "MIT" ]
null
null
null
tests/test_xmllint_map_html.py
sthagen/python-xmllint_map_html
23363cfe1c126bc72efddf8fea084283375e2204
[ "MIT" ]
16
2020-09-11T11:07:09.000Z
2020-12-06T16:42:18.000Z
tests/test_xmllint_map_html.py
sthagen/python-xmllint_map_html
23363cfe1c126bc72efddf8fea084283375e2204
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring,unused-import,reimported import json import pytest # type: ignore import xmllint_map_html.xmllint_map_html as xmh
22.615385
60
0.714286
b7f62fa1d5695f548ee6f73816a2ab82ef2fbcfd
1,318
py
Python
apps/transmissions/views/transmissions.py
felipebarraza6/amamaule
1da7cd542a7e610bc8fa230684770732a41520c9
[ "MIT" ]
null
null
null
apps/transmissions/views/transmissions.py
felipebarraza6/amamaule
1da7cd542a7e610bc8fa230684770732a41520c9
[ "MIT" ]
null
null
null
apps/transmissions/views/transmissions.py
felipebarraza6/amamaule
1da7cd542a7e610bc8fa230684770732a41520c9
[ "MIT" ]
null
null
null
from rest_framework import mixins, viewsets, status from rest_framework.permissions import ( AllowAny, IsAuthenticated ) from apps.transmissions.models import Transmission from apps.transmissions.serializers import TransmissionModelSerializer, CommentModelserializer from django_filters import rest_framework a...
30.651163
94
0.636571
b7f67bcee29d8224470eff2f3efe74022a5ab08f
4,751
py
Python
amstramdam/events/game.py
felix-martel/multigeo
2a1af9abae1fcef399744f6d88c4b1c25e8a25ab
[ "CC-BY-4.0", "CC0-1.0" ]
3
2020-11-28T15:00:56.000Z
2021-04-06T14:10:47.000Z
amstramdam/events/game.py
felix-martel/amstramdam
7142c34bda5aecfb5f7059a576a0ea7015a1edbc
[ "CC0-1.0", "CC-BY-4.0" ]
9
2021-04-11T17:28:57.000Z
2022-02-19T13:53:35.000Z
amstramdam/events/game.py
felix-martel/multigeo
2a1af9abae1fcef399744f6d88c4b1c25e8a25ab
[ "CC-BY-4.0", "CC0-1.0" ]
2
2020-11-17T09:34:50.000Z
2020-11-28T14:57:58.000Z
from amstramdam import app, socketio, timers, manager from flask import session from flask_socketio import emit from .types import GameEndNotification, GameEndPayload from .utils import safe_cancel, wait_and_run from ..game.types import GameName, Coordinates
30.261146
88
0.603662
b7f6d5055a8a870cf0186a412e583a2dc0833fd5
1,515
py
Python
src/glod/unittests/in_out/test_statement_csv.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
src/glod/unittests/in_out/test_statement_csv.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
1
2021-03-10T16:48:34.000Z
2021-03-10T16:48:34.000Z
src/glod/unittests/in_out/test_statement_csv.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
__copyright__ = 'Copyright(c) Gordon Elliott 2017' """ """ from datetime import date from decimal import Decimal from io import StringIO from unittest import TestCase from glod.model.statement_item import StatementItem from glod.model.account import Account from glod.in_out.statement_item import statement_item_csv...
25.677966
75
0.570957
b7f7145927c059a2c43b18ff8ea2eb1911103a21
1,072
py
Python
ExifExtractor.py
MalwareJunkie/PythonScripts
ad827a8aafaae4a50970c9df11b674f4472eb371
[ "MIT" ]
null
null
null
ExifExtractor.py
MalwareJunkie/PythonScripts
ad827a8aafaae4a50970c9df11b674f4472eb371
[ "MIT" ]
null
null
null
ExifExtractor.py
MalwareJunkie/PythonScripts
ad827a8aafaae4a50970c9df11b674f4472eb371
[ "MIT" ]
null
null
null
# Tested with Python 3.6 # Install Pillow: pip install pillow """ This script extracts exif data from JPEG images """ from PIL import Image from PIL.ExifTags import TAGS import sys main()
23.304348
62
0.527052
b7f7a2d524260e395bf0b274a89d51e8f9652827
240
py
Python
nbgrader/nbgraderformat/__init__.py
FrattisUC/nbgrader
f6402dcbb875e41ee3317be9e7af518afda9f72c
[ "BSD-3-Clause-Clear" ]
2
2021-09-11T20:32:18.000Z
2021-09-11T20:32:37.000Z
nbgrader/nbgraderformat/__init__.py
FrattisUC/nbgrader
f6402dcbb875e41ee3317be9e7af518afda9f72c
[ "BSD-3-Clause-Clear" ]
null
null
null
nbgrader/nbgraderformat/__init__.py
FrattisUC/nbgrader
f6402dcbb875e41ee3317be9e7af518afda9f72c
[ "BSD-3-Clause-Clear" ]
1
2019-09-13T07:46:09.000Z
2019-09-13T07:46:09.000Z
SCHEMA_VERSION = 2 from .common import ValidationError, SchemaMismatchError from .v2 import MetadataValidatorV2 as MetadataValidator from .v2 import read_v2 as read, write_v2 as write from .v2 import reads_v2 as reads, writes_v2 as writes
34.285714
56
0.829167
b7f7e17dac70dc7137a4fbc2c1596760a4b65113
9,537
py
Python
testFiles/test_script.py
Janga-Lab/Penguin-1
f6162be3549c470416da0fab590ae7d04c74bfa5
[ "MIT" ]
null
null
null
testFiles/test_script.py
Janga-Lab/Penguin-1
f6162be3549c470416da0fab590ae7d04c74bfa5
[ "MIT" ]
null
null
null
testFiles/test_script.py
Janga-Lab/Penguin-1
f6162be3549c470416da0fab590ae7d04c74bfa5
[ "MIT" ]
null
null
null
import h5py from ont_fast5_api.conversion_tools import multi_to_single_fast5 from ont_fast5_api import fast5_interface import SequenceGenerator.align as align import SignalExtractor.Nanopolish as events from testFiles.test_commands import * import os, sys import subprocess #todo get basecall data ...
37.695652
165
0.567998
b7f84a7d5201859ed1a739cf1602952494964553
7,702
py
Python
channels/italiaserie.py
sodicarus/channels
d77402f4f460ea6daa66959aa5384aaffbff70b5
[ "MIT" ]
null
null
null
channels/italiaserie.py
sodicarus/channels
d77402f4f460ea6daa66959aa5384aaffbff70b5
[ "MIT" ]
null
null
null
channels/italiaserie.py
sodicarus/channels
d77402f4f460ea6daa66959aa5384aaffbff70b5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # streamondemand-pureita.- XBMC Plugin # Canale italiaserie # http://www.mimediacenter.info/foro/viewtopic.php?f=36&t=7808 # ------------------------------------------------------------ import re from core import httptools from cor...
43.514124
149
0.531291
b7f8e6d0c8a700576343e9ec9966950fe6696251
629
py
Python
setup.py
jeffleary00/greenery
cb5b5d037b6fd297463633d2d3315c722851161f
[ "MIT" ]
null
null
null
setup.py
jeffleary00/greenery
cb5b5d037b6fd297463633d2d3315c722851161f
[ "MIT" ]
null
null
null
setup.py
jeffleary00/greenery
cb5b5d037b6fd297463633d2d3315c722851161f
[ "MIT" ]
1
2018-02-25T17:29:37.000Z
2018-02-25T17:29:37.000Z
from setuptools import setup setup( name='potnanny-api', version='0.2.6', packages=['potnanny_api'], include_package_data=True, description='Part of the Potnanny greenhouse controller application. Contains Flask REST API and basic web interface.', author='Jeff Leary', author_email='potnanny...
26.208333
123
0.616852
b7f8ec16e2bfb80be5a624728d6c0040fc0bbacb
16,352
py
Python
cpp-linux/Release/envcpp.py
thu-media/Comyco
38cc0266b1c0a9f20e48a173d0157452cb411b85
[ "BSD-2-Clause" ]
40
2019-08-09T07:33:41.000Z
2021-11-26T06:58:44.000Z
cpp-linux/Release/envcpp.py
ragnarkor/Comyco
38cc0266b1c0a9f20e48a173d0157452cb411b85
[ "BSD-2-Clause" ]
9
2019-10-09T03:10:46.000Z
2021-12-26T15:31:15.000Z
cpp-linux/Release/envcpp.py
ragnarkor/Comyco
38cc0266b1c0a9f20e48a173d0157452cb411b85
[ "BSD-2-Clause" ]
12
2019-11-06T08:31:19.000Z
2021-11-12T09:56:37.000Z
# This file was automatically generated by SWIG (http://www.swig.org). # Version 4.0.0 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise Runtime...
31.446154
145
0.707131
b7f8f59fb0fb637edfdf3e834168a1ea050cd659
3,912
py
Python
eda_rf.py
lel23/Student-Performance-Prediction
93f850d299f6e6ad88a90e606f494fcd931e56b6
[ "MIT" ]
1
2021-11-27T01:55:44.000Z
2021-11-27T01:55:44.000Z
eda_rf.py
lel23/Student-Performance-Prediction
93f850d299f6e6ad88a90e606f494fcd931e56b6
[ "MIT" ]
null
null
null
eda_rf.py
lel23/Student-Performance-Prediction
93f850d299f6e6ad88a90e606f494fcd931e56b6
[ "MIT" ]
1
2021-12-13T15:46:43.000Z
2021-12-13T15:46:43.000Z
""" Final Project EDA """ import pandas as pd import matplotlib.pyplot as plt from mlxtend.plotting import scatterplotmatrix import numpy as np import seaborn as sns from imblearn.over_sampling import SMOTE from sklearn.utils import resample from mlxtend.plotting import heatmap from sklearn.ensemble import RandomFore...
35.563636
238
0.707311
b7f97933fc0d2a4db780092adb873088bd108cdc
3,771
py
Python
feastruct/fea/utils.py
geosharma/feastruct
67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1
[ "MIT" ]
37
2018-11-08T12:51:53.000Z
2022-02-01T19:40:48.000Z
feastruct/fea/utils.py
geosharma/feastruct
67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1
[ "MIT" ]
2
2018-11-01T12:39:24.000Z
2022-01-23T01:26:47.000Z
feastruct/fea/utils.py
geosharma/feastruct
67cbf1c07d5f718c5eed4a1ac69e5cf0dc588ca1
[ "MIT" ]
12
2019-04-09T04:14:02.000Z
2022-01-08T14:04:32.000Z
import numpy as np def gauss_points(el_type, n): """Returns the Gaussian weights and locations for *n* point Gaussian integration of a finite element. Refer to xxx for a list of the element types. :param string el_type: String describing the element type :param int n: Number of Gauss points :retu...
35.914286
99
0.515248
b7f9ec5f1030d590ec1e3d249bcbd427149dded0
1,447
py
Python
webscrap.py
ircykk/webscrap
b43d2a1075dbe6c6644391c3b79785375b207559
[ "MIT" ]
null
null
null
webscrap.py
ircykk/webscrap
b43d2a1075dbe6c6644391c3b79785375b207559
[ "MIT" ]
2
2021-03-31T19:16:56.000Z
2021-12-13T20:19:00.000Z
webscrap.py
ircykk/webscrap
b43d2a1075dbe6c6644391c3b79785375b207559
[ "MIT" ]
null
null
null
import requests import time import argparse import sys import os from bs4 import BeautifulSoup from urllib.parse import urlparse # Instantiate the parser parser = argparse.ArgumentParser(description='URL scrapper') parser.add_argument('--url', help='Root URL page') parser.add_argument('--limit', type=int, default=1000...
22.968254
83
0.691776
b7fa464b97651a98f542160b4536fc5d2f36512c
3,035
py
Python
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
2
2022-01-19T02:39:43.000Z
2022-02-07T01:58:17.000Z
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
lib/recipetool/shift_oelint_adv/rule_base/rule_var_src_uri_checksum.py
shift-left-test/meta-shift
effce9bea894f990703cc047157e3f30d53d9365
[ "MIT" ]
null
null
null
from shift_oelint_parser.cls_item import Variable from shift_oelint_adv.cls_rule import Rule from shift_oelint_parser.helper_files import get_scr_components from shift_oelint_parser.parser import INLINE_BLOCK
41.013514
93
0.45832
b7fab4376dcf24e3dbd079130cdac6cf32133a5b
1,084
py
Python
verba/apps/auth/backends.py
nhsuk/verba
c0354ae2012a046e7f7cc7482e293737de9d28bc
[ "MIT" ]
null
null
null
verba/apps/auth/backends.py
nhsuk/verba
c0354ae2012a046e7f7cc7482e293737de9d28bc
[ "MIT" ]
2
2016-08-11T09:30:41.000Z
2016-08-11T15:04:08.000Z
verba/apps/auth/backends.py
nhsuk/verba
c0354ae2012a046e7f7cc7482e293737de9d28bc
[ "MIT" ]
1
2021-04-11T07:41:27.000Z
2021-04-11T07:41:27.000Z
from github import User as GitHubUser from github.auth import get_token from github.exceptions import AuthValidationError from . import get_user_model
28.526316
77
0.612546
b7fb6f9d3e04e66224e9cdb811584decc5862d2f
798
py
Python
examples/apds9960_color_simpletest.py
tannewt/Adafruit_CircuitPython_APDS9960
becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab
[ "MIT" ]
null
null
null
examples/apds9960_color_simpletest.py
tannewt/Adafruit_CircuitPython_APDS9960
becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab
[ "MIT" ]
null
null
null
examples/apds9960_color_simpletest.py
tannewt/Adafruit_CircuitPython_APDS9960
becfa166b91124aa0f2ed1e5bb1ecee7a4d86fab
[ "MIT" ]
null
null
null
import time import board import busio import digitalio from adafruit_apds9960.apds9960 import APDS9960 from adafruit_apds9960 import colorutility i2c = busio.I2C(board.SCL, board.SDA) int_pin = digitalio.DigitalInOut(board.A2) apds = APDS9960(i2c) apds.enable_color = True while True: #create some variables to st...
24.9375
84
0.699248
b7fbdc11c64c416322347545771908c98a2d730b
158
py
Python
abc/abc205/abc205b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
1
2019-08-21T00:49:34.000Z
2019-08-21T00:49:34.000Z
abc/abc205/abc205b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
abc/abc205/abc205b.py
c-yan/atcoder
940e49d576e6a2d734288fadaf368e486480a948
[ "MIT" ]
null
null
null
N, *A = map(int, open(0).read().split()) A.sort() for i in range(N): if i == A[i] - 1: continue print('No') break else: print('Yes')
14.363636
40
0.487342
b7fc5371e78fe759e9cfc9ac2a197cc1a24c7ba9
1,114
py
Python
CPAC/cwas/tests/features/steps/base_cwas.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
1
2021-08-02T23:23:39.000Z
2021-08-02T23:23:39.000Z
CPAC/cwas/tests/features/steps/base_cwas.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
null
null
null
CPAC/cwas/tests/features/steps/base_cwas.py
Lawreros/C-PAC
ce26ba9a38cbd401cd405150eeed23b805007724
[ "BSD-3-Clause" ]
2
2021-08-02T23:23:40.000Z
2022-02-26T12:39:30.000Z
from behave import * from hamcrest import assert_that, is_not, greater_than import numpy as np import nibabel as nib import rpy2.robjects as robjects from rpy2.robjects.numpy2ri import numpy2ri from rpy2.robjects.packages import importr robjects.conversion.py2ri = numpy2ri from os import path as op import sys curfile...
25.906977
87
0.684022
b7fcfd8dcf5ce827a8535f6ece099e74d61fb49d
15,109
py
Python
Analysis/CardioVascularLab/ExVivo/exvivo.py
sassystacks/TissueMechanicsLab
0f881a57ebf7cbadfeb2041daabd4e4b79b25b91
[ "MIT" ]
null
null
null
Analysis/CardioVascularLab/ExVivo/exvivo.py
sassystacks/TissueMechanicsLab
0f881a57ebf7cbadfeb2041daabd4e4b79b25b91
[ "MIT" ]
null
null
null
Analysis/CardioVascularLab/ExVivo/exvivo.py
sassystacks/TissueMechanicsLab
0f881a57ebf7cbadfeb2041daabd4e4b79b25b91
[ "MIT" ]
null
null
null
import sys sys.path.append('..') from Analyzer.TransitionProperties import ProcessTransitionProperties from tkinter import * from tkinter import messagebox, ttk, filedialog # from tkFileDialog import * import uniaxanalysis.getproperties as getprops from uniaxanalysis.plotdata import DataPlotter from uniaxanalysis.sav...
38.347716
170
0.581243
b7fdfc063cfae7dcf94caa90899dd03c0a4da68d
8,028
py
Python
cats/cats.py
BrandtH22/CAT-admin-tool
f58f76e5b3af5484089652616c17c669c4adebb7
[ "Apache-2.0" ]
1
2022-03-22T21:59:15.000Z
2022-03-22T21:59:15.000Z
cats/cats.py
BrandtH22/CAT-admin-tool
f58f76e5b3af5484089652616c17c669c4adebb7
[ "Apache-2.0" ]
null
null
null
cats/cats.py
BrandtH22/CAT-admin-tool
f58f76e5b3af5484089652616c17c669c4adebb7
[ "Apache-2.0" ]
null
null
null
import click import aiohttp import asyncio import re import json from typing import Optional, Tuple, Iterable, Union, List from blspy import G2Element, AugSchemeMPL from chia.cmds.wallet_funcs import get_wallet from chia.rpc.wallet_rpc_client import WalletRpcClient from chia.util.default_root import DEFAULT_ROOT_PATH...
29.733333
114
0.646736
b7ff6526e37679ba17f2e315aceade4303222790
1,997
py
Python
tagging/tag_net.py
zhuzhutingru123/Semantics-AssistedVideoCaptioning
28c7b3fa57964f734f0fb38ecb89c9e8e21e5aaf
[ "MIT" ]
55
2019-09-23T12:21:47.000Z
2022-03-29T19:50:57.000Z
tagging/tag_net.py
zhuzhutingru123/Semantics-AssistedVideoCaptioning
28c7b3fa57964f734f0fb38ecb89c9e8e21e5aaf
[ "MIT" ]
13
2019-10-02T05:10:03.000Z
2021-11-03T11:33:32.000Z
tagging/tag_net.py
WingsBrokenAngel/Semantics-AssistedVideoCaptioning
409ca8b5be336d8957f3345825c8815a3070af19
[ "MIT" ]
15
2019-09-20T07:10:47.000Z
2022-03-11T09:05:18.000Z
# -*- coding: utf-8 -*- # Author: Haoran Chen # Date: 2019-4-28 import tensorflow as tf from tensorflow import placeholder, glorot_normal_initializer, zeros_initializer from tensorflow.nn import dropout import numpy as np n_z = 3584 n_y = 300 MSVD_PATH = None MSRVTT_PATH = None MSVD_GT_PATH = None MSRVTT_GT_PATH = No...
33.847458
101
0.613921
b7ffe90a656352b24d635be78e2f3b9924c3cd33
1,625
py
Python
example/keraslogistic/cloudmesh_ai/logistic_regression.py
cloudmesh-community/fa19-516-174
1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72
[ "Apache-2.0" ]
null
null
null
example/keraslogistic/cloudmesh_ai/logistic_regression.py
cloudmesh-community/fa19-516-174
1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72
[ "Apache-2.0" ]
null
null
null
example/keraslogistic/cloudmesh_ai/logistic_regression.py
cloudmesh-community/fa19-516-174
1b1aed0dcb4aa2fbe70de86a281c089a75f7aa72
[ "Apache-2.0" ]
null
null
null
import pandas as pd from cloudmesh import mongo from flask import request from flask_pymongo import PyMongo from sklearn.feature_selection import SelectKBest, chi2 from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score from .file import upload
36.931818
87
0.647385
4d0003163267427736e0367162b90a4c31a4952a
18,450
py
Python
Scripts/plot_ObservationsPrediction_RawHiatus_OHClevels-lag-EDA_v2.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
2
2022-01-20T20:20:04.000Z
2022-02-21T12:33:37.000Z
Dark_Scripts/plot_ObservationsPrediction_RawHiatus_OHClevels-lag-EDA_v2.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
null
null
null
Dark_Scripts/plot_ObservationsPrediction_RawHiatus_OHClevels-lag-EDA_v2.py
zmlabe/predictGMSTrate
2bde4a106de1988d772f15a52d283d23bb7128f4
[ "MIT" ]
3
2022-01-19T16:25:37.000Z
2022-03-22T13:25:00.000Z
""" Explore raw composites based on indices from predicted testing data and showing all the difference OHC levels for OBSERVATIONS Author : Zachary M. Labe Date : 21 September 2021 Version : 2 (mostly for testing) """ ### Import packages import sys import matplotlib.pyplot as plt import numpy as np impor...
44.244604
284
0.547805
4d0095e3df86b0354c6a7f3fe8432d1caf5ff121
3,807
py
Python
osnexus_flocker_driver/osnexusdriver.py
OSNEXUS/flocker-driver
22a6ecf57c6841359df82657659f8e945b206f1b
[ "Apache-2.0" ]
2
2016-04-29T22:38:05.000Z
2016-04-29T22:39:06.000Z
osnexus_flocker_driver/osnexusdriver.py
OSNEXUS/flocker-driver
22a6ecf57c6841359df82657659f8e945b206f1b
[ "Apache-2.0" ]
null
null
null
osnexus_flocker_driver/osnexusdriver.py
OSNEXUS/flocker-driver
22a6ecf57c6841359df82657659f8e945b206f1b
[ "Apache-2.0" ]
2
2016-05-08T07:39:12.000Z
2019-07-05T18:35:12.000Z
# Copyright 2016 OSNEXUS Corporation """ 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 writing, softwa...
36.961165
133
0.727607
4d009e96e973b11eba741f0ee1dbc7d7ed84b7ed
2,629
py
Python
rescan-script.py
fivepiece/electrum-personal-server
dae6eb3954f3916e13aa88969a5b6ac65a488a13
[ "MIT" ]
null
null
null
rescan-script.py
fivepiece/electrum-personal-server
dae6eb3954f3916e13aa88969a5b6ac65a488a13
[ "MIT" ]
null
null
null
rescan-script.py
fivepiece/electrum-personal-server
dae6eb3954f3916e13aa88969a5b6ac65a488a13
[ "MIT" ]
null
null
null
#! /usr/bin/python3 from configparser import ConfigParser, NoSectionError, NoOptionError from electrumpersonalserver.jsonrpc import JsonRpc, JsonRpcError from datetime import datetime import server main()
36.013699
79
0.63218
4d01262d0ab1840560717880a8567c3e85b8f930
1,082
py
Python
tests/application/register/test_views.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
1
2021-10-06T13:48:36.000Z
2021-10-06T13:48:36.000Z
tests/application/register/test_views.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
116
2018-11-02T17:20:47.000Z
2022-02-09T11:06:22.000Z
tests/application/register/test_views.py
racedisparityaudit/rd_cms
a12f0e3f5461cc41eed0077ed02e11efafc5dd76
[ "MIT" ]
2
2018-11-09T16:47:35.000Z
2020-04-09T13:06:48.000Z
from bs4 import BeautifulSoup from flask import url_for from application.utils import generate_token from application.auth.models import TypeOfUser from tests.models import UserFactory
38.642857
115
0.756932
4d014fe4ec193e53774cf70e289d81ecdf7c7e43
1,205
py
Python
setup.py
OriHoch/ckan-cloud-operator
125c3eb10f843ac62fc85659e756bd1d9620eae7
[ "MIT" ]
null
null
null
setup.py
OriHoch/ckan-cloud-operator
125c3eb10f843ac62fc85659e756bd1d9620eae7
[ "MIT" ]
null
null
null
setup.py
OriHoch/ckan-cloud-operator
125c3eb10f843ac62fc85659e756bd1d9620eae7
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os import path from time import time here = path.abspath(path.dirname(__file__)) if path.exists("VERSION.txt"): # this file can be written by CI tools (e.g. Travis) with open("VERSION.txt") as version_file: version = version_file.read().strip().strip("v...
25.638298
66
0.575104
4d01db8b99d5d581962d295f65f32a07a2a32b59
652
py
Python
extension/magic/activate.py
ianpreston/oh-my-py
17e37974c203cb28aa2de340c6ac66143c16bd4e
[ "Unlicense", "MIT" ]
3
2016-04-10T20:08:57.000Z
2021-12-05T19:03:37.000Z
extension/magic/activate.py
ianpreston/oh-my-py
17e37974c203cb28aa2de340c6ac66143c16bd4e
[ "Unlicense", "MIT" ]
null
null
null
extension/magic/activate.py
ianpreston/oh-my-py
17e37974c203cb28aa2de340c6ac66143c16bd4e
[ "Unlicense", "MIT" ]
null
null
null
import os import os.path def activate(ipython, venv): """ Shortcut to run execfile() on `venv`/bin/activate_this.py """ venv = os.path.abspath(venv) venv_activate = os.path.join(venv, 'bin', 'activate_this.py') if not os.path.exists(venv_activate): print('Not a virtualenv: {}'.format(...
25.076923
70
0.662577
4d034751cf7a5ae250a1f9a85e64ff78986aa837
4,201
py
Python
storage/__init__.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
storage/__init__.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
storage/__init__.py
daqbroker/daqbrokerServer
e8d2b72b4e3ab12c26dfa7b52e9d77097ede3f33
[ "MIT" ]
null
null
null
import base64 import os import threading from pathlib import Path #from sqlitedict import SqliteDict from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from daqbrokerServer.web.utils import hash_password from daqbrokerServer.storage.server_schema import ServerBase, User, Conn...
40.009524
143
0.653416
4d03f7e180eeb633a961138f2a85fdbfb2a84df1
1,786
py
Python
tempest/api/queuing/test_queues.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/api/queuing/test_queues.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
tempest/api/queuing/test_queues.py
NetApp/tempest
dd86b1517ec5ac16c26975ed0ce0d8b7ddcac6cc
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 Rackspace, 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 wr...
29.278689
69
0.702688
4d04229e05bd8f6f6995b6ba536b1ed9096df15a
478
py
Python
checkin/tests.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
10
2017-11-25T01:47:20.000Z
2020-03-24T18:28:24.000Z
checkin/tests.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
319
2017-11-16T09:56:03.000Z
2022-03-28T00:24:37.000Z
checkin/tests.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
6
2017-11-12T14:04:08.000Z
2021-03-10T09:41:18.000Z
from django.test import TestCase from django_hosts import reverse from util.test_utils import Get, assert_requesting_paths_succeeds
29.875
65
0.709205
4d04bfd380e253ed326e19219946bfffe57dc0dc
10,757
py
Python
tests/gdata_tests/live_client_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/live_client_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
tests/gdata_tests/live_client_test.py
lqc/google-data-api
b720582a472d627a0853d02e51e13dbce4cfe6ae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
35.50165
78
0.685972
4d054d1c9024db142794eb18e583cbea3e61dd43
125
py
Python
apps/work_order/admin.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
null
null
null
apps/work_order/admin.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
null
null
null
apps/work_order/admin.py
joewen85/devops_study
6bbfbac7e70f295ef6068393bd9cf7d418ab4417
[ "Apache-2.0" ]
1
2020-10-28T09:12:47.000Z
2020-10-28T09:12:47.000Z
from django.contrib import admin # Register your models here. from .models import WorkOrder admin.site.register(WorkOrder)
17.857143
32
0.808
4d0941aea75adaa006d884337e5c4d550547f131
6,030
py
Python
updates.py
knowledgetechnologyuhh/hipss
518bf3e6a4d02e234cbe29506b9afda0a6ccb187
[ "MIT" ]
null
null
null
updates.py
knowledgetechnologyuhh/hipss
518bf3e6a4d02e234cbe29506b9afda0a6ccb187
[ "MIT" ]
null
null
null
updates.py
knowledgetechnologyuhh/hipss
518bf3e6a4d02e234cbe29506b9afda0a6ccb187
[ "MIT" ]
null
null
null
import torch import numpy as np import torch.nn.functional as F from torch.nn.utils.clip_grad import clip_grad_norm_ from mpi_utils.mpi_utils import sync_grads
42.167832
119
0.703814
4d098b2bde7f0fef38c7be3632c1ac962fd07aad
125,107
py
Python
spaghetti/network.py
gegen07/spaghetti
f10f9d016deeb8d4cdd63377304fc8e3b8492a0f
[ "BSD-3-Clause" ]
182
2018-07-23T20:17:32.000Z
2022-03-28T07:08:43.000Z
spaghetti/network.py
gegen07/spaghetti
f10f9d016deeb8d4cdd63377304fc8e3b8492a0f
[ "BSD-3-Clause" ]
563
2017-04-14T23:39:21.000Z
2022-02-12T20:34:21.000Z
spaghetti/network.py
gegen07/spaghetti
f10f9d016deeb8d4cdd63377304fc8e3b8492a0f
[ "BSD-3-Clause" ]
51
2017-04-14T23:40:31.000Z
2022-03-31T01:41:56.000Z
from collections import defaultdict, OrderedDict from itertools import islice import copy, os, pickle, warnings import esda import numpy from .analysis import GlobalAutoK from . import util from libpysal import cg, examples, weights from libpysal.common import requires try: from libpysal import open except Impor...
35.714245
146
0.588632
4d09a5a4cc57e4e453dca3ac3e67a8ff83298706
340
py
Python
tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
1
2022-01-11T02:51:17.000Z
2022-01-11T02:51:17.000Z
tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
null
null
null
tests/resources/mlflow-test-plugin/mlflow_test_plugin/default_experiment_provider.py
Sohamkayal4103/mlflow
4e444efdf73c710644ee039b44fa36a31d716f69
[ "Apache-2.0" ]
2
2019-05-11T08:13:38.000Z
2019-05-14T13:33:54.000Z
from mlflow.tracking.default_experiment.abstract_context import DefaultExperimentProvider
28.333333
89
0.791176
4d09ec45c4e1965510df15bcf08b297cda5ab9d9
1,097
py
Python
ac_loss_plot.py
atul799/CarND-Semantic-Segmentation
dbec928d3ba9cc68f3de9bbb7707df85131c1d5c
[ "MIT" ]
null
null
null
ac_loss_plot.py
atul799/CarND-Semantic-Segmentation
dbec928d3ba9cc68f3de9bbb7707df85131c1d5c
[ "MIT" ]
null
null
null
ac_loss_plot.py
atul799/CarND-Semantic-Segmentation
dbec928d3ba9cc68f3de9bbb7707df85131c1d5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ plot acc loss @author: atpandey """ #%% import matplotlib.pyplot as plt #%% ff='./to_laptop/trg_file.txt' with open(ff,'r') as trgf: listidx=[] listloss=[] listacc=[] ctr=0 for line in trgf: if(ctr>0): ll=line.split(',') listidx.append...
18.913793
82
0.606199
4d0a6ad7788dddfb228aeaaea80d6d51b9e09fa7
8,611
py
Python
VA_multiples/src/main.py
brown9804/Modelos_Probabilisticos-
8ddc6afbe4da5975af9eb5dc946ff19daa1171bc
[ "Apache-2.0" ]
null
null
null
VA_multiples/src/main.py
brown9804/Modelos_Probabilisticos-
8ddc6afbe4da5975af9eb5dc946ff19daa1171bc
[ "Apache-2.0" ]
null
null
null
VA_multiples/src/main.py
brown9804/Modelos_Probabilisticos-
8ddc6afbe4da5975af9eb5dc946ff19daa1171bc
[ "Apache-2.0" ]
null
null
null
##--------------------------------Main file------------------------------------ ## ## Copyright (C) 2020 by Belinda Brown Ramrez (belindabrownr04@gmail.com) ## June, 2020 ## timna.brown@ucr.ac.cr ##----------------------------------------------------------------------------- # Variables aleatorias mlt...
46.048128
164
0.652537
4d0a9eaef2e9a5554500cb97127b08aa78c0807c
7,527
py
Python
official/mnist/mnist.py
TuKJet/models
984fbc754943c849c55a57923f4223099a1ff88c
[ "Apache-2.0" ]
3,326
2018-01-26T22:42:25.000Z
2022-02-16T13:16:39.000Z
official/mnist/mnist.py
lianlengyunyu/models
984fbc754943c849c55a57923f4223099a1ff88c
[ "Apache-2.0" ]
150
2017-08-28T14:59:36.000Z
2022-03-11T23:21:35.000Z
official/mnist/mnist.py
lianlengyunyu/models
984fbc754943c849c55a57923f4223099a1ff88c
[ "Apache-2.0" ]
1,474
2018-02-01T04:33:18.000Z
2022-03-08T07:02:20.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 appl...
36.1875
82
0.689385
4d0b5e5a16eda393441922d1c3ec56983303e265
523
py
Python
pep_92.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
pep_92.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
pep_92.py
sayantan3/project-euler
9b856c84a0b174754819ed15f86eb0f30181e94e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 TERMINALS = (1, 89) sq_sum = [sum(int(c)**2 for c in str(i)) for i in range(1000)] if __name__ == "__main__": print(calculate())
18.678571
62
0.565966
4d0e5f2a06efaa32ab6853b48bd163c479f22bbd
467
py
Python
Visualization/ConstrainedOpt.py
zhijieW94/SAGNet
017b58853cb51d50851a5a3728b3205d235ff889
[ "MIT" ]
25
2019-09-15T09:10:17.000Z
2021-04-08T07:44:16.000Z
Visualization/ConstrainedOpt.py
zhijieW-94/SAGNet
017b58853cb51d50851a5a3728b3205d235ff889
[ "MIT" ]
9
2019-11-16T07:06:08.000Z
2021-03-07T09:14:32.000Z
Visualization/ConstrainedOpt.py
zhijieW94/SAGNet
017b58853cb51d50851a5a3728b3205d235ff889
[ "MIT" ]
7
2019-09-25T18:07:54.000Z
2021-12-21T08:41:47.000Z
from PyQt5.QtCore import *
24.578947
55
0.631692