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
117cd8a1fc1b6cb288bd166e5b1de8219dbef713
1,968
py
Python
parser/python/validate.py
jnorwood/NNEF-Tools
5eb3755b5322040d42893e41b15093337abe04ce
[ "Apache-2.0" ]
null
null
null
parser/python/validate.py
jnorwood/NNEF-Tools
5eb3755b5322040d42893e41b15093337abe04ce
[ "Apache-2.0" ]
null
null
null
parser/python/validate.py
jnorwood/NNEF-Tools
5eb3755b5322040d42893e41b15093337abe04ce
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 The Khronos Group Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
36.444444
117
0.643293
82654da5b66d8c54bff2b307bcff5b804bd3119c
18,195
py
Python
armi/physics/neutronics/latticePhysics/latticePhysicsInterface.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
armi/physics/neutronics/latticePhysics/latticePhysicsInterface.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
armi/physics/neutronics/latticePhysics/latticePhysicsInterface.py
celikten/armi
4e100dd514a59caa9c502bd5a0967fd77fdaf00e
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, 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 agreed to in writi...
37.985386
112
0.614784
afa51d355786df98b0025450846ad5820c6447a0
761
py
Python
code/exercises/07_DataStructures/ex_07_05_sequence.py
chiachang100/LearnToCodeWithPython
fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52
[ "Apache-2.0" ]
null
null
null
code/exercises/07_DataStructures/ex_07_05_sequence.py
chiachang100/LearnToCodeWithPython
fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52
[ "Apache-2.0" ]
null
null
null
code/exercises/07_DataStructures/ex_07_05_sequence.py
chiachang100/LearnToCodeWithPython
fe16115cb3be612d5abd8ffdbd6a14a37d6b4d52
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Filename: ex_sequence.py shoplist = ['apple', 'mango', 'carrot', 'banana'] name = 'swaroop' # Indexing or 'Subscription' operation print('Item 0 is', shoplist[0]) print('Item 1 is', shoplist[1]) print('Item 2 is', shoplist[2]) print('Item 3 is', shoplist[3]) print('Item -1 is', shoplist[-1]) prin...
27.178571
49
0.658344
7727c3a4fe50654ffd803485c0e0c94d2c96db3c
121,553
py
Python
salt/utils/parsers.py
eyj/salt
5232d7f60cb78591d8bad25d796b0a945fc6350c
[ "Apache-2.0" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
salt/utils/parsers.py
eyj/salt
5232d7f60cb78591d8bad25d796b0a945fc6350c
[ "Apache-2.0" ]
null
null
null
salt/utils/parsers.py
eyj/salt
5232d7f60cb78591d8bad25d796b0a945fc6350c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Pedro Algarvio (pedro@algarvio.me)` salt.utils.parsers ~~~~~~~~~~~~~~~~~~ This is where all the black magic happens on all of salt's CLI tools. ''' # pylint: disable=missing-docstring,protected-access,too-many-ancestors,too-few-public-methods # pylint:...
38.735819
110
0.543787
026962c395159a92f5db4dc41caa8e06f959058f
443
py
Python
ml/data_utils.py
wds-seu/Aceso
70fca2b3ff810fa32b7ebe6edf0d264da126d521
[ "MIT" ]
1
2019-10-08T10:54:52.000Z
2019-10-08T10:54:52.000Z
ml/data_utils.py
wds-seu/Aceso
70fca2b3ff810fa32b7ebe6edf0d264da126d521
[ "MIT" ]
null
null
null
ml/data_utils.py
wds-seu/Aceso
70fca2b3ff810fa32b7ebe6edf0d264da126d521
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 _*- from sklearn.model_selection import train_test_split from utils.DataHelper import DataHelper from config import DefaultConfig opt = DefaultConfig() def build_data(): x_text, y, vocabulary, vocabulary_inv = DataHelper(opt.train_data_root, train=True).load_text_data(op...
34.076923
116
0.772009
161fc216cd97b68346d08db33a110ef3a04fb9bd
5,738
py
Python
betka/utils.py
phracek/betka
12c920bd76d33f81bbf8cda6f27d673c8826cf9e
[ "MIT" ]
1
2020-11-05T21:16:28.000Z
2020-11-05T21:16:28.000Z
betka/utils.py
phracek/betka
12c920bd76d33f81bbf8cda6f27d673c8826cf9e
[ "MIT" ]
16
2020-03-20T11:23:27.000Z
2022-03-08T17:09:11.000Z
betka/utils.py
phracek/betka
12c920bd76d33f81bbf8cda6f27d673c8826cf9e
[ "MIT" ]
1
2020-03-11T09:29:48.000Z
2020-03-11T09:29:48.000Z
# MIT License # # Copyright (c) 2020 SCL team at Red Hat # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify,...
32.788571
89
0.66626
5d0138a06f2443ef3fc96673c74b3944b37a3723
1,782
py
Python
torch_glow/tests/nodes/avgpool1d_test.py
YaronBenAtar/glow
a13706a4239fa7eaf059c670dc573e3eb0768f86
[ "Apache-2.0" ]
2,838
2018-05-02T16:57:22.000Z
2022-03-31T14:35:26.000Z
torch_glow/tests/nodes/avgpool1d_test.py
YaronBenAtar/glow
a13706a4239fa7eaf059c670dc573e3eb0768f86
[ "Apache-2.0" ]
4,149
2018-05-02T17:50:14.000Z
2022-03-31T23:56:43.000Z
torch_glow/tests/nodes/avgpool1d_test.py
LaudateCorpus1/glow-1
cda5383b1609ebad1a3631ca77b41b8a863443d4
[ "Apache-2.0" ]
685
2018-05-02T16:54:09.000Z
2022-03-24T01:12:24.000Z
# Copyright (c) Glow Contributors. See CONTRIBUTORS file. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
34.269231
88
0.708193
b1c5f4cfef4234cf455db73d71bf20f2ddeb87c5
15,306
py
Python
python/ccxt/async_support/btcbox.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
1
2018-08-20T09:38:13.000Z
2018-08-20T09:38:13.000Z
python/ccxt/async_support/btcbox.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
null
null
null
python/ccxt/async_support/btcbox.py
atoll6/ccxt
3c5fd65a32073bfbe1a7e0f5a02d7d3f93850780
[ "MIT" ]
1
2021-09-16T08:33:31.000Z
2021-09-16T08:33:31.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
39.65285
170
0.531948
dbc4bc7d40e97ad6c5ca88fbb4c028df75f0f9d1
6,860
py
Python
raasbot/api/views.py
kneeraazon01/raasbot
932648a6017cc5f888038ad3c54bb59c35deadf8
[ "Apache-2.0" ]
null
null
null
raasbot/api/views.py
kneeraazon01/raasbot
932648a6017cc5f888038ad3c54bb59c35deadf8
[ "Apache-2.0" ]
null
null
null
raasbot/api/views.py
kneeraazon01/raasbot
932648a6017cc5f888038ad3c54bb59c35deadf8
[ "Apache-2.0" ]
null
null
null
import json from django.http import JsonResponse from raasbot.settings import BASE_DIR from random import choice from os import path from core.models import ( User, Bot, ScrapedUser, UserMessageData, Message, Text, LogData ) def get_essentials(request): data = json.loads...
31.46789
168
0.528134
947964009551475601d73b7ef519a2e87594ff86
39
py
Python
packages/jsii-rosetta/test/translations/calls/method_call.py
NGL321/jsii
a31ebf5ef676391d97f2286edc21e5859c38c96c
[ "Apache-2.0" ]
1,639
2019-07-05T07:21:00.000Z
2022-03-31T09:55:01.000Z
packages/jsii-rosetta/test/translations/calls/method_call.py
NGL321/jsii
a31ebf5ef676391d97f2286edc21e5859c38c96c
[ "Apache-2.0" ]
2,704
2019-07-01T23:10:28.000Z
2022-03-31T23:40:12.000Z
packages/jsii-rosetta/test/translations/calls/method_call.py
NGL321/jsii
a31ebf5ef676391d97f2286edc21e5859c38c96c
[ "Apache-2.0" ]
146
2019-07-02T14:36:25.000Z
2022-03-26T00:21:27.000Z
some_object.call_some_function(1, 2, 3)
39
39
0.820513
0ef02d4cfc1faf8314ad3d3f2641e5dc2eb22651
9,230
py
Python
teste/lstm.py
joandesonandrade/nebulosa
5bc157322ed0bdb81f6f00f6ed1ea7f7a5cadfe0
[ "MIT" ]
null
null
null
teste/lstm.py
joandesonandrade/nebulosa
5bc157322ed0bdb81f6f00f6ed1ea7f7a5cadfe0
[ "MIT" ]
null
null
null
teste/lstm.py
joandesonandrade/nebulosa
5bc157322ed0bdb81f6f00f6ed1ea7f7a5cadfe0
[ "MIT" ]
null
null
null
# Código desenvolvido pelo Pedro Piassa # Artigo http://www.uel.br/cce/dc/wp-content/uploads/PRELIMINAR-PEDRO-VITOR-PIASSA.pdf todos os direitos reservados. import os from math import * import pandas as pd import matplotlib.pyplot as plt import numpy as np import tensorflow as tf from tensorflow.keras.models import...
32.614841
177
0.614951
3879967ddb860fa780d0041379d64132aabcb634
473
py
Python
Lib/test/test_difflib.py
deadsnakes/python2.3
0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849
[ "PSF-2.0" ]
1
2020-11-26T18:53:46.000Z
2020-11-26T18:53:46.000Z
Lib/test/test_difflib.py
deadsnakes/python2.3
0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849
[ "PSF-2.0" ]
null
null
null
Lib/test/test_difflib.py
deadsnakes/python2.3
0b4a6871ca57123c10aa48cc2a5d2b7c0ee3c849
[ "PSF-2.0" ]
1
2019-04-11T11:27:01.000Z
2019-04-11T11:27:01.000Z
import difflib from test import test_support import unittest import doctest class TestSFbugs(unittest.TestCase): def test_ratio_for_null_seqn(self): # Check clearing of SF bug 763023 s = difflib.SequenceMatcher(None, [], []) self.assertEqual(s.ratio(), 1) self.assertEqual(s.quick_r...
24.894737
49
0.718816
e10900f18bbb495e2228594da2923c849a55de50
943
py
Python
BMSS/models/model_functions/BMSS_LogicGate_ANDgate_BasalLeakinessP1_BasalLeakinessP3_MaturationTime.py
EngBioNUS/BMSS2
41163c61a4e0ef3c6430e5954d81a77832e49a9d
[ "Apache-2.0" ]
null
null
null
BMSS/models/model_functions/BMSS_LogicGate_ANDgate_BasalLeakinessP1_BasalLeakinessP3_MaturationTime.py
EngBioNUS/BMSS2
41163c61a4e0ef3c6430e5954d81a77832e49a9d
[ "Apache-2.0" ]
null
null
null
BMSS/models/model_functions/BMSS_LogicGate_ANDgate_BasalLeakinessP1_BasalLeakinessP3_MaturationTime.py
EngBioNUS/BMSS2
41163c61a4e0ef3c6430e5954d81a77832e49a9d
[ "Apache-2.0" ]
4
2020-08-24T13:35:55.000Z
2022-03-07T16:48:12.000Z
import numpy as np from numpy import log as ln from numpy import log10 as log from numpy import exp from numba import jit @jit(nopython=True) def model_BMSS_LogicGate_ANDgate_BasalLeakinessP1_BasalLeakinessP3_MaturationTime(y, t, params): m1 = y[0] p1 = y[1] m2 = y[2] p2 = y[3] m3 = y[4] p3...
24.179487
96
0.622481
465a5b849ec43b60bdd1fb5c18a038cf6ba281c3
2,555
py
Python
Vuld_SySe/clone_analysis/analyze_clone.py
bstee615/ReVeal
fc22d0d54a3a23d4e0bc45a249b7eea22749685e
[ "MIT" ]
63
2020-09-24T07:51:45.000Z
2022-03-24T03:34:43.000Z
Vuld_SySe/clone_analysis/analyze_clone.py
smartcontract-detect-yzu/ReVeal
ca31b783384b4cdb09b69950e48f79fa0748ef1d
[ "MIT" ]
16
2020-08-04T16:26:46.000Z
2022-03-08T03:13:33.000Z
Vuld_SySe/clone_analysis/analyze_clone.py
smartcontract-detect-yzu/ReVeal
ca31b783384b4cdb09b69950e48f79fa0748ef1d
[ "MIT" ]
29
2020-09-08T17:27:07.000Z
2022-03-31T22:32:39.000Z
import argparse import json import numpy as np from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.cluster import KMeans from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestClassifier from sklearn.svm import LinearSVC from sklearn.metrics import accuracy_s...
34.066667
124
0.610176
3f2c58be4306c6ae33b80bf1d1e7afde5a7ee7c7
8,191
py
Python
unittests/testerrors.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
null
null
null
unittests/testerrors.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
null
null
null
unittests/testerrors.py
Serhiy1/archivist-python
70c7acf29eecd303bb1517d3636663d83f36cc2c
[ "MIT" ]
null
null
null
""" Test archivist """ # pylint: disable=attribute-defined-outside-init # pylint: disable=missing-docstring # pylint: disable=too-few-public-methods import json from unittest import TestCase from requests_toolbelt.multipart.encoder import MultipartEncoder from archivist.errors import ( _parse_response, Arc...
25.359133
91
0.53046
c21edd9c4d9fc3d01afae0497d3eab3e9c31ff09
506
py
Python
pypy/jit/codegen/i386/test/test_genc_virtualizable.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/jit/codegen/i386/test/test_genc_virtualizable.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/jit/codegen/i386/test/test_genc_virtualizable.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
from pypy.jit.codegen.i386.test.test_genc_portal import I386PortalTestMixin from pypy.jit.timeshifter.test import test_virtualizable class TestVirtualizableExplicit(I386PortalTestMixin, test_virtualizable.TestVirtualizableExplicit): pass class TestVirtualizableImplicit(I386PortalT...
33.733333
78
0.727273
aee193b572fa6bb5a397563697e9c0175fc63ba2
16,074
py
Python
tests/regressiontests/admin_views/models.py
five3/django
fa3f0aa021bea85b9196ef154a32c7bb1023a1e9
[ "BSD-3-Clause" ]
3
2015-10-14T09:13:48.000Z
2021-01-01T06:31:25.000Z
tests/regressiontests/admin_views/models.py
econchick/django
86c5c0154f69728eba4aad6204621f07cdd3459d
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/admin_views/models.py
econchick/django
86c5c0154f69728eba4aad6204621f07cdd3459d
[ "BSD-3-Clause" ]
1
2019-07-15T02:35:16.000Z
2019-07-15T02:35:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime import tempfile import os from django.contrib.auth.models import User from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.core.files.storage import FileSystemStorage from ...
25.884058
110
0.689188
853c025e7d5e8a53de7685c1b072eb1ce8ff162a
1,342
py
Python
templates/agent_NOP.py
trer/bombots
16f0360236185e104f219127770e62799eb3c4ab
[ "MIT" ]
null
null
null
templates/agent_NOP.py
trer/bombots
16f0360236185e104f219127770e62799eb3c4ab
[ "MIT" ]
null
null
null
templates/agent_NOP.py
trer/bombots
16f0360236185e104f219127770e62799eb3c4ab
[ "MIT" ]
null
null
null
import random import sys import numpy as np sys.path.append("..") from bombots.environment import Bombots from collections import Counter class NOPAgent: # Feel free to remove the comments from this file, they # can be found in the source on GitHub at any time # https://github.com/CogitoNTNU/bombots...
28.553191
98
0.648286
a1207a43231398e66b31d93db3c6a745292b4259
766
py
Python
var/spack/repos/builtin/packages/libxprintapputil/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
var/spack/repos/builtin/packages/libxprintapputil/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
var/spack/repos/builtin/packages/libxprintapputil/package.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Libxprintapputil(AutotoolsPackage): """Xprint application utility routines.""" homepa...
30.64
87
0.71671
ff652cb01eb0f230a4c418594a9a254d3ce42ebb
2,973
py
Python
tests/test_client.py
jaebradley/nba_data
30d817bbc1c5474774f97f3800354492e382d206
[ "MIT" ]
8
2017-01-07T13:32:16.000Z
2019-08-08T17:36:26.000Z
tests/test_client.py
jaebradley/nba_data
30d817bbc1c5474774f97f3800354492e382d206
[ "MIT" ]
72
2016-09-01T01:21:07.000Z
2021-03-25T21:41:38.000Z
tests/test_client.py
jaebradley/nba_data
30d817bbc1c5474774f97f3800354492e382d206
[ "MIT" ]
4
2016-12-06T10:30:59.000Z
2021-09-08T21:23:43.000Z
from datetime import date from unittest import TestCase from nba_data.client import Client from nba_data.data.box_scores import GameBoxScore from nba_data.data.game import LoggedGame from nba_data.data.players import Player, DetailedPlayer from nba_data.data.season import Season from nba_data.data.team import Team c...
39.118421
94
0.734612
422248934e888289363b595c08543c6b63446d3a
32,398
py
Python
net/xception_body.py
rickyHong/Light-Head-RCNN-enhanced-Xdetector
1b19e15709635e007494648c4fb519b703a29d84
[ "Apache-2.0" ]
116
2018-03-12T19:38:06.000Z
2021-02-23T16:15:34.000Z
net/xception_body.py
rickyHong/Light-Head-RCNN-enhanced-Xdetector
1b19e15709635e007494648c4fb519b703a29d84
[ "Apache-2.0" ]
11
2018-04-25T15:46:21.000Z
2019-03-15T11:25:48.000Z
net/xception_body.py
rickyHong/Light-Head-RCNN-enhanced-Xdetector
1b19e15709635e007494648c4fb519b703a29d84
[ "Apache-2.0" ]
37
2018-03-31T03:38:42.000Z
2020-09-18T09:04:32.000Z
# Copyright 2018 Changan Wang # 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, so...
57.443262
292
0.620316
acb165dcd72bc31a14763c6569e915f4373b10fb
411
py
Python
build/ros_control/hardware_interface/catkin_generated/pkg.installspace.context.pc.py
Jam-cpu/Masters-Project---Final
0b266b1f117a579b96507249f0a128d0e3cc082a
[ "BSD-3-Clause-Clear" ]
null
null
null
build/ros_control/hardware_interface/catkin_generated/pkg.installspace.context.pc.py
Jam-cpu/Masters-Project---Final
0b266b1f117a579b96507249f0a128d0e3cc082a
[ "BSD-3-Clause-Clear" ]
null
null
null
build/ros_control/hardware_interface/catkin_generated/pkg.installspace.context.pc.py
Jam-cpu/Masters-Project---Final
0b266b1f117a579b96507249f0a128d0e3cc082a
[ "BSD-3-Clause-Clear" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME ...
45.666667
101
0.717762
2e7c6965bed99f7cfa627e7992ca7b5f54a9c738
1,305
py
Python
aoc_cas/aoc2021/day11.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
1
2020-11-30T19:17:50.000Z
2020-11-30T19:17:50.000Z
aoc_cas/aoc2021/day11.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
null
null
null
aoc_cas/aoc2021/day11.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
null
null
null
def step(grid): M, N = len(grid), len(grid[0]) allFlashes = set() flashed = set() for y in range(M): for x in range(N): grid[y][x] += 1 if grid[y][x] == 10: flashed.add((y, x)) while flashed: allFlashes.update(flashed) nxt = set() ...
25.588235
63
0.479693
9e3c44abdf87e00e1e8968c006431a091de697ef
930
py
Python
src/lexers/common_lexer/lexer.py
cezarschroeder/language-applications
b9ad61f7b472c7939997a210837586464866c698
[ "MIT" ]
null
null
null
src/lexers/common_lexer/lexer.py
cezarschroeder/language-applications
b9ad61f7b472c7939997a210837586464866c698
[ "MIT" ]
null
null
null
src/lexers/common_lexer/lexer.py
cezarschroeder/language-applications
b9ad61f7b472c7939997a210837586464866c698
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod class Lexer(ABC): EOF: str = '<EOF>' EOF_TYPE: int = 1 input_string: str = '' current_position: int = 0 current_char: str = '' def __init__(self, input_string: str): self.input_string = input_string self.current_char = input_string[self.curr...
26.571429
95
0.62043
8b5bf68362f6096d3e3be5e36c8755369879ab6d
3,231
py
Python
dmm/dmm_input.py
clinfo/DeepKF
ee4f1be28e5f3bfa46bb47dbdc4d5f678eed36c1
[ "MIT" ]
5
2019-12-19T13:33:36.000Z
2021-06-01T06:08:16.000Z
dmm/dmm_input.py
clinfo/DeepKF
ee4f1be28e5f3bfa46bb47dbdc4d5f678eed36c1
[ "MIT" ]
24
2020-03-03T19:40:55.000Z
2021-05-26T15:27:38.000Z
dmm/dmm_input.py
clinfo/DeepKF
ee4f1be28e5f3bfa46bb47dbdc4d5f678eed36c1
[ "MIT" ]
1
2019-12-19T13:35:07.000Z
2019-12-19T13:35:07.000Z
# ============================================================================== # Load data # Copyright 2017 Kyoto Univ. Okuno lab. . All Rights Reserved. # ============================================================================== from __future__ import absolute_import from __future__ import division from __fut...
29.108108
80
0.561127
5ee21cab062fbb17ab361df8708b6a99cb4faeb3
2,993
py
Python
sources/experiments/baseline/extract_metrics3.py
JohannOberleitner/pdesolver
f01f83bde44e9f5aae424a4daa13219f986c5884
[ "Apache-2.0" ]
null
null
null
sources/experiments/baseline/extract_metrics3.py
JohannOberleitner/pdesolver
f01f83bde44e9f5aae424a4daa13219f986c5884
[ "Apache-2.0" ]
null
null
null
sources/experiments/baseline/extract_metrics3.py
JohannOberleitner/pdesolver
f01f83bde44e9f5aae424a4daa13219f986c5884
[ "Apache-2.0" ]
null
null
null
import getopt import json import sys def make_filename(baseFilename, gridSize, architectureType, count, epochs, index, charges_count, postfix): return '{0}_{1}_{2}_{3}_{4}_{5}_{6}_{7}'.format(baseFilename, gridSize, architectureType, charges_count, epochs, count, index, postfix) def parseArguments(argv): sup...
39.381579
277
0.638824
c6d9c40151b223d4e1eb6c76179e222f8444f3da
15,451
py
Python
pyblp/results/bootstrapped_results.py
smgim/pyblp
ade94928d840f14c44aca845db8d63b8056faaea
[ "MIT" ]
null
null
null
pyblp/results/bootstrapped_results.py
smgim/pyblp
ade94928d840f14c44aca845db8d63b8056faaea
[ "MIT" ]
null
null
null
pyblp/results/bootstrapped_results.py
smgim/pyblp
ade94928d840f14c44aca845db8d63b8056faaea
[ "MIT" ]
null
null
null
"""Economy-level structuring of bootstrapped BLP problem results.""" import itertools from pathlib import Path import pickle import time from typing import Any, Callable, Dict, Hashable, List, Mapping, Optional, Sequence, Tuple, Union import numpy as np from .problem_results import ProblemResults from .results impor...
50.32899
120
0.663193
9e533bcf077d35b39e5d1b1f565d9562861ff2ea
1,576
py
Python
ede/fixtures.py
FrancoisConstant/elm-django-example
bcee0b364467e1ad367397aa576b6000a206d738
[ "Unlicense" ]
5
2018-10-08T09:04:42.000Z
2020-11-21T13:17:56.000Z
ede/fixtures.py
FrancoisConstant/elm-django-example
bcee0b364467e1ad367397aa576b6000a206d738
[ "Unlicense" ]
null
null
null
ede/fixtures.py
FrancoisConstant/elm-django-example
bcee0b364467e1ad367397aa576b6000a206d738
[ "Unlicense" ]
1
2020-07-31T20:07:43.000Z
2020-07-31T20:07:43.000Z
from ede.models import TweetAuthor, Tweet def load_some_random_tweets(): jesus = TweetAuthor.objects.create( name="Jesus", username="jesus" ) for tweet in ( """I will be out of the office until Monday with no phone or email access. If you need immediate attention please contact my...
45.028571
149
0.647843
284973a49d15540d8e64e7fe575d07be290cae46
2,686
py
Python
onnxmltools/convert/sparkml/operator_converters/imputer.py
xhochy/onnxmltools
cb2782b155ff67dc1e586f36a27c5d032070c801
[ "Apache-2.0" ]
623
2018-02-16T20:43:01.000Z
2022-03-31T05:00:17.000Z
onnxmltools/convert/sparkml/operator_converters/imputer.py
xhochy/onnxmltools
cb2782b155ff67dc1e586f36a27c5d032070c801
[ "Apache-2.0" ]
339
2018-02-26T21:27:04.000Z
2022-03-31T03:16:50.000Z
onnxmltools/convert/sparkml/operator_converters/imputer.py
xhochy/onnxmltools
cb2782b155ff67dc1e586f36a27c5d032070c801
[ "Apache-2.0" ]
152
2018-02-24T01:20:22.000Z
2022-03-31T07:41:35.000Z
# SPDX-License-Identifier: Apache-2.0 import copy from ...common.data_types import Int64TensorType, FloatTensorType from ...common.utils import check_input_and_output_numbers, check_input_and_output_types from ...common._registration import register_converter, register_shape_calculator def convert_imputer(scope, op...
44.766667
105
0.675726
6108520198937274eb787e68d28c67c21609c223
12,074
py
Python
wikiconv/ingest_revisions/dataflow_main.py
ipavlopoulos/wikidetox
16fb2fe900964aa27d0cf10c7316c41dcb8ff9a2
[ "Apache-2.0" ]
null
null
null
wikiconv/ingest_revisions/dataflow_main.py
ipavlopoulos/wikidetox
16fb2fe900964aa27d0cf10c7316c41dcb8ff9a2
[ "Apache-2.0" ]
14
2020-11-13T18:58:29.000Z
2022-03-02T09:31:46.000Z
wikiconv/ingest_revisions/dataflow_main.py
cameronaaron/wikidetox
8dec18ba2c0e19efc3ed1dd3f40dd0b8d9f3b4fa
[ "Apache-2.0" ]
1
2020-09-25T15:46:02.000Z
2020-09-25T15:46:02.000Z
""" Copyright 2017 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
42.069686
166
0.688256
08adfe91f6a227885367bf7dbfb2c5eab63c1380
3,791
py
Python
zcrmsdk/src/com/zoho/crm/api/org/api_exception.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/org/api_exception.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
zcrmsdk/src/com/zoho/crm/api/org/api_exception.py
zoho/zohocrm-python-sdk-2.0
3a93eb3b57fed4e08f26bd5b311e101cb2995411
[ "Apache-2.0" ]
null
null
null
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Choice, Constants from zcrmsdk.src.com.zoho.crm.api.org.action_response import ActionResponse from zcrmsdk.src.com.zoho.crm.api.org.response_handler import ResponseHandler except Exception: from ..exc...
24.458065
100
0.718808
9cef3a306d331d5b0f37fc9fa5a1bcb2a32029bd
870
py
Python
scratch/sonar.py
wbkang/rpi-repo
fc2b770f99cc2405fbf6855f9f961c4f6aed99cb
[ "MIT" ]
null
null
null
scratch/sonar.py
wbkang/rpi-repo
fc2b770f99cc2405fbf6855f9f961c4f6aed99cb
[ "MIT" ]
null
null
null
scratch/sonar.py
wbkang/rpi-repo
fc2b770f99cc2405fbf6855f9f961c4f6aed99cb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) trigger = 25 echo = 12 GPIO.setup(trigger, GPIO.OUT) GPIO.setup(echo, GPIO.IN) while True: GPIO.output(trigger, False) print("Waiting for trigger to settle") time.sleep(1) GPIO.output(trigger, True) time.sleep(0...
18.913043
61
0.647126
1af8d8122ed656e879deda0e0916ecb5e9dcd587
107,999
py
Python
test/integration/component/test_vpc.py
ksowmya/cloudstack-1
f8f779158da056be7da669884ae4ddd109cec044
[ "Apache-2.0" ]
1
2020-03-27T22:21:20.000Z
2020-03-27T22:21:20.000Z
test/integration/component/test_vpc.py
ksowmya/cloudstack-1
f8f779158da056be7da669884ae4ddd109cec044
[ "Apache-2.0" ]
6
2020-11-16T20:46:14.000Z
2022-02-01T01:06:16.000Z
test/integration/component/test_vpc.py
pkoistin/cloudstack
fd43cf151663c48fe29f97323490d53a7c0f9d5b
[ "ECL-2.0", "Apache-2.0" ]
1
2019-12-26T07:16:06.000Z
2019-12-26T07:16:06.000Z
# 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 u...
44.646135
130
0.43631
a4e611d14d4270f4f75dd1d02c9d363a287c4957
157
py
Python
authlib/oauth2/rfc8414/__init__.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
1
2021-12-09T07:11:05.000Z
2021-12-09T07:11:05.000Z
authlib/oauth2/rfc8414/__init__.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
null
null
null
authlib/oauth2/rfc8414/__init__.py
jonathanunderwood/authlib
3834a2a80876a87cdaab4240d77185179970c3ab
[ "BSD-3-Clause" ]
2
2021-05-24T20:34:12.000Z
2022-03-26T07:46:17.000Z
from .models import AuthorizationServerMetadata from .well_known import get_well_known_url __all__ = ['AuthorizationServerMetadata', 'get_well_known_url']
26.166667
63
0.847134
6873c21cb8bf8647565adb655e8124bfb1ce1947
644
py
Python
code/Test/test_PortscanAttack.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
33
2018-11-21T12:50:52.000Z
2022-01-12T05:38:12.000Z
code/Test/test_PortscanAttack.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
108
2018-11-21T12:33:47.000Z
2022-02-09T15:56:59.000Z
code/Test/test_PortscanAttack.py
TomasMadeja/ID2T
77f51c074d1ff83c7d648ae62ecaed3e5cfde80c
[ "MIT" ]
20
2018-11-22T13:03:20.000Z
2022-01-12T00:19:28.000Z
import Test.ID2TAttackTest as Test class UnitTestPortscanAttack(Test.ID2TAttackTest): def test_portscan_basic(self): self.order_test([['PortscanAttack']]) def test_portscan_revers_ports(self): self.order_test([['PortscanAttack', 'port.dst.order-desc=1']]) def test_portscan_shuffle_dst_p...
32.2
81
0.700311
2df59a1151bf6c50c6aa8504fdecff8af387ed5f
9,667
py
Python
rosiepi/run_rosiepi.py
sommersoft/RosiePi
45d7de65e924ae6a9fb804e8795b169eb1085243
[ "MIT" ]
null
null
null
rosiepi/run_rosiepi.py
sommersoft/RosiePi
45d7de65e924ae6a9fb804e8795b169eb1085243
[ "MIT" ]
null
null
null
rosiepi/run_rosiepi.py
sommersoft/RosiePi
45d7de65e924ae6a9fb804e8795b169eb1085243
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Michael Schroeder # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
32.880952
83
0.644771
b1208a88f57bf3e9dc48493a4ad89161dd97a2f3
4,367
py
Python
builds/min-v1.0/21Lane-min-v1.0-windows/21Lane/ftpclient.py
jarvis004/21Lane
2da4ae4825f165148fbc4762b5eeb43283a7546a
[ "Apache-1.1" ]
1
2017-04-24T21:49:45.000Z
2017-04-24T21:49:45.000Z
builds/min-v1.0/21Lane-min-v1.0-windows/21Lane/ftpclient.py
jarvis004/21Lane
2da4ae4825f165148fbc4762b5eeb43283a7546a
[ "Apache-1.1" ]
null
null
null
builds/min-v1.0/21Lane-min-v1.0-windows/21Lane/ftpclient.py
jarvis004/21Lane
2da4ae4825f165148fbc4762b5eeb43283a7546a
[ "Apache-1.1" ]
null
null
null
import sys, os import ftplib from pprint import pprint from copy import deepcopy # make sure port number is an integer configFile = 'ftp-client.conf' class FTPClient: def __init__(self, hostname='localhost', port=2121): self.hostname = hostname self.port = int(port) self.pwd = '/' self.filelist = None sel...
25.538012
113
0.643233
880c7fcc6c15c9ae213369eaf2b6be0c0cbe49c6
5,726
py
Python
tools/profiling/ios_bin/binary_size.py
goodarzysepideh/grpc
5a4ba15346f2dc75960e91148f5f77aa682e0f6a
[ "Apache-2.0" ]
5
2019-11-12T04:30:55.000Z
2021-08-11T23:04:12.000Z
tools/profiling/ios_bin/binary_size.py
goodarzysepideh/grpc
5a4ba15346f2dc75960e91148f5f77aa682e0f6a
[ "Apache-2.0" ]
10
2015-03-03T06:51:51.000Z
2022-03-23T14:10:56.000Z
tools/profiling/ios_bin/binary_size.py
goodarzysepideh/grpc
5a4ba15346f2dc75960e91148f5f77aa682e0f6a
[ "Apache-2.0" ]
2
2021-09-13T15:17:48.000Z
2022-02-04T21:54:39.000Z
#!/usr/bin/env python3 # # Copyright 2018 gRPC 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 la...
38.173333
132
0.585225
4df0fdcfb86d9c81fa006b0a64c16033dd466b40
471
py
Python
ex30.py
EiEiKyaw/python-exercise
63dcc073f55f125de784eb61aa7c82a50ca706ed
[ "MIT" ]
null
null
null
ex30.py
EiEiKyaw/python-exercise
63dcc073f55f125de784eb61aa7c82a50ca706ed
[ "MIT" ]
null
null
null
ex30.py
EiEiKyaw/python-exercise
63dcc073f55f125de784eb61aa7c82a50ca706ed
[ "MIT" ]
null
null
null
people = 30 cars = 40 trucks = 15 if cars > people: print("We should take the cars.") elif cars < people: print("We should not take the cars.") else: print("We can't decide.") if trucks > cars: print("That's too many trucks.") elif trucks < cars: print("Maybe we could take the trucks.") else: ...
19.625
49
0.639066
e58c4709959f2a79d40786e239c8ae523dd3714a
1,620
py
Python
TensorFlow_implementation/Summary_Generator/Text_Preprocessing_Helpers/pickling_tools.py
shashankk24/natural-language-summary-generation-from-structured-data-master
a8bd083685ff7d5c0228588c47ddfcecba4cf78b
[ "MIT" ]
187
2017-12-16T06:22:52.000Z
2022-03-13T03:46:55.000Z
TensorFlow_implementation/Summary_Generator/Text_Preprocessing_Helpers/pickling_tools.py
shashankk24/natural-language-summary-generation-from-structured-data-master
a8bd083685ff7d5c0228588c47ddfcecba4cf78b
[ "MIT" ]
12
2017-12-19T08:51:12.000Z
2021-11-16T18:55:20.000Z
TensorFlow_implementation/Summary_Generator/Text_Preprocessing_Helpers/pickling_tools.py
shashankk24/natural-language-summary-generation-from-structured-data-master
a8bd083685ff7d5c0228588c47ddfcecba4cf78b
[ "MIT" ]
54
2017-12-18T21:52:10.000Z
2022-01-25T12:51:51.000Z
from __future__ import print_function import _pickle as pickle # pickle module in python import os # for path related operations ''' Simple function to perform pickling of the given object. This fucntion may fail if the size of the object exceeds the max size of the pickling protocol used. Although this is hi...
34.468085
121
0.691358
c73235ac97b242309e20ba2204439aca1dd108f5
1,135
py
Python
nvd3/__init__.py
timgates42/python-nvd3
f9cb41b5deaa0d7c338764d7008a4c9a5ad50dca
[ "MIT" ]
442
2015-01-12T10:13:52.000Z
2022-01-11T15:18:48.000Z
nvd3/__init__.py
timgates42/python-nvd3
f9cb41b5deaa0d7c338764d7008a4c9a5ad50dca
[ "MIT" ]
106
2015-01-11T20:27:50.000Z
2021-11-05T17:18:15.000Z
nvd3/__init__.py
timgates42/python-nvd3
f9cb41b5deaa0d7c338764d7008a4c9a5ad50dca
[ "MIT" ]
161
2015-01-06T13:31:18.000Z
2022-03-09T05:22:30.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ Python-nvd3 is a Python wrapper for NVD3 graph library. NVD3 is an attempt to build re-usable charts and chart components for d3.js without taking away the power that d3.js gives you. Project location : https://github.com/areski/python-nvd3 """ __version__ = '0.14.2' __a...
34.393939
65
0.778855
bae6673b12509c4e956367e597d5ffbab7a00d33
1,303
py
Python
id_spider/generate_lua_table.py
AceticAcid-89/TakusMorphCatalog
c8ff0d394f8050424f0bde587e5fcf9c850f746e
[ "MIT" ]
2
2020-07-20T09:34:09.000Z
2020-08-05T14:41:49.000Z
id_spider/generate_lua_table.py
AceticAcid-89/TakusMorphCatalog
c8ff0d394f8050424f0bde587e5fcf9c850f746e
[ "MIT" ]
null
null
null
id_spider/generate_lua_table.py
AceticAcid-89/TakusMorphCatalog
c8ff0d394f8050424f0bde587e5fcf9c850f746e
[ "MIT" ]
1
2020-08-05T14:44:52.000Z
2020-08-05T14:44:52.000Z
# coding=utf-8 import json NPC_JSON_FILE = "npc_id_display_id.json" MOUNT_JSON_FILE = "mount_spell_id_display_id.json" target_lua = "..\\database\\npc_%s.lua" with open(NPC_JSON_FILE, encoding="utf-8") as f: data = json.load(f) with open(MOUNT_JSON_FILE, encoding="utf-8") as f: data.update(json.load(f)) f...
28.955556
61
0.606293
5b3f063aa6752a360cbe14bbc7a063995f258cd4
269
py
Python
tests/artificial/transf_Quantization/trend_LinearTrend/cycle_30/ar_/test_artificial_32_Quantization_LinearTrend_30__20.py
shaido987/pyaf
b9afd089557bed6b90b246d3712c481ae26a1957
[ "BSD-3-Clause" ]
377
2016-10-13T20:52:44.000Z
2022-03-29T18:04:14.000Z
tests/artificial/transf_Quantization/trend_LinearTrend/cycle_30/ar_/test_artificial_32_Quantization_LinearTrend_30__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
160
2016-10-13T16:11:53.000Z
2022-03-28T04:21:34.000Z
tests/artificial/transf_Quantization/trend_LinearTrend/cycle_30/ar_/test_artificial_32_Quantization_LinearTrend_30__20.py
ysdede/pyaf
b5541b8249d5a1cfdc01f27fdfd99b6580ed680b
[ "BSD-3-Clause" ]
63
2017-03-09T14:51:18.000Z
2022-03-27T20:52:57.000Z
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 0);
38.428571
169
0.736059
fa3ffc6288247c5f6f065c89572cbfdd8f74bcd9
818
py
Python
gmail_att_example.py
mattepasztor/Mikroelektro--GKLB_INTM020-_Beadando
7336160dcd09228f501b895154159be8e40b4ac1
[ "MIT" ]
null
null
null
gmail_att_example.py
mattepasztor/Mikroelektro--GKLB_INTM020-_Beadando
7336160dcd09228f501b895154159be8e40b4ac1
[ "MIT" ]
null
null
null
gmail_att_example.py
mattepasztor/Mikroelektro--GKLB_INTM020-_Beadando
7336160dcd09228f501b895154159be8e40b4ac1
[ "MIT" ]
null
null
null
import smtplib import mimetypes from email.message import EmailMessage message = EmailMessage() sender = "your-name@gmail.com" recipient = "example@example.com" message['From'] = sender message['To'] = recipient message['Subject'] = 'Learning to send email from medium.com' body = """Hello I am learning to send emails u...
32.72
61
0.768949
ec303d9e3981e66605633aef4f8af6b12b0c3094
673
py
Python
tests/pymath/test_fibonacci.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
tests/pymath/test_fibonacci.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
tests/pymath/test_fibonacci.py
BrianLusina/PyCharm
144dd4f6b2d254507237f46c8ee175c407fe053d
[ "Apache-2.0", "MIT" ]
null
null
null
import unittest from pymath.xbonacci.fibonacci import fib class FibonacciTestCase(unittest.TestCase): def test1(self): self.assertEquals(fib(0, 1, 1), [0, 1, 1]) def test5(self): self.assertEqual(fib(5, 8, 89), [5, 8, 13, 21, 34, 55, 89]) def test2(self): self.assertEquals(fib(0...
24.035714
75
0.542348
c517fdf57720b17e3e1245b562b4c47849cbbb1d
247
py
Python
Leetcode/950. Reveal Cards In Increasing Order/solution2.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/950. Reveal Cards In Increasing Order/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/950. Reveal Cards In Increasing Order/solution2.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
from collections import deque class Solution: def deckRevealedIncreasing(self, deck: List[int]) -> List[int]: d = deque() for x in sorted(deck)[::-1]: d.rotate() d.appendleft(x) return list(d)
22.454545
67
0.562753
d026e0d8de7ab4cf39a71bd3db4b611b26924e7e
1,221
bzl
Python
tools/bazel/rust_cxx_bridge.bzl
wqfish/cxx
45a1f88bf9e11ea0682f285a8dd353d866ff3cb8
[ "Apache-2.0", "MIT" ]
null
null
null
tools/bazel/rust_cxx_bridge.bzl
wqfish/cxx
45a1f88bf9e11ea0682f285a8dd353d866ff3cb8
[ "Apache-2.0", "MIT" ]
null
null
null
tools/bazel/rust_cxx_bridge.bzl
wqfish/cxx
45a1f88bf9e11ea0682f285a8dd353d866ff3cb8
[ "Apache-2.0", "MIT" ]
null
null
null
# buildifier: disable=module-docstring load("@bazel_skylib//rules:run_binary.bzl", "run_binary") load("@rules_cc//cc:defs.bzl", "cc_library") def rust_cxx_bridge(name, src, deps = []): """A macro defining a cxx bridge library Args: name (string): The name of the new target src (string): The ru...
24.42
100
0.472563
525169d272984fdd6103a849e5a39bb8f6f0db9f
9,083
bzl
Python
go/private/rules/binary.bzl
chancila/rules_go
3b6e69e730f98308b2f922682443b5d51fd61825
[ "Apache-2.0" ]
null
null
null
go/private/rules/binary.bzl
chancila/rules_go
3b6e69e730f98308b2f922682443b5d51fd61825
[ "Apache-2.0" ]
1
2021-09-10T08:34:28.000Z
2021-09-10T08:34:28.000Z
go/private/rules/binary.bzl
xflagstudio/rules_go
70b8365a90e226b98f66bc35d3abb3e335883d81
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
33.029091
94
0.580095
8ab9f25d840054dbc9dafa7c148423e6cd6cdbf5
24
py
Python
src/cog/__init__.py
Hen676/FadedDiscordBot.PY
ec83ebf928071759e2fcf74d0ad8ce84f18cf3ca
[ "MIT" ]
null
null
null
src/cog/__init__.py
Hen676/FadedDiscordBot.PY
ec83ebf928071759e2fcf74d0ad8ce84f18cf3ca
[ "MIT" ]
1
2021-04-03T21:34:16.000Z
2021-04-03T21:34:16.000Z
src/cog/__init__.py
Hen676/FadedDiscordBot.PY
ec83ebf928071759e2fcf74d0ad8ce84f18cf3ca
[ "MIT" ]
1
2021-02-24T14:50:14.000Z
2021-02-24T14:50:14.000Z
#!/usr/bin/env python3.7
24
24
0.708333
d38bf96fd14fe5edd2c227ddbe293af9533fca74
947
py
Python
tests/test_game_converter.py
mervynn/RocAlphaGo
7b3ea100e9602088b9ca9f7e5eff9c593e667649
[ "MIT" ]
1
2017-02-08T15:11:59.000Z
2017-02-08T15:11:59.000Z
tests/test_game_converter.py
mervynn/RocAlphaGo
7b3ea100e9602088b9ca9f7e5eff9c593e667649
[ "MIT" ]
null
null
null
tests/test_game_converter.py
mervynn/RocAlphaGo
7b3ea100e9602088b9ca9f7e5eff9c593e667649
[ "MIT" ]
null
null
null
from AlphaGo.preprocessing.game_converter import run_game_converter from AlphaGo.util import sgf_to_gamestate import unittest import os class TestSGFLoading(unittest.TestCase): def test_ab_aw(self): with open('tests/test_data/sgf/ab_aw.sgf', 'r') as f: sgf_to_gamestate(f.read()) class TestCm...
30.548387
67
0.635692
35ad33be6a1e6225ef205d621b1ec1a269636b44
17,762
py
Python
fromHTMLtoVagrant/VagrantTopologyOSPF.py
SuperboGiuseppe/dncs_lab2
c340169f3133c4fa1574f5be82268e2958e57975
[ "MIT" ]
2
2021-01-24T11:19:04.000Z
2021-01-24T16:36:41.000Z
fromHTMLtoVagrant/VagrantTopologyOSPF.py
SuperboGiuseppe/dncs_lab2
c340169f3133c4fa1574f5be82268e2958e57975
[ "MIT" ]
null
null
null
fromHTMLtoVagrant/VagrantTopologyOSPF.py
SuperboGiuseppe/dncs_lab2
c340169f3133c4fa1574f5be82268e2958e57975
[ "MIT" ]
3
2021-01-24T11:16:51.000Z
2021-03-20T10:18:00.000Z
import ipcalc import codecs import yaml #this function writes the beginning of the VagrantFile def BeginVagrantFile(f): f.write("# -*- mode: ruby -*- \n# vi: set ft=ruby :\n\n") f.write("#All Vagrant configuration is done below. The 2 in Vagrant.configure\n#configures the configuration version we support old...
38.197849
239
0.599201
19a064d12c2e513890077a2a3b62adfba76c2966
3,248
py
Python
airflow/dags/iotexetl_airflow/bigquery_utils.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
3
2020-07-04T13:53:38.000Z
2020-07-30T15:07:35.000Z
airflow/dags/iotexetl_airflow/bigquery_utils.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
13
2020-07-16T06:07:33.000Z
2020-08-20T10:35:10.000Z
airflow/dags/iotexetl_airflow/bigquery_utils.py
blockchain-etl/iotex-etl
bd350c3190acac35d17532eff383e05d08011e24
[ "MIT" ]
1
2021-01-20T10:06:20.000Z
2021-01-20T10:06:20.000Z
import json import logging from google.cloud import bigquery from google.api_core.exceptions import Conflict, NotFound, Forbidden from iotexetl_airflow.file_utils import read_file def create_dataset(client, dataset_name, project=None): dataset = client.dataset(dataset_name, project=project) try: log...
32.808081
95
0.673337
df678a6400bf8bf73819affa31fede801c9adee3
4,381
py
Python
src/erc20ABI.py
georgedaviesr3/web3-flashbots
3cbb266f32e215ca0ecf003c0c184735a4efa57a
[ "MIT" ]
null
null
null
src/erc20ABI.py
georgedaviesr3/web3-flashbots
3cbb266f32e215ca0ecf003c0c184735a4efa57a
[ "MIT" ]
null
null
null
src/erc20ABI.py
georgedaviesr3/web3-flashbots
3cbb266f32e215ca0ecf003c0c184735a4efa57a
[ "MIT" ]
null
null
null
abi = """ [{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"initialBalance","type":"uint256"},{"internalType":"address payable","name":"feeReceiver","type":"address"}],"stateMutability":"payable","type":"constr...
2,190.5
4,371
0.65921
03972863b1066e4187056dbc2a7e47c642010636
375
py
Python
app/YtManagerApp/migrations/0013_auto_20190922_1834.py
cyberjacob/ytsm
7e0bd75945b2bade0d38233e7fe890971d7909f2
[ "MIT" ]
1
2022-02-07T07:43:49.000Z
2022-02-07T07:43:49.000Z
app/YtManagerApp/migrations/0013_auto_20190922_1834.py
girlpunk/ytsm
7e0bd75945b2bade0d38233e7fe890971d7909f2
[ "MIT" ]
null
null
null
app/YtManagerApp/migrations/0013_auto_20190922_1834.py
girlpunk/ytsm
7e0bd75945b2bade0d38233e7fe890971d7909f2
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-22 18:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('YtManagerApp', '0012_auto_20190819_1615'), ] operations = [ migrations.AlterField( model_name='video', name='name', ...
19.736842
52
0.589333
0bb05c453490ab91c445164f878bfe14d7e386fb
725
py
Python
tests/integration/test_artist_searcher.py
LimaGuilherme/what-is-your-band-favorite-word-api
dff4a9ed120bdd9dca1ad72167aa963d15d810ca
[ "MIT" ]
null
null
null
tests/integration/test_artist_searcher.py
LimaGuilherme/what-is-your-band-favorite-word-api
dff4a9ed120bdd9dca1ad72167aa963d15d810ca
[ "MIT" ]
null
null
null
tests/integration/test_artist_searcher.py
LimaGuilherme/what-is-your-band-favorite-word-api
dff4a9ed120bdd9dca1ad72167aa963d15d810ca
[ "MIT" ]
null
null
null
from unittest import TestCase from src.lyrics.searchers import ArtistSearcher from src import configurations as config_module class TestArtistSearcher(TestCase): def setUp(self) -> None: self.config = config_module.get_config(config_type='full') def test_should_return_false_for_nonexistent_artist(s...
31.521739
80
0.761379
2773d9879273afd833af34f3f64e90035bda8932
3,705
py
Python
rotkehlchen/tests/fixtures/db.py
sponnet/rotki
ff706784fbc80cc66035a5355418c5ecf93f13ba
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/tests/fixtures/db.py
sponnet/rotki
ff706784fbc80cc66035a5355418c5ecf93f13ba
[ "BSD-3-Clause" ]
1
2020-01-14T04:37:15.000Z
2020-01-14T04:37:15.000Z
rotkehlchen/tests/fixtures/db.py
sponnet/rotki
ff706784fbc80cc66035a5355418c5ecf93f13ba
[ "BSD-3-Clause" ]
null
null
null
import os from typing import Any, Dict, List, Optional import pytest from rotkehlchen.assets.asset import Asset from rotkehlchen.db.dbhandler import DBHandler from rotkehlchen.db.settings import ModifiableDBSettings from rotkehlchen.tests.utils.constants import DEFAULT_TESTS_MAIN_CURRENCY from rotkehlchen.typing impo...
26.847826
87
0.721727
7b3e1dfb834c67ebe41c25676a768dd032b10f78
11,568
py
Python
train_multi_step.py
ahsan-muzaheed/MTGNN
1d82bdddbbaca57e5c9634e13605f80f0d8dd3c6
[ "MIT" ]
null
null
null
train_multi_step.py
ahsan-muzaheed/MTGNN
1d82bdddbbaca57e5c9634e13605f80f0d8dd3c6
[ "MIT" ]
null
null
null
train_multi_step.py
ahsan-muzaheed/MTGNN
1d82bdddbbaca57e5c9634e13605f80f0d8dd3c6
[ "MIT" ]
null
null
null
import torch import numpy as np import argparse import time from util import * from trainer import Trainer from net import gtnet def str_to_bool(value): if isinstance(value, bool): return value if value.lower() in {'false', 'f', '0', 'no', 'n'}: return False elif value.lower() in {'true', '...
39.889655
178
0.634941
e4fd6a1d25a14612f71157f2be50ad791d58941f
3,077
py
Python
cgcrepair/utils/parse/cwe.py
epicosy/cgc-repair
f347a29ef482019563402684e585080836d3d093
[ "MIT" ]
null
null
null
cgcrepair/utils/parse/cwe.py
epicosy/cgc-repair
f347a29ef482019563402684e585080836d3d093
[ "MIT" ]
null
null
null
cgcrepair/utils/parse/cwe.py
epicosy/cgc-repair
f347a29ef482019563402684e585080836d3d093
[ "MIT" ]
null
null
null
import itertools from typing import Union, List import pandas as pd import re CWE_REGEX = r'CWE-\d{1,4}' PARENT_CWE = r"^::NATURE:ChildOf:CWE ID:(\d{1,4}):" PRECEDE_CWE = r"::NATURE:CanPrecede:CWE ID:(\d{1,4}):" PEER_CWE = r"::NATURE:PeerOf:CWE ID:(\d{1,4}):" ALIAS_CWE = r"::NATURE:CanAlsoBe:CWE ID:(\d{1,4}):" # TODO...
25.221311
110
0.646409
7cc1ba6fcd7109c4840283fc4721084c9585eba6
2,651
py
Python
suii_mux_manager_comm/src/suii_mux_manager_comm/yaml_handler.py
RoboHubEindhoven/suii_control
312114ca878d8659e04a1ae8f1cfe7454dd9d060
[ "BSD-3-Clause" ]
null
null
null
suii_mux_manager_comm/src/suii_mux_manager_comm/yaml_handler.py
RoboHubEindhoven/suii_control
312114ca878d8659e04a1ae8f1cfe7454dd9d060
[ "BSD-3-Clause" ]
null
null
null
suii_mux_manager_comm/src/suii_mux_manager_comm/yaml_handler.py
RoboHubEindhoven/suii_control
312114ca878d8659e04a1ae8f1cfe7454dd9d060
[ "BSD-3-Clause" ]
null
null
null
from yaml_objects import * import yaml import string ## ===== YAMLReader ===== ## # Input: Path # Output: A parsed YAML Object class YAMLReader(): @staticmethod def load(path): yaml_file = None with open(path, 'r') as stream: try: yaml_file = yaml.safe_load(stream) ...
40.784615
120
0.550358
ff4b18b3c9d2186f572be37fecdb37eb10a9c7c1
704
py
Python
day7/day7.py
hmcc/advent-of-code-2021
6f9a2fc713901ca03eecf90fb0c2fa183a2b323f
[ "MIT" ]
null
null
null
day7/day7.py
hmcc/advent-of-code-2021
6f9a2fc713901ca03eecf90fb0c2fa183a2b323f
[ "MIT" ]
null
null
null
day7/day7.py
hmcc/advent-of-code-2021
6f9a2fc713901ca03eecf90fb0c2fa183a2b323f
[ "MIT" ]
null
null
null
def read_input(filename): with open(filename) as file: positions = [int(n) for n in file.readline().strip().split(',')] return positions def triangle(n): return int(n * (n + 1) / 2) def cost_one(positions, position): return sum(abs(x - position) for x in positions) def cost_two(positions, ...
21.333333
72
0.68608
98a0b099b8c881469b789098bd6c6fb63efcdf6c
23,453
py
Python
oss2/resumable.py
perfectworks/aliyun-oss-python-sdk
026257304c23e9717c608486f9fa8b981ef569fc
[ "MIT" ]
null
null
null
oss2/resumable.py
perfectworks/aliyun-oss-python-sdk
026257304c23e9717c608486f9fa8b981ef569fc
[ "MIT" ]
null
null
null
oss2/resumable.py
perfectworks/aliyun-oss-python-sdk
026257304c23e9717c608486f9fa8b981ef569fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ oss2.resumable ~~~~~~~~~~~~~~ 该模块包含了断点续传相关的函数和类。 """ import os from . import utils from . import iterators from . import exceptions from . import defaults from .models import PartInfo from .compat import json, stringify, to_unicode from .task_queue import TaskQueue import functools imp...
33.504286
122
0.617405
745667a9b9bb8b69e1c8090a4c931640a3539d7b
2,156
py
Python
tools/c7n_azure/c7n_azure/resources/key_vault_certificate.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
8
2021-05-18T02:22:03.000Z
2021-09-11T02:49:04.000Z
tools/c7n_azure/c7n_azure/resources/key_vault_certificate.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
79
2019-03-20T12:27:06.000Z
2019-08-14T14:07:04.000Z
tools/c7n_azure/c7n_azure/resources/key_vault_certificate.py
dnouri/cloud-custodian
4e8b3b45f60731df942ffe6b61645416d7a67daa
[ "Apache-2.0" ]
3
2017-09-21T13:36:46.000Z
2021-09-20T16:38:29.000Z
# Copyright 2019 Microsoft 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 t...
31.705882
87
0.661874
856b23fdd78fd53a8d4f18a2322f7c480d672bbd
2,199
py
Python
tests/test_misty2py_skills.py
ChrisScarred/misty2py-skills
30557d246b91fb525866fe8b92e280d2609ca26b
[ "MIT" ]
null
null
null
tests/test_misty2py_skills.py
ChrisScarred/misty2py-skills
30557d246b91fb525866fe8b92e280d2609ca26b
[ "MIT" ]
null
null
null
tests/test_misty2py_skills.py
ChrisScarred/misty2py-skills
30557d246b91fb525866fe8b92e280d2609ca26b
[ "MIT" ]
null
null
null
from misty2py.utils.utils import get_misty def test_angry_expression(capsys): from misty2py_skills.expressions import angry_expression with capsys.disabled(): result = angry_expression(get_misty()) print(result) assert result.get("overall_success") def test_battery_printer(capsys): ...
26.493976
84
0.712597
237e1d8f0f92c344aa087bd9421beeff3f4fcb17
1,265
py
Python
model-optimizer/extensions/front/onnx/affine_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
3
2020-02-09T23:25:37.000Z
2021-01-19T09:44:12.000Z
model-optimizer/extensions/front/onnx/affine_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
null
null
null
model-optimizer/extensions/front/onnx/affine_ext.py
zhoub/dldt
e42c01cf6e1d3aefa55e2c5df91f1054daddc575
[ "Apache-2.0" ]
2
2020-04-18T16:24:39.000Z
2021-01-19T09:42:19.000Z
""" Copyright (c) 2018-2019 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...
31.625
103
0.716996
2a3e28b6d197a36d057d95175237844dd85ecc45
1,086
py
Python
python/demos/binomialBetaPosteriorDemo.py
qyxiao/pmt
87513794fc43f8aa1f4f3d7588fa45ffc75d1a44
[ "MIT" ]
null
null
null
python/demos/binomialBetaPosteriorDemo.py
qyxiao/pmt
87513794fc43f8aa1f4f3d7588fa45ffc75d1a44
[ "MIT" ]
null
null
null
python/demos/binomialBetaPosteriorDemo.py
qyxiao/pmt
87513794fc43f8aa1f4f3d7588fa45ffc75d1a44
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Plots Beta-Binomial distribution along with the prior and likelihood. import matplotlib.pyplot as pl import numpy as np import scipy from scipy.stats import beta alphas = [2, 2, 1, 1] betas = [2, 2, 1, 1] Ns = [4, 40, 4, 40] ks = [1, 10, 1, 10] plots = ['betaPostInfSmallSample', 'betaPostInfL...
29.351351
71
0.631676
76e88d20f46632206ded5388ace04ed05d17a536
1,867
py
Python
test/test_list_unspent_transaction_outputs_by_address_e400.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
5
2021-05-17T04:45:03.000Z
2022-03-23T12:51:46.000Z
test/test_list_unspent_transaction_outputs_by_address_e400.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
null
null
null
test/test_list_unspent_transaction_outputs_by_address_e400.py
Crypto-APIs/Crypto_APIs_2.0_SDK_Python
c59ebd914850622b2c6500c4c30af31fb9cecf0e
[ "MIT" ]
2
2021-06-02T07:32:26.000Z
2022-02-12T02:36:23.000Z
""" CryptoAPIs Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei...
41.488889
484
0.80075
35485b3f9dcfb6cea090bfa650ee857cd81cb7ab
8,137
py
Python
gewittergefahr/gg_io/grib_io_test.py
dopplerchase/GewitterGefahr
4415b08dd64f37eba5b1b9e8cc5aa9af24f96593
[ "MIT" ]
26
2018-10-04T01:07:35.000Z
2022-01-29T08:49:32.000Z
gewittergefahr/gg_io/grib_io_test.py
liuximarcus/GewitterGefahr
d819874d616f98a25187bfd3091073a2e6d5279e
[ "MIT" ]
4
2017-12-25T02:01:08.000Z
2018-12-19T01:54:21.000Z
gewittergefahr/gg_io/grib_io_test.py
liuximarcus/GewitterGefahr
d819874d616f98a25187bfd3091073a2e6d5279e
[ "MIT" ]
11
2017-12-10T23:05:29.000Z
2022-01-29T08:49:33.000Z
"""Unit tests for grib_io.py.""" import copy import unittest import numpy from gewittergefahr.gg_io import grib_io TOLERANCE = 1e-6 GRIB1_FILE_NAME = 'foo.grb' GRIB2_FILE_NAME = 'foo.grb2' NON_GRIB_FILE_NAME = 'foo.txt' SPECIFIC_HUMIDITY_NAME_GRIB1 = 'SPFH:500 mb' SPECIFIC_HUMIDITY_NAME_GRIB2 = 'SPFH:500 mb' HEIGHT...
30.590226
81
0.678506
9afc911dda00ed813996836b0ac624986b272fa8
681,532
py
Python
platform/python/MailChecker.py
polydice/mailchecker
85df82a90399ca6e4b320fe619b6199e836b4447
[ "MIT" ]
null
null
null
platform/python/MailChecker.py
polydice/mailchecker
85df82a90399ca6e4b320fe619b6199e836b4447
[ "MIT" ]
null
null
null
platform/python/MailChecker.py
polydice/mailchecker
85df82a90399ca6e4b320fe619b6199e836b4447
[ "MIT" ]
null
null
null
import re import sys if sys.version_info[0] >= 3: xrange = range class MailChecker(object): blacklist = set(["0-00.usa.cc","0-attorney.com","0-mail.com","00.msk.ru","000777.info","001.igg.biz","0033.pl","0039.cf","0039.ga","0039.gq","0039.ml","007game.ru","00b2bcr51qv59xst2.cf","00b2bcr51qv59xst2.ga","00b2b...
17,038.3
679,502
0.762927
8a537a23132b1659d27af4ab18f1a55d32ddd338
927
py
Python
ctestgen/runner/basic_test_runner.py
VolandTymim/ctestgen
e2567714fcc312a76af082733b10e5054c4cc6f0
[ "MIT" ]
2
2019-01-12T01:13:09.000Z
2020-06-14T15:32:48.000Z
ctestgen/runner/basic_test_runner.py
VolandTymim/ctestgen
e2567714fcc312a76af082733b10e5054c4cc6f0
[ "MIT" ]
null
null
null
ctestgen/runner/basic_test_runner.py
VolandTymim/ctestgen
e2567714fcc312a76af082733b10e5054c4cc6f0
[ "MIT" ]
null
null
null
import os from abc import abstractmethod from ctestgen.runner import TestRunner, get_program_response, \ find_environment_variables, TestRunResult class BasicTestRunner(TestRunner): def __init__(self, run_arguments, *args, print_test_info=True, **kwargs): super().__init__(*args, **kwargs) self...
37.08
114
0.740022
b72ae0cfecd2f3e41bdb6ad202f279d0c5609d98
1,274
py
Python
cal_setup.py
shourya5/Calendar_bot
1da1aad1c06ad7ecf0263ac341e7ece4569beb4c
[ "MIT" ]
1
2021-06-09T13:06:50.000Z
2021-06-09T13:06:50.000Z
cal_setup.py
shourya5/Calendar_bot
1da1aad1c06ad7ecf0263ac341e7ece4569beb4c
[ "MIT" ]
1
2021-06-08T05:49:07.000Z
2021-06-30T11:27:27.000Z
cal_setup.py
shourya5/Calendar_bot
1da1aad1c06ad7ecf0263ac341e7ece4569beb4c
[ "MIT" ]
1
2021-07-07T15:21:48.000Z
2021-07-07T15:21:48.000Z
import os.path from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentials import Credentials # If modifying these scopes, delete the file token.json. SCOPES = ['https://www.googleapis.com/auth/cale...
39.8125
79
0.705651
9545b239457bd1e4ee06260010737580602c3f23
10,448
py
Python
pyClarion/components/rules.py
jlichter/pyClarion
326a9b7ac03baaaf8eba49a42954f88542c191e9
[ "MIT" ]
25
2018-09-21T17:51:09.000Z
2022-03-08T12:24:35.000Z
pyClarion/components/rules.py
jlichter/pyClarion
326a9b7ac03baaaf8eba49a42954f88542c191e9
[ "MIT" ]
9
2018-07-01T00:44:02.000Z
2022-02-10T10:56:30.000Z
pyClarion/components/rules.py
jlichter/pyClarion
326a9b7ac03baaaf8eba49a42954f88542c191e9
[ "MIT" ]
10
2018-09-21T17:51:13.000Z
2022-03-03T07:58:37.000Z
"""Tools for creating, managing, and processing rules.""" __all__ = ["Rule", "Rules", "AssociativeRules", "ActionRules"] from ..base.symbols import ConstructType, Symbol, rule, chunk from ..base.components import Process from .. import numdicts as nd from typing import ( Mapping, MutableMapping, TypeVar, Gener...
27.787234
81
0.594755
a7165b4597820f8f5b50d3babff2c918d3022479
1,081
py
Python
xls/ir/python/bits_test.py
hafixo/xls
21009ec2165d04d0037d9cf3583b207949ef7a6d
[ "Apache-2.0" ]
null
null
null
xls/ir/python/bits_test.py
hafixo/xls
21009ec2165d04d0037d9cf3583b207949ef7a6d
[ "Apache-2.0" ]
null
null
null
xls/ir/python/bits_test.py
hafixo/xls
21009ec2165d04d0037d9cf3583b207949ef7a6d
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # # Copyright 2020 The XLS 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 law...
30.885714
74
0.725254
4883069c51bde589111025b699efbc790eb17ba5
337
py
Python
estilos.py
Labbbbas/tkinter_py
bf388625bd5890434375884e30c84a2d4f771d1c
[ "MIT" ]
null
null
null
estilos.py
Labbbbas/tkinter_py
bf388625bd5890434375884e30c84a2d4f771d1c
[ "MIT" ]
null
null
null
estilos.py
Labbbbas/tkinter_py
bf388625bd5890434375884e30c84a2d4f771d1c
[ "MIT" ]
null
null
null
import tkinter as tk ventana = tk.Tk() labelMessage = tk.Label(ventana, text='Hola a todos', fg='blue').pack() labelMessage2 = tk.Label(ventana, text="Nueva etiqueta", fg='red', font='Helvetica 10 bold').pack() labelMessage3 = tk.Label(ventana, text='Another window', fg='white', bg='red', font='Times 18').pack() v...
30.636364
102
0.700297
0a348a35b0ca9cf6c37ea59b7a5164257d35065c
7,926
py
Python
plugins/modules/env_idbroker_info.py
nmarian85/cloudera.cloud
817fc1a5400c1f43614c886bce1770076c1e91d1
[ "Apache-2.0" ]
11
2021-05-05T19:44:14.000Z
2021-08-23T20:22:55.000Z
plugins/modules/env_idbroker_info.py
nmarian85/cloudera.cloud
817fc1a5400c1f43614c886bce1770076c1e91d1
[ "Apache-2.0" ]
19
2021-05-18T11:02:05.000Z
2022-03-19T17:25:56.000Z
plugins/modules/env_idbroker_info.py
nmarian85/cloudera.cloud
817fc1a5400c1f43614c886bce1770076c1e91d1
[ "Apache-2.0" ]
18
2021-05-05T17:29:49.000Z
2022-02-10T10:46:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2021 Cloudera, 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/LIC...
36.525346
120
0.54214
1ab748c92590974afd15925eebb4136cd0606e06
58
py
Python
exoatlas/visualizations/axes/__init__.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2020-06-24T16:38:27.000Z
2022-01-23T01:57:19.000Z
exoatlas/visualizations/axes/__init__.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2018-09-20T23:12:30.000Z
2019-05-15T15:31:58.000Z
exoatlas/visualizations/axes/__init__.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
null
null
null
from .plottable import * from .preset_plottables import *
19.333333
32
0.793103
ead5fdfc155eb7a30483049266b00d8cb7f0e242
495
py
Python
drf_admin/apps/monitor/serializers/ip.py
guohaihan/myproject
0ec105d0bd48477faddf93bd62a8ede800419ae6
[ "MIT" ]
228
2020-06-20T10:07:03.000Z
2022-03-29T07:11:01.000Z
drf_admin/apps/monitor/serializers/ip.py
guohaihan/myproject
0ec105d0bd48477faddf93bd62a8ede800419ae6
[ "MIT" ]
25
2020-07-16T12:29:04.000Z
2022-02-16T06:31:06.000Z
drf_admin/apps/monitor/serializers/ip.py
guohaihan/myproject
0ec105d0bd48477faddf93bd62a8ede800419ae6
[ "MIT" ]
82
2020-10-26T07:14:15.000Z
2022-03-29T07:53:23.000Z
# -*- coding: utf-8 -*- """ @author : Wang Meng @github : https://github.com/tianpangji @software : PyCharm @file : ip.py @create : 2020/10/4 10:22 """ from rest_framework import serializers from monitor.models import IpBlackList class IpBlackListSerializer(serializers.ModelSerializer): """ IP黑名单...
21.521739
87
0.654545
e891f886d79b397170ddabf82850e364cc01a1b2
5,532
py
Python
forms-flow-data-analysis-api/tests/conftest.py
sreehari-aot/forms-flow-ai
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
[ "Apache-2.0" ]
null
null
null
forms-flow-data-analysis-api/tests/conftest.py
sreehari-aot/forms-flow-ai
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
[ "Apache-2.0" ]
null
null
null
forms-flow-data-analysis-api/tests/conftest.py
sreehari-aot/forms-flow-ai
11e2fdd6da792aaa9dd46c0cec38564fe5916b58
[ "Apache-2.0" ]
null
null
null
"""Common setup and fixtures for the pytest suite used by this service.""" import pytest from flask_migrate import Migrate, upgrade from sqlalchemy import event, text from sqlalchemy.schema import DropConstraint, MetaData from api import create_app, setup_jwt_manager from api.models import db as _db from api.utils impo...
33.325301
97
0.615871
1bad50821a15281504e5d47fd1a85eec9219ceaf
2,491
py
Python
test/python/WMCore_t/WorkQueue_t/WorkQueueProfile_t.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
21
2015-11-19T16:18:45.000Z
2021-12-02T18:20:39.000Z
test/python/WMCore_t/WorkQueue_t/WorkQueueProfile_t.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
5,671
2015-01-06T14:38:52.000Z
2022-03-31T22:11:14.000Z
test/python/WMCore_t/WorkQueue_t/WorkQueueProfile_t.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
67
2015-01-21T15:55:38.000Z
2022-02-03T19:53:13.000Z
#!/usr/bin/env python """ WorkQueue tests """ from __future__ import absolute_import import tempfile import unittest import cProfile import pstats from WMQuality.Emulators.WMSpecGenerator.WMSpecGenerator import WMSpecGenerator from WMCore.WorkQueue.WorkQueue import globalQueue from .WorkQueueTestCase import WorkQu...
30.753086
89
0.634685
df648e6d103cb75c7eb8e15d919a7dd76a0f1fa3
37,607
py
Python
invenio_app_ils/config.py
jrcastro2/invenio-app-ils
502b9e7bac737863905976a1d07e2cd924f5d779
[ "MIT" ]
null
null
null
invenio_app_ils/config.py
jrcastro2/invenio-app-ils
502b9e7bac737863905976a1d07e2cd924f5d779
[ "MIT" ]
null
null
null
invenio_app_ils/config.py
jrcastro2/invenio-app-ils
502b9e7bac737863905976a1d07e2cd924f5d779
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Default configuration for invenio-app-ils. You overwrite and set instance-specific configuration by eithe...
36.022031
129
0.639668
4192e3f3711fc4842e698ac261cc3cb47c066da1
427
py
Python
get_hash.py
mwzhu/twitter-telegram
968924faf0410bf58c1f3a977eefe6de4676090e
[ "MIT" ]
null
null
null
get_hash.py
mwzhu/twitter-telegram
968924faf0410bf58c1f3a977eefe6de4676090e
[ "MIT" ]
null
null
null
get_hash.py
mwzhu/twitter-telegram
968924faf0410bf58c1f3a977eefe6de4676090e
[ "MIT" ]
null
null
null
import telebot from telethon.sync import TelegramClient from telethon.tl.types import InputPeerUser, InputPeerChannel from telethon import TelegramClient, sync, events api_id = '13944982' api_hash = '0947f1da826caa937c5ccb1cbafb9264' client = TelegramClient('session', api_id, api_hash) client.connect() response = clie...
32.846154
64
0.826698
634fed2ed60843f10c62e76d00af20e77f6c1399
400
py
Python
Desafio_056.py
roggnarok/Curso_em_video_Python
337287662e241a56a8a20ea0981a063c08dfab4d
[ "MIT" ]
null
null
null
Desafio_056.py
roggnarok/Curso_em_video_Python
337287662e241a56a8a20ea0981a063c08dfab4d
[ "MIT" ]
null
null
null
Desafio_056.py
roggnarok/Curso_em_video_Python
337287662e241a56a8a20ea0981a063c08dfab4d
[ "MIT" ]
null
null
null
# Curso em vídeo - Desafio 056 - FOR ''' Desenvolva um programa que leia o nome, idade e sexo de 4 pessoas. No final do programa mostre, A média de idade do grupo, Qual o nome do homem mais velho, Quantas mulheres têm menos de 20 anos. ''' idade = [] nome = [] for i in range(4): nome.append(...
26.666667
59
0.635
53702c484bccdc2dfd00870dd2211f36baf2f5da
18,490
py
Python
module/sunggu_module.py
babbu3682/MRI-Net
e3b6aeb44991bf45a4884a46af48a99ac656ac52
[ "MIT" ]
3
2021-10-04T11:00:23.000Z
2021-12-13T12:31:28.000Z
module/sunggu_module.py
babbu3682/MRI-Net
e3b6aeb44991bf45a4884a46af48a99ac656ac52
[ "MIT" ]
null
null
null
module/sunggu_module.py
babbu3682/MRI-Net
e3b6aeb44991bf45a4884a46af48a99ac656ac52
[ "MIT" ]
null
null
null
import torch.nn as nn import torch class TimeDistributed(nn.Module): def __init__(self, module, batch_first=False): super(TimeDistributed, self).__init__() self.module = module self.batch_first = batch_first def forward(self, x): if len(x.size()) <= 2: ...
40.997783
172
0.526609
85745eff7370191db37cedb357e531f79e34951e
1,477
py
Python
analyzer/certificate_validator.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
analyzer/certificate_validator.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
analyzer/certificate_validator.py
Gr1ph00n/staticwebanalyzer
8bf6337a77192b85913d75778830ccbb9006081f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # file name: certificate_validator.py # created by: Ventura Del Monte # purpose: SSL certificate validation # last edited by: Ventura Del Monte 17-10-14 # more details here: # http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html # http://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html #...
24.616667
101
0.717671
0f0b5e3b5c78a458cbb155934954ef186c3e4df6
625
py
Python
rail_object_detector/scripts/test_detections_topic.py
GT-RAIL/rail_object_detector
896940ebf127577203ff5e0b62374d9f6fda10f3
[ "MIT" ]
5
2017-01-08T21:52:52.000Z
2018-03-18T18:47:17.000Z
rail_object_detector/scripts/test_detections_topic.py
GT-RAIL/rail_object_detector
896940ebf127577203ff5e0b62374d9f6fda10f3
[ "MIT" ]
5
2017-06-06T18:07:24.000Z
2018-03-16T02:30:17.000Z
rail_object_detector/scripts/test_detections_topic.py
GT-RAIL/rail_object_detector
896940ebf127577203ff5e0b62374d9f6fda10f3
[ "MIT" ]
3
2017-06-02T19:55:58.000Z
2017-06-22T17:16:18.000Z
#!/usr/bin/env python # This script is designed to test the functionality of the object detections # topic import rospy from rail_object_detection_msgs.msg import Detections def detections_callback(data): rospy.loginfo("*****************New Message:*********************") rospy.loginfo( "Frame@Timestamp: %s@%s" %...
28.409091
78
0.7008
27a423ea46ca88773e5e4221d56078e230f6a970
9,159
py
Python
multi_task_helpers.py
gcormier/hpc-dfo
ac1ab24b116eddd9ce2fe2c4bfdb81b6b26349eb
[ "MIT", "Unlicense" ]
1
2019-04-22T12:39:32.000Z
2019-04-22T12:39:32.000Z
multi_task_helpers.py
gcormier/hpc-dfo
ac1ab24b116eddd9ce2fe2c4bfdb81b6b26349eb
[ "MIT", "Unlicense" ]
null
null
null
multi_task_helpers.py
gcormier/hpc-dfo
ac1ab24b116eddd9ce2fe2c4bfdb81b6b26349eb
[ "MIT", "Unlicense" ]
null
null
null
from __future__ import print_function import datetime import sys import time import azure.batch.batch_service_client as batch import azure.batch.models as batchmodels import os sys.path.append('.') import common.helpers # noqa def create_pool_and_wait_for_vms( batch_service_client, pool_id, ...
42.799065
79
0.678458
f0568a73ae6bc8aef3fe6533df41f319311a6312
197
py
Python
strategy/web_copy.py
Pobux/pattern_conception
a4aa15e910c4ec55abda7c833562a3cc41dcb325
[ "MIT" ]
null
null
null
strategy/web_copy.py
Pobux/pattern_conception
a4aa15e910c4ec55abda7c833562a3cc41dcb325
[ "MIT" ]
null
null
null
strategy/web_copy.py
Pobux/pattern_conception
a4aa15e910c4ec55abda7c833562a3cc41dcb325
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- # Creation Date : 2016-10-18 # Created by : Antoine LeBel from location_copy import LocationCopy class WebCopy(LocationCopy): def copy(self): print("Copie web")
21.888889
38
0.680203
94f315501a9360e5a9e67ab0c5d8cda7581c206a
2,122
py
Python
NoteBooks/Curso de Flask/Ex_Files_Full_Stack_Dev_Flask/Exercise Files/Section 5/5.2, 5.3 Start/application/routes.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
1
2021-02-26T13:12:22.000Z
2021-02-26T13:12:22.000Z
NoteBooks/Curso de Flask/Ex_Files_Full_Stack_Dev_Flask/Exercise Files/Section 5/5.2, 5.3 Start/application/routes.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
NoteBooks/Curso de Flask/Ex_Files_Full_Stack_Dev_Flask/Exercise Files/Section 5/5.2, 5.3 Start/application/routes.py
Alejandro-sin/Learning_Notebooks
161d6bed4c7b1d171b45f61c0cc6fa91e9894aad
[ "MIT" ]
null
null
null
from application import app, db from flask import render_template, request, json, Response from application.models import User, Course, Enrollment courseData = [{"courseID":"1111","title":"PHP 111","description":"Intro to PHP","credits":"3","term":"Fall, Spring"}, {"courseID":"2222","title":"Java 1","description":...
43.306122
558
0.65787
775506d0be721b999a7ad969f0e1deda7d9a4952
2,855
py
Python
prepare.py
barbmarques/classification-exercises
368cde67365141fc4148d3fee14881dd210e2f8f
[ "MIT" ]
1
2021-02-22T23:54:03.000Z
2021-02-22T23:54:03.000Z
prepare.py
barbmarques/classification-exercises
368cde67365141fc4148d3fee14881dd210e2f8f
[ "MIT" ]
null
null
null
prepare.py
barbmarques/classification-exercises
368cde67365141fc4148d3fee14881dd210e2f8f
[ "MIT" ]
null
null
null
import pandas as pd from pandas import DataFrame from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split def clean_titanic(df): ''' clean_titanic will take a dataframe acquired as df and remove columns that are: duplicates, have too many nulls, and will f...
31.032609
122
0.69317
2fac3537b4e361b91f268526947ad8c4e81fca28
423
py
Python
bugaderia/conftest.py
jaleo56/bugaderia
fd29f516692af79e024945abcf7d7a413698ab3e
[ "MIT" ]
null
null
null
bugaderia/conftest.py
jaleo56/bugaderia
fd29f516692af79e024945abcf7d7a413698ab3e
[ "MIT" ]
null
null
null
bugaderia/conftest.py
jaleo56/bugaderia
fd29f516692af79e024945abcf7d7a413698ab3e
[ "MIT" ]
null
null
null
import pytest from django.conf import settings from django.test import RequestFactory from bugaderia.users.tests.factories import UserFactory @pytest.fixture(autouse=True) def media_storage(settings, tmpdir): settings.MEDIA_ROOT = tmpdir.strpath @pytest.fixture def user() -> settings.AUTH_USER_MODEL: retur...
20.142857
55
0.787234
7fa75fc54ab2a818bb0e1223e1d5b06327fe89ce
16,649
py
Python
targetcli/ui_backstore.py
Datera/targetcli
a1251821e1f6effeccb196a7a70544ab44fe2108
[ "Apache-2.0" ]
44
2015-04-02T21:44:31.000Z
2022-01-12T03:28:01.000Z
targetcli/ui_backstore.py
Datera/targetcli
a1251821e1f6effeccb196a7a70544ab44fe2108
[ "Apache-2.0" ]
22
2015-03-29T20:08:19.000Z
2020-03-19T14:31:40.000Z
targetcli/ui_backstore.py
Datera/targetcli
a1251821e1f6effeccb196a7a70544ab44fe2108
[ "Apache-2.0" ]
23
2015-06-18T14:29:16.000Z
2021-12-07T00:52:01.000Z
''' Implements the targetcli backstores related UI. This file is part of LIO(tm). Copyright (c) 2011-2014 by Datera, 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/l...
37.329596
86
0.576912
7edf1dc7d60a9a3c670b195f91dff4eb1026ee1d
919
py
Python
tests/components/default_config/test_init.py
squirrel289/core
6c5bcbfc3ee40927458e9188d6b79bf63933d3f9
[ "Apache-2.0" ]
5
2020-09-17T21:47:23.000Z
2021-06-04T04:37:29.000Z
tests/components/default_config/test_init.py
SicAriuSx83/core
162c39258e68ae42fe4e1560ae91ed54f5662409
[ "Apache-2.0" ]
47
2020-07-23T07:13:11.000Z
2022-03-31T06:01:46.000Z
tests/components/default_config/test_init.py
SicAriuSx83/core
162c39258e68ae42fe4e1560ae91ed54f5662409
[ "Apache-2.0" ]
2
2017-09-03T16:06:02.000Z
2021-01-12T15:07:52.000Z
"""Test the default_config init.""" import pytest from homeassistant.setup import async_setup_component from tests.async_mock import patch @pytest.fixture(autouse=True) def mock_zeroconf(): """Mock zeroconf.""" with patch("homeassistant.components.zeroconf.HaZeroconf"): yield @pytest.fixture(autou...
22.975
78
0.70185
c9f7ca1ee5df68789c6d3210640c890e5019a12c
6,125
py
Python
test/cpython/test_ucn.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:28:45.000Z
2020-02-06T14:28:45.000Z
test/cpython/test_ucn.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
test/cpython/test_ucn.py
aisk/pyston
ac69cfef0621dbc8901175e84fa2b5cb5781a646
[ "BSD-2-Clause", "Apache-2.0" ]
1
2020-02-06T14:29:00.000Z
2020-02-06T14:29:00.000Z
""" Test script for the Unicode implementation. Written by Bill Tutt. Modified for Python 2.0 by Fredrik Lundh (fredrik@pythonware.com) (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" import unittest import sys from test import test_support try: from _testcapi import INT_MAX, PY_SSIZE_T_MAX, UINT_...
36.029412
80
0.596571
26deb0e9e89ddc92315de78d1e8a495cade067bd
4,599
py
Python
tests/test_jsonify.py
sergiobrr/tg2
401d77d82bd9daacb9444150c63bb039bf003436
[ "MIT" ]
812
2015-01-16T22:57:52.000Z
2022-03-27T04:49:40.000Z
tests/test_jsonify.py
sergiobrr/tg2
401d77d82bd9daacb9444150c63bb039bf003436
[ "MIT" ]
74
2015-02-18T17:55:31.000Z
2021-12-13T10:41:08.000Z
tests/test_jsonify.py
sergiobrr/tg2
401d77d82bd9daacb9444150c63bb039bf003436
[ "MIT" ]
72
2015-06-10T06:02:45.000Z
2022-03-27T08:37:24.000Z
from tg import jsonify, lurl from datetime import datetime from decimal import Decimal from nose.tools import raises from nose import SkipTest from webob.multidict import MultiDict import json from tg.util import LazyString from tg.util.webtest import test_context class Foo(object): def __init__(self, bar): ...
28.565217
83
0.652316
92fc90ba3cfb3449fc9a936c05ebca6e56dfc9b7
3,697
py
Python
src/data/dataloader.py
wozniakmikolaj/painting-style-classification
77c400a1c54ca5385ad0d4ed6c7f33aa720af832
[ "MIT" ]
null
null
null
src/data/dataloader.py
wozniakmikolaj/painting-style-classification
77c400a1c54ca5385ad0d4ed6c7f33aa720af832
[ "MIT" ]
null
null
null
src/data/dataloader.py
wozniakmikolaj/painting-style-classification
77c400a1c54ca5385ad0d4ed6c7f33aa720af832
[ "MIT" ]
null
null
null
"""Data Loader""" # standard library # internal # external import numpy as np import tensorflow as tf from sklearn.preprocessing import LabelEncoder class DataLoader: """Data Loader class""" @staticmethod def etl_load_dataset(data_config): """Performs the whole data pipeline, from load and proc...
36.60396
120
0.664052
d54f8977bce27028246b64092808cce8ec90df49
10,392
py
Python
saas/backend/service/resource.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
null
null
null
saas/backend/service/resource.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "MIT" ]
null
null
null
saas/backend/service/resource.py
nannan00/bk-iam-saas
217600fa6e5fd466fff9c33c20c4dbd7c69f77d9
[ "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...
39.816092
115
0.654927
d2d3aa0ed8ca8e2ce1addd5aaf167e526bc55aea
2,230
py
Python
kalmanFilter.py
sbabich/Multi-Object-Tracking-with-Kalman-Filter
a08e9bc16f555a3d35743949a3a8cce7432cf02b
[ "MIT" ]
89
2018-08-11T10:01:35.000Z
2022-03-31T16:00:21.000Z
kalmanFilter.py
sbabich/Multi-Object-Tracking-with-Kalman-Filter
a08e9bc16f555a3d35743949a3a8cce7432cf02b
[ "MIT" ]
2
2019-11-26T09:20:12.000Z
2021-12-19T22:28:38.000Z
kalmanFilter.py
sbabich/Multi-Object-Tracking-with-Kalman-Filter
a08e9bc16f555a3d35743949a3a8cce7432cf02b
[ "MIT" ]
28
2019-01-23T03:16:46.000Z
2022-03-29T02:26:36.000Z
#################### Import Section of the code ############################# try: import numpy as np except Exception as e: print(e,"\nPlease Install the package") #################### Import Section ends here ################################ class KalmanFilter(object): """docstring for KalmanFilter...
33.283582
79
0.590135
13d6db5947e2a0cc41aebef3eb17287b3618d372
24,060
py
Python
qiskit_machine_learning/kernels/quantum_kernel.py
Anthem-Quantum/qiskit-machine-learning
2edc1f106c72a41ae2e99b58ee1edb85aa97d8bf
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/kernels/quantum_kernel.py
Anthem-Quantum/qiskit-machine-learning
2edc1f106c72a41ae2e99b58ee1edb85aa97d8bf
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/kernels/quantum_kernel.py
Anthem-Quantum/qiskit-machine-learning
2edc1f106c72a41ae2e99b58ee1edb85aa97d8bf
[ "Apache-2.0" ]
null
null
null
# This code is part of Qiskit. # # (C) Copyright IBM 2021, 2022. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
43.273381
105
0.613134
66bfff33bd42019afbec91fc3d1d513597425236
172
py
Python
www/uwsgi.py
oldhawaii/oldhawaii-metadata
838de68bb5e3aa137fe3dab4a02509fedfe829ac
[ "MIT" ]
1
2015-08-16T07:08:03.000Z
2015-08-16T07:08:03.000Z
www/uwsgi.py
oldhawaii/oldhawaii-metadata
838de68bb5e3aa137fe3dab4a02509fedfe829ac
[ "MIT" ]
null
null
null
www/uwsgi.py
oldhawaii/oldhawaii-metadata
838de68bb5e3aa137fe3dab4a02509fedfe829ac
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from oldhawaii_metadata.app import get_app app = get_app() if __name__ == "__main__": app.run() # vim: filetype=python
15.636364
42
0.662791
6ef0e51a394d4ad880ea089053a995611e0d2c2e
128
py
Python
serialtest.py
madisoncooney/HPR_Titan
b50bb63e038c665c138fd6a5eff59dbc165d3c92
[ "MIT" ]
null
null
null
serialtest.py
madisoncooney/HPR_Titan
b50bb63e038c665c138fd6a5eff59dbc165d3c92
[ "MIT" ]
2
2020-03-24T16:59:58.000Z
2020-03-31T02:55:04.000Z
serialtest.py
madisoncooney/HPR_Titan
b50bb63e038c665c138fd6a5eff59dbc165d3c92
[ "MIT" ]
null
null
null
import serial ser = serial.Serial(port='COM5', baudrate=115200, timeout=1) while 1: line = ser.readline() print(line)
16
60
0.679688
fd44ee2535aa63acf73171d903fdd6832652b305
29,239
py
Python
PFinal/PFinal.py
aalonso99/Machine-Learning-UGR
f5276c93ce62c20ca09f49658390ee939344dfee
[ "MIT" ]
null
null
null
PFinal/PFinal.py
aalonso99/Machine-Learning-UGR
f5276c93ce62c20ca09f49658390ee939344dfee
[ "MIT" ]
null
null
null
PFinal/PFinal.py
aalonso99/Machine-Learning-UGR
f5276c93ce62c20ca09f49658390ee939344dfee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from collections import Counter from sklearn.preprocessing import StandardScaler from sklearn.decomposition import PCA from sklearn.feature_selection import mutual_info_classif from sklearn.mo...
35.398305
240
0.569855