hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
e6960adb05d4b964e50fe6cceef1e01091d1811d
2,327
py
Python
FusionIIIT/applications/placement_cell/api/serializers.py
29rj/Fusion
bc2941a67532e183adeb0bc4042df0b182b9e3aa
[ "bzip2-1.0.6" ]
29
2019-02-20T15:35:33.000Z
2022-03-22T11:10:57.000Z
FusionIIIT/applications/placement_cell/api/serializers.py
29rj/Fusion
bc2941a67532e183adeb0bc4042df0b182b9e3aa
[ "bzip2-1.0.6" ]
409
2019-01-17T19:30:51.000Z
2022-03-31T16:28:45.000Z
FusionIIIT/applications/placement_cell/api/serializers.py
29rj/Fusion
bc2941a67532e183adeb0bc4042df0b182b9e3aa
[ "bzip2-1.0.6" ]
456
2019-01-12T11:01:13.000Z
2022-03-30T17:06:52.000Z
from rest_framework.authtoken.models import Token from rest_framework import serializers from applications.placement_cell.models import (Achievement, Course, Education, Experience, Has, Patent, Project, Publication, Skill, ...
27.376471
89
0.644607
1,905
0.818651
0
0
0
0
0
0
207
0.088956
e6973c5ea944d5bc8b7dc232052cd5073acf79bf
253
py
Python
concat_col_app/factories.py
thinkAmi-sandbox/django-datatables-view-sample
ac3df721089489e61c09ac75d320be3704c72105
[ "Unlicense" ]
null
null
null
concat_col_app/factories.py
thinkAmi-sandbox/django-datatables-view-sample
ac3df721089489e61c09ac75d320be3704c72105
[ "Unlicense" ]
null
null
null
concat_col_app/factories.py
thinkAmi-sandbox/django-datatables-view-sample
ac3df721089489e61c09ac75d320be3704c72105
[ "Unlicense" ]
null
null
null
import factory from concat_col_app.models import Color, Apple class ColorFactory(factory.django.DjangoModelFactory): class Meta: model = Color class AppleFactory(factory.django.DjangoModelFactory): class Meta: model = Apple
18.071429
54
0.73913
184
0.727273
0
0
0
0
0
0
0
0
e698cce58860b9d7c8249a1734c7596543b84bc7
1,843
py
Python
defects4cpp/errors/argparser.py
HansolChoe/defects4cpp
cb9e3db239c50e6ec38127cec117865f0ee7a5cf
[ "MIT" ]
10
2021-06-23T01:53:19.000Z
2022-03-31T03:14:01.000Z
defects4cpp/errors/argparser.py
HansolChoe/defects4cpp
cb9e3db239c50e6ec38127cec117865f0ee7a5cf
[ "MIT" ]
34
2021-05-27T01:09:04.000Z
2022-03-28T07:53:35.000Z
defects4cpp/errors/argparser.py
HansolChoe/defects4cpp
cb9e3db239c50e6ec38127cec117865f0ee7a5cf
[ "MIT" ]
6
2021-09-03T07:16:56.000Z
2022-03-29T07:30:35.000Z
from pathlib import Path from typing import Dict from errors.common.exception import DppError class DppArgparseError(DppError): pass class DppArgparseTaxonomyNotFoundError(DppArgparseError): def __init__(self, taxonomy_name: str): super().__init__(f"taxonomy '{taxonomy_name}' does not exist") ...
29.253968
90
0.683668
1,721
0.933804
0
0
0
0
0
0
318
0.172545
e6990f7310e89eaf51795fa05ea2ca52396ff9f9
161
py
Python
utils/__init__.py
wang97zh/EVS-Net-1
3a8457c2d5281b8805ec523f9ced738ccf49d5f5
[ "MIT" ]
null
null
null
utils/__init__.py
wang97zh/EVS-Net-1
3a8457c2d5281b8805ec523f9ced738ccf49d5f5
[ "MIT" ]
null
null
null
utils/__init__.py
wang97zh/EVS-Net-1
3a8457c2d5281b8805ec523f9ced738ccf49d5f5
[ "MIT" ]
null
null
null
from .utility import * from .tricks import * from .tensorlog import * from .self_op import * from .resume import * from .optims import * from .metric import *
16.1
24
0.726708
0
0
0
0
0
0
0
0
0
0
e69960fc13118fa865fc6b90dfac61ac3e974383
1,290
py
Python
model-optimizer/extensions/front/mxnet/arange_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/mxnet/arange_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
19
2021-03-26T08:11:00.000Z
2022-02-21T13:06:26.000Z
model-optimizer/extensions/front/mxnet/arange_ext.py
calvinfeng/openvino
11f591c16852637506b1b40d083b450e56d0c8ac
[ "Apache-2.0" ]
1
2021-07-28T17:30:46.000Z
2021-07-28T17:30:46.000Z
""" Copyright (C) 2018-2021 Intel 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 i...
32.25
73
0.694574
495
0.383721
0
0
417
0.323256
0
0
672
0.52093
e69993a645167fee1fbafcf116e0729c914350fa
15,381
py
Python
fold_cur_trans.py
lucasforever24/arcface_noonan
9d805a0d4d478e347a9084ad6ce24fe4c8dc5e65
[ "MIT" ]
null
null
null
fold_cur_trans.py
lucasforever24/arcface_noonan
9d805a0d4d478e347a9084ad6ce24fe4c8dc5e65
[ "MIT" ]
null
null
null
fold_cur_trans.py
lucasforever24/arcface_noonan
9d805a0d4d478e347a9084ad6ce24fe4c8dc5e65
[ "MIT" ]
null
null
null
import cv2 from PIL import Image import argparse from pathlib import Path from multiprocessing import Process, Pipe,Value,Array import torch from config import get_config from mtcnn import MTCNN from Learner_trans_tf import face_learner from utils import load_facebank, draw_box_name, prepare_facebank, save_label_score,...
44.453757
124
0.594565
0
0
0
0
0
0
0
0
3,769
0.245043
e699c205aa18e90414c7e2eebb09f229e7cbf13e
2,603
py
Python
examples/tryclass.py
manahter/dirio
c33fcd6c114ffb275d7147156c7041389fab6cfc
[ "MIT" ]
null
null
null
examples/tryclass.py
manahter/dirio
c33fcd6c114ffb275d7147156c7041389fab6cfc
[ "MIT" ]
null
null
null
examples/tryclass.py
manahter/dirio
c33fcd6c114ffb275d7147156c7041389fab6cfc
[ "MIT" ]
null
null
null
import time class TryClass: value = 1 valu = 2 val = 3 va = 4 v = 5 def __init__(self, value=4): print("Created TryClass :", self) self.value = value def metod1(self, value, val2=""): self.value += value print(f"\t>>> metod 1, add: {value}, now value : {se...
30.988095
128
0.594314
769
0.295428
0
0
378
0.145217
0
0
913
0.350749
e69afae741859fe05b5f191d930aaa0cc0138694
3,204
py
Python
qiskit/providers/basebackend.py
ismaila-at-za-ibm/qiskit-terra
08303ec98ac7b33fde55266dc3a74466fbdcae95
[ "Apache-2.0" ]
2
2021-09-06T19:25:36.000Z
2021-11-17T10:46:12.000Z
qiskit/providers/basebackend.py
ismaila-at-za-ibm/qiskit-terra
08303ec98ac7b33fde55266dc3a74466fbdcae95
[ "Apache-2.0" ]
null
null
null
qiskit/providers/basebackend.py
ismaila-at-za-ibm/qiskit-terra
08303ec98ac7b33fde55266dc3a74466fbdcae95
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2017, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. """This module implements the abstract base class for backend modules. To create add-on backend modules subclass the Backend...
30.226415
80
0.604869
2,674
0.834582
0
0
767
0.239388
0
0
2,022
0.631086
e69c64799a3175f6ca7da109f5305d614b082638
487
py
Python
arrays/jump2/Solution.py
shahbagdadi/py-algo-n-ds
ff689534b771ddb4869b001b20a0e21b4896bb0a
[ "MIT" ]
null
null
null
arrays/jump2/Solution.py
shahbagdadi/py-algo-n-ds
ff689534b771ddb4869b001b20a0e21b4896bb0a
[ "MIT" ]
null
null
null
arrays/jump2/Solution.py
shahbagdadi/py-algo-n-ds
ff689534b771ddb4869b001b20a0e21b4896bb0a
[ "MIT" ]
null
null
null
from typing import List import sys class Solution: def jump(self, nums: List[int]) -> int: if len(nums) <=1: return 0 l , r , jumps = 0, nums[0] , 1 while r < len(nums)-1 : jumps += 1 # you can land anywhere between l & r+1 in a jump and then use Num[i] to jump from ...
27.055556
100
0.523614
397
0.815195
0
0
0
0
0
0
88
0.180698
e69c81543af0469c06adb5c970083f2d456e2ede
1,881
py
Python
share/tests.py
shared-tw/shared-tw
90dcf92744b4e0ec9e9aa085026b5543c9c3922c
[ "MIT" ]
2
2021-12-09T10:39:37.000Z
2022-02-22T09:01:26.000Z
share/tests.py
shared-tw/backend
90dcf92744b4e0ec9e9aa085026b5543c9c3922c
[ "MIT" ]
3
2021-07-03T12:56:38.000Z
2021-07-04T05:53:43.000Z
share/tests.py
shared-tw/shared-tw
90dcf92744b4e0ec9e9aa085026b5543c9c3922c
[ "MIT" ]
null
null
null
import unittest from . import states class DonationStateTestCase(unittest.TestCase): def test_approve_pending_state(self): approve_pending_statue = states.PendingApprovalState() approved_event = states.DonationApprovedEvent() self.assertIsInstance( approve_pending_statue.appl...
33
80
0.700159
1,840
0.978203
0
0
0
0
0
0
0
0
e69ec2353a5fed95b6dce8a05f828517c6009931
2,137
py
Python
app/extensions.py
grow/airpress
b46e951b27b8216f51f0fade3695049455866825
[ "MIT" ]
1
2017-07-07T20:15:14.000Z
2017-07-07T20:15:14.000Z
app/extensions.py
grow/airpress
b46e951b27b8216f51f0fade3695049455866825
[ "MIT" ]
4
2020-03-24T15:24:51.000Z
2021-06-01T21:42:43.000Z
app/extensions.py
grow/airpress
b46e951b27b8216f51f0fade3695049455866825
[ "MIT" ]
1
2016-12-15T00:03:13.000Z
2016-12-15T00:03:13.000Z
from jinja2 import nodes from jinja2.ext import Extension class FragmentCacheExtension(Extension): # a set of names that trigger the extension. tags = set(['cache']) def __init__(self, environment): super(FragmentCacheExtension, self).__init__(environment) # add the defaults to the envir...
37.491228
75
0.630323
2,076
0.971455
0
0
0
0
0
0
890
0.416472
e6a0c4454894632f570e8f7308cb8d060eed1f45
767
py
Python
modtox/Helpers/helpers.py
danielSoler93/modtox
757234140cc780f57d031b46d9293fc2bf95d18d
[ "Apache-2.0" ]
4
2019-09-22T22:57:30.000Z
2020-03-18T13:20:50.000Z
modtox/Helpers/helpers.py
danielSoler93/ModTox
757234140cc780f57d031b46d9293fc2bf95d18d
[ "Apache-2.0" ]
21
2019-09-16T11:07:13.000Z
2019-11-20T15:06:06.000Z
modtox/Helpers/helpers.py
danielSoler93/ModTox
757234140cc780f57d031b46d9293fc2bf95d18d
[ "Apache-2.0" ]
2
2019-09-07T17:07:55.000Z
2020-03-18T13:20:52.000Z
import os def retrieve_molecule_number(pdb, resname): """ IDENTIFICATION OF MOLECULE NUMBER BASED ON THE TER'S """ count = 0 with open(pdb, 'r') as x: lines = x.readlines() for i in lines: if i.split()[0] == 'TER': count += 1 if i.split()[3] == resname: ...
23.96875
68
0.573664
339
0.441982
0
0
0
0
0
0
142
0.185137
e6a0dd14d03a3e676bea433343d789bde96e6abd
666
py
Python
bbio/platform/beaglebone/api.py
efargas/PyBBIO
b0b15fc52befd56e817dbc5876f738e70ef05541
[ "MIT" ]
null
null
null
bbio/platform/beaglebone/api.py
efargas/PyBBIO
b0b15fc52befd56e817dbc5876f738e70ef05541
[ "MIT" ]
null
null
null
bbio/platform/beaglebone/api.py
efargas/PyBBIO
b0b15fc52befd56e817dbc5876f738e70ef05541
[ "MIT" ]
null
null
null
# api.py # Part of PyBBIO # github.com/alexanderhiam/PyBBIO # MIT License # # Beaglebone platform API file. from bbio.platform.platform import detect_platform PLATFORM = detect_platform() if "3.8" in PLATFORM: from bone_3_8.adc import analog_init, analog_cleanup from bone_3_8.pwm import pwm_init, pwm_cleanup ...
21.483871
54
0.77027
0
0
0
0
0
0
0
0
114
0.171171
e6a1e01053fb282362b9b417d81cb0cf76a2bbed
21,947
py
Python
tryhackme/http.py
GnarLito/tryhackme.py
20b4dd6a15c13c57e7a7be7f59913b937a992e4b
[ "MIT" ]
null
null
null
tryhackme/http.py
GnarLito/tryhackme.py
20b4dd6a15c13c57e7a7be7f59913b937a992e4b
[ "MIT" ]
16
2021-11-22T07:51:32.000Z
2021-12-14T00:07:48.000Z
tryhackme/http.py
GnarLito/tryhackme.py
20b4dd6a15c13c57e7a7be7f59913b937a992e4b
[ "MIT" ]
null
null
null
import re import sys from urllib.parse import quote as _uriquote import requests from . import __version__, errors, utils from .converters import _county_types, _leaderboard_types, _vpn_types, _not_none from . import checks from .cog import request_cog GET='get' POST='post' class HTTPClient: __CSRF_token_regex...
48.879733
196
0.645008
21,657
0.986786
0
0
3,777
0.172096
0
0
2,879
0.13118
e6a26bf564f5d9a437cee65264d1566e43a4893e
10,198
py
Python
flatlander/runner/experiment_runner.py
wullli/flatlander
2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad
[ "MIT" ]
3
2020-12-30T04:18:42.000Z
2022-03-17T13:15:30.000Z
flatlander/runner/experiment_runner.py
wullli/flatlander
2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad
[ "MIT" ]
null
null
null
flatlander/runner/experiment_runner.py
wullli/flatlander
2c7fbd3d025f2a05c40895ec735a92d7a6bfb1ad
[ "MIT" ]
null
null
null
import os from argparse import ArgumentParser from pathlib import Path import gym import ray import ray.tune.result as ray_results import yaml from gym.spaces import Tuple from ray.cluster_utils import Cluster from ray.rllib.utils import try_import_tf, try_import_torch from ray.tune import run_experiments, register_en...
44.72807
115
0.585507
9,114
0.893705
0
0
3,449
0.338204
0
0
2,045
0.20053
e6a4e0e5dfdac6166da22e4d8c2409f996b05e0d
7,273
py
Python
syslib/utils_keywords.py
rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291
08540c0f083a25b5b4e7a4c839080fe54383038c
[ "Apache-2.0" ]
1
2019-01-19T09:32:18.000Z
2019-01-19T09:32:18.000Z
syslib/utils_keywords.py
rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291
08540c0f083a25b5b4e7a4c839080fe54383038c
[ "Apache-2.0" ]
null
null
null
syslib/utils_keywords.py
rahulmah/sample-cloud-native-toolchain-tutorial-20170720084529291
08540c0f083a25b5b4e7a4c839080fe54383038c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python r""" This module contains keyword functions to supplement robot's built in functions and use in test where generic robot keywords don't support. """ import time from robot.libraries.BuiltIn import BuiltIn from robot.libraries import DateTime import re ###########################################...
32.61435
79
0.54063
0
0
0
0
0
0
0
0
5,244
0.721023
e6a5916da8516ca978c7505bb56075d47bacaa77
826
py
Python
tools/webcam/webcam_apis/nodes/__init__.py
ivmtorres/mmpose
662cb50c639653ae2fc19d3421ce10bd02246b85
[ "Apache-2.0" ]
1
2022-02-13T12:27:40.000Z
2022-02-13T12:27:40.000Z
tools/webcam/webcam_apis/nodes/__init__.py
ivmtorres/mmpose
662cb50c639653ae2fc19d3421ce10bd02246b85
[ "Apache-2.0" ]
null
null
null
tools/webcam/webcam_apis/nodes/__init__.py
ivmtorres/mmpose
662cb50c639653ae2fc19d3421ce10bd02246b85
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. from .builder import NODES from .faceswap_nodes import FaceSwapNode from .frame_effect_nodes import (BackgroundNode, BugEyeNode, MoustacheNode, NoticeBoardNode, PoseVisualizerNode, SaiyanNode, SunglassesNod...
45.888889
78
0.74092
0
0
0
0
0
0
0
0
282
0.341404
e6a5f147ff440a3daeccaecdee477658d01cb25a
4,044
py
Python
DBParser/DBMove.py
lelle1234/Db2Utils
55570a1afbe6d4abe61c31952bc178c2443f4e5b
[ "Apache-2.0" ]
4
2020-02-27T13:56:37.000Z
2022-02-07T23:07:24.000Z
DBParser/DBMove.py
lelle1234/Db2Utils
55570a1afbe6d4abe61c31952bc178c2443f4e5b
[ "Apache-2.0" ]
null
null
null
DBParser/DBMove.py
lelle1234/Db2Utils
55570a1afbe6d4abe61c31952bc178c2443f4e5b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import ibm_db import getopt import sys import os from toposort import toposort_flatten db = None host = "localhost" port = "50000" user = None pwd = None outfile = None targetdb = None try: opts, args = getopt.getopt(sys.argv[1:], "h:d:P:u:p:o:t:") except getopt.GetoptError: sys.exit(-1) f...
29.304348
157
0.633778
0
0
0
0
0
0
0
0
2,022
0.5
e6a6b8f37ebe80036ee8d9a83872d377cb863d68
732
py
Python
utils/glove.py
MirunaPislar/Word2vec
e9dd01488f081a7b8d7c00a0b21efe0d401d4927
[ "MIT" ]
13
2018-05-19T22:29:27.000Z
2022-03-25T13:28:17.000Z
utils/glove.py
MirunaPislar/Word2vec
e9dd01488f081a7b8d7c00a0b21efe0d401d4927
[ "MIT" ]
1
2019-01-14T09:55:50.000Z
2019-01-25T22:17:03.000Z
utils/glove.py
MirunaPislar/Word2vec
e9dd01488f081a7b8d7c00a0b21efe0d401d4927
[ "MIT" ]
6
2018-05-19T22:29:29.000Z
2022-03-11T12:00:37.000Z
import numpy as np DEFAULT_FILE_PATH = "utils/datasets/glove.6B.50d.txt" def loadWordVectors(tokens, filepath=DEFAULT_FILE_PATH, dimensions=50): """Read pretrained GloVe vectors""" wordVectors = np.zeros((len(tokens), dimensions)) with open(filepath) as ifs: for line in ifs: line = lin...
33.272727
71
0.577869
0
0
0
0
0
0
0
0
96
0.131148
e6aa6635d278553660a8a5b50b4098367fae31a5
2,446
py
Python
composer/profiler/__init__.py
stanford-crfm/composer
4996fbd818971afd6439961df58b531d9b47a37b
[ "Apache-2.0" ]
null
null
null
composer/profiler/__init__.py
stanford-crfm/composer
4996fbd818971afd6439961df58b531d9b47a37b
[ "Apache-2.0" ]
null
null
null
composer/profiler/__init__.py
stanford-crfm/composer
4996fbd818971afd6439961df58b531d9b47a37b
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. """Performance profiling tools. The profiler gathers performance metrics during a training run that can be used to diagnose bottlenecks and facilitate model development. The metrics gathered include: * Duration of each :class:`.Event` during training * Time taken by t...
44.472727
146
0.780867
0
0
0
0
0
0
0
0
2,077
0.849141
e6ab4939fc5a6bc71ee2ae80221a8f7dd6549b7a
2,753
py
Python
gremlin-python/src/main/jython/setup.py
EvKissle/tinkerpop
84195e38fc22a1a089c345fade9c75711e6cfdfe
[ "Apache-2.0" ]
null
null
null
gremlin-python/src/main/jython/setup.py
EvKissle/tinkerpop
84195e38fc22a1a089c345fade9c75711e6cfdfe
[ "Apache-2.0" ]
null
null
null
gremlin-python/src/main/jython/setup.py
EvKissle/tinkerpop
84195e38fc22a1a089c345fade9c75711e6cfdfe
[ "Apache-2.0" ]
null
null
null
''' Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this ...
32.388235
104
0.682528
0
0
0
0
0
0
0
0
1,682
0.61097
e6ab63dd0a627fd5e3fd6b78f7716ef38a63c388
1,112
py
Python
src/_bar.py
yoshihikosuzuki/plotly_light
cef2465486e9147e27feae1193a1b4487e4fc543
[ "MIT" ]
null
null
null
src/_bar.py
yoshihikosuzuki/plotly_light
cef2465486e9147e27feae1193a1b4487e4fc543
[ "MIT" ]
null
null
null
src/_bar.py
yoshihikosuzuki/plotly_light
cef2465486e9147e27feae1193a1b4487e4fc543
[ "MIT" ]
null
null
null
from typing import Optional, Sequence import plotly.graph_objects as go def bar(x: Sequence, y: Sequence, text: Optional[Sequence] = None, width: Optional[int] = None, col: Optional[str] = None, opacity: float = 1, name: Optional[str] = None, show_legend: bool = ...
31.771429
62
0.539568
0
0
0
0
0
0
0
0
438
0.393885
e6acb4fde9c00fed8d158a1a19ae4c34b7d7d64e
4,029
py
Python
pennylane/templates/subroutines/arbitrary_unitary.py
doomhammerhell/pennylane
f147f22d8d99ba5891edd45a6a1f7dd679c8a23c
[ "Apache-2.0" ]
3
2021-02-22T18:30:55.000Z
2021-02-23T10:54:58.000Z
pennylane/templates/subroutines/arbitrary_unitary.py
doomhammerhell/pennylane
f147f22d8d99ba5891edd45a6a1f7dd679c8a23c
[ "Apache-2.0" ]
null
null
null
pennylane/templates/subroutines/arbitrary_unitary.py
doomhammerhell/pennylane
f147f22d8d99ba5891edd45a6a1f7dd679c8a23c
[ "Apache-2.0" ]
1
2021-03-27T09:03:15.000Z
2021-03-27T09:03:15.000Z
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
31.476563
107
0.647803
1,846
0.458178
984
0.244229
225
0.055845
0
0
2,447
0.607347
e6aec9eead70cf9709e4908f8e9466e087fc8de3
5,271
py
Python
vae_celeba.py
aidiary/generative-models-pytorch
c9ae23a4ecbe4bf8f82dbaf9e4e3e1e61530e6b0
[ "MIT" ]
null
null
null
vae_celeba.py
aidiary/generative-models-pytorch
c9ae23a4ecbe4bf8f82dbaf9e4e3e1e61530e6b0
[ "MIT" ]
null
null
null
vae_celeba.py
aidiary/generative-models-pytorch
c9ae23a4ecbe4bf8f82dbaf9e4e3e1e61530e6b0
[ "MIT" ]
null
null
null
import pytorch_lightning as pl import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from pytorch_lightning.loggers import TensorBoardLogger from torch.utils.data import DataLoader from torchvision import transforms from torchvision.datasets import CelebA class Encoder(nn.Modu...
31.189349
103
0.592677
3,842
0.728894
0
0
0
0
0
0
178
0.03377
e6afcad02c1d49dbed0f7930d88f9219376906a4
2,686
py
Python
data/process_data.py
julat/DisasterResponse
140489e521a96dc2ff9c9a95f0ce4e99403f03af
[ "MIT" ]
null
null
null
data/process_data.py
julat/DisasterResponse
140489e521a96dc2ff9c9a95f0ce4e99403f03af
[ "MIT" ]
null
null
null
data/process_data.py
julat/DisasterResponse
140489e521a96dc2ff9c9a95f0ce4e99403f03af
[ "MIT" ]
null
null
null
# Import libraries import sys import pandas as pd from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): """ Load the data from the disaster response csvs Parameters: messages_filepath (str): Path to messages csv categories_filepath (str): Path to categories csv...
28.574468
80
0.652271
0
0
0
0
0
0
0
0
1,064
0.396128
e6b027e44688ca01138133b153494c3bc7370758
3,658
py
Python
contrail-controller/files/plugins/check_contrail_status_controller.py
atsgen/tf-charms
81110aef700b2f227654d52709614ddb3d62ba17
[ "Apache-2.0" ]
null
null
null
contrail-controller/files/plugins/check_contrail_status_controller.py
atsgen/tf-charms
81110aef700b2f227654d52709614ddb3d62ba17
[ "Apache-2.0" ]
null
null
null
contrail-controller/files/plugins/check_contrail_status_controller.py
atsgen/tf-charms
81110aef700b2f227654d52709614ddb3d62ba17
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import subprocess import sys import json SERVICES = { 'control': [ 'control', 'nodemgr', 'named', 'dns', ], 'config-database': [ 'nodemgr', 'zookeeper', 'rabbitmq', 'cassandra', ], 'webui': [ 'web', ...
29.739837
193
0.54538
0
0
0
0
0
0
0
0
851
0.232641
e6b042b87a1d5f3672a72f7fa6b5679e20f39682
2,693
py
Python
leaderboard-server/leaderboard-server.py
harnitsignalfx/skogaming
c860219c89149d686106dfb7a93d27df39830842
[ "MIT" ]
1
2021-03-01T20:56:24.000Z
2021-03-01T20:56:24.000Z
leaderboard-server/leaderboard-server.py
harnitsignalfx/skogaming
c860219c89149d686106dfb7a93d27df39830842
[ "MIT" ]
null
null
null
leaderboard-server/leaderboard-server.py
harnitsignalfx/skogaming
c860219c89149d686106dfb7a93d27df39830842
[ "MIT" ]
1
2021-02-20T17:36:47.000Z
2021-02-20T17:36:47.000Z
from flask import Flask, jsonify, request from flask_cors import CORS, cross_origin import simplejson as json from leaderboard.leaderboard import Leaderboard import uwsgidecorators import signalfx app = Flask(__name__) app.config['CORS_HEADERS'] = 'Content-Type' cors = CORS(app) highscore_lb_starship = Leaderboard('...
26.663366
95
0.649833
0
0
0
0
1,775
0.659116
0
0
768
0.285184
e6b183e72d2aff2b604bbf82d32e69244b409f59
1,591
py
Python
meshio/_cli/_info.py
jorgensd/meshio
0600ac9e9e8d1e1a27d5f3f2f4235414f4482cac
[ "MIT" ]
1
2020-09-01T11:26:15.000Z
2020-09-01T11:26:15.000Z
meshio/_cli/_info.py
jorgensd/meshio
0600ac9e9e8d1e1a27d5f3f2f4235414f4482cac
[ "MIT" ]
null
null
null
meshio/_cli/_info.py
jorgensd/meshio
0600ac9e9e8d1e1a27d5f3f2f4235414f4482cac
[ "MIT" ]
null
null
null
import argparse import numpy as np from .._helpers import read, reader_map from ._helpers import _get_version_text def info(argv=None): # Parse command line arguments. parser = _get_info_parser() args = parser.parse_args(argv) # read mesh data mesh = read(args.infile, file_format=args.input_for...
26.966102
87
0.637335
0
0
0
0
0
0
0
0
404
0.253928
e6b2c4874559385c0807dca69b9f07a62e9a1d08
1,324
py
Python
ccslink/Zip.py
Data-Linkage/ccslink
ee1105888d43c6a2b307deb96ddede34d03a965f
[ "MIT" ]
null
null
null
ccslink/Zip.py
Data-Linkage/ccslink
ee1105888d43c6a2b307deb96ddede34d03a965f
[ "MIT" ]
null
null
null
ccslink/Zip.py
Data-Linkage/ccslink
ee1105888d43c6a2b307deb96ddede34d03a965f
[ "MIT" ]
null
null
null
import os, shutil from CCSLink import Spark_Session as SS def add_zipped_dependency(zip_from, zip_target): """ This method creates a zip of the code to be sent to the executors. It essentially zips the Python packages installed by PIP and submits them via addPyFile in the current PySpark context E...
33.1
70
0.676737
0
0
0
0
0
0
0
0
877
0.662387
e6b2fbff1fb4792ec87b5e0830c85e32ea769936
2,484
py
Python
moltemplate/nbody_Angles.py
Mopolino8/moltemplate
363df364fcb012e8e4beb7bc616a77d696b8b707
[ "BSD-3-Clause" ]
null
null
null
moltemplate/nbody_Angles.py
Mopolino8/moltemplate
363df364fcb012e8e4beb7bc616a77d696b8b707
[ "BSD-3-Clause" ]
null
null
null
moltemplate/nbody_Angles.py
Mopolino8/moltemplate
363df364fcb012e8e4beb7bc616a77d696b8b707
[ "BSD-3-Clause" ]
1
2019-11-24T17:32:28.000Z
2019-11-24T17:32:28.000Z
try: from .nbody_graph_search import Ugraph except (SystemError, ValueError): # not installed as a package from nbody_graph_search import Ugraph # This file defines how 3-body angle interactions are generated by moltemplate # by default. It can be overridden by supplying your own custom file. # To fi...
42.827586
79
0.68599
0
0
0
0
0
0
0
0
2,019
0.812802
e6b3c1a04d6b23957a4328b1a4d335f1079479f3
8,099
py
Python
extras/usd/examples/usdMakeFileVariantModelAsset/usdMakeFileVariantModelAsset.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
3,680
2016-07-26T18:28:11.000Z
2022-03-31T09:55:05.000Z
extras/usd/examples/usdMakeFileVariantModelAsset/usdMakeFileVariantModelAsset.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
1,759
2016-07-26T19:19:59.000Z
2022-03-31T21:24:00.000Z
extras/usd/examples/usdMakeFileVariantModelAsset/usdMakeFileVariantModelAsset.py
DougRogers-DigitalFish/USD
d8a405a1344480f859f025c4f97085143efacb53
[ "BSD-2-Clause" ]
904
2016-07-26T18:33:40.000Z
2022-03-31T09:55:16.000Z
#!/pxrpythonsubst # # Copyright 2016 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
44.256831
85
0.684159
0
0
0
0
0
0
0
0
4,422
0.545993
e6b3c20df06992b958887a2ed1583c032b8b6295
7,079
py
Python
src/main.py
fbdp1202/pyukf_kinect_body_tracking
c44477149cfc22abfe9121c2604dc284c93fbd42
[ "MIT" ]
7
2020-04-23T06:03:10.000Z
2022-01-16T21:16:23.000Z
src/main.py
fbdp1202/pyukf_kinect_body_tracking
c44477149cfc22abfe9121c2604dc284c93fbd42
[ "MIT" ]
null
null
null
src/main.py
fbdp1202/pyukf_kinect_body_tracking
c44477149cfc22abfe9121c2604dc284c93fbd42
[ "MIT" ]
3
2020-07-12T15:07:52.000Z
2021-12-05T09:27:18.000Z
import sys import os sys.path.append('./code/') from skeleton import Skeleton from read_data import * from calibration import Calibration from ukf_filter import ukf_Filter_Controler from canvas import Canvas from regression import * import time from functools import wraps import os def check_time(function): @wraps...
34.198068
368
0.759288
0
0
0
0
3,827
0.540613
0
0
488
0.068936
e6b3d6bc9a4bc463c1dd688594551748653895d4
2,683
py
Python
cfgov/scripts/initial_data.py
Mario-Kart-Felix/cfgov-refresh
7978fedeb7aaf4d96a87720e6545567085e056a9
[ "CC0-1.0" ]
1
2019-12-29T17:50:07.000Z
2019-12-29T17:50:07.000Z
cfgov/scripts/initial_data.py
ascott1/cfgov-refresh
9c916aaed3a48110a199eb4675474290a51f815d
[ "CC0-1.0" ]
1
2021-04-22T01:09:52.000Z
2021-04-22T01:09:52.000Z
cfgov/scripts/initial_data.py
ascott1/cfgov-refresh
9c916aaed3a48110a199eb4675474290a51f815d
[ "CC0-1.0" ]
1
2021-02-02T08:59:38.000Z
2021-02-02T08:59:38.000Z
from __future__ import print_function import json import os from django.conf import settings from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User from wagtail.wagtailcore.models import Page, Site from v1.models import HomePage, BrowseFilterablePage def run(): print(...
34.844156
97
0.666045
0
0
0
0
0
0
0
0
366
0.136414
e6b40095f02ec8f60d6c2306673d054478953aba
1,456
py
Python
Scripts/compareOutputs.py
harmim/vut-avs-project1
d36e6b5cdebce748d2bdf2afc43950968ecf0a91
[ "MIT" ]
null
null
null
Scripts/compareOutputs.py
harmim/vut-avs-project1
d36e6b5cdebce748d2bdf2afc43950968ecf0a91
[ "MIT" ]
null
null
null
Scripts/compareOutputs.py
harmim/vut-avs-project1
d36e6b5cdebce748d2bdf2afc43950968ecf0a91
[ "MIT" ]
null
null
null
# Simple python3 script to compare output with a reference output. # Usage: python3 compareOutputs.py testOutput.h5 testRefOutput.h5 import sys import h5py import numpy as np if len(sys.argv) != 3: print("Expected two arguments. Output and reference output file.") sys.exit(1) filename = sys.argv[1] ref_filen...
26.472727
89
0.666896
0
0
0
0
0
0
0
0
530
0.364011
e6b45faace1959ed1daf554b861e2a396b78702b
222
py
Python
sanctuary/tag/serializers.py
20CM/Sanctuary
14694d9bd6376bdc05248741a91df778400e9f66
[ "BSD-3-Clause" ]
1
2017-05-29T11:53:06.000Z
2017-05-29T11:53:06.000Z
sanctuary/tag/serializers.py
20CM/Sanctuary
14694d9bd6376bdc05248741a91df778400e9f66
[ "BSD-3-Clause" ]
null
null
null
sanctuary/tag/serializers.py
20CM/Sanctuary
14694d9bd6376bdc05248741a91df778400e9f66
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from rest_framework import serializers from .models import Tag class TagSerializer(serializers.ModelSerializer): class Meta: model = Tag read_only_fields = ('topics_count',)
18.5
49
0.689189
130
0.585586
0
0
0
0
0
0
37
0.166667
e6b462f3efa3e6e931f1a4ef9f1a10fd45f8f99c
571
py
Python
examples/management_api/aliveness_test.py
cloudamqp/amqpstorm
35eb8edc5f0c2ea3839e93940bf9d0e5f8f4242e
[ "MIT" ]
null
null
null
examples/management_api/aliveness_test.py
cloudamqp/amqpstorm
35eb8edc5f0c2ea3839e93940bf9d0e5f8f4242e
[ "MIT" ]
null
null
null
examples/management_api/aliveness_test.py
cloudamqp/amqpstorm
35eb8edc5f0c2ea3839e93940bf9d0e5f8f4242e
[ "MIT" ]
null
null
null
from amqpstorm.management import ApiConnectionError from amqpstorm.management import ApiError from amqpstorm.management import ManagementApi if __name__ == '__main__': API = ManagementApi('http://127.0.0.1:15672', 'guest', 'guest') try: result = API.aliveness_test('/') if result['status'] == 'o...
33.588235
67
0.635727
0
0
0
0
0
0
0
0
146
0.255692
e6b741334252c43868c1ae3bb0661b811481f368
1,048
py
Python
src/zvt/recorders/em/meta/em_stockhk_meta_recorder.py
vishalbelsare/zvt
d55051147274c0a4157f08ec60908c781a323c8f
[ "MIT" ]
2,032
2019-04-16T14:10:32.000Z
2022-03-31T12:40:13.000Z
src/zvt/recorders/em/meta/em_stockhk_meta_recorder.py
vishalbelsare/zvt
d55051147274c0a4157f08ec60908c781a323c8f
[ "MIT" ]
162
2019-05-07T09:57:46.000Z
2022-03-25T16:23:08.000Z
src/zvt/recorders/em/meta/em_stockhk_meta_recorder.py
vishalbelsare/zvt
d55051147274c0a4157f08ec60908c781a323c8f
[ "MIT" ]
755
2019-04-30T10:25:16.000Z
2022-03-29T17:50:49.000Z
# -*- coding: utf-8 -*- from zvt.contract.api import df_to_db from zvt.contract.recorder import Recorder from zvt.domain.meta.stockhk_meta import Stockhk from zvt.recorders.em import em_api class EMStockhkRecorder(Recorder): provider = "em" data_schema = Stockhk def run(self): df_south = em_api....
33.806452
115
0.711832
712
0.679389
0
0
0
0
0
0
126
0.120229
e6b7cb0bb44951e0d2ab9c8433c064285f85c4f7
6,362
py
Python
src/main.py
yanwunhao/auto-mshts
7a4b690bbb6ae55e2f6fad77d176c2c0822db7a0
[ "MIT" ]
null
null
null
src/main.py
yanwunhao/auto-mshts
7a4b690bbb6ae55e2f6fad77d176c2c0822db7a0
[ "MIT" ]
null
null
null
src/main.py
yanwunhao/auto-mshts
7a4b690bbb6ae55e2f6fad77d176c2c0822db7a0
[ "MIT" ]
null
null
null
from util.io import read_setting_json, read_0h_data, read_24h_data, draw_single_curve from util.convert import split_array_into_samples, calculate_avg_of_sample, convert_to_percentage from util.calculus import calculate_summary_of_sample, fit_sigmoid_curve import matplotlib.pyplot as plt import numpy as np import csv ...
31.651741
133
0.735618
0
0
0
0
0
0
0
0
981
0.154197
e6b8a82e6b0282dee965fc93d3c31abaae481d21
6,492
py
Python
twisted/names/root.py
twonds/twisted
d6e270a465d371c3bed01bf369af497b77eb9f1e
[ "Unlicense", "MIT" ]
1
2021-01-27T19:11:21.000Z
2021-01-27T19:11:21.000Z
twisted/names/root.py
twonds/twisted
d6e270a465d371c3bed01bf369af497b77eb9f1e
[ "Unlicense", "MIT" ]
null
null
null
twisted/names/root.py
twonds/twisted
d6e270a465d371c3bed01bf369af497b77eb9f1e
[ "Unlicense", "MIT" ]
3
2017-01-04T01:24:15.000Z
2020-06-18T16:14:56.000Z
# -*- test-case-name: twisted.names.test.test_rootresolve -*- # Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See LICENSE for details. """ Resolver implementation for querying successive authoritative servers to lookup a record, starting from the root nameservers. @author: Jp Calderone todo:: robustify ...
33.989529
91
0.59658
1,323
0.203789
1,664
0.256315
0
0
0
0
1,893
0.29159
e6b8dc6f73954e378a1c4ed802de05ace9457d1e
2,056
py
Python
tools/apply_colormap_dir.py
edwardyehuang/iDS
36bde3a9e887eb7e1a8d88956cf041909ee84da4
[ "MIT" ]
null
null
null
tools/apply_colormap_dir.py
edwardyehuang/iDS
36bde3a9e887eb7e1a8d88956cf041909ee84da4
[ "MIT" ]
null
null
null
tools/apply_colormap_dir.py
edwardyehuang/iDS
36bde3a9e887eb7e1a8d88956cf041909ee84da4
[ "MIT" ]
null
null
null
# ================================================================ # MIT License # Copyright (c) 2021 edwardyehuang (https://github.com/edwardyehuang) # ================================================================ import os, sys rootpath = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pard...
25.073171
89
0.651751
0
0
0
0
0
0
0
0
432
0.210117
e6b9337bdda045910328d8c9cc38338bc1311810
406
py
Python
kairon/shared/sso/base.py
rit1200/kairon
674a491f6deeae4800825ca93e0726e4fb6e0866
[ "Apache-2.0" ]
9
2020-04-22T12:49:29.000Z
2020-06-13T22:23:20.000Z
kairon/shared/sso/base.py
rit1200/kairon
674a491f6deeae4800825ca93e0726e4fb6e0866
[ "Apache-2.0" ]
18
2020-04-20T12:39:20.000Z
2020-05-21T05:10:51.000Z
kairon/shared/sso/base.py
rit1200/kairon
674a491f6deeae4800825ca93e0726e4fb6e0866
[ "Apache-2.0" ]
13
2020-04-21T12:12:40.000Z
2020-05-13T07:27:44.000Z
class BaseSSO: async def get_redirect_url(self): """Returns redirect url for facebook.""" raise NotImplementedError("Provider not implemented") async def verify(self, request): """ Fetches user details using code received in the request. :param request: starlette req...
25.375
64
0.657635
405
0.997537
0
0
0
0
379
0.933498
222
0.546798
e6b94f55392b1866e86cdeb5f1344d92e8c4dea3
6,007
py
Python
EDScoutCore/JournalInterface.py
bal6765/ed-scout
0c2ee6141a5cd86a660c2319d7c4be61614b13fb
[ "MIT" ]
null
null
null
EDScoutCore/JournalInterface.py
bal6765/ed-scout
0c2ee6141a5cd86a660c2319d7c4be61614b13fb
[ "MIT" ]
null
null
null
EDScoutCore/JournalInterface.py
bal6765/ed-scout
0c2ee6141a5cd86a660c2319d7c4be61614b13fb
[ "MIT" ]
null
null
null
from inspect import signature import json import time import os import glob import logging from pathlib import Path from watchdog.observers import Observer from watchdog.observers.polling import PollingObserver from watchdog.events import PatternMatchingEventHandler from EDScoutCore.FileSystemUpdatePrompter...
34.522989
164
0.632096
5,039
0.838855
1,893
0.315132
233
0.038788
0
0
1,051
0.174963
e6ba0dc97e3a9015e73a33e1fbadd9852c0606ea
1,355
py
Python
labs-python/lab9/add_files.py
xR86/ml-stuff
2a1b79408897171b78032ff2531ab6f8b18be6c4
[ "MIT" ]
3
2018-12-11T03:03:15.000Z
2020-02-11T19:38:07.000Z
labs-python/lab9/add_files.py
xR86/ml-stuff
2a1b79408897171b78032ff2531ab6f8b18be6c4
[ "MIT" ]
6
2017-05-31T20:58:32.000Z
2021-02-16T23:13:15.000Z
labs-python/lab9/add_files.py
xR86/ml-stuff
2a1b79408897171b78032ff2531ab6f8b18be6c4
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('example.db') c = conn.cursor() import os import hashlib import time def get_file_md5(filePath): h = hashlib.md5() h.update(open(filePath,"rb").read()) return h.hexdigest() def get_file_sha256(filePath): h = hashlib.sha256() h.update(open(filePath,"rb").read()) return h....
22.966102
83
0.710701
0
0
0
0
0
0
0
0
254
0.187454
e6ba0ea03b3d3e18b20568efd5fed882e88148ea
1,834
py
Python
lib/galaxy/model/migrate/versions/0073_add_ldda_to_implicit_conversion_table.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/model/migrate/versions/0073_add_ldda_to_implicit_conversion_table.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
1
2015-02-21T18:48:19.000Z
2015-02-27T15:50:32.000Z
lib/galaxy/model/migrate/versions/0073_add_ldda_to_implicit_conversion_table.py
blankenberg/galaxy-data-resource
ca32a1aafd64948f489a4e5cf88096f32391b1d9
[ "CC-BY-3.0" ]
3
2015-02-22T13:34:16.000Z
2020-10-01T01:28:04.000Z
""" Migration script to add 'ldda_parent_id' column to the implicitly_converted_dataset_association table. """ from sqlalchemy import * from sqlalchemy.orm import * from migrate import * from migrate.changeset import * import logging log = logging.getLogger( __name__ ) metadata = MetaData() def upgrade(migrate_engi...
44.731707
134
0.741003
0
0
0
0
0
0
0
0
736
0.401309
e6bacf59de7852cf3a5c740a8171a4aa7144b26c
4,083
py
Python
Replication Python and R Codes/Figure_6/cMCA_ESS2018_LABCON_org.py
tzuliu/Contrastive-Multiple-Correspondence-Analysis-cMCA
a59a5c36dd5d4ac04205627827e792322742462d
[ "MIT" ]
3
2020-09-25T07:11:46.000Z
2022-02-08T05:07:34.000Z
Replication Python and R Codes/Figure_6/cMCA_ESS2018_LABCON_org.py
tzuliu/Contrastive-Multiple-Correspondence-Analysis-cMCA
a59a5c36dd5d4ac04205627827e792322742462d
[ "MIT" ]
null
null
null
Replication Python and R Codes/Figure_6/cMCA_ESS2018_LABCON_org.py
tzuliu/Contrastive-Multiple-Correspondence-Analysis-cMCA
a59a5c36dd5d4ac04205627827e792322742462d
[ "MIT" ]
1
2021-02-06T16:44:44.000Z
2021-02-06T16:44:44.000Z
import pandas as pd import numpy as np import matplotlib.pyplot as plt import prince from sklearn import utils from sklearn.cluster import DBSCAN import itertools from cmca import CMCA from ccmca import CCMCA from matplotlib import rc plt.style.use('ggplot') df = pd.read_csv("./uk2018.csv") df["prtclcgb"].replace({5: ...
35.198276
140
0.624051
0
0
0
0
0
0
0
0
883
0.216263
e6bb99021b44144da731911de204a7afc66e8789
1,196
py
Python
Solutions/077.py
ruppysuppy/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
70
2021-03-18T05:22:40.000Z
2022-03-30T05:36:50.000Z
Solutions/077.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
null
null
null
Solutions/077.py
ungaro/Daily-Coding-Problem-Solutions
37d061215a9af2ce39c51f8816c83039914c0d0b
[ "MIT" ]
30
2021-03-18T05:22:43.000Z
2022-03-17T10:25:18.000Z
""" Problem: Given a list of possibly overlapping intervals, return a new list of intervals where all overlapping intervals have been merged. The input list is not necessarily ordered in any way. For example, given [(1, 3), (5, 8), (4, 10), (20, 25)], you should return [(1, 3), (4, 10), (20, 25)]. """ from typing i...
26
84
0.622074
0
0
0
0
0
0
0
0
434
0.362876
e6bbb3606fdfbd374577782a243b3f2af19f5e8d
3,163
py
Python
slackbot_wems/chris/slacklib.py
wray/wems
69caedfb8906f04175196d610a1ca516db01f72a
[ "MIT" ]
4
2016-11-10T21:43:01.000Z
2017-02-24T21:36:45.000Z
slackbot_wems/chris/slacklib.py
wray/wems
69caedfb8906f04175196d610a1ca516db01f72a
[ "MIT" ]
1
2019-04-26T10:48:34.000Z
2019-05-18T15:59:35.000Z
slackbot_wems/chris/slacklib.py
wray/wems
69caedfb8906f04175196d610a1ca516db01f72a
[ "MIT" ]
8
2016-11-09T22:25:14.000Z
2019-04-26T19:53:37.000Z
import time import emoji # Put your commands here COMMAND1 = "testing testing" COMMAND2 = "roger roger" BLUEON = str("blue on") BLUEOFF = str("blue off") REDON = str("red on") REDOFF = str("red off") GREENON = str("green on") GREENOFF = str("green off") YELLOWON = str("yellow on") YELLOWOFF = str("yellow off") CL...
26.140496
88
0.607651
0
0
0
0
0
0
0
0
935
0.295605
e6bc053f9c92b2bf8e29c294b8627f9ea57a47fd
29
py
Python
rses/__init__.py
iScrE4m/RSES
88299f105ded8838243eab8b25ab1626c97d1179
[ "MIT" ]
1
2022-02-16T15:06:22.000Z
2022-02-16T15:06:22.000Z
rses/__init__.py
djetelina/RSES
88299f105ded8838243eab8b25ab1626c97d1179
[ "MIT" ]
null
null
null
rses/__init__.py
djetelina/RSES
88299f105ded8838243eab8b25ab1626c97d1179
[ "MIT" ]
null
null
null
# coding=utf-8 """RSES :)"""
9.666667
14
0.482759
0
0
0
0
0
0
0
0
27
0.931034
e6bdcee8c086f35e2a59b7fc819faaf2312d18c6
89,316
py
Python
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
2
2019-08-23T21:14:00.000Z
2021-09-07T18:32:34.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
2
2021-11-03T06:10:36.000Z
2021-12-01T06:29:39.000Z
sdk/cosmos/azure-mgmt-cosmosdb/azure/mgmt/cosmosdb/operations/_gremlin_resources_operations.py
adewaleo/azure-sdk-for-python
169457edbea5e3c5557246cfcf8bd635d528bae4
[ "MIT" ]
1
2021-05-19T02:55:10.000Z
2021-05-19T02:55:10.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 ...
52.538824
326
0.672242
88,016
0.985445
0
0
0
0
0
0
38,273
0.428512
e6bde93bee8b10728e74b15763f724d08484c86a
4,640
py
Python
homeassistant/components/tasmota/discovery.py
yura505/core
0fc5f4b0421c6c5204d3ccb562153ac3836441a9
[ "Apache-2.0" ]
null
null
null
homeassistant/components/tasmota/discovery.py
yura505/core
0fc5f4b0421c6c5204d3ccb562153ac3836441a9
[ "Apache-2.0" ]
null
null
null
homeassistant/components/tasmota/discovery.py
yura505/core
0fc5f4b0421c6c5204d3ccb562153ac3836441a9
[ "Apache-2.0" ]
null
null
null
"""Support for MQTT discovery.""" import asyncio import logging from hatasmota.discovery import ( TasmotaDiscovery, get_device_config as tasmota_get_device_config, get_entities_for_platform as tasmota_get_entities_for_platform, get_entity as tasmota_get_entity, has_entities_with_platform as tasmota...
37.419355
88
0.694612
0
0
0
0
0
0
3,358
0.723707
694
0.149569
e6be7a1b7add8b9481d98005ea50f939d83dd351
15,696
py
Python
tfx/components/infra_validator/executor.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
1
2021-05-10T10:41:06.000Z
2021-05-10T10:41:06.000Z
tfx/components/infra_validator/executor.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
null
null
null
tfx/components/infra_validator/executor.py
TimoKerr/tfx
10d13d57eeac21514fed73118cb43464dada67f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.24
83
0.73248
10,774
0.686417
2,058
0.131116
2,087
0.132964
0
0
5,030
0.320464
e6bf66183d1220ed94fa05bc46a4ec69c5cf4ba5
130
py
Python
learning_python/org/allnix/util.py
ykyang/org.allnix.python
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
[ "Apache-2.0" ]
null
null
null
learning_python/org/allnix/util.py
ykyang/org.allnix.python
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
[ "Apache-2.0" ]
null
null
null
learning_python/org/allnix/util.py
ykyang/org.allnix.python
f9d74db2db026b20e925ac40dbca7d21b3ac0b0f
[ "Apache-2.0" ]
null
null
null
def write(message: str): print("org.allnix", message) def read() -> str: """Returns a string""" return "org.allnix"
16.25
32
0.6
0
0
0
0
0
0
0
0
46
0.353846
e6bfbff8f4c4eb14d73dd394e1c8390a8c552bf9
18,474
py
Python
metr-la/model/Double_C_STTN.py
happys2333/DL-2021-fall
e110d737d1a70c8238f2de3278e6aebce07c7a66
[ "Apache-2.0" ]
1
2022-02-11T12:24:08.000Z
2022-02-11T12:24:08.000Z
metr-la/model/Double_C_STTN.py
happys2333/DL-2021-fall
e110d737d1a70c8238f2de3278e6aebce07c7a66
[ "Apache-2.0" ]
null
null
null
metr-la/model/Double_C_STTN.py
happys2333/DL-2021-fall
e110d737d1a70c8238f2de3278e6aebce07c7a66
[ "Apache-2.0" ]
null
null
null
# from folder workMETRLA # MODEL CODE # -*- coding: utf-8 -*- """ Created on Mon Sep 28 10:28:06 2020 @author: wb """ import torch import torch.nn as nn import math # from GCN_models import GCN # from One_hot_encoder import One_hot_encoder import torch.nn.functional as F import numpy as np from sc...
36.654762
228
0.566742
16,178
0.829471
0
0
0
0
0
0
7,306
0.37459
e6c28ea190ebaccb28d1869f9e2a7ef2b94d001d
2,079
py
Python
tetrisanim3.py
daniel-chuang/tetris
518bd7b1fd80babc34a1da323b2f50d88c31ed4a
[ "MIT" ]
null
null
null
tetrisanim3.py
daniel-chuang/tetris
518bd7b1fd80babc34a1da323b2f50d88c31ed4a
[ "MIT" ]
null
null
null
tetrisanim3.py
daniel-chuang/tetris
518bd7b1fd80babc34a1da323b2f50d88c31ed4a
[ "MIT" ]
null
null
null
# animation for medium article from termcolor import colored import time import imageio import pyautogui pyautogui.FAILSAFE = True matrix = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0...
37.8
91
0.398268
0
0
0
0
0
0
0
0
120
0.05772
e6c3d9a702952ceabdb0472e2fb0bedbc90655bc
782
py
Python
inventories/models.py
destodasoftware/kately_api
89e4e80a93ebf8e5d2f2981d108ce5efde75d0dd
[ "MIT" ]
null
null
null
inventories/models.py
destodasoftware/kately_api
89e4e80a93ebf8e5d2f2981d108ce5efde75d0dd
[ "MIT" ]
10
2019-12-04T23:52:31.000Z
2022-02-10T08:34:15.000Z
inventories/models.py
destodasoftware/kately_api
89e4e80a93ebf8e5d2f2981d108ce5efde75d0dd
[ "MIT" ]
null
null
null
from django.db import models from products.models import Product from utils.models import Utility class Inventory(Utility): inventory_number = models.CharField(unique=True, max_length=100, blank=True, null=True) supplier = models.CharField(max_length=100, blank=True, null=True) user = models.ForeignKey('...
27.928571
91
0.751918
673
0.860614
0
0
0
0
0
0
11
0.014066
e6c4f83ee3a07eb68063b52c122a3a5c692004c3
276
py
Python
hierarchical_app/views.py
stephken/Hierarchical_assessment
537219903357d97d1354a8f262badba9729fb5e0
[ "MIT" ]
null
null
null
hierarchical_app/views.py
stephken/Hierarchical_assessment
537219903357d97d1354a8f262badba9729fb5e0
[ "MIT" ]
null
null
null
hierarchical_app/views.py
stephken/Hierarchical_assessment
537219903357d97d1354a8f262badba9729fb5e0
[ "MIT" ]
null
null
null
from django.shortcuts import render from hierarchical_app.models import Folder # Create your views here. def index_view(request): return render(request, 'index.html', {'welcome': "Welcome to Kens Hierarchical Data and You assessment", 'folders': Folder.objects.all()})
30.666667
142
0.764493
0
0
0
0
0
0
0
0
109
0.394928
e6c52e70a50ff76dae5fa9533aa70b45708e60ab
19,221
py
Python
bin/train_vit.py
ramizdundar/Chexpert
6a5f005f1df421538182ad8497725b78e6de29be
[ "Apache-2.0" ]
null
null
null
bin/train_vit.py
ramizdundar/Chexpert
6a5f005f1df421538182ad8497725b78e6de29be
[ "Apache-2.0" ]
null
null
null
bin/train_vit.py
ramizdundar/Chexpert
6a5f005f1df421538182ad8497725b78e6de29be
[ "Apache-2.0" ]
null
null
null
import sys import os import argparse import logging import json import time import subprocess from shutil import copyfile import numpy as np from sklearn import metrics from easydict import EasyDict as edict import torch from torch.utils.data import DataLoader import torch.nn.functional as F from torch.nn import DataP...
38.908907
78
0.542115
0
0
0
0
0
0
0
0
2,796
0.145466
e6c580f84de62db4b9d20acb6cce98ce88761586
262
py
Python
Sets/the capaint s room.py
AndreasGeiger/hackerrank-python
a436c207e62b32f70a6b4279bb641a3c4d90e112
[ "MIT" ]
null
null
null
Sets/the capaint s room.py
AndreasGeiger/hackerrank-python
a436c207e62b32f70a6b4279bb641a3c4d90e112
[ "MIT" ]
null
null
null
Sets/the capaint s room.py
AndreasGeiger/hackerrank-python
a436c207e62b32f70a6b4279bb641a3c4d90e112
[ "MIT" ]
null
null
null
groupSize = input() groups = list(map(int,input().split(' '))) tmpArray1 = set() tmpArray2 = set() for i in groups: if i in tmpArray1: tmpArray2.discard(i) else: tmpArray1.add(i) tmpArray2.add(i) for i in tmpArray2: print(i)
18.714286
42
0.603053
0
0
0
0
0
0
0
0
3
0.01145
e6c60d4fe212527f51e4cf099e6d8185c934aa4e
164
py
Python
tests/testsoma.py
gtmadureira/Python
38de6c56fec1d22662f30c1ff4d4f4f411678484
[ "MIT" ]
4
2020-04-10T05:48:46.000Z
2021-07-14T10:56:19.000Z
tests/testsoma.py
gtmadureira/Python
38de6c56fec1d22662f30c1ff4d4f4f411678484
[ "MIT" ]
1
2020-05-09T21:00:52.000Z
2020-05-09T21:00:52.000Z
tests/testsoma.py
gtmadureira/Python
38de6c56fec1d22662f30c1ff4d4f4f411678484
[ "MIT" ]
null
null
null
import unittest from hf_src.main import soma class TestSoma(unittest.TestCase): def test_retorno_soma_15_30(self): self.assertEqual(soma(15, 30), 45)
20.5
42
0.743902
116
0.707317
0
0
0
0
0
0
0
0
e6c6e8aaf6429afdb1edbeda8513d241f632fc14
6,867
py
Python
src/oictest/setup.py
rohe/oictest
f6f0800220befd5983b8cb34a5c984f98855d089
[ "Apache-2.0" ]
32
2015-01-02T20:15:17.000Z
2020-02-15T20:46:25.000Z
src/oictest/setup.py
rohe/oictest
f6f0800220befd5983b8cb34a5c984f98855d089
[ "Apache-2.0" ]
8
2015-02-23T19:48:53.000Z
2016-01-20T08:24:05.000Z
src/oictest/setup.py
rohe/oictest
f6f0800220befd5983b8cb34a5c984f98855d089
[ "Apache-2.0" ]
17
2015-01-02T20:15:22.000Z
2022-03-22T22:58:28.000Z
import copy import json from oic.utils.authn.client import CLIENT_AUTHN_METHOD from oic.utils.keyio import KeyJar from oic.utils.keyio import KeyBundle __author__ = 'roland' import logging logger = logging.getLogger(__name__) class OIDCError(Exception): pass def flow2sequence(operations, item): flow = o...
28.6125
80
0.553371
4,998
0.727829
0
0
879
0.128003
0
0
1,885
0.274501
e6c8040bae19150daa4afa3909164f31bd76f5c3
2,696
py
Python
HLTrigger/Configuration/python/HLT_75e33/modules/hltPFPuppiNoLep_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:24:46.000Z
2021-11-30T16:24:46.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltPFPuppiNoLep_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
4
2021-11-29T13:57:56.000Z
2022-03-29T06:28:36.000Z
HLTrigger/Configuration/python/HLT_75e33/modules/hltPFPuppiNoLep_cfi.py
PKUfudawei/cmssw
8fbb5ce74398269c8a32956d7c7943766770c093
[ "Apache-2.0" ]
1
2021-11-30T16:16:05.000Z
2021-11-30T16:16:05.000Z
import FWCore.ParameterSet.Config as cms hltPFPuppiNoLep = cms.EDProducer("PuppiProducer", DeltaZCut = cms.double(0.1), DeltaZCutForChargedFromPUVtxs = cms.double(0.2), EtaMaxCharged = cms.double(99999.0), EtaMaxPhotons = cms.double(2.5), EtaMinUseDeltaZ = cms.double(-1.0), MinPuppiWeight = cms...
37.971831
65
0.563427
0
0
0
0
0
0
0
0
90
0.033383
e6c80a99d05f2b6649c49c64c56164c81a82517f
29,212
py
Python
wizbin/build.py
RogueScholar/debreate
0abc168c51336b31ff87c61f84bc7bb6000e88f4
[ "MIT" ]
97
2016-09-16T08:44:04.000Z
2022-01-29T22:30:18.000Z
wizbin/build.py
RogueScholar/debreate
0abc168c51336b31ff87c61f84bc7bb6000e88f4
[ "MIT" ]
34
2016-09-20T00:42:45.000Z
2021-04-16T07:21:44.000Z
wizbin/build.py
RogueScholar/debreate
0abc168c51336b31ff87c61f84bc7bb6000e88f4
[ "MIT" ]
24
2016-09-16T08:44:56.000Z
2021-07-29T11:32:47.000Z
# -*- coding: utf-8 -*- ## \package wizbin.build # MIT licensing # See: docs/LICENSE.txt import commands, os, shutil, subprocess, traceback, wx from dbr.functions import FileUnstripped from dbr.language import GT from dbr.log import DebugEnabled from dbr.log import Logger from dbr.md5 import WriteMD5 from ...
28.251451
151
0.691736
27,425
0.938473
0
0
0
0
0
0
8,231
0.281662
e6c8ce8afe1fef7a0e2e19b44facdada82817d59
311
py
Python
__main__.py
maelstromdat/YOSHI
67e5176f24ff12e598025d4250b408da564f53d1
[ "Apache-2.0" ]
6
2017-05-07T09:39:18.000Z
2021-10-07T01:46:08.000Z
__main__.py
maelstromdat/YOSHI
67e5176f24ff12e598025d4250b408da564f53d1
[ "Apache-2.0" ]
1
2018-01-15T15:31:03.000Z
2018-01-15T15:31:03.000Z
__main__.py
maelstromdat/YOSHI
67e5176f24ff12e598025d4250b408da564f53d1
[ "Apache-2.0" ]
5
2020-02-28T04:16:16.000Z
2021-04-30T09:35:19.000Z
from YoshiViz import Gui if __name__ == '__main__': #file director gui = Gui.Gui() """ report_generator.\ generate_pdf_report(fileDirectory, repositoryName, tempCommunityType) """ print('the type of', repositoryName, 'is', tempCommunityType, '\n"check .\YoshiViz\output"')
25.916667
96
0.662379
0
0
0
0
0
0
0
0
186
0.598071
e6c97a9ee684956ae509733d7e8dff568dd9da66
623
py
Python
hpotter/src/lazy_init.py
LarsenClose/dr.hpotter
ef6199ab563a92f3e4916277dbde9217126f36a9
[ "MIT" ]
1
2021-08-15T09:24:20.000Z
2021-08-15T09:24:20.000Z
hpotter/src/lazy_init.py
LarsenClose/dr.hpotter
ef6199ab563a92f3e4916277dbde9217126f36a9
[ "MIT" ]
18
2021-02-01T21:58:20.000Z
2021-05-24T17:10:25.000Z
hpotter/src/lazy_init.py
LarsenClose/dr.hpotter
ef6199ab563a92f3e4916277dbde9217126f36a9
[ "MIT" ]
1
2021-06-19T12:49:54.000Z
2021-06-19T12:49:54.000Z
''' Wrap an __init__ function so that I don't have to assign all the parameters to a self. variable. ''' # https://stackoverflow.com/questions/5048329/python-decorator-for-automatic-binding-init-arguments import inspect from functools import wraps def lazy_init(init): ''' Create an annotation to assign all the p...
28.318182
99
0.686998
0
0
0
0
161
0.258427
0
0
308
0.494382
e6cb19760623f02a584f4187adb3490f5de6005b
781
py
Python
main.py
technojam/MLian
7632c5c7d4c44b1d87de9ab23c1ed7293962ca49
[ "MIT" ]
1
2021-12-18T19:54:45.000Z
2021-12-18T19:54:45.000Z
main.py
technojam/MLian
7632c5c7d4c44b1d87de9ab23c1ed7293962ca49
[ "MIT" ]
2
2021-12-18T19:50:08.000Z
2021-12-18T19:52:20.000Z
main.py
technojam/MLian
7632c5c7d4c44b1d87de9ab23c1ed7293962ca49
[ "MIT" ]
1
2022-03-01T14:13:27.000Z
2022-03-01T14:13:27.000Z
# def register_feed(): import os import cv2 path = '/UserImage' cam = cv2.VideoCapture(0) name=input("Name: ") cv2.namedWindow("test") img_counter = 0 while True: ret, frame = cam.read() if not ret: print("failed to grab frame") break else: cv2.imshow("test", frame) k = c...
22.314286
66
0.541613
0
0
0
0
0
0
0
0
255
0.326504
e6cb563badebdde1d425f141d7f04f5b497ea2ae
2,643
py
Python
models/train.py
Hiwyl/keras_cnn_finetune
f424302a72c8d05056a9af6f9b293003acb8398d
[ "MIT" ]
1
2019-09-30T01:07:03.000Z
2019-09-30T01:07:03.000Z
models/train.py
Hiwyl/keras_cnn_finetune
f424302a72c8d05056a9af6f9b293003acb8398d
[ "MIT" ]
null
null
null
models/train.py
Hiwyl/keras_cnn_finetune
f424302a72c8d05056a9af6f9b293003acb8398d
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- ''' @Author : lance @Email : [email protected] ''' import time from model_cx.inceptionresnet import inceptionresnet from model_cx.vgg19two import vgg19_all_lr from model_cx.inceptionv3 import inceptionv3 from model_cx.densenet import densenet from model_cx.nasnet import nas...
31.094118
90
0.623156
0
0
0
0
0
0
0
0
1,216
0.458695
e6cb633a5c540a02c577994bd8b8eebe64755249
3,275
py
Python
src/probnum/randprocs/markov/integrator/_preconditioner.py
alpiges/probnum
2e4153cb0df559984e09ec74487ef6c9d3f6d464
[ "MIT" ]
null
null
null
src/probnum/randprocs/markov/integrator/_preconditioner.py
alpiges/probnum
2e4153cb0df559984e09ec74487ef6c9d3f6d464
[ "MIT" ]
40
2021-04-12T07:56:29.000Z
2022-03-28T00:18:18.000Z
src/probnum/randprocs/markov/integrator/_preconditioner.py
alpiges/probnum
2e4153cb0df559984e09ec74487ef6c9d3f6d464
[ "MIT" ]
null
null
null
"""Coordinate changes in state space models.""" import abc try: # cached_property is only available in Python >=3.8 from functools import cached_property except ImportError: from cached_property import cached_property import numpy as np import scipy.special # for vectorised factorial from probnum impor...
34.114583
101
0.685802
2,058
0.628397
0
0
828
0.252824
0
0
1,447
0.441832
e6cc468eac9d6881bb54cbc2d585ee21f2641f3f
2,345
py
Python
allauth/socialaccount/providers/linkedin/provider.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2018-04-06T21:36:59.000Z
2018-04-06T21:36:59.000Z
allauth/socialaccount/providers/linkedin/provider.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
6
2020-06-05T18:44:19.000Z
2022-01-13T00:48:56.000Z
allauth/socialaccount/providers/linkedin/provider.py
mina-gaid/scp
38e1cd303d4728a987df117f666ce194e241ed1a
[ "MIT" ]
1
2022-02-01T17:19:28.000Z
2022-02-01T17:19:28.000Z
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth.provider import OAuthProvider from allauth.socialaccount import app_settings class LinkedInAccount(ProviderAccount): def get_profile_url(self): return se...
34.485294
78
0.594456
2,061
0.878891
0
0
0
0
0
0
490
0.208955
e6ccbdf212404d1bb840cdf710923204e7c1baa5
4,744
py
Python
game2048/myNew.py
CCTQL/2048-api
a75316a90e9a7c8c9171e39e1d1fc24cbac3ba1a
[ "Apache-2.0" ]
null
null
null
game2048/myNew.py
CCTQL/2048-api
a75316a90e9a7c8c9171e39e1d1fc24cbac3ba1a
[ "Apache-2.0" ]
null
null
null
game2048/myNew.py
CCTQL/2048-api
a75316a90e9a7c8c9171e39e1d1fc24cbac3ba1a
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets from torch.autograd import Variable from sklearn.model_selection import train_test_split import time import pandas as pd import numpy as np import csv batch_size = 128 NUM_EPOC...
27.421965
87
0.572513
1,816
0.379599
0
0
0
0
0
0
611
0.127717
e6cd191f4e7eeaa1d075d528c9e2ada0827d674f
4,618
py
Python
HW2/dbsys-hw2/Database.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW2/dbsys-hw2/Database.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
HW2/dbsys-hw2/Database.py
yliu120/dbsystem
d1b008f411929058a34a1dd2c44c9ee2cf899865
[ "Apache-2.0" ]
null
null
null
import json, io, os, os.path from Catalog.Schema import DBSchema, DBSchemaEncoder, DBSchemaDecoder from Query.Plan import PlanBuilder from Storage.StorageEngine import StorageEngine class Database: """ A top-level database engine class. For now, this primarily maintains a simple catalog, ...
31.848276
107
0.707016
4,346
0.9411
0
0
218
0.047207
0
0
939
0.203335
e6cda14ca91ba1556d929a926bfc87a16ab1f726
371
py
Python
tests/test_arr_add_value.py
dboyliao/TaipeiPy-pybind11-buffer-array
22e764d9fbf605950c0de10e3a341de36bc9bf89
[ "MIT" ]
1
2022-03-17T10:01:45.000Z
2022-03-17T10:01:45.000Z
tests/test_arr_add_value.py
dboyliao/TaipeiPy-pybind11-buffer-array
22e764d9fbf605950c0de10e3a341de36bc9bf89
[ "MIT" ]
null
null
null
tests/test_arr_add_value.py
dboyliao/TaipeiPy-pybind11-buffer-array
22e764d9fbf605950c0de10e3a341de36bc9bf89
[ "MIT" ]
null
null
null
import numpy as np import mylib def test_arr_add_value(): for _ in range(10): shape = np.random.randint(1, 10, size=np.random.randint(3, 10)).tolist() in_arr = np.random.rand(*shape).astype(np.double) ok = np.allclose(mylib.array_add_value(in_arr, np.pi), in_arr + np.pi) if not ok...
28.538462
80
0.638814
0
0
0
0
0
0
0
0
18
0.048518
e6ce056f0a84e4b655921e3c42a24774c81e07e4
619
py
Python
moderngl_window/resources/data.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
142
2019-11-11T23:14:28.000Z
2022-03-29T08:37:03.000Z
moderngl_window/resources/data.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
107
2019-10-31T20:31:45.000Z
2022-03-23T15:01:41.000Z
moderngl_window/resources/data.py
DavideRuzza/moderngl-window
e9debc6ed4a1899aa83c0da2320e03b0c2922b80
[ "MIT" ]
36
2019-12-12T16:14:10.000Z
2022-01-18T22:58:21.000Z
""" Registry general data files """ from typing import Any from moderngl_window.resources.base import BaseRegistry from moderngl_window.meta import DataDescription class DataFiles(BaseRegistry): """Registry for requested data files""" settings_attr = "DATA_LOADERS" def load(self, meta: DataDescription) ...
23.807692
99
0.678514
431
0.696284
0
0
0
0
0
0
315
0.508885
e6cea1b013c7155bc06629fbf31e017bbe14f52f
658
py
Python
tests/test_units/test_mapper_str.py
frewsxcv/routes
7690fc1016e56739855435fb54c96acccfa29009
[ "MIT" ]
1
2015-11-08T12:58:16.000Z
2015-11-08T12:58:16.000Z
tests/test_units/test_mapper_str.py
frewsxcv/routes
7690fc1016e56739855435fb54c96acccfa29009
[ "MIT" ]
null
null
null
tests/test_units/test_mapper_str.py
frewsxcv/routes
7690fc1016e56739855435fb54c96acccfa29009
[ "MIT" ]
null
null
null
import unittest from routes import Mapper class TestMapperStr(unittest.TestCase): def test_str(self): m = Mapper() m.connect('/{controller}/{action}') m.connect('entries', '/entries', controller='entry', action='index') m.connect('entry', '/entries/{id}', controller='entry',...
34.631579
91
0.582067
610
0.927052
0
0
0
0
0
0
230
0.349544
e6cebeadc3ade385a017e0f9c9ce037d2f450345
2,106
py
Python
quarkchain/tools/config_slave.py
HAOYUatHZ/pyquarkchain
b2c7c02e4415aa26917c2cbb5e7571c9fef16c5b
[ "MIT" ]
1
2018-10-23T05:48:42.000Z
2018-10-23T05:48:42.000Z
quarkchain/tools/config_slave.py
skji/pyquarkchain
090f9981b89b8873daaed36171a9bc9f27b10473
[ "MIT" ]
3
2020-03-12T18:09:40.000Z
2021-02-26T02:33:09.000Z
quarkchain/tools/config_slave.py
skji/pyquarkchain
090f9981b89b8873daaed36171a9bc9f27b10473
[ "MIT" ]
null
null
null
""" python config_slave.py 127.0.0.1 38000 38006 127.0.0.2 18999 18002 will generate 4 slave server configs accordingly. will be used in deployment automation to configure a cluster. usage: python config_slave.py <host1> <port1> <port2> <host2> <port3> ... """ import argparse import collections import json import ...
28.459459
111
0.597816
0
0
0
0
0
0
0
0
685
0.325261
e6cfd0714854720779418d4a80b8997e25e611e3
3,227
py
Python
python-function-files-dictionaries/week4-assignment1.py
MauMendes/python3-programming-specialization
8bd259f0ac559c6004baa0e759b6ec4bc25e1320
[ "MIT" ]
null
null
null
python-function-files-dictionaries/week4-assignment1.py
MauMendes/python3-programming-specialization
8bd259f0ac559c6004baa0e759b6ec4bc25e1320
[ "MIT" ]
null
null
null
python-function-files-dictionaries/week4-assignment1.py
MauMendes/python3-programming-specialization
8bd259f0ac559c6004baa0e759b6ec4bc25e1320
[ "MIT" ]
null
null
null
#1) Write a function, sublist, that takes in a list of numbers as the parameter. In the function, use a while loop to return a sublist of the input list. # The sublist should contain the same values of the original list up until it reaches the number 5 (it should not contain the number 5). def sublist(input_lst): ...
37.091954
168
0.664084
0
0
0
0
0
0
0
0
1,859
0.572528
e6d14bad54d6d5d7401435412b7045fd99c1fc0a
25,605
py
Python
saas/backend/apps/group/views.py
Canway-shiisa/bk-iam-saas
73c3770d9647c9cc8d515427cd1d053d8af9d071
[ "MIT" ]
null
null
null
saas/backend/apps/group/views.py
Canway-shiisa/bk-iam-saas
73c3770d9647c9cc8d515427cd1d053d8af9d071
[ "MIT" ]
null
null
null
saas/backend/apps/group/views.py
Canway-shiisa/bk-iam-saas
73c3770d9647c9cc8d515427cd1d053d8af9d071
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
36.216407
117
0.696348
22,810
0.850961
0
0
18,886
0.70457
0
0
4,015
0.149785
e6d16a8a093216b78956e0c3642e48c0a64c8778
5,188
py
Python
towers.py
fillest/7drl2013
96d291dce08a85d3871713c99f3a036de482d6ca
[ "MIT" ]
1
2015-05-19T08:12:49.000Z
2015-05-19T08:12:49.000Z
towers.py
fillest/7drl2013
96d291dce08a85d3871713c99f3a036de482d6ca
[ "MIT" ]
null
null
null
towers.py
fillest/7drl2013
96d291dce08a85d3871713c99f3a036de482d6ca
[ "MIT" ]
null
null
null
import util import libtcodpy as tcod import enemies import operator class Missile (util.Entity): sym = '*' color = tcod.white class BasicMissile (Missile): color = tcod.yellow class IceMissile (Missile): color = tcod.light_blue class AoeMissile (Missile): color = tcod.red class Building (util.Entity): sym ...
24.018519
92
0.664418
5,092
0.981496
0
0
0
0
0
0
282
0.054356
e6d351ce6a88251c74a7d12532c34a2b0ba6f8b1
795
py
Python
python/mandelbrot.py
lukasjoc/random
5be080b424f02491fb219634902fc0cc192aff6c
[ "0BSD" ]
1
2020-11-09T19:32:43.000Z
2020-11-09T19:32:43.000Z
python/mandelbrot.py
lukasjoc/random
5be080b424f02491fb219634902fc0cc192aff6c
[ "0BSD" ]
null
null
null
python/mandelbrot.py
lukasjoc/random
5be080b424f02491fb219634902fc0cc192aff6c
[ "0BSD" ]
null
null
null
#!/usr/bin/python3 from PIL import Image from numpy import complex, array from tqdm import tqdm import colorsys W=512 #W=142 def mandelbrot(x, y): def get_colors(i): color = 255 * array(colorsys.hsv_to_rgb(i / 255.0, 1.0, 0.5)) return tuple(color.astype(int)) c, cc = 0, complex(x, y) fo...
22.714286
69
0.52956
0
0
0
0
0
0
0
0
55
0.069182
e6d3938d66694895ff110b11b2560698b6722338
9,672
py
Python
tests/unit/commands/test_deploy.py
tonyreina/mlt
ee490ebdeb5aa6924dbfc0a067a0653754c470f4
[ "Apache-2.0" ]
1
2021-11-29T10:35:20.000Z
2021-11-29T10:35:20.000Z
tests/unit/commands/test_deploy.py
tonyreina/mlt
ee490ebdeb5aa6924dbfc0a067a0653754c470f4
[ "Apache-2.0" ]
null
null
null
tests/unit/commands/test_deploy.py
tonyreina/mlt
ee490ebdeb5aa6924dbfc0a067a0653754c470f4
[ "Apache-2.0" ]
1
2020-02-22T01:04:15.000Z
2020-02-22T01:04:15.000Z
# # -*- coding: utf-8 -*- # # Copyright (c) 2018 Intel 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 app...
34.791367
85
0.652089
0
0
0
0
1,240
0.128205
0
0
2,221
0.229632
e6d61cff66c7d3846169dfff6eca952a90b72ddd
1,940
py
Python
packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
5
2017-01-16T03:59:47.000Z
2020-06-23T02:54:19.000Z
packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
293
2015-10-29T17:45:52.000Z
2022-01-07T16:31:09.000Z
packages/mccomponents/tests/mccomponentsbpmodule/sample/Broadened_E_Q_Kernel_TestCase.py
mcvine/mcvine
42232534b0c6af729628009bed165cd7d833789d
[ "BSD-3-Clause" ]
1
2019-05-25T00:53:31.000Z
2019-05-25T00:53:31.000Z
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2006-2010 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
23.373494
80
0.491753
1,097
0.565464
0
0
0
0
0
0
566
0.291753
e6d6837b46baf712793275d6754e0dab0bf209be
602
py
Python
baseline/ns-vqa/reason/options/test_options.py
robinzixuan/Video-Question-Answering-HRI
ae68ffee1e6fc1eb13229e457e3b8e3bc3a11579
[ "MIT" ]
52
2019-12-04T22:26:56.000Z
2022-03-31T17:04:15.000Z
reason/options/test_options.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
6
2020-08-25T07:35:14.000Z
2021-09-09T04:57:09.000Z
reason/options/test_options.py
guxiwuruo/VCML
5a0f01a0baba238cef2f63131fccd412e3d7822b
[ "MIT" ]
5
2020-02-10T07:39:24.000Z
2021-06-23T02:53:42.000Z
from .base_options import BaseOptions class TestOptions(BaseOptions): """Test Option Class""" def __init__(self): super(TestOptions, self).__init__() self.parser.add_argument('--load_checkpoint_path', required=True, type=str, help='checkpoint path') self.parser.add_argument('--save_re...
43
107
0.699336
562
0.933555
0
0
0
0
0
0
161
0.267442
e6d751bc3f23bc91c2716777ca9ac12139d4b799
6,325
py
Python
Model_setup/NEISO_data_file/downsampling_generators_v1.py
keremakdemir/ISONE_UCED
11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9
[ "MIT" ]
null
null
null
Model_setup/NEISO_data_file/downsampling_generators_v1.py
keremakdemir/ISONE_UCED
11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9
[ "MIT" ]
null
null
null
Model_setup/NEISO_data_file/downsampling_generators_v1.py
keremakdemir/ISONE_UCED
11ce34c5ac5d34dcab771640f41c0d2ce4ab21f9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 24 18:45:34 2020 @author: kakdemi """ import pandas as pd #importing generators all_generators = pd.read_excel('generators2.xlsx', sheet_name='NEISO generators (dispatch)') #getting all oil generators all_oil = all_generators[all_generators['typ']=='oil'].copy() #gett...
47.201493
100
0.68253
0
0
0
0
0
0
0
0
1,524
0.240949
e6d7ef175de941485b4682919229774de09d58bb
307
py
Python
GUI1.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
3
2021-12-08T10:34:55.000Z
2022-01-17T21:02:40.000Z
GUI1.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
null
null
null
GUI1.py
otmanabdoun/IHM-Python
624e961c2f6966b98bf2c1bc4dd276b812954ba1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Nov 16 19:47:41 2021 @author: User """ import tkinter as tk racine = tk . Tk () label = tk . Label ( racine , text ="J ' adore Python !") bouton = tk . Button ( racine , text =" Quitter ", command = racine . destroy ) label . pack () bouton . pack ()
23.615385
80
0.579805
0
0
0
0
0
0
0
0
117
0.381107
e6d83253f8c1c21cef502fbe86bb43dc1f2be4ac
2,579
py
Python
app/routes/v1/endpoints/clickup.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/routes/v1/endpoints/clickup.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
app/routes/v1/endpoints/clickup.py
ertyurk/bugme
5a3ef3e089e0089055074c1c896c3fdc76600e93
[ "MIT" ]
null
null
null
from fastapi import APIRouter, status, Body, HTTPException from fastapi.encoders import jsonable_encoder from starlette.responses import JSONResponse from app.models.common import * from app.models.clickup import * from app.database.crud.clickup import * router = APIRouter() @router.get("/", response_description="C...
31.839506
88
0.6867
0
0
0
0
2,286
0.88639
1,865
0.723149
674
0.261342
e6d9219a9f3da8435460a41632a908023dbaa338
2,668
py
Python
cellfinder_core/main.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
5
2021-01-22T11:40:01.000Z
2021-09-10T07:16:05.000Z
cellfinder_core/main.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
38
2021-01-22T11:50:29.000Z
2022-03-11T11:04:06.000Z
cellfinder_core/main.py
npeschke/cellfinder-core
7a86a7d2c879c94da529ec6140f7e5c3f02bf288
[ "BSD-3-Clause" ]
12
2021-06-18T09:57:24.000Z
2022-03-06T13:03:18.000Z
""" N.B imports are within functions to prevent tensorflow being imported before it's warnings are silenced """ import os import logging from imlib.general.logging import suppress_specific_logs tf_suppress_log_messages = [ "multiprocessing can interact badly with TensorFlow" ] def main( signal_array, ba...
25.653846
78
0.664168
0
0
0
0
0
0
0
0
610
0.228636
e6d9b9257b4bb7dd1463fcb578829bc893311e39
1,378
py
Python
server.py
rezist-ro/rezistenta.tv
0c0dfa4842061baf2b575688588c5d77cfdba427
[ "MIT" ]
null
null
null
server.py
rezist-ro/rezistenta.tv
0c0dfa4842061baf2b575688588c5d77cfdba427
[ "MIT" ]
null
null
null
server.py
rezist-ro/rezistenta.tv
0c0dfa4842061baf2b575688588c5d77cfdba427
[ "MIT" ]
null
null
null
# coding=utf-8 import dateutil.parser import flask import json import os import time import urllib import yaml EPISODES = yaml.load(open("episodes.yaml").read()) app = flask.Flask(__name__, static_path="/assets", static_folder="assets") app.jinja_env.filters["strftime"] = \ ...
25.054545
68
0.592163
0
0
0
0
875
0.634978
0
0
237
0.171988
e6dbab8094c7c2aea35411b5ea545eabb3be8db0
273
py
Python
problem020.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
problem020.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
problem020.py
mazayus/ProjectEuler
64aebd5d80031fab2f0ef3c44c3a1118212ab613
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from functools import * import operator def factorial(number): assert number >= 1 return reduce(operator.mul, range(1, number+1)) def digits(number): yield from (int(digit) for digit in str(number)) print(sum(digits(factorial(100))))
19.5
52
0.70696
0
0
72
0.263736
0
0
0
0
22
0.080586
e6dce6f716b933d2a36c1e77462d5b0eb2326793
5,449
py
Python
transformer.py
ghafran/KerasPersonLab
fcd80b62247aee8bd1d41ff91e31c822950f561e
[ "MIT" ]
null
null
null
transformer.py
ghafran/KerasPersonLab
fcd80b62247aee8bd1d41ff91e31c822950f561e
[ "MIT" ]
null
null
null
transformer.py
ghafran/KerasPersonLab
fcd80b62247aee8bd1d41ff91e31c822950f561e
[ "MIT" ]
null
null
null
import numpy as np from math import cos, sin, pi import cv2 import random from config import config, TransformationParams from data_prep import map_coco_to_personlab class AugmentSelection: def __init__(self, flip=False, degree = 0., crop = (0,0), scale = 1.): self.flip = flip self.degree = degre...
41.915385
142
0.599193
5,277
0.968435
0
0
3,357
0.616076
0
0
1,195
0.219306
e6ddfeb2d231878165ecef38a814ab51e23d6978
412
py
Python
enan/__init__.py
mizuno-group/enan
3c9dbe60bebf98e384e858db56980928b5897775
[ "MIT" ]
null
null
null
enan/__init__.py
mizuno-group/enan
3c9dbe60bebf98e384e858db56980928b5897775
[ "MIT" ]
null
null
null
enan/__init__.py
mizuno-group/enan
3c9dbe60bebf98e384e858db56980928b5897775
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 25 15:46:32 2019 @author: tadahaya """ from .binom import BT from .connect import Connect from .fet import FET from .gsea import GSEA from .ssgsea import ssGSEA __copyright__ = 'Copyright (C) 2020 MIZUNO Tadahaya' __version__ = '1.0.3' __license__...
22.888889
56
0.662621
0
0
0
0
0
0
0
0
175
0.424757
e6de80977f40faa2f17ffea735e4529c245402b4
320
py
Python
app/helpers/__init__.py
Hacker-1202/Selfium
7e798c23c9f24aacab6f6a485d6355f1045bc65c
[ "MIT" ]
14
2021-11-05T11:27:25.000Z
2022-02-28T02:04:32.000Z
app/helpers/__init__.py
CssHammer/Selfium
7e798c23c9f24aacab6f6a485d6355f1045bc65c
[ "MIT" ]
2
2022-01-24T22:00:44.000Z
2022-01-31T13:13:27.000Z
app/helpers/__init__.py
CssHammer/Selfium
7e798c23c9f24aacab6f6a485d6355f1045bc65c
[ "MIT" ]
5
2022-01-02T13:33:17.000Z
2022-02-26T13:09:50.000Z
""" Selfium Helper Files ~~~~~~~~~~~~~~~~~~~ All Helper Files used in Selfium project; :copyright: (c) 2021 - Caillou and ZeusHay; :license: MIT, see LICENSE for more details. """ from .getUser import * from .getGuild import * from .params import * from .notify import * from .sendEmbed import * from .isStaff import *
21.333333
44
0.6875
0
0
0
0
0
0
0
0
179
0.559375
e6dee5544a49eb20feb56cbcfdbdf81cda6aae63
10,859
py
Python
NLP/UNIMO/src/finetune/visual_entailment.py
zhangyimi/Research
866f91d9774a38d205d6e9a3b1ee6293748261b3
[ "Apache-2.0" ]
1,319
2020-02-14T10:42:07.000Z
2022-03-31T15:42:18.000Z
NLP/UNIMO/src/finetune/visual_entailment.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
192
2020-02-14T02:53:34.000Z
2022-03-31T02:25:48.000Z
NLP/UNIMO/src/finetune/visual_entailment.py
green9989/Research
94519a72e7936c77f62a31709634b72c09aabf74
[ "Apache-2.0" ]
720
2020-02-14T02:12:38.000Z
2022-03-31T12:21:15.000Z
# Copyright (c) 2021 PaddlePaddle 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 app...
38.644128
115
0.634773
0
0
0
0
0
0
0
0
1,577
0.145225
e6df360b607f7a2f24c1ab6bf355ca5d23eb73f0
856
py
Python
src/records.py
oth-datapipeline/ingestion-scripts
48eecf63b0bf06200aa59be63de6839599ec51df
[ "Apache-2.0" ]
null
null
null
src/records.py
oth-datapipeline/ingestion-scripts
48eecf63b0bf06200aa59be63de6839599ec51df
[ "Apache-2.0" ]
4
2022-03-31T16:41:33.000Z
2022-03-31T22:58:11.000Z
src/records.py
oth-datapipeline/ingestion-scripts
48eecf63b0bf06200aa59be63de6839599ec51df
[ "Apache-2.0" ]
null
null
null
from faust import Record class RssFeed(Record, serializer='json'): feed_source: str title: str link: str published: str = None author: str = None summary: str = None published_parsed: list = None authors: list = None tags: list = None comments: str = None content: list = No...
18.608696
46
0.627336
819
0.956776
0
0
0
0
0
0
24
0.028037
e6df6e5deaed8c701c0957596bd842d1b7c2b65f
923
py
Python
leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py
vaishali-bariwal/Practice-Coding-Questions
747bfcb1cb2be5340daa745f2b9938f0ee87c9ac
[ "Unlicense" ]
25
2018-05-22T15:18:50.000Z
2022-01-08T02:41:46.000Z
leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py
vaishali-bariwal/Practice-Coding-Questions
747bfcb1cb2be5340daa745f2b9938f0ee87c9ac
[ "Unlicense" ]
1
2019-05-24T16:55:27.000Z
2019-05-24T16:55:27.000Z
leetcode/102-Medium-Binary-Tree-Level-Order-Traversal/answer.py
vaishali-bariwal/Practice-Coding-Questions
747bfcb1cb2be5340daa745f2b9938f0ee87c9ac
[ "Unlicense" ]
18
2018-09-20T15:39:26.000Z
2022-03-02T21:38:22.000Z
#!/usr/bin/python3 #------------------------------------------------------------------------------ # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def levelOrder(self, root): ...
26.371429
79
0.40195
567
0.614301
0
0
0
0
0
0
416
0.450704
e6dfce648d291a8622a4863d4137f07d19b0910a
320
py
Python
setup.py
shirayu/fitbit-dumper
21cee614e294d84204ad06d81dae9adf9853a135
[ "Apache-2.0" ]
null
null
null
setup.py
shirayu/fitbit-dumper
21cee614e294d84204ad06d81dae9adf9853a135
[ "Apache-2.0" ]
null
null
null
setup.py
shirayu/fitbit-dumper
21cee614e294d84204ad06d81dae9adf9853a135
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name="", version="0.01", packages=find_packages(), install_requires=[ "fitbit" ], dependency_links=[ ], extras_require={ "tests": [ "flake8", "autopep8", ] } )
15.238095
43
0.515625
0
0
0
0
0
0
0
0
63
0.196875
e6dfe1b17aaabced195ba909adb862f6d72a3bd2
214
py
Python
src/main.py
mtnmunuklu/SigmaToExcel
7d11fda19c0075122928ff5f1dbaab7775d30fe9
[ "MIT" ]
10
2021-05-26T11:24:27.000Z
2022-01-14T16:42:25.000Z
src/main.py
mtnmunuklu/SigmaToExcel
7d11fda19c0075122928ff5f1dbaab7775d30fe9
[ "MIT" ]
null
null
null
src/main.py
mtnmunuklu/SigmaToExcel
7d11fda19c0075122928ff5f1dbaab7775d30fe9
[ "MIT" ]
null
null
null
import sys sys.path.append("../") from src.app.sigma import SigmaConverter if __name__ == "__main__": sigmaconverter = SigmaConverter() sigmaconverter.read_from_file() sigmaconverter.write_to_excel()
21.4
40
0.742991
0
0
0
0
0
0
0
0
15
0.070093
e6e002827d5c227b7c36fcd9b7c86eda019324e4
449
py
Python
server/processes/migrations/0132_auto_20201108_0540.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
server/processes/migrations/0132_auto_20201108_0540.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
6
2021-11-01T01:35:40.000Z
2022-02-11T03:33:06.000Z
server/processes/migrations/0132_auto_20201108_0540.py
CloudReactor/task_manager
464ca74371064fabb9a21b1f5bacba30360932ab
[ "Fair" ]
null
null
null
# Generated by Django 2.2.14 on 2020-11-08 05:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('processes', '0131_auto_20201107_2316'), ] operations = [ migrations.RunSQL( "UPDATE processes_workflow SET run_environ...
24.944444
134
0.623608
357
0.7951
0
0
0
0
0
0
203
0.452116
e6e0a15a9ec84da1c3d497af8bd4ec8d117edbbd
4,291
py
Python
sparsely_lstmvae_main.py
pengkangzaia/usad
937a29c24632cfa31e0c626cd5b058b3af74ef94
[ "BSD-3-Clause" ]
null
null
null
sparsely_lstmvae_main.py
pengkangzaia/usad
937a29c24632cfa31e0c626cd5b058b3af74ef94
[ "BSD-3-Clause" ]
null
null
null
sparsely_lstmvae_main.py
pengkangzaia/usad
937a29c24632cfa31e0c626cd5b058b3af74ef94
[ "BSD-3-Clause" ]
null
null
null
from model.sparsely_lstm_vae import * import torch.utils.data as data_utils from sklearn import preprocessing from utils.eval_methods import * device = get_default_device() # Read data # normal = pd.read_csv("data/SWaT_Dataset_Normal_v1.csv") # , nrows=1000) normal = pd.read_csv("data/SWaT/SWaT_Dataset_Normal_v1.csv...
41.660194
152
0.723141
0
0
0
0
0
0
0
0
1,247
0.283602
e6e20c3e769f1a5e89011c872f7f4c1dc10d94e8
542
py
Python
src/demo/tasks.py
MexsonFernandes/AsynchronousTasks-Django-Celery-RabbitMQ-Redis
b64b31cec4ccf8e0dca2cfe9faba40da647b94f7
[ "Apache-2.0" ]
1
2019-01-17T09:16:06.000Z
2019-01-17T09:16:06.000Z
src/demo/tasks.py
MexsonFernandes/Asynchronous_Tasks-Django-Celery-RabbitMQ-Redis
b64b31cec4ccf8e0dca2cfe9faba40da647b94f7
[ "Apache-2.0" ]
7
2019-10-20T18:47:34.000Z
2022-02-10T07:42:18.000Z
src/demo/tasks.py
MexsonFernandes/AsynchronousTasks-Django-Celery-RabbitMQ-Redis
b64b31cec4ccf8e0dca2cfe9faba40da647b94f7
[ "Apache-2.0" ]
2
2019-10-20T18:47:59.000Z
2022-03-02T12:31:54.000Z
from __future__ import absolute_import, unicode_literals from dcs.celeryconf import app import time from django.core.mail import EmailMessage @app.task(bind=True, ignore_result=False, max_retries=3) def demo_task1(self): result = { 'val1': 1, 'val2': 2, 'val3': 3, } print("hellp") ...
25.809524
91
0.680812
0
0
0
0
396
0.730627
0
0
112
0.206642
e6e370a3613328a0a9c46c0e262a69e05fcae601
355
py
Python
pytorch_translate/models/__init__.py
Ayansam1152/translate
33d397fc25fb1072abd2975c77c602a2d031c6c4
[ "BSD-3-Clause" ]
748
2018-05-02T17:12:53.000Z
2022-03-26T04:44:44.000Z
pytorch_translate/models/__init__.py
Ayansam1152/translate
33d397fc25fb1072abd2975c77c602a2d031c6c4
[ "BSD-3-Clause" ]
352
2018-05-02T19:05:59.000Z
2022-02-25T16:54:27.000Z
pytorch_translate/models/__init__.py
Ayansam1152/translate
33d397fc25fb1072abd2975c77c602a2d031c6c4
[ "BSD-3-Clause" ]
193
2018-05-02T17:14:56.000Z
2022-02-24T21:10:56.000Z
#!/usr/bin/env python3 import importlib import os # automatically import any Python files in the models/ directory for file in sorted(os.listdir(os.path.dirname(__file__))): if file.endswith(".py") and not file.startswith("_"): model_name = file[: file.find(".py")] importlib.import_module("pytorc...
29.583333
73
0.712676
0
0
0
0
0
0
0
0
126
0.35493
e6e3cdee410d18c73bf42cae95012d7ea773e4ae
808
py
Python
app/config/secure.py
mapeimapei/awesome-flask-webapp
d0474f447a41e9432a14f9110989166c6595f0fa
[ "MIT" ]
2
2020-05-08T15:58:44.000Z
2020-05-09T19:36:34.000Z
app/config/secure.py
mapeimapei/awesome-flask-webapp
d0474f447a41e9432a14f9110989166c6595f0fa
[ "MIT" ]
null
null
null
app/config/secure.py
mapeimapei/awesome-flask-webapp
d0474f447a41e9432a14f9110989166c6595f0fa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = '带土' SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:[email protected]:3306/awesome' SECRET_KEY = '\x88D\xf09\x91\x07\x98\x89\x87\x96\xa0A\xc68\xf9\xecJ:U\x17\xc5V\xbe\x8b\xef\xd7\xd8\xd3\xe6\x98*4' # Email 配置 MAIL_SERVER = 'smtp.exmail.qq.com' MAIL_PORT = 465 MAIL_USE_SSL = True...
22.444444
113
0.762376
0
0
0
0
0
0
0
0
401
0.466279