hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
ad8b2d0ea0221f96e6e009e09186a0d67f3d1e7e
2,303
py
Python
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "BSD-3-Clause" ]
null
null
null
setup.py
HaaLeo/vague-requirements-scripts
e08b66aa6c0d17718bec1deb8c694d6b8237259b
[ "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. # ---------------------------------------------------------...
40.403509
133
0.605297
3c47a1b6f2794a78ae32d8f676d043a2d03d1fd2
5,683
py
Python
IDS_iot_run_v1.py
mikelhpdatke/KDD99-spark-ml
cbf2d5c89bc4f19336e45e0300041a2b8a792c91
[ "Apache-2.0" ]
null
null
null
IDS_iot_run_v1.py
mikelhpdatke/KDD99-spark-ml
cbf2d5c89bc4f19336e45e0300041a2b8a792c91
[ "Apache-2.0" ]
null
null
null
IDS_iot_run_v1.py
mikelhpdatke/KDD99-spark-ml
cbf2d5c89bc4f19336e45e0300041a2b8a792c91
[ "Apache-2.0" ]
null
null
null
from sklearn.model_selection import train_test_split from sklearn.preprocessing import MinMaxScaler from sklearn.neighbors import KNeighborsClassifier import pandas import argparse import json from time import time # from kafka import KafkaProducer col_names = ["duration", "protocol_type", "service", "flag", "src_bytes...
35.968354
301
0.672532
ceef212817587d2d2d2ee61c9056efc67ee8ad3a
26,670
py
Python
two_stream2.py
EddieMG/LateTemporalModeling3DCNN
94c87dc1d31d09bc310d0e735a2e55453976cb0d
[ "MIT" ]
144
2020-08-06T02:18:49.000Z
2022-03-16T23:03:56.000Z
two_stream2.py
EddieMG/LateTemporalModeling3DCNN
94c87dc1d31d09bc310d0e735a2e55453976cb0d
[ "MIT" ]
26
2020-08-12T01:07:48.000Z
2022-01-11T16:28:08.000Z
two_stream2.py
EddieMG/LateTemporalModeling3DCNN
94c87dc1d31d09bc310d0e735a2e55453976cb0d
[ "MIT" ]
55
2020-08-13T03:00:17.000Z
2022-03-28T06:38:08.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Dec 3 13:15:15 2019 @author: esat """ import os import time import argparse import shutil import numpy as np os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="0" import torch import torch.nn as nn import torch.nn.pa...
40.717557
159
0.582377
197be7c1293a37aac440c43fdbdf5ca232800c43
36,526
py
Python
Scripts/simulation/relationships/relationship_data.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/relationships/relationship_data.py
velocist/TS4CheatsInfo
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
[ "Apache-2.0" ]
null
null
null
Scripts/simulation/relationships/relationship_data.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\relationships\relationship_data.py # Compiled at: 2020-10-20 22:12:25 # Size of source mod 2**32: 47...
46.70844
210
0.656163
81b937bf0050a4751cd63c24a4552505c86e6837
5,551
py
Python
tests/bindings/test_dictionary.py
blueflamegames/godot-python
b4ae8ecda7f698e1d64eb0a9acc133094fb40843
[ "CC-BY-3.0" ]
1,323
2016-11-17T21:28:18.000Z
2022-03-31T17:42:37.000Z
tests/bindings/test_dictionary.py
blueflamegames/godot-python
b4ae8ecda7f698e1d64eb0a9acc133094fb40843
[ "CC-BY-3.0" ]
301
2017-01-02T17:49:13.000Z
2022-03-14T13:17:42.000Z
tests/bindings/test_dictionary.py
blueflamegames/godot-python
b4ae8ecda7f698e1d64eb0a9acc133094fb40843
[ "CC-BY-3.0" ]
131
2017-02-09T08:05:03.000Z
2022-03-15T06:44:34.000Z
import pytest import json from godot import Dictionary, Vector2, Array, GDString, Node, Resource, OS def test_base(): v = Dictionary() assert type(v) == Dictionary def test_equal(): arr = Dictionary() other = Dictionary() for key, value in [("a", 1), ("b", "foo"), ("c", OS), ("d", Vector2())]: ...
24.453744
99
0.533778
1a31ddbac48a1d99174e8eb35f3c24440ccd213f
7,100
py
Python
src/sdi_pandas/sample/sample.py
thhapke/DI_Pandas
7a9108007459260a30ea7ee404a76b42861c81c5
[ "MIT" ]
2
2020-01-02T19:54:46.000Z
2020-03-09T08:49:33.000Z
src/sdi_pandas/sample/sample.py
thhapke/DI_Pandas
7a9108007459260a30ea7ee404a76b42861c81c5
[ "MIT" ]
null
null
null
src/sdi_pandas/sample/sample.py
thhapke/DI_Pandas
7a9108007459260a30ea7ee404a76b42861c81c5
[ "MIT" ]
1
2020-03-28T22:53:16.000Z
2020-03-28T22:53:16.000Z
import sdi_utils.gensolution as gs import sdi_utils.set_logging as slog import sdi_utils.textfield_parser as tfp import sdi_utils.tprogress as tp import pandas as pd EXAMPLE_ROWS = 5 try: api except NameError: class api: class Message: def __init__(self,body = None,attributes = ""): ...
46.103896
191
0.614225
90bdce5ac514e3464417ec233b3f598612eeaa2d
1,144
py
Python
algorithms/bitonic_sort.py
marcpinet/sorting-visualizer
98cc6c07557d2fbf092c04e0de7ee2ffed224a11
[ "MIT" ]
null
null
null
algorithms/bitonic_sort.py
marcpinet/sorting-visualizer
98cc6c07557d2fbf092c04e0de7ee2ffed224a11
[ "MIT" ]
null
null
null
algorithms/bitonic_sort.py
marcpinet/sorting-visualizer
98cc6c07557d2fbf092c04e0de7ee2ffed224a11
[ "MIT" ]
null
null
null
def sort(array: list[int], low: int = 0, length: int = 0, direction: int = 1): if length == 0: length = len(array) def _comp_and_swap(array: list[int], index1: int, index2: int, direction: int): if (direction == 1 and array[index1] > array[index2]) or ( direction == 0 and array[...
42.37037
83
0.586538
8d19c874c6b49f7c1903a41aef3f737581b001c4
1,587
py
Python
app/reddit.py
huang363/CashMonkey
b31628360bdd8929cc69fd554f503684230fc1cd
[ "MIT" ]
null
null
null
app/reddit.py
huang363/CashMonkey
b31628360bdd8929cc69fd554f503684230fc1cd
[ "MIT" ]
null
null
null
app/reddit.py
huang363/CashMonkey
b31628360bdd8929cc69fd554f503684230fc1cd
[ "MIT" ]
null
null
null
import json import praw from app.postsStruc import Submission class Reddit(): def __init__(self, authFile, rdonly): self.authInfo = self.getAuthDataFromFile(authFile) if rdonly: self.initRedditRDONLY() else: self.initReddit() def getAuthDataFromFile(self, filenN...
31.117647
63
0.597353
75a2df6761f5d8f7498bd7a47d0380b2794691ba
1,724
py
Python
rn/numbers.py
vikneswaran20/rn
33e0bfaf58bb8a5ec54c6d010035693b35e9909d
[ "BSD-3-Clause" ]
null
null
null
rn/numbers.py
vikneswaran20/rn
33e0bfaf58bb8a5ec54c6d010035693b35e9909d
[ "BSD-3-Clause" ]
null
null
null
rn/numbers.py
vikneswaran20/rn
33e0bfaf58bb8a5ec54c6d010035693b35e9909d
[ "BSD-3-Clause" ]
null
null
null
import random import click class Numbers: def __init__(self, range, iteration, delimiter, unique, sort, precision): self.min = range[0] self.max = range[1] self.iteration = iteration self.delimiter = delimiter self.unique = unique self.sort = sort self.prec...
34.48
100
0.585267
0363381cb7e835baeb83bea5d9e522c4406f57ca
4,147
py
Python
chb/mips/opcodes/MIPSStoreWord.py
sipma/CodeHawk-Binary
3d4a0c2958266571f8f660cb48f29339b253c07f
[ "MIT" ]
null
null
null
chb/mips/opcodes/MIPSStoreWord.py
sipma/CodeHawk-Binary
3d4a0c2958266571f8f660cb48f29339b253c07f
[ "MIT" ]
null
null
null
chb/mips/opcodes/MIPSStoreWord.py
sipma/CodeHawk-Binary
3d4a0c2958266571f8f660cb48f29339b253c07f
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # CodeHawk Binary Analyzer # Author: Henny Sipma # ------------------------------------------------------------------------------ # The MIT License (MIT) # # Copyright (c) 2016-2020 Kestrel Technology LLC # Copyright (c) 2020-2021 Henny Si...
36.377193
80
0.636122
aeded9110a7fbe151042a44fe4bb6fb70de9ee70
1,031
py
Python
tests/test_contrib_boolean.py
shuternay/django-mutant
cf26ef94fc22c6cd2987880befc139c755dc9f3a
[ "MIT" ]
1
2021-04-15T02:58:09.000Z
2021-04-15T02:58:09.000Z
tests/test_contrib_boolean.py
shuternay/django-mutant
cf26ef94fc22c6cd2987880befc139c755dc9f3a
[ "MIT" ]
null
null
null
tests/test_contrib_boolean.py
shuternay/django-mutant
cf26ef94fc22c6cd2987880befc139c755dc9f3a
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.utils.translation import gettext_lazy as _ from mutant.contrib.boolean.models import ( BooleanFieldDefinition, NullBooleanFieldDefinition, ) from mutant.test.testcases import FieldDefinitionTestMixin from .utils import BaseModelDefinitionTestCase class Boolea...
33.258065
79
0.775946
58cf9336c8eba0da9e03f6623aa2a3ed793d2f19
7,188
py
Python
intersight/models/feedback_feedback_data.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/feedback_feedback_data.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
intersight/models/feedback_feedback_data.py
gumpcraca/intersight-python
780e6703c739f329084beacbbf2ad7a6a2e59b2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class FeedbackFeedbackData(object): """ NOTE: This ...
25.856115
124
0.555787
0ace4aec127febad373a27588d62540537ca616d
5,433
py
Python
interactive_sdk.py
greenkeytech/discovery-sdk
3c0357ef98a723f2eaa3f190435d230917d82eea
[ "Apache-2.0" ]
12
2019-08-13T14:08:17.000Z
2022-02-11T16:56:05.000Z
interactive_sdk.py
finos/greenkey-discovery-sdk
3c0357ef98a723f2eaa3f190435d230917d82eea
[ "Apache-2.0" ]
26
2019-08-01T14:06:21.000Z
2021-03-11T17:10:57.000Z
interactive_sdk.py
greenkeytech/discovery-sdk
3c0357ef98a723f2eaa3f190435d230917d82eea
[ "Apache-2.0" ]
5
2019-09-23T16:09:35.000Z
2021-03-31T23:24:31.000Z
#!/usr/bin/env python3 import os from collections import namedtuple import dotenv import pandas as pd import requests import streamlit as st from PIL import Image from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry from launch import wait_on_service from testing.discovery_interface import ...
26.89604
94
0.670164
ab6d33fac095864c4a20c21a0067ca9219317bd4
826
py
Python
tests/test_eml.py
EDIorg/pasta-upload-tweeter
c4c4c92bce9a63cc36d483353fd01fb99b69ed6b
[ "MIT" ]
1
2017-11-18T04:18:34.000Z
2017-11-18T04:18:34.000Z
tests/test_eml.py
servilla/pasta-upload-tweeter
c4c4c92bce9a63cc36d483353fd01fb99b69ed6b
[ "MIT" ]
null
null
null
tests/test_eml.py
servilla/pasta-upload-tweeter
c4c4c92bce9a63cc36d483353fd01fb99b69ed6b
[ "MIT" ]
1
2019-03-17T16:09:28.000Z
2019-03-17T16:09:28.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """:Mod: test_eml :Synopsis: :Author: servilla :Created: 12/30/17 """ import unittest import daiquiri from eml import Eml logger = daiquiri.getLogger(__name__) class TestEml(unittest.TestCase): eml = None @classmethod def setUpClass(cls): ...
17.574468
78
0.606538
488744f5417bbea23fd7c12f22333b7d2f3cf597
2,531
py
Python
lib/config.py
paulus99/sentinel
e2729d9563009c6901ae0807ddb2888b93542281
[ "MIT" ]
1
2019-04-08T01:45:23.000Z
2019-04-08T01:45:23.000Z
lib/config.py
paulus99/sentinel
e2729d9563009c6901ae0807ddb2888b93542281
[ "MIT" ]
null
null
null
lib/config.py
paulus99/sentinel
e2729d9563009c6901ae0807ddb2888b93542281
[ "MIT" ]
1
2019-04-15T03:48:50.000Z
2019-04-15T03:48:50.000Z
""" Set up defaults and read sentinel.conf """ import sys import os from tincoin_config import TincoinConfig default_sentinel_config = os.path.normpath( os.path.join(os.path.dirname(__file__), '../sentinel.conf') ) sentinel_config_file = os.environ.get('SENTINEL_CONFIG', default_sentinel_config) sentinel_cfg =...
29.776471
97
0.680363
8bc27f4c920ffe6fb759846c18c151f62b9f476b
2,552
py
Python
extras/apps/ngs_roi/tool_shed/ngs_roi/app.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
2
2016-10-28T07:43:39.000Z
2018-01-02T17:54:33.000Z
extras/apps/ngs_roi/tool_shed/ngs_roi/app.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
10
2015-03-02T16:45:39.000Z
2015-06-23T14:02:13.000Z
extras/apps/ngs_roi/tool_shed/ngs_roi/app.py
weese/seqan
1acb1688969c7b61497f2328af54b4d11228a484
[ "BSD-3-Clause" ]
2
2015-06-17T11:44:36.000Z
2015-11-20T13:09:16.000Z
#!/usr/bin/env python """Support code for writing the NGS ROI report generation apps.""" __author__ = 'Manuel Holtgrewe <manuel.holtgrewe@fu-berlin.de>' __copyright__ = 'Copyring 2013, Freie Universitaet Berlin' __license__ = 'BSD 3-clause' import os import os.path import subprocess class App(object): """...
37.529412
132
0.581897
c817c124851fb452a0339eb71c07ceef02d49957
17,536
py
Python
app.py
Abarnakumar28/crop_recommendation
8ce0cd07d8c032814d06f2bb96f8b39bf66d5fa2
[ "MIT" ]
null
null
null
app.py
Abarnakumar28/crop_recommendation
8ce0cd07d8c032814d06f2bb96f8b39bf66d5fa2
[ "MIT" ]
null
null
null
app.py
Abarnakumar28/crop_recommendation
8ce0cd07d8c032814d06f2bb96f8b39bf66d5fa2
[ "MIT" ]
null
null
null
import os import dash import pickle import base64 import numpy as np import pandas as pd from dash import dcc from dash import html import plotly.graph_objects as go from dash.dependencies import Input, Output, State from scipy.spatial.distance import cdist CROP_IMG_PATH = 'crops' DATA_PATH = 'Crop_recomm...
50.682081
202
0.369469
6e801f37ce8a3508a5a618a8209c91ae236aa915
27,347
py
Python
xclim/sdba/utils.py
fossabot/xclim
31fbdce6545d29e8a762b64b880e04eeb601f9eb
[ "Apache-2.0" ]
null
null
null
xclim/sdba/utils.py
fossabot/xclim
31fbdce6545d29e8a762b64b880e04eeb601f9eb
[ "Apache-2.0" ]
null
null
null
xclim/sdba/utils.py
fossabot/xclim
31fbdce6545d29e8a762b64b880e04eeb601f9eb
[ "Apache-2.0" ]
null
null
null
""" sdba utilities -------------- """ from typing import Callable, List, Mapping, Optional, Tuple, Union from warnings import warn import numpy as np import xarray as xr from boltons.funcutils import wraps from dask import array as dsk from scipy.interpolate import griddata, interp1d from xclim.core.calendar import _...
32.135135
123
0.604929
32f56a796468a9d72dd3d75c68eecbd2b3367505
1,164
py
Python
pcdet/models/detectors/caddn.py
MartinHahner/OpenPCDet
9375908d30ee5023355ebdd77041d7f2cbfd7ec8
[ "Apache-2.0" ]
1,984
2020-07-01T05:13:02.000Z
2022-03-31T20:34:00.000Z
pcdet/models/detectors/caddn.py
lzypoiuy/OpenPCDet
c9d31d393acaae34d74cb03bd6ccff9976d3d1f3
[ "Apache-2.0" ]
748
2020-07-01T07:04:58.000Z
2022-03-31T07:38:51.000Z
pcdet/models/detectors/caddn.py
lzypoiuy/OpenPCDet
c9d31d393acaae34d74cb03bd6ccff9976d3d1f3
[ "Apache-2.0" ]
764
2020-07-01T12:19:13.000Z
2022-03-31T11:19:17.000Z
from .detector3d_template import Detector3DTemplate class CaDDN(Detector3DTemplate): def __init__(self, model_cfg, num_class, dataset): super().__init__(model_cfg=model_cfg, num_class=num_class, dataset=dataset) self.module_list = self.build_networks() def forward(self, batch_dict): f...
29.846154
83
0.613402
5b9f1ef356112311cba372e74b234645d54a80d8
994
py
Python
openstack_dashboard/dashboards/admin/overview/urls.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/overview/urls.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/admin/overview/urls.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
34.275862
78
0.745473
13225afa79bb35ebbf8df34e33dd62852f513da9
39,385
py
Python
geotrek/core/tests/test_topology.py
claudep/Geotrek
620799cc2667c3b203ef92de6ec35008111fb592
[ "BSD-2-Clause" ]
50
2016-10-19T23:01:21.000Z
2022-03-28T08:28:34.000Z
geotrek/core/tests/test_topology.py
claudep/Geotrek
620799cc2667c3b203ef92de6ec35008111fb592
[ "BSD-2-Clause" ]
1,422
2016-10-27T10:39:40.000Z
2022-03-31T13:37:10.000Z
geotrek/core/tests/test_topology.py
claudep/Geotrek
620799cc2667c3b203ef92de6ec35008111fb592
[ "BSD-2-Clause" ]
46
2016-10-27T10:59:10.000Z
2022-03-22T15:55:56.000Z
import json import math from unittest import skipIf from django.test import TestCase from django.conf import settings from django.db import connections, DEFAULT_DB_ALIAS from django.contrib.gis.geos import Point, LineString from geotrek.common.utils import dbnow from geotrek.core.factories import (PathFactory, PathAg...
43.09081
133
0.568643
f9cf6fc7a41fc9fa7bd3705301a306a7ea0c2395
1,844
py
Python
py_pdf_term/endtoend/_endtoend/caches/method/base.py
kumachan-mis/py-pdf-term
282505826ce8c626003e753068d15738d772ce46
[ "MIT" ]
null
null
null
py_pdf_term/endtoend/_endtoend/caches/method/base.py
kumachan-mis/py-pdf-term
282505826ce8c626003e753068d15738d772ce46
[ "MIT" ]
1
2021-08-02T13:02:12.000Z
2021-08-02T13:02:12.000Z
py_pdf_term/endtoend/_endtoend/caches/method/base.py
kumachan-mis/py-pdf-term
282505826ce8c626003e753068d15738d772ce46
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from typing import Any, Callable, Dict, Generic, List, Union from py_pdf_term.methods import MethodTermRanking from py_pdf_term.methods._methods.rankingdata import RankingData from ...configs import MethodLayerConfig class BaseMethodLayerRankingCache(metaclass=ABCMeta): d...
30.229508
78
0.676247
b38ddf0503913168d0ac4d46b50bdc2a6a95ad32
2,663
py
Python
contrib/play/esnames.py
Rosencrantz/aleph
47ac45fa72607e1ab16c7c30690013a7d00be116
[ "MIT" ]
1,213
2017-03-15T08:10:52.000Z
2022-03-29T13:57:44.000Z
contrib/play/esnames.py
Rosencrantz/aleph
47ac45fa72607e1ab16c7c30690013a7d00be116
[ "MIT" ]
1,374
2017-03-14T18:23:10.000Z
2022-03-31T18:42:20.000Z
contrib/play/esnames.py
Rosencrantz/aleph
47ac45fa72607e1ab16c7c30690013a7d00be116
[ "MIT" ]
217
2017-03-17T12:04:22.000Z
2022-03-20T11:17:16.000Z
import os import json import redis import requests import normality from collections import defaultdict conn = redis.Redis(decode_responses=True) def name_tokens(name): name = normality.normalize(name, latinize=True) # if len(name) > 2: # return [name] # return [] return [n for n in name.spli...
26.366337
56
0.59294
43d923207aacd51ca895dc209815396ca1361d22
7,664
py
Python
contrib/devtools/update-translations.py
pugmagician/primestone
423ffe90abaafb7660a71c1c6d77a8a961624d8c
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
pugmagician/primestone
423ffe90abaafb7660a71c1c6d77a8a961624d8c
[ "MIT" ]
null
null
null
contrib/devtools/update-translations.py
pugmagician/primestone
423ffe90abaafb7660a71c1c6d77a8a961624d8c
[ "MIT" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Run this script from the root of the repository to update all translations from transifex. It will do the following...
37.568627
124
0.629567
2418899fdcc7282df838a35f1455b3bd97cc8447
1,982
py
Python
gym_sudoku/envs/solver.py
vrundha/sudoku
adf1a8cf347cf58be3620e6a520cbe25036c2a55
[ "MIT" ]
null
null
null
gym_sudoku/envs/solver.py
vrundha/sudoku
adf1a8cf347cf58be3620e6a520cbe25036c2a55
[ "MIT" ]
null
null
null
gym_sudoku/envs/solver.py
vrundha/sudoku
adf1a8cf347cf58be3620e6a520cbe25036c2a55
[ "MIT" ]
null
null
null
from gym_sudoku.envs.sudoku import Sudoku class Solver: """ Class to solve sudoku with backtracking """ def __init__(self, sudoku: Sudoku): """ :param sudoku: """ self.sudoku = sudoku def solve(self, state: Sudoku, i=0, j=0): """ :param st...
28.314286
100
0.462664
097287cdf9aaa75eb6346597b215bcb35a91b499
534
py
Python
recipes/paho-mqtt-c/all/test_package/conanfile.py
flexferrum/conan-center-index
5d0fb36e1e0b757e6deebc330c34d07dc1a5a7a5
[ "MIT" ]
3
2020-04-16T15:01:33.000Z
2022-01-13T08:05:47.000Z
recipes/paho-mqtt-c/all/test_package/conanfile.py
flexferrum/conan-center-index
5d0fb36e1e0b757e6deebc330c34d07dc1a5a7a5
[ "MIT" ]
33
2020-02-18T15:54:50.000Z
2022-03-28T08:54:10.000Z
recipes/paho-mqtt-c/all/test_package/conanfile.py
GavinNL/conan-center-index
0ae829a362c1cc6a20d97e023ca0aafc805797c3
[ "MIT" ]
8
2020-03-06T14:38:18.000Z
2022-03-28T08:41:15.000Z
from conans import ConanFile, CMake, tools import os class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" def build(self): cmake = CMake(self) cmake.definitions["BUILD_ASYNC"] = self.options["paho-mqtt-c"].asynchronous cmake.conf...
31.411765
83
0.642322
08307ac8ed67efcebeaf758901f92cddfaf49ab6
9,583
py
Python
rnnmorph/batch_generator.py
AliceCyber/rnnmorph
adf687c7590f8d2bc3abba56850878e33fc4c3c0
[ "Apache-2.0" ]
124
2017-10-06T17:29:39.000Z
2022-03-02T09:06:35.000Z
rnnmorph/batch_generator.py
AliceCyber/rnnmorph
adf687c7590f8d2bc3abba56850878e33fc4c3c0
[ "Apache-2.0" ]
4
2019-02-12T16:51:39.000Z
2021-10-14T12:48:00.000Z
rnnmorph/batch_generator.py
AliceCyber/rnnmorph
adf687c7590f8d2bc3abba56850878e33fc4c3c0
[ "Apache-2.0" ]
21
2017-10-14T18:46:05.000Z
2022-03-08T18:16:43.000Z
# -*- coding: utf-8 -*- # Автор: Гусев Илья # Описание: Генератор батчей с определёнными параметрами. from typing import List, Tuple from collections import namedtuple import nltk import numpy as np from pymorphy2 import MorphAnalyzer from russian_tagsets import converters from rnnmorph.data_preparation.word_vocabul...
45.20283
120
0.600856
ac638053101c0a2037745a2a6ce42a23b072b505
10,400
py
Python
gqnlib/slim_generator.py
rnagumo/gqnlib
96bd8499f90c00b29817f71e6380bc622ce78479
[ "MIT" ]
1
2020-08-13T01:54:52.000Z
2020-08-13T01:54:52.000Z
gqnlib/slim_generator.py
rnagumo/gqnlib
96bd8499f90c00b29817f71e6380bc622ce78479
[ "MIT" ]
null
null
null
gqnlib/slim_generator.py
rnagumo/gqnlib
96bd8499f90c00b29817f71e6380bc622ce78479
[ "MIT" ]
1
2021-01-03T16:02:55.000Z
2021-01-03T16:02:55.000Z
"""Generator for SLIM (Spatial Language Integrating Model).""" from typing import Tuple import torch from torch import nn, Tensor from .utils import kl_divergence_normal from .generation import Conv2dLSTMCell class LatentEncoder(nn.Module): """Latent encoder p(z|x). Args: x_channel (int): Number ...
39.694656
79
0.575
6b9001e01313f90e7834d5711e2ed640ac875b8e
14,791
py
Python
build_tools/testing/gen_test_matrix.py
smit-hinsu/iree
a385d311b701cdc06cb825000ddb34c8a11c6eef
[ "Apache-2.0" ]
1,163
2019-09-13T19:10:42.000Z
2022-03-31T05:44:10.000Z
build_tools/testing/gen_test_matrix.py
okkwon/iree
e32cc76952d37a14f73c8a7da889edf47fcc2fce
[ "Apache-2.0" ]
3,346
2019-09-23T04:16:36.000Z
2022-03-31T23:56:57.000Z
build_tools/testing/gen_test_matrix.py
okkwon/iree
e32cc76952d37a14f73c8a7da889edf47fcc2fce
[ "Apache-2.0" ]
311
2019-09-19T02:34:23.000Z
2022-03-28T16:06:57.000Z
#!/usr/bin/env python # Copyright 2021 The IREE Authors # # Licensed under the Apache License v2.0 with LLVM Exceptions. # See https://llvm.org/LICENSE.txt for license information. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception """Generates runners for a matrix of test configurations. This tool is used for ...
30.943515
92
0.661078
5aaab145c50bce4d889dc3a0aa9158362c4e3578
53,619
py
Python
trac/ticket/tests/model.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
trac/ticket/tests/model.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
trac/ticket/tests/model.py
exocad/exotrac
c8207efff78d4736745e975abaa359e8bb21ffdb
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2013 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consi...
40.254505
80
0.604711
073f6fefff1548333ceab975dcde109e5403a273
614
py
Python
third_party/typ/typ/version.py
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/typ/typ/version.py
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
third_party/typ/typ/version.py
hefen1/chromium
52f0b6830e000ca7c5e9aa19488af85be792cc88
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2020-04-04T13:34:56.000Z
2020-11-04T07:17:52.000Z
# Copyright 2014 Google Inc. 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 ag...
38.375
74
0.757329
14012837925aba224dee38262db83a179ce1818f
14,863
py
Python
Lib/email/_parseaddr.py
deadsnakes/python2.4
f493d5415b662e99a73d017bcafe2148c5bc8fb5
[ "PSF-2.0" ]
33
2015-02-16T02:52:08.000Z
2022-02-18T08:46:32.000Z
lib/IPCE/Lib/email/_parseaddr.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
1
2017-09-09T18:50:23.000Z
2020-12-29T18:13:56.000Z
lib/IPCE/Lib/email/_parseaddr.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
31
2015-02-07T16:20:24.000Z
2022-02-23T15:02:43.000Z
# Copyright (C) 2002-2006 Python Software Foundation # Contact: email-sig@python.org """Email address parsing code. Lifted directly from rfc822.py. This should eventually be rewritten. """ import time SPACE = ' ' EMPTYSTRING = '' COMMASPACE = ', ' # Parse a date field _monthnames = ['jan', 'feb', 'mar', 'apr', 'm...
31.422833
78
0.526542
5f5f06a95307d2c56c040e7b5c832c6b686ab7ef
624
py
Python
room_booking_project/room_booking/urls.py
alsanuz/room_booking_app
12acc8fc0e5d9a3abe23eca1ea1d4ee88e732ccf
[ "Unlicense" ]
null
null
null
room_booking_project/room_booking/urls.py
alsanuz/room_booking_app
12acc8fc0e5d9a3abe23eca1ea1d4ee88e732ccf
[ "Unlicense" ]
null
null
null
room_booking_project/room_booking/urls.py
alsanuz/room_booking_app
12acc8fc0e5d9a3abe23eca1ea1d4ee88e732ccf
[ "Unlicense" ]
null
null
null
from django.conf.urls import url from views import * urlpatterns = [ url(r'^$', RoomList.as_view(), name='room-list'), url(r'^confirm-booking/(?P<pk>\d+)/(?P<start_date>\d{4}-\d{2}-\d{2})/(?P<end_date>\d{4}-\d{' r'2}-\d{2})/(?P<amount_people>\d+)/(?P<total_booking_days>\d+)/$', ConfirmBooking.as_view(...
39
100
0.615385
36428875ccb435950e8879e3f922ac4ecf2e3f16
100,609
py
Python
dulwich/tests/test_porcelain.py
jessecureton-aurora/dulwich
e9ba8f854eaed54b7e90b7e58869705147a68404
[ "Apache-2.0" ]
null
null
null
dulwich/tests/test_porcelain.py
jessecureton-aurora/dulwich
e9ba8f854eaed54b7e90b7e58869705147a68404
[ "Apache-2.0" ]
null
null
null
dulwich/tests/test_porcelain.py
jessecureton-aurora/dulwich
e9ba8f854eaed54b7e90b7e58869705147a68404
[ "Apache-2.0" ]
null
null
null
# test_porcelain.py -- porcelain tests # Copyright (C) 2013 Jelmer Vernooij <jelmer@jelmer.uk> # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute it a...
35.727628
141
0.606705
d65e31a66b9b91376d1d4aa5232ebd38559c7f06
12,836
py
Python
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_ratios_price_free_cash_flow.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_ratios_price_free_cash_flow.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/StocksAPIforDigitalPortals/v2/fds/sdk/StocksAPIforDigitalPortals/model/stock_notation_screener_search_data_ratios_price_free_cash_flow.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Prime Developer Trial No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.S...
47.895522
239
0.615223
fd1ecede9fdfc14f41bb7300ce6d8417207f82e0
959
py
Python
app/inventory/migrations/0001_initial.py
borismnq/easy-inventory
fb6f53d5cdd7b1386b3c2a3d9b8795f3e9b636b3
[ "MIT" ]
2
2020-12-10T05:03:15.000Z
2020-12-10T05:03:27.000Z
app/inventory/migrations/0001_initial.py
borismnq/easy-inventory
fb6f53d5cdd7b1386b3c2a3d9b8795f3e9b636b3
[ "MIT" ]
null
null
null
app/inventory/migrations/0001_initial.py
borismnq/easy-inventory
fb6f53d5cdd7b1386b3c2a3d9b8795f3e9b636b3
[ "MIT" ]
1
2020-12-10T05:15:22.000Z
2020-12-10T05:15:22.000Z
# Generated by Django 3.1.4 on 2020-12-05 19:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Product", fields=[ ( "id", ...
29.060606
82
0.478624
c7fc7157d85ba6e9f63fae0ad409c35d11593ab2
558
py
Python
prev_exams_and_ans/2019ccc/q3_cold_compress/cold_compress.py
Yueleng/ccc_cco_material
e064a76a8bdc07cbfdba3ec8f6849cc1b90317e0
[ "MIT" ]
null
null
null
prev_exams_and_ans/2019ccc/q3_cold_compress/cold_compress.py
Yueleng/ccc_cco_material
e064a76a8bdc07cbfdba3ec8f6849cc1b90317e0
[ "MIT" ]
null
null
null
prev_exams_and_ans/2019ccc/q3_cold_compress/cold_compress.py
Yueleng/ccc_cco_material
e064a76a8bdc07cbfdba3ec8f6849cc1b90317e0
[ "MIT" ]
null
null
null
num_of_lines = int(input()) def cold_compress(cum, rs): N = len(cum) # exit if (rs == ""): output_string = "" for s in cum: output_string += str(s) + " " return output_string # iteration if (N >= 2 and cum[N-1] == rs[0]): cnt = cum[N-2] cnt += 1 ...
21.461538
41
0.503584
28260e33f0ea245d305422017e6b6dbae7ee6831
9,024
py
Python
main.py
OldedTester/simpy_simu
30edffe5180cb46b176c667c96493318072bdb5f
[ "MIT" ]
1
2021-04-18T14:36:25.000Z
2021-04-18T14:36:25.000Z
main.py
OldedTester/simpy_simu
30edffe5180cb46b176c667c96493318072bdb5f
[ "MIT" ]
null
null
null
main.py
OldedTester/simpy_simu
30edffe5180cb46b176c667c96493318072bdb5f
[ "MIT" ]
null
null
null
import simpy import random import matplotlib.pyplot as plt # Use simpy to simulate toyota automobile's production class Toyota_Factory: def __init__(self, env): # input process self.machinery = simpy.Container(env, capacity=machinery_capacity, init=initial_machinery) self.machine...
41.018182
185
0.600842
50586836662157f0c1d68a7e8acc3a6f823a27a7
71,786
py
Python
rss/rss.py
kaogurai/aikaterna
3419e489b0ebc148e41e7f945e504c4ada2e8ee8
[ "Apache-2.0" ]
98
2017-09-12T01:52:17.000Z
2022-03-17T16:43:01.000Z
rss/rss.py
kaogurai/aikaterna
3419e489b0ebc148e41e7f945e504c4ada2e8ee8
[ "Apache-2.0" ]
147
2016-12-01T04:39:05.000Z
2022-02-13T02:20:14.000Z
rss/rss.py
kaogurai/aikaterna
3419e489b0ebc148e41e7f945e504c4ada2e8ee8
[ "Apache-2.0" ]
160
2016-12-01T20:19:44.000Z
2022-03-30T10:32:41.000Z
import asyncio import aiohttp from bs4 import BeautifulSoup import copy import datetime import discord import feedparser import imghdr import io import logging import re import time from typing import Optional from types import MappingProxyType, SimpleNamespace from urllib.parse import urlparse from redbot.core import...
44.532258
164
0.59279
02a215ee0948e817c240ed46cd01a6eadf7b38ca
17,867
py
Python
anuga/abstract_2d_finite_volumes/file_function.py
GeoscienceAustralia/anuga_core
372e21a5c1c88867437374c851f1ff629bd3dab3
[ "Python-2.0", "OLDAP-2.7" ]
136
2015-05-07T05:47:43.000Z
2022-02-16T03:07:40.000Z
anuga/abstract_2d_finite_volumes/file_function.py
GeoscienceAustralia/anuga_core
372e21a5c1c88867437374c851f1ff629bd3dab3
[ "Python-2.0", "OLDAP-2.7" ]
184
2015-05-03T09:27:54.000Z
2021-12-20T04:22:48.000Z
anuga/abstract_2d_finite_volumes/file_function.py
GeoscienceAustralia/anuga_core
372e21a5c1c88867437374c851f1ff629bd3dab3
[ "Python-2.0", "OLDAP-2.7" ]
70
2015-03-18T07:35:22.000Z
2021-11-01T07:07:29.000Z
#!/usr/bin/env python """File function Takes a file as input, and returns it as a mathematical function. For example, you can load an arbitrary 2D heightfield mesh, and treat it as a function like so: F = file_function('my_mesh.sww', ...) evaluated_point = F(x, y) Values will be interpolated across the surface of the...
36.612705
79
0.581631
4fe13887e1c905dc3b57e57301f8f1de69c10687
31,645
py
Python
test/orm/inheritance/test_poly_loading.py
lvillis/sqlalchemy
889d05c444264bf1b6d11386459d3360cc529d27
[ "MIT" ]
null
null
null
test/orm/inheritance/test_poly_loading.py
lvillis/sqlalchemy
889d05c444264bf1b6d11386459d3360cc529d27
[ "MIT" ]
null
null
null
test/orm/inheritance/test_poly_loading.py
lvillis/sqlalchemy
889d05c444264bf1b6d11386459d3360cc529d27
[ "MIT" ]
null
null
null
from sqlalchemy import exc from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import select from sqlalchemy import String from sqlalchemy import testing from sqlalchemy.orm import backref from sqlalchemy.orm import defaultload from sqlalchemy.orm import joinedload from sqlalchemy.orm impor...
36.668598
79
0.510728
f07b96226eafcca2debd0b7abee3415bb9d2b80b
15,357
py
Python
tlslite/utils/codec.py
t184256/tlslite-ng
cef7d75f79fd746c001b339399257098a00b46be
[ "Unlicense" ]
null
null
null
tlslite/utils/codec.py
t184256/tlslite-ng
cef7d75f79fd746c001b339399257098a00b46be
[ "Unlicense" ]
null
null
null
tlslite/utils/codec.py
t184256/tlslite-ng
cef7d75f79fd746c001b339399257098a00b46be
[ "Unlicense" ]
null
null
null
# Author: Trevor Perrin # See the LICENSE file for legal information regarding use of this file. """Classes for reading/writing binary data (such as TLS records).""" from __future__ import division import sys import struct from struct import pack class DecodeError(SyntaxError): """Exception raised in case of d...
33.457516
79
0.570098
c9f8c5cfa20640bac7ad7d9c88dfcba1e85e8659
1,112
py
Python
tests/unit/test_models.py
christopherjmedlin/grocernet
5e45b9fcf72cb7701d57326548010ed2dba13c83
[ "MIT" ]
null
null
null
tests/unit/test_models.py
christopherjmedlin/grocernet
5e45b9fcf72cb7701d57326548010ed2dba13c83
[ "MIT" ]
null
null
null
tests/unit/test_models.py
christopherjmedlin/grocernet
5e45b9fcf72cb7701d57326548010ed2dba13c83
[ "MIT" ]
null
null
null
import pytest import os from grocernet.users.models import User from grocernet.vendors.models import Vendor def test_user(): username = "user12345" password = "s3cur3p@$$word" email = "email@gmail.com" user = User(username, password, email, False) assert user.password != password assert "pbkd...
27.8
67
0.673561
36149edf77392198eb5cb0d6c2bfbfa0eaf96a1f
1,037
py
Python
unit/test_uvm_ports.py
rodrigomelo9/uvm-python
e3127eba2cc1519a61dc6f736d862a8dcd6fce20
[ "Apache-2.0" ]
140
2020-01-18T00:14:17.000Z
2022-03-29T10:57:24.000Z
unit/test_uvm_ports.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
24
2020-01-18T18:40:58.000Z
2021-03-25T17:39:07.000Z
unit/test_uvm_ports.py
Mohsannaeem/uvm-python
1b8768a1358d133465ede9cadddae651664b1d53
[ "Apache-2.0" ]
34
2020-01-18T12:22:59.000Z
2022-02-11T07:03:11.000Z
import unittest from uvm.base.uvm_component import UVMComponent from uvm.tlm1.uvm_ports import ( UVMBlockingPutPort, UVMNonBlockingPutPort, UVMBlockingGetPort, UVMNonBlockingGetPort, ) from uvm.tlm1.uvm_imps import ( UVMNonBlockingPutImp, UVMNonBlockingGetImp ) class TestUVMPorts(unittest.TestCase): ...
26.589744
59
0.693346
c37ae83983cbc06c309cda0aa8a1f1c2533d112b
5,614
py
Python
code_examples/tensorflow2/gnn/qm9_ipu.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
260
2019-11-18T01:50:00.000Z
2022-03-28T23:08:53.000Z
code_examples/tensorflow2/gnn/qm9_ipu.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
27
2020-01-28T23:07:50.000Z
2022-02-14T15:37:06.000Z
code_examples/tensorflow2/gnn/qm9_ipu.py
payoto/graphcore_examples
46d2b7687b829778369fc6328170a7b14761e5c6
[ "MIT" ]
56
2019-11-18T02:13:12.000Z
2022-02-28T14:36:09.000Z
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. # Copyright (c) 2019 Daniele Grattarola. # Original code here https://github.com/danielegrattarola/spektral/blob/a2cd265a9440831afc441c1774dd1b7d080a59f8/examples/graph_prediction/qm9_batch.py """ IPU Implementation This example shows how to perform regression of...
39.815603
151
0.571785
bfccf89b0fda0be1100764290681a53e022947e0
2,327
py
Python
youtube_dl/extractor/karaoketv.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
66,635
2019-03-10T21:34:18.000Z
2022-03-31T23:50:31.000Z
youtube_dl/extractor/karaoketv.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
10,936
2019-03-10T21:35:47.000Z
2022-03-31T23:46:52.000Z
youtube_dl/extractor/karaoketv.py
hackarada/youtube-dl
2ba46715a41fe074eab2221170b2ac78fab93fad
[ "Unlicense" ]
15,194
2019-03-10T21:09:27.000Z
2022-03-31T22:13:49.000Z
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class KaraoketvIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?karaoketv\.co\.il/[^/]+/(?P<id>\d+)' _TEST = { 'url': 'http://www.karaoketv.co.il/%D7%A9%D7%99%D7%A8%D7%99_%D7%A7%D7%A8%D7%99%D7%95%D7%A7%D7%99...
35.8
143
0.539321
7af338af427cbdb17abd44d71e8dff64740de4ac
9,860
py
Python
qiskit_aqua/quantumalgorithm.py
eugescu/aqua
dff039691c0246be025c62027f99eee63f0aa3e1
[ "Apache-2.0" ]
null
null
null
qiskit_aqua/quantumalgorithm.py
eugescu/aqua
dff039691c0246be025c62027f99eee63f0aa3e1
[ "Apache-2.0" ]
null
null
null
qiskit_aqua/quantumalgorithm.py
eugescu/aqua
dff039691c0246be025c62027f99eee63f0aa3e1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
38.217054
117
0.616734
9f9d2e65e7b07cc7298e8bb3c3c04602b2eca1ce
20,550
py
Python
flux_combined_high_binding/model_346.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_346.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
flux_combined_high_binding/model_346.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.138889
798
0.804136
ca643e38acf3a1cdd4a8a41897cf3fb77ece8f13
586
py
Python
tf/za/yield/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
tf/za/yield/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
tf/za/yield/test.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
#%% import numpy as np def data_generator(): dataset = np.array(range(2)) for d in dataset: yield d # %% for i in data_generator(): print(i) #%% import tensorflow as tf dataset = tf.data.Dataset.from_generator(data_generator, (tf.int32)) dataset = dataset.repeat(3) dataset = dataset.batch(10) fo...
15.421053
68
0.607509
f97ffef5aca53573c532f11418c516d6a6945744
138
py
Python
examples/override_404.py
izi-global/izir
d1a4bfb5c082c3de1956402ef0280564014a3bd8
[ "MIT" ]
null
null
null
examples/override_404.py
izi-global/izir
d1a4bfb5c082c3de1956402ef0280564014a3bd8
[ "MIT" ]
5
2021-03-18T21:01:05.000Z
2022-03-11T23:29:48.000Z
examples/override_404.py
izi-global/izir
d1a4bfb5c082c3de1956402ef0280564014a3bd8
[ "MIT" ]
null
null
null
import izi @izi.get() def hello_world(): return 'Hello world!' @izi.not_found() def not_found(): return {'Nothing': 'to see'}
11.5
32
0.630435
33846895a25c8a162a51d8194ba3bfd6a9dd1caa
4,192
py
Python
libs/chat_stats.py
Cactiw/Room-Bot-Public
f627fe4485d6949ee49bcd7afb2f33cbc0243e73
[ "MIT" ]
3
2018-12-27T19:46:38.000Z
2019-06-16T17:43:32.000Z
libs/chat_stats.py
Cactiw/Room-Bot-Public
f627fe4485d6949ee49bcd7afb2f33cbc0243e73
[ "MIT" ]
1
2019-03-14T21:16:42.000Z
2019-03-14T21:16:42.000Z
libs/chat_stats.py
Cactiw/Room-Bot-Public
f627fe4485d6949ee49bcd7afb2f33cbc0243e73
[ "MIT" ]
2
2019-03-12T16:09:46.000Z
2019-03-14T20:18:38.000Z
from work_materials.globals import cursor, conn from telegram.ext import BaseFilter CREATE_ROW_RETURN_CODE = 10 class ChatStats: def __init__(self, chat_id, chat_name, message_count, text_messages_count, stickers_messages_count, document_messages_count, audio_messages_count, voice_messages_coun...
47.636364
128
0.652433
6591d47dcb020e8ca562c1f727a1215a78d1623a
4,499
py
Python
src/api/transaction/user.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
216
2015-01-05T12:48:10.000Z
2022-03-08T00:12:23.000Z
src/api/transaction/user.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
55
2015-02-28T12:10:26.000Z
2020-11-18T17:45:16.000Z
src/api/transaction/user.py
piwaniuk/critic
28ed20bb8032d7cc5aa23de98da51e619fd84164
[ "Apache-2.0" ]
34
2015-05-02T15:15:10.000Z
2020-06-15T19:20:37.000Z
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2015 the Critic contributors, Opera Software ASA # # 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/LI...
37.491667
80
0.611691
f5f5418ac0d30c264db1d347cf0728626a62bec4
1,295
py
Python
generate.py
Hwa-Jong/GAN
0977f1483a9a777b50ccabbde3b8e919aae7f057
[ "MIT" ]
null
null
null
generate.py
Hwa-Jong/GAN
0977f1483a9a777b50ccabbde3b8e919aae7f057
[ "MIT" ]
null
null
null
generate.py
Hwa-Jong/GAN
0977f1483a9a777b50ccabbde3b8e919aae7f057
[ "MIT" ]
null
null
null
import argparse import os from training.train_loop import validation # ---------------------------------------------------------------------------- def _str_to_bool(v): if isinstance(v, bool): return v if v.lower() in ('yes', 'true', 't', 'y', '1'): return True elif v.lower() in ('no', 'fa...
30.833333
102
0.489575
4b1105cf59266fd1dbeae52f2c036ed74dfcd9ae
640
py
Python
atcoder/other/s8_1b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
atcoder/other/s8_1b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
atcoder/other/s8_1b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
H, W, N = map(int, input().split()) berry = [tuple(int(x) for x in input().split()) for _ in range(N)] ans = [] for i in range(1, W+1): up = 0 for x, y in berry: if i * y == H * x: break elif i * y > H * x: up += 1 else: if up * 2 == N: ans.append(...
21.333333
66
0.39375
76839e9b66e8baf1e5f18a056db6358ab54c0ebf
1,351
py
Python
myapp/retrieve data.py
NirajDharamshi/IBM-Hackathon
ef5c9bfa6a62dbe5428f6864316d04cfee1ba1e5
[ "Apache-2.0" ]
null
null
null
myapp/retrieve data.py
NirajDharamshi/IBM-Hackathon
ef5c9bfa6a62dbe5428f6864316d04cfee1ba1e5
[ "Apache-2.0" ]
null
null
null
myapp/retrieve data.py
NirajDharamshi/IBM-Hackathon
ef5c9bfa6a62dbe5428f6864316d04cfee1ba1e5
[ "Apache-2.0" ]
1
2019-01-25T23:30:49.000Z
2019-01-25T23:30:49.000Z
import cloudant from cloudant.client import Cloudant from cloudant.error import CloudantException from cloudant.result import Result, ResultByKey, QueryResult serviceURL = "https://fe2e18ed-d0e4-4636-8a9d-1c154f97609f-bluemix:9cea356b0d2b461434c454fa379bf5fba7b48b99d90d072242dd7a2b61885f74@fe2e18ed-d0e4-4636-8a9d-1c1...
43.580645
315
0.771281
11a32402cda2ddb4b107fa1f21e44ac2ad4f0afe
35,763
py
Python
tornado/http1connection.py
LetItGrow/tornado
b99358e2be389b0cb1c3340431f9bbbabeb09d98
[ "Apache-2.0" ]
1
2019-06-17T08:55:53.000Z
2019-06-17T08:55:53.000Z
tornado/http1connection.py
sgy-ecnu/tornado
c50aed0f96d92f9b0ef4cd0837c0104f140ca77e
[ "Apache-2.0" ]
null
null
null
tornado/http1connection.py
sgy-ecnu/tornado
c50aed0f96d92f9b0ef4cd0837c0104f140ca77e
[ "Apache-2.0" ]
null
null
null
# # Copyright 2014 Facebook # # 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, s...
42.727599
88
0.597461
dfb5bb8a358e5af1fde329c5bb2a224e04462677
1,185
py
Python
aoc_wim/aoc2016/q07.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
20
2019-10-15T07:33:13.000Z
2022-01-19T13:40:36.000Z
aoc_wim/aoc2016/q07.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
5
2019-02-01T23:31:27.000Z
2021-12-03T06:55:58.000Z
aoc_wim/aoc2016/q07.py
wimglenn/advent-of-code-wim
6308c3fa5d29b318680419f877fd5b8ac1359b5d
[ "WTFPL" ]
8
2019-12-03T15:41:23.000Z
2021-12-06T17:13:57.000Z
""" --- Day 7: Internet Protocol Version 7 --- https://adventofcode.com/2016/day/7 """ import re from aocd import data def splitter(s): pattern = r"\[([a-z]*)\]" ins = re.findall(pattern, s) outs = re.sub(pattern, " ", s).split() return ins, outs def chunker(s, size): i = 0 while True: ...
18.230769
67
0.534177
ef7acc33ad2d70daac33a9c4f62134966dc50e76
922
py
Python
setup.py
grissomlab/sigpy-rf
673f6c64215c5eb563d8f345ec1a30eb6667136d
[ "BSD-3-Clause" ]
14
2019-07-09T00:45:23.000Z
2022-01-14T17:58:18.000Z
setup.py
grissomlab/sigpy-rf
673f6c64215c5eb563d8f345ec1a30eb6667136d
[ "BSD-3-Clause" ]
null
null
null
setup.py
grissomlab/sigpy-rf
673f6c64215c5eb563d8f345ec1a30eb6667136d
[ "BSD-3-Clause" ]
4
2020-01-31T18:46:07.000Z
2022-03-31T11:37:05.000Z
import sys from setuptools import setup, find_packages from sigpy.version import __version__ # noqa if sys.version_info < (3, 5): sys.exit('Sorry, Python < 3.5 is not supported') REQUIRED_PACKAGES = ['numpy', 'pywavelets', 'numba', 'scipy', 'tqdm'] with open("README.rst", "r") as f: long_description = f.rea...
30.733333
69
0.655098
77281d522a6a9c5f0c797963147f0513d72cc8c4
8,660
py
Python
qcm/ProcessTransferFunSpecialCheck.py
golfit/work-archive
bdd37d46fda3fde15ec2164d3335d6b4ed576bd7
[ "MIT" ]
null
null
null
qcm/ProcessTransferFunSpecialCheck.py
golfit/work-archive
bdd37d46fda3fde15ec2164d3335d6b4ed576bd7
[ "MIT" ]
null
null
null
qcm/ProcessTransferFunSpecialCheck.py
golfit/work-archive
bdd37d46fda3fde15ec2164d3335d6b4ed576bd7
[ "MIT" ]
null
null
null
#This script uses the same processing for the transfer function as normal, but does so for a particular situation: take the fluctuation data from one shot in which the Shoelace antenna didn't run, and the current data from a shot in which the Shoelace was operating, and calculate the transfer function. This way, we ca...
40.46729
410
0.720323
edb8df8e7ccf2b99c13e6074e923ea19b062ab2e
432
py
Python
paytm/migrations/0002_paytm_history_merc_unq_ref.py
jaswal72/paytm_django
03cb130d7728e71703dedf8d849e6fc646d4db8b
[ "MIT" ]
4
2019-03-30T08:56:11.000Z
2019-11-19T11:59:53.000Z
paytm/migrations/0002_paytm_history_merc_unq_ref.py
tanmayag8958/paytm_django
dfba1c9185f4a8defcfc609888ad66e57715ec48
[ "MIT" ]
3
2020-02-11T23:57:58.000Z
2021-06-10T21:17:48.000Z
paytm/migrations/0002_paytm_history_merc_unq_ref.py
tanmayag8958/paytm_django
dfba1c9185f4a8defcfc609888ad66e57715ec48
[ "MIT" ]
3
2019-03-31T12:23:09.000Z
2019-11-19T11:59:59.000Z
# Generated by Django 2.1.7 on 2019-03-29 15:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('paytm', '0001_initial'), ] operations = [ migrations.AddField( model_name='paytm_history', name='MERC_UNQ_REF', ...
22.736842
98
0.618056
e28fd93d8fd766fc178b92f00e89505de86fa46a
5,181
py
Python
votr/initialize_votr_database.py
RobSpectre/salt-states
aa84fc8e4c53b56697f2d4d36177c0d491294ede
[ "MIT" ]
3
2015-08-13T11:15:03.000Z
2016-05-16T01:02:21.000Z
votr/initialize_votr_database.py
RobSpectre/salt-states
aa84fc8e4c53b56697f2d4d36177c0d491294ede
[ "MIT" ]
1
2021-02-08T20:18:05.000Z
2021-02-08T20:18:05.000Z
votr/initialize_votr_database.py
RobSpectre/salt-states
aa84fc8e4c53b56697f2d4d36177c0d491294ede
[ "MIT" ]
1
2015-09-22T22:33:36.000Z
2015-09-22T22:33:36.000Z
import sys import urllib2 import json import argparse import base64 class VotrCouchDBInitializer(object): def __init__(self, path=None, username=None, password=None): self.path = path self.username = username self.password = password self.result = None def exists(self): ...
37.817518
79
0.494499
32a1dcc12c26e8326c42142f28f2ff39abb3707b
4,351
py
Python
cs15211/FindandReplacePattern.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2021-07-05T01:53:30.000Z
2021-07-05T01:53:30.000Z
cs15211/FindandReplacePattern.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
null
null
null
cs15211/FindandReplacePattern.py
JulyKikuAkita/PythonPrac
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
[ "Apache-2.0" ]
1
2018-01-08T07:14:08.000Z
2018-01-08T07:14:08.000Z
__source__ = 'https://leetcode.com/problems/find-and-replace-pattern/' # Time: O() # Space: O() # # Description: Leetcode # 890. Find and Replace Pattern # # You have a list of words and a pattern, # and you want to know which words in words matches the pattern. # # A word matches the pattern if there exists a permuta...
30.006897
94
0.571823
4fc487544ee898bd601823bb044ad9cf0b7fa7c2
3,322
py
Python
samples/media-player/main.py
cmarshall108/panda3d-python3
8bea2c0c120b03ec1c9fd179701fdeb7510bb97b
[ "PHP-3.0", "PHP-3.01" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
samples/media-player/main.py
cmarshall108/panda3d-python3
8bea2c0c120b03ec1c9fd179701fdeb7510bb97b
[ "PHP-3.0", "PHP-3.01" ]
null
null
null
samples/media-player/main.py
cmarshall108/panda3d-python3
8bea2c0c120b03ec1c9fd179701fdeb7510bb97b
[ "PHP-3.0", "PHP-3.01" ]
1
2020-03-11T17:38:45.000Z
2020-03-11T17:38:45.000Z
#!/usr/bin/env python from panda3d.core import * # Tell Panda3D to use OpenAL, not FMOD loadPrcFileData("", "audio-library-name p3openal_audio") from direct.showbase.DirectObject import DirectObject from direct.gui.OnscreenText import OnscreenText from direct.showbase.ShowBase import ShowBase # Function to put instr...
35.72043
80
0.618603
01c8da784c96e4453f24183835c6440fb6cdf8b9
4,259
py
Python
benchmark/startQiskit_QC2253.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2253.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
benchmark/startQiskit_QC2253.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=4 # total number=35 import cirq import qiskit from qiskit import IBMQ from qiskit.providers.ibmq import least_busy from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from ma...
34.909836
165
0.654379
8be53134c4da1d89cf24a2577c1ccd11e8ca9b15
12,471
py
Python
curtsies/events.py
bpython/curtsies
307aa877dffe28f5760b88f67d4e865134d949c3
[ "MIT" ]
93
2018-02-18T03:13:32.000Z
2022-03-22T22:09:15.000Z
curtsies/events.py
bpython/curtsies
307aa877dffe28f5760b88f67d4e865134d949c3
[ "MIT" ]
48
2018-02-13T19:16:36.000Z
2021-12-01T14:18:38.000Z
curtsies/events.py
bpython/curtsies
307aa877dffe28f5760b88f67d4e865134d949c3
[ "MIT" ]
19
2018-02-13T20:36:29.000Z
2021-01-02T20:22:43.000Z
"""Events for keystrokes and other input events""" import codecs import encodings import itertools import sys from typing import Optional, List, Union from .termhelpers import Termmode from .curtsieskeys import CURTSIES_NAMES as special_curtsies_names chr_byte = lambda i: chr(i).encode("latin-1") chr_uni = chr CURT...
34.641667
140
0.604362
5db4730acc85ae5049b69a7833903cfab6e9b2d8
11,454
py
Python
HyperSphere/BO/run_BO.py
QUVA-Lab/HyperSphere
8e126dece948952ddb4ac0c01ac6ab1c8d63720e
[ "BSD-2-Clause-FreeBSD" ]
10
2018-07-11T11:14:38.000Z
2021-02-01T21:04:27.000Z
HyperSphere/BO/run_BO.py
QUVA-Lab/HyperSphere
8e126dece948952ddb4ac0c01ac6ab1c8d63720e
[ "BSD-2-Clause-FreeBSD" ]
6
2018-12-20T18:57:59.000Z
2019-10-25T08:32:02.000Z
HyperSphere/BO/run_BO.py
QUVA-Lab/HyperSphere
8e126dece948952ddb4ac0c01ac6ab1c8d63720e
[ "BSD-2-Clause-FreeBSD" ]
8
2018-09-04T04:30:37.000Z
2020-02-12T08:52:36.000Z
import argparse import os.path import pickle import sys import time from datetime import datetime EXPERIMENT_DIR = '/home/coh1/Experiments/Hypersphere' import torch from torch.autograd import Variable import torch.multiprocessing as multiprocessing if os.path.realpath(__file__).rsplit('/', 3)[0] not in sys.path: sy...
47.924686
1,216
0.727606
a8089d13ef3cd3bf29c0011b95c352a8b8b2b562
28,910
py
Python
examples/classic_controllers/classic_controllers.py
RaviPandey33/gym-electric-motor-1
999e18dceed709decf43d646fb29dc7602b9a89c
[ "MIT" ]
null
null
null
examples/classic_controllers/classic_controllers.py
RaviPandey33/gym-electric-motor-1
999e18dceed709decf43d646fb29dc7602b9a89c
[ "MIT" ]
null
null
null
examples/classic_controllers/classic_controllers.py
RaviPandey33/gym-electric-motor-1
999e18dceed709decf43d646fb29dc7602b9a89c
[ "MIT" ]
null
null
null
from gym.spaces import Discrete, Box, MultiDiscrete from gym_electric_motor.physical_systems import SynchronousMotorSystem, DcMotorSystem, DcSeriesMotor, \ DcExternallyExcitedMotor, DoublyFedInductionMotorSystem, SquirrelCageInductionMotorSystem from gym_electric_motor.reference_generators import MultipleReferenceG...
54.961977
123
0.587617
927fef92ed8be34c7b77bf69f39e8db0744e3543
6,005
py
Python
bw2io/strategies/lcia.py
sc-gcoste/brightway2-io
3a1f6d4efeb1b1754343ca7a243c4c1bcaaca40a
[ "BSD-3-Clause" ]
5
2020-06-03T20:59:37.000Z
2021-08-19T06:59:36.000Z
bw2io/strategies/lcia.py
sc-gcoste/brightway2-io
3a1f6d4efeb1b1754343ca7a243c4c1bcaaca40a
[ "BSD-3-Clause" ]
54
2020-03-03T09:19:25.000Z
2022-03-09T17:48:05.000Z
bw2io/strategies/lcia.py
brightway-lca/brightway2-io-copy
8383adc2f0cb06852f689fb2aab62d5a29f41130
[ "BSD-3-Clause" ]
16
2020-03-07T17:58:18.000Z
2022-02-08T15:52:37.000Z
import collections import copy from bw2data import Database from ..utils import activity_hash def add_activity_hash_code(data): """Add ``code`` field to characterization factors using ``activity_hash``, if ``code`` not already present.""" for method in data: for cf in method["exchanges"]: ...
35.116959
319
0.531391
6f43df9cb656ca715d94fc002ea96e9a71ababad
10,466
py
Python
Imaginary/2021/pwn/ICICLE_Jail/icicle.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/pwn/ICICLE_Jail/icicle.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/pwn/ICICLE_Jail/icicle.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from Crypto.Util.number import * import time MEMSIZE = 2**16 REGNAMES = ["r%d"%i for i in range(16)]+['rip'] DEBUG = 0 def prd(*args): if DEBUG: print(*args) class MemoryException(Exception): pass class Memory(): def __init__(self, size=MEMSIZE, mem=None, rname...
31.14881
93
0.48347
e2d2878a3f56760f76cceaf89890cbccf581db85
9,268
py
Python
colabcode/code.py
sandyz1000/colabcode
c755608ca5fc0caa09241da2f190d9df6cf1974b
[ "MIT" ]
null
null
null
colabcode/code.py
sandyz1000/colabcode
c755608ca5fc0caa09241da2f190d9df6cf1974b
[ "MIT" ]
null
null
null
colabcode/code.py
sandyz1000/colabcode
c755608ca5fc0caa09241da2f190d9df6cf1974b
[ "MIT" ]
null
null
null
import os import sys import socket import subprocess import uuid import time import platform import tempfile import secrets from pgrok import pgrok from pyngrok import ngrok from http import HTTPStatus from urllib.request import urlopen import logging from kafka_logger import init_kafka_logger, OutputLogger import gdri...
34.453532
116
0.584053
f627f3ca8157813e7f09a811f4ea8811f176811a
3,480
py
Python
scripts/maintenance/wikimedia_sites.py
metakgp/pywikibot
28e3125167bb3ec521a25ade859d0e0afcfb1262
[ "MIT" ]
2
2017-06-19T16:48:34.000Z
2017-07-07T14:15:28.000Z
scripts/maintenance/wikimedia_sites.py
metakgp/pywikibot
28e3125167bb3ec521a25ade859d0e0afcfb1262
[ "MIT" ]
11
2018-12-07T18:20:05.000Z
2022-03-11T23:12:42.000Z
scripts/maintenance/wikimedia_sites.py
metakgp/pywikibot
28e3125167bb3ec521a25ade859d0e0afcfb1262
[ "MIT" ]
3
2018-12-09T10:18:35.000Z
2020-09-12T13:50:14.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Script that updates the language lists in Wikimedia family files.""" # # (C) xqt, 2009-2014 # (C) Pywikibot team, 2008-2014 # # Distributed under the terms of the MIT license. # from __future__ import absolute_import, unicode_literals __version__ = '$Id: f627f3ca8157813e7f...
31.926606
77
0.556897
f358cd79f0be5ca6034b4be4d08b6509a08a8fc8
22
py
Python
btd6_memory_info/generated/Mono/Math/BigInteger/big_integer.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Mono/Math/BigInteger/big_integer.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
btd6_memory_info/generated/Mono/Math/BigInteger/big_integer.py
56kyle/bloons_auto
419d55b51d1cddc49099593970adf1c67985b389
[ "MIT" ]
null
null
null
class BigInteger: pass
22
22
0.863636
4b62364ccfd2f4d8f32d545a7f1c395c1db895fc
2,372
py
Python
sorting.py
ice1x/sorting
df17c69e3c0e8c57f9bbb1c4de2c87fd0e4fb6d1
[ "Unlicense" ]
null
null
null
sorting.py
ice1x/sorting
df17c69e3c0e8c57f9bbb1c4de2c87fd0e4fb6d1
[ "Unlicense" ]
null
null
null
sorting.py
ice1x/sorting
df17c69e3c0e8c57f9bbb1c4de2c87fd0e4fb6d1
[ "Unlicense" ]
null
null
null
import random from datetime import datetime def getArray(): return [int(10000 * random.random()) for i in range(10000)] def shellSort(data): """ Shell sort using Shell's (original) gap sequence: n/2, n/4, ..., 1. """ gap = len(data) // 2 # loop over the gaps while gap > 0: # do t...
22.590476
79
0.531619
85e695d5299effc49552a0808bba338376a367d2
2,775
py
Python
extensions/es_statistics.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
extensions/es_statistics.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
extensions/es_statistics.py
XIThing/esdl-mapeditor
9f4cd4a58714ea67aeb532e88e88f0435a87dbd5
[ "Apache-2.0" ]
null
null
null
# This work is based on original code developed and copyrighted by TNO 2020. # Subsequent contributions are licensed to you by the developers of such code and are # made available to the Project under one or several contributor license agreements. # # This work is licensed to you under the Apache License, Versi...
37.5
123
0.584505
460788f6561a30c5e2022db7d4d9ee9aeb2867e6
4,369
py
Python
src/virtual-wan/azext_vwan/vendored_sdks/v2020_05_01/v2020_05_01/operations/_express_route_service_providers_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2020_05_01/v2020_05_01/operations/_express_route_service_providers_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/virtual-wan/azext_vwan/vendored_sdks/v2020_05_01/v2020_05_01/operations/_express_route_service_providers_operations.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.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 ...
40.831776
148
0.643397
7e89e5999bcdb7ee7e4a8a342f65f5592fb1b840
379
py
Python
askoclics/cli/commands/cmd_dataset.py
mboudet/askoclics
f49940b885c929a85c0bce72628e263a57a24b43
[ "MIT" ]
null
null
null
askoclics/cli/commands/cmd_dataset.py
mboudet/askoclics
f49940b885c929a85c0bce72628e263a57a24b43
[ "MIT" ]
null
null
null
askoclics/cli/commands/cmd_dataset.py
mboudet/askoclics
f49940b885c929a85c0bce72628e263a57a24b43
[ "MIT" ]
1
2021-03-31T14:19:20.000Z
2021-03-31T14:19:20.000Z
import click from askoclics.cli.commands.dataset.delete import cli as delete from askoclics.cli.commands.dataset.list import cli as list from askoclics.cli.commands.dataset.publicize import cli as publicize @click.group() def cli(): """ Manipulate datasets managed by Askomics """ pass cli.add_comman...
21.055556
69
0.76781
d82dd9367f7905177541817e5d7423130d8c74fd
1,849
py
Python
2017/week_7/queue_m1.py
regensa18/AdvProg2018
8e421663cac74c191b7ece33849d990a72dedec7
[ "BSD-3-Clause" ]
null
null
null
2017/week_7/queue_m1.py
regensa18/AdvProg2018
8e421663cac74c191b7ece33849d990a72dedec7
[ "BSD-3-Clause" ]
null
null
null
2017/week_7/queue_m1.py
regensa18/AdvProg2018
8e421663cac74c191b7ece33849d990a72dedec7
[ "BSD-3-Clause" ]
null
null
null
from collections import namedtuple import multiprocessing as mp import random import time VALUES = (100, 200, 500, 1000) Coin = namedtuple('Coin', ['value']) def reader(queue): termination_threshold = 25 termination_count = 0 reader_sum = 0 while termination_count < termination_threshold: if...
28.890625
73
0.611682
495ad4cd39acbe0920edd408acd1545d222509bf
3,136
py
Python
isi_sdk_9_0_0/isi_sdk_9_0_0/models/service_policies.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/service_policies.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/service_policies.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_9_0_0.models.servic...
27.269565
97
0.575893
29e803ea6ebe557e3f9df8c7af8a79c50cbe552d
33,158
py
Python
Tools/dea_tools/datahandling.py
mickwelli/dea-notebooks
2fca1f62e35831ed33c7d74380c4cc9e480fbeda
[ "Apache-2.0" ]
null
null
null
Tools/dea_tools/datahandling.py
mickwelli/dea-notebooks
2fca1f62e35831ed33c7d74380c4cc9e480fbeda
[ "Apache-2.0" ]
null
null
null
Tools/dea_tools/datahandling.py
mickwelli/dea-notebooks
2fca1f62e35831ed33c7d74380c4cc9e480fbeda
[ "Apache-2.0" ]
null
null
null
## dea_datahandling.py ''' Description: This file contains a set of python functions for handling Digital Earth Australia data. License: The code in this notebook is licensed under the Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0). Digital Earth Australia data is licensed under the Creative...
36.883204
99
0.632125
45a535622188ba4081ba89dd52d3400fcb39e1b2
3,784
py
Python
game.py
liangfengsid/dicegame
d38d23d595446d1c96442b4ef0d600ef2c284005
[ "MIT" ]
null
null
null
game.py
liangfengsid/dicegame
d38d23d595446d1c96442b4ef0d600ef2c284005
[ "MIT" ]
null
null
null
game.py
liangfengsid/dicegame
d38d23d595446d1c96442b4ef0d600ef2c284005
[ "MIT" ]
null
null
null
import random import sys import time import threading from multiprocessing import Value import state import util import param from mcts import MCTS from state import DEFAULT_TRANSFORM from state import State MCTS_GAME = 0 OPT_GAME = 1 RAND_GAME = 2 NORMAL_GAME = 3 class MCTSGame: def __init__(self, path=''): self...
28.02963
113
0.658298
cd4920bddee20ebc570a427fbcd907c541631dc2
1,767
py
Python
ps10_test.py
heinerbehrends/OCW-MIT-6.00
26c492b1ca2efdf5a6f9c004f78e94fe55976b26
[ "bzip2-1.0.6" ]
null
null
null
ps10_test.py
heinerbehrends/OCW-MIT-6.00
26c492b1ca2efdf5a6f9c004f78e94fe55976b26
[ "bzip2-1.0.6" ]
null
null
null
ps10_test.py
heinerbehrends/OCW-MIT-6.00
26c492b1ca2efdf5a6f9c004f78e94fe55976b26
[ "bzip2-1.0.6" ]
null
null
null
import ps10; reload(ps10) from ps10 import * def isClose(float1, float2): """ Helper function - are two floating point values close? """ return abs(float1 - float2) < .01 def testResult(boolean): """ Helper function - print 'Test Failed' if boolean is false, 'Test Succeeded' ot...
26.373134
80
0.52858
ca284a622c902371c1fda911aefe871574ab21ab
22,479
py
Python
google/cloud/aiplatform_v1/services/dataset_service/transports/grpc.py
TheMichaelHu/python-aiplatform
e03f373a7e44c354eda88875a41c771f6d7e3ce1
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/dataset_service/transports/grpc.py
TheMichaelHu/python-aiplatform
e03f373a7e44c354eda88875a41c771f6d7e3ce1
[ "Apache-2.0" ]
null
null
null
google/cloud/aiplatform_v1/services/dataset_service/transports/grpc.py
TheMichaelHu/python-aiplatform
e03f373a7e44c354eda88875a41c771f6d7e3ce1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # 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...
42.493384
90
0.634904
09c0f612258b9904317ec39bd44b5580c3914b69
23,887
py
Python
salt/modules/grains.py
GLaN1K/salt
ec1a907465c2d6dff126b747a52035e19b9a105b
[ "Apache-2.0" ]
1
2021-02-26T07:37:19.000Z
2021-02-26T07:37:19.000Z
salt/modules/grains.py
GLaN1K/salt
ec1a907465c2d6dff126b747a52035e19b9a105b
[ "Apache-2.0" ]
4
2021-02-06T14:30:48.000Z
2021-12-13T20:50:10.000Z
salt/modules/grains.py
GLaN1K/salt
ec1a907465c2d6dff126b747a52035e19b9a105b
[ "Apache-2.0" ]
1
2021-05-10T13:59:33.000Z
2021-05-10T13:59:33.000Z
""" Return/control aspects of the grains data Grains set or altered with this module are stored in the 'grains' file on the minions. By default, this file is located at: ``/etc/salt/grains`` .. Note:: This does **NOT** override any grains set in the minion config file. """ import collections import logging impo...
29.933584
120
0.613179
2aec34cd567069a9f1f6be03b1dc7733f6ee2738
4,215
py
Python
pyscf/pbc/gw/kgw_slow_supercell.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
501
2018-12-06T23:48:17.000Z
2022-03-31T11:53:18.000Z
pyscf/pbc/gw/kgw_slow_supercell.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
710
2018-11-26T22:04:52.000Z
2022-03-30T03:53:12.000Z
pyscf/pbc/gw/kgw_slow_supercell.py
QuESt-Calculator/pyscf
0ed03633b699505c7278f1eb501342667d0aa910
[ "Apache-2.0" ]
273
2018-11-26T10:10:24.000Z
2022-03-30T12:25:28.000Z
""" This module implements the G0W0 approximation on top of `pyscf.tdscf.rhf_slow` TDHF implementation. Unlike `gw.py`, all integrals are stored in memory. Several variants of GW are available: * `pyscf.gw_slow`: the molecular implementation; * `pyscf.pbc.gw.gw_slow`: single-kpoint PBC (periodic boundary condition) ...
30.992647
119
0.581495
82dea2983f28f702269e9f6b8270797ffc211a86
332
py
Python
src/netbox_example/management/commands/show_examples.py
steffann/netbox-example-plugin
9f1c22ae60bb21e7d4685219eb76687c62f0161e
[ "Apache-2.0" ]
4
2020-01-19T04:14:07.000Z
2020-06-03T17:36:19.000Z
src/netbox_example/management/commands/show_examples.py
steffann/netbox-example-plugin
9f1c22ae60bb21e7d4685219eb76687c62f0161e
[ "Apache-2.0" ]
null
null
null
src/netbox_example/management/commands/show_examples.py
steffann/netbox-example-plugin
9f1c22ae60bb21e7d4685219eb76687c62f0161e
[ "Apache-2.0" ]
1
2020-09-17T17:02:43.000Z
2020-09-17T17:02:43.000Z
from django.core.management.base import BaseCommand from netbox_example.models import Example class Command(BaseCommand): def handle(self, *args, **options): for example in Example.objects.select_related('device').all(): self.stdout.write("{example.device.name} - {example.name}".format(exampl...
33.2
95
0.725904
b7f70483085c102840ece73347b62be69ebe6d21
555
py
Python
automate the boring stuff with python/json_handle/quickWeather.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
automate the boring stuff with python/json_handle/quickWeather.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
automate the boring stuff with python/json_handle/quickWeather.py
xu6148152/Binea_Python_Project
d943eb5f4685d08f080b372dcf1a7cbd5d63efed
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- encoding: utf-8 -*- import json, requests, sys # Compute location from command line arguments if len(sys.argv) < 2: print('Usage: quickWeather.py location') sys.exit() location = ' '.join(sys.argv[1:]) # Download the json data from openweathermap.org's api url = 'http://openwea...
25.227273
82
0.704505
7c5250c5995690565a79f14a8c34072e7ea1110f
1,159
py
Python
tests/test_readers_writers/test_write_csv.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
tests/test_readers_writers/test_write_csv.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
tests/test_readers_writers/test_write_csv.py
Mailaender/spectrochempy
d58221afeb9f78e2e3e0079b3fd6c0162a902c04
[ "CECILL-B" ]
null
null
null
# -*- coding: utf-8 -*- # ====================================================================================================================== # Copyright (©) 2015-2021 LCS - Laboratoire Catalyse et Spectrochimie, Caen, France. = # CeCILL-B FREE SOFTWARE LICENSE AGREEMENT - See ful...
33.114286
120
0.49094
8ae4ee40e11daa121284287d4cdd3b2d87e3aca0
8,556
py
Python
index.py
ZhangShunHai/netease-cloud
b7410f771bbca5fe1f87bc8b6b85430261e46b78
[ "MIT" ]
1
2020-09-04T08:19:09.000Z
2020-09-04T08:19:09.000Z
index.py
hai980915/netease-cloud
b7410f771bbca5fe1f87bc8b6b85430261e46b78
[ "MIT" ]
null
null
null
index.py
hai980915/netease-cloud
b7410f771bbca5fe1f87bc8b6b85430261e46b78
[ "MIT" ]
1
2020-11-15T08:58:06.000Z
2020-11-15T08:58:06.000Z
#coding:utf-8 ''' @author: ZainCheung @LastEditors: ZainCheung @description:网易云音乐全自动每日打卡云函数版 @Date: 2020-06-25 14:28:48 @LastEditTime: 2020-09-01 18:20:00 ''' from configparser import ConfigParser from threading import Timer import requests import random import hashlib import datetime import time import...
30.021053
136
0.494974
df83f2ddd0b50aba0b4353c850260c82f80aae75
50,315
py
Python
sourcecode/chesssimul/board.py
Epichess/chess-simul
a37e9baa65bf4691dc2d56f6c662bb70a8e65061
[ "MIT" ]
null
null
null
sourcecode/chesssimul/board.py
Epichess/chess-simul
a37e9baa65bf4691dc2d56f6c662bb70a8e65061
[ "MIT" ]
1
2021-06-22T09:48:37.000Z
2021-06-22T09:49:14.000Z
sourcecode/chesssimul/board.py
Epichess/chess-simul
a37e9baa65bf4691dc2d56f6c662bb70a8e65061
[ "MIT" ]
null
null
null
from square import Square from piece import * from move import Move from typing import Callable from log import * ####################################### # create logger with 'spam_application' logger = logging.getLogger("My_app") logger.setLevel(logging.DEBUG) # create console handler with a higher log level ch = lo...
49.767557
213
0.482202
1ce4ff6bd9afa7adc559ce30512ec12dae253a57
6,880
py
Python
continued_functions.py
ThomasAldheimerFCG/continued-functions
3285c570cfffd6fa6bc7e5264e843b85602b0487
[ "MIT" ]
null
null
null
continued_functions.py
ThomasAldheimerFCG/continued-functions
3285c570cfffd6fa6bc7e5264e843b85602b0487
[ "MIT" ]
null
null
null
continued_functions.py
ThomasAldheimerFCG/continued-functions
3285c570cfffd6fa6bc7e5264e843b85602b0487
[ "MIT" ]
null
null
null
import numpy as np import cmath as cm import matplotlib.pyplot as plt import matplotlib.patches as mpatches import os color_codes = {1: 'red', 2: 'yellow', 3: 'blue', 4: 'green', 5: 'magenta', 6: 'crimson', 7: 'violet', 8: 'gold', 9: 'palegreen', 10: 'orange', 11: 'skyblue', 12: 'purple', 13: 'aq...
35.833333
113
0.548547
601c7392eeddd7b974a344042bbab1a94239f9aa
6,806
py
Python
torchVisionTester/DataLoader.py
robotic-vision-lab/Deep-Ensembles-For-Probabilistic-Object-Detection
82fd36376694f447ccb5564c7af4cc6128b3ea60
[ "Apache-2.0" ]
1
2022-02-04T13:13:50.000Z
2022-02-04T13:13:50.000Z
torchVisionTester/DataLoader.py
robotic-vision-lab/Deep-Ensembles-For-Probabilistic-Object-Detection
82fd36376694f447ccb5564c7af4cc6128b3ea60
[ "Apache-2.0" ]
null
null
null
torchVisionTester/DataLoader.py
robotic-vision-lab/Deep-Ensembles-For-Probabilistic-Object-Detection
82fd36376694f447ccb5564c7af4cc6128b3ea60
[ "Apache-2.0" ]
null
null
null
import numpy as np from torchVisionTester.Augmenter import * from PIL import Image from numpy import random from glob import glob from enum import Enum from torch import from_numpy from torch import stack as torchStack #from tensorflow import convert_to_tensor #from tensorflow import stack as tfStack from tor...
38.235955
145
0.613429
f513df392c681a4d117e2ec20a164853d7eee433
1,405
py
Python
tests/parse_args_test.py
sudo-julia/devenv
2d5da4cc126445f59a2d7588231c69e6841c2e6d
[ "Apache-2.0" ]
null
null
null
tests/parse_args_test.py
sudo-julia/devenv
2d5da4cc126445f59a2d7588231c69e6841c2e6d
[ "Apache-2.0" ]
11
2021-12-22T01:20:30.000Z
2022-03-29T01:22:11.000Z
tests/parse_args_test.py
sudo-julia/dvnv
2d5da4cc126445f59a2d7588231c69e6841c2e6d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import sys from unittest.mock import patch import pytest from dvnv.dvnv import parse_args def test_parse_args_pass(): with patch.object(sys, "argv", ["dvnv", "python", "dvnv"]): args = parse_args() assert args.lang == "python" assert args.name == "dvnv" def test...
29.893617
87
0.610676
aef3007d13ada0815d1caed5154b33e00a29e3cb
862
py
Python
GUI/Cocoa/Container.py
gcewing/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
9
2019-07-15T19:03:27.000Z
2021-11-24T19:50:02.000Z
GUI/Cocoa/Container.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
3
2019-09-11T13:22:10.000Z
2020-08-19T20:13:00.000Z
GUI/Cocoa/Container.py
mnabeelp/PyGUI
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
[ "MIT" ]
4
2020-02-23T16:50:06.000Z
2022-02-10T07:15:35.000Z
# # Python GUI - Containers - PyObjC version # from AppKit import NSView from GUI.Utils import PyGUI_Flipped_NSView from GUI import export from GUI.GContainers import Container as GContainer class Container(GContainer): # _ns_inner_view NSView Containing NSView for subcomponents # def __init__(self, _ns_vie...
26.9375
79
0.679814
7b038d1239e464aa440c69a2c913ee04cf910f04
23,866
py
Python
models/official/resnet/resnet_main.py
dshieble/tpu
4f734be260870d7cecfe08ae7229f1c4db9a5df6
[ "Apache-2.0" ]
1
2020-03-05T10:35:53.000Z
2020-03-05T10:35:53.000Z
models/official/resnet/resnet_main.py
dshieble/tpu
4f734be260870d7cecfe08ae7229f1c4db9a5df6
[ "Apache-2.0" ]
null
null
null
models/official/resnet/resnet_main.py
dshieble/tpu
4f734be260870d7cecfe08ae7229f1c4db9a5df6
[ "Apache-2.0" ]
1
2020-03-05T10:35:55.000Z
2020-03-05T10:35:55.000Z
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.063796
133
0.68386
f78e71706e17df4c3965a43f11e6a35197bbb753
12,036
py
Python
Project Files/Prebuilt tools/twitter/Twitter/pylib/requests/packages/urllib3/contrib/pyopenssl.py
nVoid/Yale-TouchDesigner-April2016
40eb36f515fa3935f3e9ddaa923664e88308262c
[ "MIT" ]
24
2015-11-12T06:33:24.000Z
2019-04-16T11:11:13.000Z
requests/packages/urllib3/contrib/pyopenssl.py
lepture/requests
ac4e05874a1a983ca126185a0e4d4e74915f792e
[ "Apache-2.0" ]
13
2020-10-28T16:02:09.000Z
2020-11-16T13:30:05.000Z
requests/packages/urllib3/contrib/pyopenssl.py
lepture/requests
ac4e05874a1a983ca126185a0e4d4e74915f792e
[ "Apache-2.0" ]
9
2016-02-19T18:56:18.000Z
2019-01-13T16:50:05.000Z
'''SSL with SNI-support for Python 2. This needs the following packages installed: * pyOpenSSL (tested with 0.13) * ndg-httpsclient (tested with 0.3.2) * pyasn1 (tested with 0.1.6) To activate it call :func:`~urllib3.contrib.pyopenssl.inject_into_urllib3`. This can be done in a ``sitecustomize`` module, or at any ot...
34.685879
79
0.54337
a942c97034ad9187f0ffe94c5d466d8ca7947089
16,112
py
Python
python/ccxt/async_support/__init__.py
asoedarren/ccxt
708a3eb700a003f904c9cab00a4727d959d43bb2
[ "MIT" ]
null
null
null
python/ccxt/async_support/__init__.py
asoedarren/ccxt
708a3eb700a003f904c9cab00a4727d959d43bb2
[ "MIT" ]
null
null
null
python/ccxt/async_support/__init__.py
asoedarren/ccxt
708a3eb700a003f904c9cab00a4727d959d43bb2
[ "MIT" ]
1
2021-03-02T10:56:25.000Z
2021-03-02T10:56:25.000Z
# -*- coding: utf-8 -*- """CCXT: CryptoCurrency eXchange Trading Library (Async)""" # ----------------------------------------------------------------------------- __version__ = '1.42.48' # ----------------------------------------------------------------------------- from ccxt.async_support.base.exchange import Ex...
50.826498
86
0.555549
080bf0ec1405552a72a0c0b9f6f98a6f664e2d78
1,798
py
Python
examples/linear_model/plot_ransac.py
Giannos-G/scikit-learn_modified
03df71bbea1bcb3423262b711191552420422cda
[ "BSD-3-Clause" ]
1
2022-03-03T23:54:50.000Z
2022-03-03T23:54:50.000Z
examples/linear_model/plot_ransac.py
Giannos-G/scikit-learn_modified
03df71bbea1bcb3423262b711191552420422cda
[ "BSD-3-Clause" ]
null
null
null
examples/linear_model/plot_ransac.py
Giannos-G/scikit-learn_modified
03df71bbea1bcb3423262b711191552420422cda
[ "BSD-3-Clause" ]
null
null
null
""" =========================================== Robust linear model estimation using RANSAC =========================================== In this example we see how to robustly fit a linear model to faulty data using the RANSAC algorithm. """ import numpy as np from matplotlib import pyplot as plt from sklearn import ...
29.966667
78
0.669633
98e24edb0ea0655574ccc71387a647e324d581c9
6,102
py
Python
src/prioritizer/utils/feature_util.py
timhannifan/prioritizer
892efb7dcd95a1b60e0a8b433f19522e2bf88cb4
[ "MIT" ]
null
null
null
src/prioritizer/utils/feature_util.py
timhannifan/prioritizer
892efb7dcd95a1b60e0a8b433f19522e2bf88cb4
[ "MIT" ]
1
2021-06-01T23:44:36.000Z
2021-06-01T23:44:36.000Z
src/prioritizer/utils/feature_util.py
timhannifan/prioritizer
892efb7dcd95a1b60e0a8b433f19522e2bf88cb4
[ "MIT" ]
null
null
null
import datetime import shutil import sys import random from contextlib import contextmanager import functools import operator import tempfile import sqlalchemy import pandas as pd import numpy from sqlalchemy.orm import sessionmaker from prioritizer.components.schemas.schema import Model from prioritizer.utils.struc...
28.25
88
0.638479
688197ab0dd19e25517e5b2f5f1b0a6de3f636f7
5,060
py
Python
tensor2tensor/data_generators/all_problems.py
koz4k/tensor2tensor
859306bb577ec1119e6d9fbdea4ac0743a7fe927
[ "Apache-2.0" ]
2
2020-03-02T13:49:11.000Z
2020-06-18T09:48:35.000Z
tensor2tensor/data_generators/all_problems.py
angelfish91/tensor2tensor
168928d29cdd887fd6cdd5d5ad35181bef614154
[ "Apache-2.0" ]
1
2019-01-21T10:57:47.000Z
2019-01-21T10:57:47.000Z
tensor2tensor/data_generators/all_problems.py
angelfish91/tensor2tensor
168928d29cdd887fd6cdd5d5ad35181bef614154
[ "Apache-2.0" ]
3
2019-02-10T11:12:30.000Z
2022-02-23T20:43:48.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
39.84252
75
0.767984
996b44a5b748e5d482b9ccf5b1261ad9d0b24e32
409
py
Python
backend/enrollment_33200/wsgi.py
crowdbotics-apps/enrollment-33200
2d925c818afecf0b4a368a2130b9c63783625757
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/enrollment_33200/wsgi.py
crowdbotics-apps/enrollment-33200
2d925c818afecf0b4a368a2130b9c63783625757
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/enrollment_33200/wsgi.py
crowdbotics-apps/enrollment-33200
2d925c818afecf0b4a368a2130b9c63783625757
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" WSGI config for enrollment_33200 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJA...
24.058824
78
0.794621