hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
b335eb5c9230b54ea71d1691155665af78a1b7e0
11,651
py
Python
test/asyncpg/test_apply_migrations.py
RonquilloAeon/migri
ec108a27ec3ec1798b7fdf2b46dd89bdd550a7a7
[ "MIT" ]
11
2020-11-25T18:25:04.000Z
2022-03-09T20:27:03.000Z
test/asyncpg/test_apply_migrations.py
RonquilloAeon/migri
ec108a27ec3ec1798b7fdf2b46dd89bdd550a7a7
[ "MIT" ]
46
2019-12-11T16:24:44.000Z
2022-02-21T23:45:54.000Z
test/asyncpg/test_apply_migrations.py
RonquilloAeon/migri
ec108a27ec3ec1798b7fdf2b46dd89bdd550a7a7
[ "MIT" ]
1
2022-02-15T06:38:34.000Z
2022-02-15T06:38:34.000Z
from datetime import datetime import pytest from asyncpg import InterfaceError from freezegun import freeze_time from migri import apply_migrations, run_migrations from migri.elements import Query pytestmark = pytest.mark.asyncio @freeze_time("2020-7-3 22:00:01") async def test_apply_migrations_successful(capsys, ...
31.152406
88
0.664149
c5470ae1be3880c8abc49badb9cf5d78560f6145
26,702
py
Python
lingvo/base_runner.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
1
2021-09-02T18:04:13.000Z
2021-09-02T18:04:13.000Z
lingvo/base_runner.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
null
null
null
lingvo/base_runner.py
RunzheYang/lingvo
1291e29812f9ee9836f9cacbb05db9ec6b095234
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
40.396369
80
0.664145
cd08390d92582de405435a7c2608dc9c8650d4f9
64,587
py
Python
neutron/tests/unit/test_api_v2.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/test_api_v2.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/test_api_v2.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation. # 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...
41.830959
79
0.586171
1747045e4321ab5613c226c2764b887f9f6646ec
9,557
py
Python
understanding/examples/ner/run_pl_ner.py
koukoulala/Unicoder
15fa30d74b700c440565079d03b34beb5b6d2bb9
[ "MIT" ]
67
2020-06-03T12:17:08.000Z
2022-03-24T08:49:52.000Z
understanding/examples/ner/run_pl_ner.py
koukoulala/Unicoder
15fa30d74b700c440565079d03b34beb5b6d2bb9
[ "MIT" ]
5
2020-10-11T11:50:37.000Z
2022-01-28T21:47:17.000Z
understanding/examples/ner/run_pl_ner.py
koukoulala/Unicoder
15fa30d74b700c440565079d03b34beb5b6d2bb9
[ "MIT" ]
14
2020-06-03T12:09:12.000Z
2021-11-10T08:23:24.000Z
import argparse import glob import logging import os import numpy as np import torch from seqeval.metrics import f1_score, precision_score, recall_score from torch.nn import CrossEntropyLoss from torch.utils.data import DataLoader, TensorDataset from transformer_base import BaseTransformer, add_generic_args, generic_...
42.856502
111
0.599247
2c7a26548a942f179b2b4cda32a8e177d84fbc34
2,068
py
Python
user/signals.py
EncryptEx/myhackupc
3b7c8bce8528e61aab65c976a3c9b4a700210c09
[ "MIT" ]
8
2017-11-20T09:11:37.000Z
2020-01-26T19:23:33.000Z
user/signals.py
EncryptEx/myhackupc
3b7c8bce8528e61aab65c976a3c9b4a700210c09
[ "MIT" ]
38
2018-07-11T08:03:43.000Z
2019-10-22T09:26:36.000Z
user/signals.py
EncryptEx/myhackupc
3b7c8bce8528e61aab65c976a3c9b4a700210c09
[ "MIT" ]
6
2019-01-21T18:19:17.000Z
2020-03-09T17:42:36.000Z
import re from django.conf import settings from django.db.models.signals import post_save, pre_save from django.dispatch import receiver from applications.models import DraftApplication from user import tokens, models from user.models import User REGEX_PATTERN = getattr(settings, 'REGEX_HACKATHON_ORGANIZER_EMAIL', N...
36.928571
96
0.746132
7975d98b3dc53b95c74d0cff0cda1e05dbb0c231
1,291
py
Python
recipes/brigand/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/brigand/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/brigand/all/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
import os from conans import ConanFile, tools required_conan_version = ">=1.32.0" class BrigandConan(ConanFile): name = "brigand" url = "https://github.com/conan-io/conan-center-index" description = "A light-weight, fully functional, instant-compile time meta-programming library." topics = ("meta-p...
30.738095
100
0.664601
56903856a92fb0423e772400928a761c1645e146
3,256
py
Python
mars/tensor/arithmetic/nan_to_num.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
2,413
2018-12-06T09:37:11.000Z
2022-03-30T15:47:39.000Z
mars/tensor/arithmetic/nan_to_num.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
1,335
2018-12-07T03:06:18.000Z
2022-03-31T11:45:57.000Z
mars/tensor/arithmetic/nan_to_num.py
hxri/mars
f7864f00911883b94800b63856f0e57648d3d9b4
[ "Apache-2.0" ]
329
2018-12-07T03:12:41.000Z
2022-03-29T21:49:57.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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-...
32.56
80
0.669533
e6ef72d88396d2a0ae57e138ea019e81c59fdf7d
6,396
py
Python
demo/demo_handmocap.py
Paultool/frankmocap
b8bb7b587c0841b9292edb147729de581c66054c
[ "BSD-3-Clause" ]
2
2021-07-23T13:52:43.000Z
2021-07-25T22:09:15.000Z
demo/demo_handmocap.py
Paultool/frankmocap
b8bb7b587c0841b9292edb147729de581c66054c
[ "BSD-3-Clause" ]
null
null
null
demo/demo_handmocap.py
Paultool/frankmocap
b8bb7b587c0841b9292edb147729de581c66054c
[ "BSD-3-Clause" ]
1
2021-04-19T09:19:06.000Z
2021-04-19T09:19:06.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import os, sys, shutil import os.path as osp import numpy as np import cv2 import json import torch from torchvision.transforms import Normalize from demo.demo_options import DemoOptions import mocap_utils.general_utils as gnu import mocap_utils.demo_utils as demo_ut...
35.731844
94
0.624453
7b61b7576a97cb7f4bde96e08be666ef5bfc4541
4,066
py
Python
src/db/queries.py
musculoskeletal/opensim-model-scaler-backend
de04463a472145e8dd6fc1097db4803ef2ed1d68
[ "Apache-2.0" ]
null
null
null
src/db/queries.py
musculoskeletal/opensim-model-scaler-backend
de04463a472145e8dd6fc1097db4803ef2ed1d68
[ "Apache-2.0" ]
null
null
null
src/db/queries.py
musculoskeletal/opensim-model-scaler-backend
de04463a472145e8dd6fc1097db4803ef2ed1d68
[ "Apache-2.0" ]
null
null
null
from sqlalchemy.sql import exists, and_ from db.prepare import db_session from db.tables import MarkerMap, Conversion, MotionCaptureData, FileConversionAssociation, MotionCaptureMetaData, Demographic def marker_mapping_exists(marker_mapping): result = db_session.query(exists().where(and_(MarkerMap.source == mark...
40.66
125
0.684702
f33316ec213191f86d2aba8ff20aec449e0f76e5
1,866
py
Python
src/webserver/backend/app/app/crud.py
badarsebard/OpenSOAR
f0169261ef6d1ce4528236708e53d82de894ec56
[ "Apache-2.0" ]
1
2022-01-12T02:00:22.000Z
2022-01-12T02:00:22.000Z
src/webserver/backend/app/app/crud.py
badarsebard/OpenSOAR
f0169261ef6d1ce4528236708e53d82de894ec56
[ "Apache-2.0" ]
null
null
null
src/webserver/backend/app/app/crud.py
badarsebard/OpenSOAR
f0169261ef6d1ce4528236708e53d82de894ec56
[ "Apache-2.0" ]
1
2022-01-19T20:56:14.000Z
2022-01-19T20:56:14.000Z
from sqlalchemy.orm import Session, joinedload from . import models, schemas def get_incidents( db: Session, skip: int = 0, limit: int = 10, query_filter: str = None ): if query_filter: incidents = ( db.query(models.Incident) .filter(query_filter) .options(joinedloa...
28.272727
82
0.60343
fdc21a23fddf5804e655893d376fcf1263e9b972
1,521
py
Python
foxford_downloader/lib/requests_cache.py
MoDuJli/foxford_courses
b8b56a7eba8b68ac12d09913d65b0b9c086bc3cb
[ "MIT" ]
424
2017-07-29T12:47:53.000Z
2022-03-12T06:34:06.000Z
foxford_downloader/lib/requests_cache.py
MoDuJli/foxford_courses
b8b56a7eba8b68ac12d09913d65b0b9c086bc3cb
[ "MIT" ]
7
2017-08-07T08:06:51.000Z
2019-07-13T07:22:32.000Z
foxford_downloader/lib/requests_cache.py
MoDuJli/foxford_courses
b8b56a7eba8b68ac12d09913d65b0b9c086bc3cb
[ "MIT" ]
169
2017-08-09T09:30:13.000Z
2022-03-01T18:22:02.000Z
from functools import lru_cache from requests import Response, Session from requests.adapters import HTTPAdapter from requests.cookies import cookiejar_from_dict, extract_cookies_to_jar from requests.structures import CaseInsensitiveDict from requests.utils import get_encoding_from_headers class CachedResponse(Respo...
28.166667
76
0.669297
29f2c05111f5db521d03212e9ecc2a5761863f58
1,441
py
Python
test1.py
blackskygg/prefetch
0ffad11cb2b35991070863271a1c3eef3adc7a17
[ "MIT" ]
null
null
null
test1.py
blackskygg/prefetch
0ffad11cb2b35991070863271a1c3eef3adc7a17
[ "MIT" ]
null
null
null
test1.py
blackskygg/prefetch
0ffad11cb2b35991070863271a1c3eef3adc7a17
[ "MIT" ]
1
2017-11-05T10:04:06.000Z
2017-11-05T10:04:06.000Z
from __future__ import print_function, unicode_literals import json import requests SUMMARY_URL = 'http://api.bosonnlp.com/summary/analysis' # 注意:在测试时请更换为您的API Token headers = {'X-Token': 'rgqjRw1X.18655.95OIK0ANhha4'} source = { 'not_exceed': 0, 'percentage': 0.2, 'title': '', 'content': ( '...
25.732143
56
0.625954
f13cf20f65d4def6933caeca1c955e5ffdc4a002
31,708
py
Python
appyters/lncHUB2/utils.py
MaayanLab/jupyter-template-catalog
212b455e62d49f04dcee73bb6eeb5312b71ba8ef
[ "Apache-2.0" ]
null
null
null
appyters/lncHUB2/utils.py
MaayanLab/jupyter-template-catalog
212b455e62d49f04dcee73bb6eeb5312b71ba8ef
[ "Apache-2.0" ]
11
2020-04-15T22:47:17.000Z
2020-05-28T16:34:16.000Z
appyters/lncHUB2/utils.py
MaayanLab/appyters
212b455e62d49f04dcee73bb6eeb5312b71ba8ef
[ "Apache-2.0" ]
1
2020-05-14T20:25:32.000Z
2020-05-14T20:25:32.000Z
import requests import os,json import urllib.request import ssl import re import numpy as np import pandas as pd from plotly.subplots import make_subplots from plotly.offline import iplot import plotly.graph_objs as go from bokeh.plotting import figure, show from bokeh.models import HoverTool, CustomJS, ColumnDataSourc...
44.408964
308
0.607544
39f0682d97b06785b9bd35eab1d2b4de8437f752
5,189
py
Python
python3/koans/about_methods.py
jdfletcher/python-koans
c378abf322eed66c53112e149c67f2128b59c7ec
[ "MIT" ]
null
null
null
python3/koans/about_methods.py
jdfletcher/python-koans
c378abf322eed66c53112e149c67f2128b59c7ec
[ "MIT" ]
null
null
null
python3/koans/about_methods.py
jdfletcher/python-koans
c378abf322eed66c53112e149c67f2128b59c7ec
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Partially based on AboutMethods in the Ruby Koans # from runner.koan import * def my_global_function(a,b): return a + b class AboutMethods(Koan): def test_calling_a_global_function(self): self.assertEqual(__, my_global_function(2,3)) # NOTE: Wro...
32.030864
91
0.596261
11e66136afca26b5dfaeed7b75702871f8a83250
385
py
Python
users/migrations/0004_user_is_college.py
Symaxx-opensource/college-journal
cf187758b39925f262f3007b00e097467d600850
[ "MIT" ]
null
null
null
users/migrations/0004_user_is_college.py
Symaxx-opensource/college-journal
cf187758b39925f262f3007b00e097467d600850
[ "MIT" ]
null
null
null
users/migrations/0004_user_is_college.py
Symaxx-opensource/college-journal
cf187758b39925f262f3007b00e097467d600850
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-29 07:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_remove_user_type'), ] operations = [ migrations.AddField( model_name='user', name='is_college', ...
20.263158
53
0.597403
99b6b1d93fe92831d1b8313de89a0ed959d136a6
1,083
py
Python
catalyst/utils/meters/mapmeter.py
bbradt/catalyst
38a503c8af040906e377b7485d7fe15a7bc1de19
[ "Apache-2.0" ]
46
2020-03-27T20:12:32.000Z
2021-11-21T19:08:51.000Z
catalyst/utils/meters/mapmeter.py
bbradt/catalyst
38a503c8af040906e377b7485d7fe15a7bc1de19
[ "Apache-2.0" ]
2
2020-04-06T10:43:04.000Z
2020-07-01T18:26:10.000Z
catalyst/utils/meters/mapmeter.py
bbradt/catalyst
38a503c8af040906e377b7485d7fe15a7bc1de19
[ "Apache-2.0" ]
5
2020-04-17T14:09:53.000Z
2021-05-10T08:58:29.000Z
from . import APMeter, meter class mAPMeter(meter.Meter): """ The mAPMeter measures the mean average precision over all classes. The mAPMeter is designed to operate on `NxK` Tensors `output` and `target`, and optionally a `Nx1` Tensor weight where (1) the `output` contains model output scores for...
36.1
79
0.683287
e11907536ffa24054209fcb47205fcc118b6743d
19,360
py
Python
kubernetes/test/test_io_xk8s_cluster_infrastructure_v1alpha4_aws_machine_list.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_io_xk8s_cluster_infrastructure_v1alpha4_aws_machine_list.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
kubernetes/test/test_io_xk8s_cluster_infrastructure_v1alpha4_aws_machine_list.py
mariusgheorghies/python
68ac7e168963d8b5a81dc493b1973d29e903a15b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.20.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
62.250804
246
0.453357
bb1921ca7b3638e6d8116fb068e1223c36d20dd1
71
py
Python
Filtering_Server/__init__.py
FullPint/Frequency-Filter-Server
60ed3f17f8873ff92b6f52e7dd861c9d99dea40c
[ "MIT" ]
null
null
null
Filtering_Server/__init__.py
FullPint/Frequency-Filter-Server
60ed3f17f8873ff92b6f52e7dd861c9d99dea40c
[ "MIT" ]
null
null
null
Filtering_Server/__init__.py
FullPint/Frequency-Filter-Server
60ed3f17f8873ff92b6f52e7dd861c9d99dea40c
[ "MIT" ]
null
null
null
from Filtering_Server.create_app import create_app app = create_app()
23.666667
50
0.830986
2c48bcd5a07fa939d5220107adccd2ff5d00612e
6,629
py
Python
disent/metrics/_dci.py
nmichlo/disent
c4fb871cdcdbf833e95e88a4637700c5b0e75613
[ "MIT" ]
47
2020-04-29T18:57:09.000Z
2022-03-21T02:26:29.000Z
disent/metrics/_dci.py
nmichlo/disent
c4fb871cdcdbf833e95e88a4637700c5b0e75613
[ "MIT" ]
29
2021-03-14T21:36:43.000Z
2022-02-23T16:52:42.000Z
disent/metrics/_dci.py
nmichlo/disent
c4fb871cdcdbf833e95e88a4637700c5b0e75613
[ "MIT" ]
7
2021-05-28T08:59:40.000Z
2022-03-03T15:13:58.000Z
# coding=utf-8 # Copyright 2018 The DisentanglementLib Authors. All rights reserved. # https://github.com/google-research/disentanglement_lib # # 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 ...
41.955696
160
0.680193
8edcaf3f4e749e2ad68239794de08f8d8fd13571
10,000
py
Python
slivka/server/api_views.py
warownia1/Slivka
972cc0b5e3dec4f43b6ec9f2af39b2af56c8a487
[ "Apache-2.0" ]
5
2016-09-01T15:30:46.000Z
2019-07-15T12:26:46.000Z
slivka/server/api_views.py
warownia1/Slivka
972cc0b5e3dec4f43b6ec9f2af39b2af56c8a487
[ "Apache-2.0" ]
75
2016-08-31T11:32:49.000Z
2021-05-12T14:33:17.000Z
slivka/server/api_views.py
bartongroup/slivka
972cc0b5e3dec4f43b6ec9f2af39b2af56c8a487
[ "Apache-2.0" ]
3
2017-06-01T10:21:04.000Z
2020-06-12T10:32:49.000Z
import base64 import datetime import fnmatch import os.path import pathlib from operator import attrgetter from typing import Type import flask import pkg_resources from bson import ObjectId from flask import request, url_for, jsonify from werkzeug.datastructures import FileStorage import slivka.conf from slivka.conf...
33.898305
97
0.6325
e684a51ed87e27e1ad2948df836e304adc723abb
16,409
py
Python
de_resnet.py
hq-deng/RD4AD
6554076872c65f8784f6ece8cfb39ce77e1aee12
[ "MIT" ]
15
2022-03-22T04:41:35.000Z
2022-03-31T09:50:05.000Z
de_resnet.py
hq-deng/RD4AD
6554076872c65f8784f6ece8cfb39ce77e1aee12
[ "MIT" ]
null
null
null
de_resnet.py
hq-deng/RD4AD
6554076872c65f8784f6ece8cfb39ce77e1aee12
[ "MIT" ]
null
null
null
import torch from torch import Tensor import torch.nn as nn try: from torch.hub import load_state_dict_from_url except ImportError: from torch.utils.model_zoo import load_url as load_state_dict_from_url from typing import Type, Any, Callable, Union, List, Optional __all__ = ['ResNet', 'resnet18', 'resnet34', ...
41.541772
113
0.625632
c89b73e4f4ed8bcb8bfce83b3c9d56da3a2c0b0a
10,813
py
Python
bitcoin/core/serialize.py
buzzkillb/exrproxy
fc1dbe6903d78115cdc7ed1bd83595f2ebc5c717
[ "MIT" ]
16
2018-06-20T20:03:40.000Z
2021-11-29T06:56:35.000Z
bitcoin/core/serialize.py
buzzkillb/exrproxy
fc1dbe6903d78115cdc7ed1bd83595f2ebc5c717
[ "MIT" ]
21
2021-02-04T01:37:44.000Z
2022-03-12T01:00:55.000Z
bitcoin/core/serialize.py
buzzkillb/exrproxy
fc1dbe6903d78115cdc7ed1bd83595f2ebc5c717
[ "MIT" ]
10
2018-06-19T01:46:05.000Z
2021-09-24T20:48:21.000Z
# Copyright (C) 2012-2018 The python-bitcoinlib developers # # This file is part of python-bitcoinlib. # # It is subject to the license terms in the LICENSE file found in the top-level # directory of this distribution. # # No part of python-bitcoinlib, including this file, may be copied, modified, # propagated, or dist...
28.306283
100
0.623046
bd120b47f0eb9bc45147e1c78d2324f979b8a3b7
3,374
py
Python
apps/domain/src/main/routes/data_centric/tensors/routes.py
koenvanderveen/PyGrid
28a0bd481ca0c75f2beb75117806996489bb87f3
[ "Apache-2.0" ]
null
null
null
apps/domain/src/main/routes/data_centric/tensors/routes.py
koenvanderveen/PyGrid
28a0bd481ca0c75f2beb75117806996489bb87f3
[ "Apache-2.0" ]
null
null
null
apps/domain/src/main/routes/data_centric/tensors/routes.py
koenvanderveen/PyGrid
28a0bd481ca0c75f2beb75117806996489bb87f3
[ "Apache-2.0" ]
null
null
null
# stdlib import json # third party from flask import Response from flask import request from syft.grid.messages.tensor_messages import CreateTensorMessage from syft.grid.messages.tensor_messages import DeleteTensorMessage from syft.grid.messages.tensor_messages import GetTensorMessage from syft.grid.messages.tensor_me...
26.359375
87
0.707765
54d3007abc9ed289a598a010a9c1a4f3b65aaa64
3,881
py
Python
setup.py
JohnPaton/airbase
84209031b6e15d75444f0075826599f1b57dfb14
[ "MIT" ]
7
2018-11-16T08:34:38.000Z
2022-02-25T01:16:12.000Z
setup.py
JohnPaton/airbase
84209031b6e15d75444f0075826599f1b57dfb14
[ "MIT" ]
22
2019-10-11T11:13:41.000Z
2022-03-05T11:14:47.000Z
setup.py
JohnPaton/airbase
84209031b6e15d75444f0075826599f1b57dfb14
[ "MIT" ]
5
2018-11-19T05:14:15.000Z
2022-01-16T14:19:32.000Z
# !/usr/bin/env python # -*- coding: utf-8 -*- # Note: To use the 'upload' functionality of this file, you must: # $ pip install twine import io import os import sys from shutil import rmtree from setuptools import find_packages, setup, Command # Package meta-data. NAME = "airbase" DESCRIPTION = "An easy download...
28.748148
79
0.637207
3697c42695447884c159ec977e7cc70fc4281cec
728
py
Python
15/duelingGenerators.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
1
2020-04-12T17:54:52.000Z
2020-04-12T17:54:52.000Z
15/duelingGenerators.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
15/duelingGenerators.py
jcsesznegi/advent-of-code-2017
9710e184e092b82aa798076b9ce3915c6e42758d
[ "MIT" ]
null
null
null
def generatorA(value, stop): i = 0 while i < stop: value = (value * 16807) % 2147483647 yield value i += 1 def generatorB(value, stop): i = 0 while i < stop: value = (value * 48271) % 2147483647 yield value i += 1 def generatorAPart2(value, stop): i...
22.060606
48
0.505495
5d6325e567b9391ba14738c0a38dadb5b1098fb3
673
py
Python
migrations/versions/956e9a3dd287_add_metas_column_to_teams_table.py
dingcycle/depc
5ff0a5322684daf715e1171a259b9c643925cf73
[ "BSD-3-Clause" ]
77
2019-01-30T10:12:36.000Z
2021-10-19T16:25:53.000Z
migrations/versions/956e9a3dd287_add_metas_column_to_teams_table.py
dingcycle/depc
5ff0a5322684daf715e1171a259b9c643925cf73
[ "BSD-3-Clause" ]
13
2019-02-20T16:57:57.000Z
2022-03-01T23:10:26.000Z
migrations/versions/956e9a3dd287_add_metas_column_to_teams_table.py
dingcycle/depc
5ff0a5322684daf715e1171a259b9c643925cf73
[ "BSD-3-Clause" ]
10
2019-01-30T13:30:39.000Z
2021-08-02T05:55:18.000Z
"""Add metas' column to 'teams' table Revision ID: 956e9a3dd287 Revises: 30126831f6eb Create Date: 2019-06-10 15:26:59.707588 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '956e9a3dd287' down_revision = '30126831f6eb' branch_labels = None depends_on = None ...
23.206897
79
0.68945
1a7a2cd975dc296bffa546824c7672a071356f19
20,639
py
Python
rootfs/usr/lib/python3/dist-packages/numpy/lib/_datasource.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/lib/_datasource.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
rootfs/usr/lib/python3/dist-packages/numpy/lib/_datasource.py
kappaIO-Dev/kappaIO-sdk-armhf-crosscompile
66fc5fc21e6235f7a3be72a7ccac68e2224b7fb2
[ "MIT" ]
null
null
null
"""A file interface for handling local and remote data files. The goal of datasource is to abstract some of the file system operations when dealing with data files so the researcher doesn't have to know all the low-level details. Through datasource, a researcher can obtain and use a file with one function call, regard...
32.298905
86
0.592664
8a0525c641e81e48c8caf29dc8cbd3bfadff8760
7,932
py
Python
backend/pettybets_34168/settings.py
crowdbotics-apps/pettybets-34168
43d5b58bed425fd7287ecada39f14da5994e3fd4
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/pettybets_34168/settings.py
crowdbotics-apps/pettybets-34168
43d5b58bed425fd7287ecada39f14da5994e3fd4
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/pettybets_34168/settings.py
crowdbotics-apps/pettybets-34168
43d5b58bed425fd7287ecada39f14da5994e3fd4
[ "FTL", "AML", "RSA-MD" ]
null
null
null
""" Django settings for pettybets_34168 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impo...
30.045455
99
0.734367
ea09aefbe906694514ecf8d55dc2a1273b2c269f
182
py
Python
src/base/integrations/sendgrid/exceptions.py
pykulytsky/demando
0be0b82dc773011eb68971b899b55120e74fdb2b
[ "MIT" ]
null
null
null
src/base/integrations/sendgrid/exceptions.py
pykulytsky/demando
0be0b82dc773011eb68971b899b55120e74fdb2b
[ "MIT" ]
44
2021-03-14T21:11:41.000Z
2021-07-27T08:04:13.000Z
src/base/integrations/sendgrid/exceptions.py
pykulytsky/demando
0be0b82dc773011eb68971b899b55120e74fdb2b
[ "MIT" ]
null
null
null
class SendgridBaseException(Exception): pass class SendgridAuthenticationFailed(SendgridBaseException): pass class SendgridWrongResponse(SendgridBaseException): pass
16.545455
58
0.813187
a406d0b7c9cc633307a3d2c6834064928959fd51
1,836
py
Python
reverb/reverb_types.py
Cogitai/reverb
deb427760ecfb515aed0d1e03c5ff40168e6f3c3
[ "Apache-2.0" ]
null
null
null
reverb/reverb_types.py
Cogitai/reverb
deb427760ecfb515aed0d1e03c5ff40168e6f3c3
[ "Apache-2.0" ]
null
null
null
reverb/reverb_types.py
Cogitai/reverb
deb427760ecfb515aed0d1e03c5ff40168e6f3c3
[ "Apache-2.0" ]
null
null
null
# Lint as: python3 # Copyright 2019 DeepMind Technologies Limited. # # 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 ap...
34
103
0.778322
0cd11efa5680f90a9e5a1ba67ddbcee5f69ce00a
161
py
Python
src/restaff/helpers/clean_uper.py
ko10ok/scorator
130250550126bbf863ed0028f99045c17d6249e6
[ "Apache-2.0" ]
null
null
null
src/restaff/helpers/clean_uper.py
ko10ok/scorator
130250550126bbf863ed0028f99045c17d6249e6
[ "Apache-2.0" ]
10
2020-06-20T07:37:27.000Z
2020-07-05T06:22:07.000Z
src/restaff/helpers/clean_uper.py
ko10ok/scorator
130250550126bbf863ed0028f99045c17d6249e6
[ "Apache-2.0" ]
null
null
null
import os def cleanup_temp_files(temporary_files): for file in temporary_files: logger.debug(f'removing temporary {file}') os.remove(file)
20.125
50
0.701863
39f9a5ac84303e62b63ea316f839fa3094d82235
1,064
py
Python
src/box/migrations/0004_auto_20170328_1241.py
trolllabs/smart-storage-api
fd47ef40173ca53834e515dd676ed641a6a9774a
[ "MIT" ]
null
null
null
src/box/migrations/0004_auto_20170328_1241.py
trolllabs/smart-storage-api
fd47ef40173ca53834e515dd676ed641a6a9774a
[ "MIT" ]
null
null
null
src/box/migrations/0004_auto_20170328_1241.py
trolllabs/smart-storage-api
fd47ef40173ca53834e515dd676ed641a6a9774a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-28 12:41 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('box', '0003_auto_20170328_1112'), ] op...
29.555556
114
0.582707
d462421ea0a7dc78b8e2b99a47b4bd1196cbce2d
22,331
py
Python
asnets/asnets/fd_interface.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
21
2017-12-05T13:27:36.000Z
2021-11-16T20:32:33.000Z
asnets/asnets/fd_interface.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
2
2018-07-16T12:15:46.000Z
2020-10-31T00:02:49.000Z
asnets/asnets/fd_interface.py
xf1590281/ASNets
5f4b29fb62a5e72004b813228442d06246c9ec33
[ "MIT" ]
7
2018-03-19T13:45:13.000Z
2022-03-24T07:52:20.000Z
"""Tool for interfacing to Fast Downward (FD) planner, for deterministic problems. Based on `run_det_baselines.py` from `../det-baselines/` (but with some changes).""" import argparse import contextlib import os import os.path as osp import re import shutil import subprocess import time import uuid import numpy as np...
40.675774
79
0.616497
f8d86cb40a5d5c30833fbef7add3047efd14a775
3,152
py
Python
data/cene_dataset.py
guigui10011/CycleGanTest
c73c6c1d4f24317cbdd01322800370bb2b7e8b30
[ "BSD-3-Clause" ]
null
null
null
data/cene_dataset.py
guigui10011/CycleGanTest
c73c6c1d4f24317cbdd01322800370bb2b7e8b30
[ "BSD-3-Clause" ]
null
null
null
data/cene_dataset.py
guigui10011/CycleGanTest
c73c6c1d4f24317cbdd01322800370bb2b7e8b30
[ "BSD-3-Clause" ]
null
null
null
import os.path from data.base_dataset import BaseDataset, get_transform from data.image_folder import make_dataset from PIL import Image import random class CeneDataset(BaseDataset): """ This dataset class can load unaligned/unpaired datasets. It requires two directories to host training images from doma...
42.594595
131
0.641815
c2c75aab00da7f2bf66e1c75075e1212cbb508d1
347
py
Python
pycryptics/utils/ngrams.py
rdeits/cryptics
402579a6cbe5eb431c20ddb140aaa448fe78491e
[ "MIT" ]
23
2015-01-01T18:35:49.000Z
2022-03-16T19:13:03.000Z
pycryptics/utils/ngrams.py
rdeits/cryptics
402579a6cbe5eb431c20ddb140aaa448fe78491e
[ "MIT" ]
3
2015-02-09T16:26:28.000Z
2017-10-17T11:25:06.000Z
pycryptics/utils/ngrams.py
rdeits/cryptics
402579a6cbe5eb431c20ddb140aaa448fe78491e
[ "MIT" ]
8
2015-06-27T22:14:24.000Z
2019-08-26T17:44:04.000Z
import msgpack with open('data/ngrams.msgpack', 'r') as f: NGRAMS = msgpack.load(f, use_list=False) for k in NGRAMS: NGRAMS[k] = set(NGRAMS[k]) with open('data/initial_ngrams.msgpack', 'r') as f: INITIAL_NGRAMS = msgpack.load(f, use_list=False) for k in INITIAL_NGRAMS: INITIAL_NGRAMS[k...
28.916667
52
0.665706
18f257254ed060770ea18833866c8ab9c0c4a258
622
py
Python
app/__init__.py
Langat05/NewsApi
b54153a6ba01fe0bf4cea3078325ce6f1ee75154
[ "MIT", "Unlicense" ]
1
2020-09-12T12:21:14.000Z
2020-09-12T12:21:14.000Z
app/__init__.py
Langat05/NewsApi
b54153a6ba01fe0bf4cea3078325ce6f1ee75154
[ "MIT", "Unlicense" ]
null
null
null
app/__init__.py
Langat05/NewsApi
b54153a6ba01fe0bf4cea3078325ce6f1ee75154
[ "MIT", "Unlicense" ]
null
null
null
from flask import Flask from flask_bootstrap import Bootstrap from config import * # Initializing application app = Flask(__name__,instance_relative_config = True) # Setting up configuration app.config.from_object('DevConfig') app.config.from_pyfile('config.py') # Initializing Flask Extensions bootstrap = Bootstrap...
22.214286
55
0.770096
4cbd3cd292c28495c39b55343b6d05aecabecd11
9,816
py
Python
tests/providers/google/marketing_platform/operators/test_analytics.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
1
2020-08-05T18:30:40.000Z
2020-08-05T18:30:40.000Z
tests/providers/google/marketing_platform/operators/test_analytics.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
20
2021-01-23T12:33:08.000Z
2021-12-07T22:30:37.000Z
tests/providers/google/marketing_platform/operators/test_analytics.py
daemon-demon/airflow
6f96e81f0123b30750fb68ec496246023bf63f35
[ "Apache-2.0" ]
1
2020-09-10T09:51:46.000Z
2020-09-10T09:51:46.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...
39.10757
108
0.711899
af14bc99c167f06e4aabffeb5ab296c5d3a5d525
1,310
py
Python
examples/app_commands/info.py
ThatGenZGamer48/pycord
0aa4cdfbdb5af941f9be65cc9bab8b5a1e02581c
[ "MIT" ]
null
null
null
examples/app_commands/info.py
ThatGenZGamer48/pycord
0aa4cdfbdb5af941f9be65cc9bab8b5a1e02581c
[ "MIT" ]
null
null
null
examples/app_commands/info.py
ThatGenZGamer48/pycord
0aa4cdfbdb5af941f9be65cc9bab8b5a1e02581c
[ "MIT" ]
null
null
null
import discord intents = discord.Intents( guilds=True, members=True, messages=True, ) bot = discord.Bot(intents=intents) @bot.command(name="userinfo", description="Gets information about an user.", guild_ids=[...]) async def userinfo(ctx, *, user: discord.Member = None): # If the user is not provided...
32.75
93
0.667176
899afab9719fbc2020d09eac3e059999d37d8e89
1,328
py
Python
classes/Helper.py
MadReza/AI-Puzzle-Solver
e922f4b299ba6ecf3f845ea50f404f98d2a4cfaa
[ "MIT" ]
null
null
null
classes/Helper.py
MadReza/AI-Puzzle-Solver
e922f4b299ba6ecf3f845ea50f404f98d2a4cfaa
[ "MIT" ]
null
null
null
classes/Helper.py
MadReza/AI-Puzzle-Solver
e922f4b299ba6ecf3f845ea50f404f98d2a4cfaa
[ "MIT" ]
null
null
null
import argparse def getCmdArgs(): """Helper function for analyzing arguments""" parser = argparse.ArgumentParser(description='Puzzle Solver') parser.add_argument( '-a', action="store", dest="algorithm", choices=["a*", "best", "bfs", "dfs"], default="a*", help...
25.538462
98
0.546687
b139cf2256d91f56c9d5c3705985043b30a0374f
5,244
py
Python
src/figures/inputs/input_compare.py
rhyswhitley/savanna_iav
4eadf29a4e9c05d0b14d3b9c973eb8db3ea7edba
[ "CC0-1.0" ]
null
null
null
src/figures/inputs/input_compare.py
rhyswhitley/savanna_iav
4eadf29a4e9c05d0b14d3b9c973eb8db3ea7edba
[ "CC0-1.0" ]
null
null
null
src/figures/inputs/input_compare.py
rhyswhitley/savanna_iav
4eadf29a4e9c05d0b14d3b9c973eb8db3ea7edba
[ "CC0-1.0" ]
1
2019-09-01T04:15:21.000Z
2019-09-01T04:15:21.000Z
#!/usr/bin/env python2 import os import numpy as np import netCDF4 as nc import pandas as pd import matplotlib.dates as dates import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from scipy import integrate from matplotlib import style #from mpltools import style def plot_inputs(dataset, EX=1): ...
37.457143
91
0.638444
3e8e881d3540b11d93d71cc5cdce0c9876cf545a
894
py
Python
tests/unit/fixtures/utils.py
ghga-de/ghga-service-chassis-lib
7a4d544386a88bec961601f2f838a6a955df6698
[ "Apache-2.0" ]
1
2021-07-20T07:47:24.000Z
2021-07-20T07:47:24.000Z
tests/unit/fixtures/utils.py
ghga-de/ghga-service-chassis-lib
7a4d544386a88bec961601f2f838a6a955df6698
[ "Apache-2.0" ]
20
2021-07-02T14:38:57.000Z
2022-02-09T10:42:41.000Z
tests/unit/fixtures/utils.py
ghga-de/ghga-service-chassis-lib
7a4d544386a88bec961601f2f838a6a955df6698
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 - 2022 Universität Tübingen, DKFZ and EMBL # for the German Human Genome-Phenome Archive (GHGA) # # 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/...
33.111111
74
0.738255
c0ea1a12cf3656d5ce98b4d99814ab4e5aa66b1b
747
py
Python
menvod/wgetpage.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
3
2017-04-30T17:44:53.000Z
2018-02-03T06:02:11.000Z
menvod/wgetpage.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
10
2021-03-18T20:17:19.000Z
2022-03-11T23:14:19.000Z
menvod/wgetpage.py
anokata/pythonPetProjects
245c3ff11ae560b17830970061d8d60013948fd7
[ "MIT" ]
null
null
null
import urllib.request from lxml import html import requests def ursl(): url = "http://178.62.186.103/2016/" #o = urllib.urlopen z = urllib.request.urlopen(url) b = z.read() p = html.fromstring(b) u = p.xpath('//a') for link in u: print(url+link.get('href')) def get_all_links(html, pat...
24.9
69
0.627845
61d7ddffb84dbc1329349fc9122e1a98ad9895c2
1,301
py
Python
django_project/blog/urls.py
jsolly/shower-thought-blog
b1f61b50f20b6cc20a10f87bbd6d9532dc0b06c5
[ "MIT" ]
null
null
null
django_project/blog/urls.py
jsolly/shower-thought-blog
b1f61b50f20b6cc20a10f87bbd6d9532dc0b06c5
[ "MIT" ]
null
null
null
django_project/blog/urls.py
jsolly/shower-thought-blog
b1f61b50f20b6cc20a10f87bbd6d9532dc0b06c5
[ "MIT" ]
null
null
null
from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from .views import ( HomeView, UserPostListView, CreatePostView, PostDetailView, PostUpdateView, PostDeleteView, CategoryView, road_map_view, search_view, works_cited...
33.358974
80
0.6495
ed5d0fd7b1d3f7270371fc89808c9708116e9797
679
py
Python
peerbot/PeerBotStateInitializing.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
peerbot/PeerBotStateInitializing.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
peerbot/PeerBotStateInitializing.py
danerprog/PeerHostedDiscordBot
310467d8f123826a20ed92174666beb46fe35d02
[ "Apache-2.0" ]
null
null
null
from peerbot.PeerBotState import PeerBotState from peerbot.PeerBotStateLogin import PeerBotStateLogin from utils.Logger import Logger class PeerBotStateInitializing(PeerBotState): def __init__(self, stateMachine): self.logger = Logger.getLogger("PeerBotStateInitializing - " + str(stateMachine.getUserI...
39.941176
101
0.730486
7eca6d2e7075c18de83e19b3537909150caba3b9
566
py
Python
iiab/endpoint_description.py
georgejhunt/internet-in-a-box
67f547a43e87b637723f8b5207653fd7f7887974
[ "BSD-2-Clause" ]
37
2016-11-18T21:17:29.000Z
2021-12-02T11:48:56.000Z
iiab/endpoint_description.py
georgejhunt/internet-in-a-box
67f547a43e87b637723f8b5207653fd7f7887974
[ "BSD-2-Clause" ]
5
2015-01-11T18:32:13.000Z
2016-06-11T23:10:16.000Z
iiab/endpoint_description.py
georgejhunt/internet-in-a-box
67f547a43e87b637723f8b5207653fd7f7887974
[ "BSD-2-Clause" ]
10
2017-06-17T14:46:47.000Z
2022-01-23T21:59:59.000Z
class EndPointDescription(object): """Description of url for use with pagination""" def __init__(self, endpoint, values): """matches parameters used in url_for(endpoint, values) function :param endpoint: string description of endpoint such as blueprint_class.funcname :param values: dicti...
33.294118
88
0.678445
fb3ed05b33ebaabb9ddedba570c97fe0357c1525
988
py
Python
tests/test_quick_email.py
murrple-1/send-email-python
c32463a785376daf75575e967acd57b1e3cd5587
[ "MIT" ]
1
2018-04-19T13:10:55.000Z
2018-04-19T13:10:55.000Z
tests/test_quick_email.py
murrple-1/quick-email-python
c32463a785376daf75575e967acd57b1e3cd5587
[ "MIT" ]
null
null
null
tests/test_quick_email.py
murrple-1/quick-email-python
c32463a785376daf75575e967acd57b1e3cd5587
[ "MIT" ]
null
null
null
import unittest import time from quick_email import send_email import tests.smtp as smtp class TestQuickEmail(unittest.TestCase): def run(self, *args, **kwargs): result = super().run(*args, **kwargs) time.sleep(smtp.SMTP_RATE_LIMIT_SECONDS) return result def test_send_email_auth(se...
36.592593
160
0.701417
59540c471369e2d3a9b0d4bbdf8387d3cc7a556d
14,684
py
Python
api/src/opentrons/hardware_control/simulator.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
null
null
null
api/src/opentrons/hardware_control/simulator.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
2
2022-02-15T03:28:35.000Z
2022-02-28T01:34:18.000Z
api/src/opentrons/hardware_control/simulator.py
mrod0101/opentrons
6450edb0421f1c2484c292f8583602d8f6fd13b8
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import asyncio import copy import logging from threading import Event from typing import Dict, Optional, List, Tuple, TYPE_CHECKING, Sequence from contextlib import contextmanager from opentrons_shared_data.pipette import dummy_model_for_name from opentrons import types from opentro...
39.157333
88
0.595206
71b957151191ece14193b46c361a52fe91112a9d
3,668
py
Python
vfxwindow/max.py
Peter92/vfx-window
679c4348ff3956e4be47994135888544d57409dc
[ "MIT" ]
45
2019-10-13T17:25:58.000Z
2020-12-10T23:06:25.000Z
vfxwindow/max.py
Peter92/vfx-window
679c4348ff3956e4be47994135888544d57409dc
[ "MIT" ]
4
2020-05-18T05:26:51.000Z
2020-11-04T11:28:30.000Z
vfxwindow/max.py
Peter92/vfx-window
679c4348ff3956e4be47994135888544d57409dc
[ "MIT" ]
4
2021-07-16T09:21:44.000Z
2022-02-24T21:32:30.000Z
"""Window class for 3D Studio Max.""" from __future__ import absolute_import, print_function import os import sys from Qt import QtWidgets, QtCompat, QtCore import MaxPlus from .abstract import AbstractWindow, getWindowSettings from .utils import hybridmethod, setCoordinatesToScreen from .standalone import Standal...
32.75
83
0.621592
8bcb060f9c9e9b1a05e7378d1176a09bd72f8629
12,884
py
Python
menpo/math/test/decomposition_base_test.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
menpo/math/test/decomposition_base_test.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
menpo/math/test/decomposition_base_test.py
jacksoncsy/menpo
3cac491fe30454935ed12fcaa89f453c5f6ec878
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.testing import assert_almost_equal from menpo.math import eigenvalue_decomposition, \ principal_component_decomposition # Positive semi-definite matrix cov_matrix = np.array([[3, 1], [1, 3]]) # Data values taken from: # http://www.cs.otago.ac.nz/cosc453/student_tutorials/principal_com...
44.891986
82
0.635827
39a63556e1408438e9f48c7fb1c33b06316e05f1
3,479
py
Python
realsafe/attack/fgsm.py
Xiang-cd/realsafe
39f632e950562fa00ac26d34d13b2691c9c5f013
[ "MIT" ]
2
2021-01-27T06:14:50.000Z
2021-10-30T08:23:48.000Z
realsafe/attack/fgsm.py
Xiang-cd/realsafe
39f632e950562fa00ac26d34d13b2691c9c5f013
[ "MIT" ]
2
2021-08-25T16:14:37.000Z
2022-02-10T02:26:07.000Z
realsafe/attack/fgsm.py
Xiang-cd/realsafe
39f632e950562fa00ac26d34d13b2691c9c5f013
[ "MIT" ]
1
2022-01-05T04:36:22.000Z
2022-01-05T04:36:22.000Z
import tensorflow as tf from realsafe.attack.base import BatchAttack from realsafe.attack.utils import get_xs_ph, get_ys_ph, maybe_to_array, get_unit class FGSM(BatchAttack): ''' Fast Gradient Sign Method (FGSM). A white-box single-step constraint-based method. Require a differentiable loss function and a ``...
45.776316
120
0.638402
3cd763b7c5fa3241ff2da0e18286ee1f7057fed8
17,496
py
Python
library/oci_node_pool.py
AndreyAdnreyev/oci-ansible-modules
accd6e482ff1e8c2ddd6e85958dfe12cd6114383
[ "Apache-2.0" ]
null
null
null
library/oci_node_pool.py
AndreyAdnreyev/oci-ansible-modules
accd6e482ff1e8c2ddd6e85958dfe12cd6114383
[ "Apache-2.0" ]
null
null
null
library/oci_node_pool.py
AndreyAdnreyev/oci-ansible-modules
accd6e482ff1e8c2ddd6e85958dfe12cd6114383
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright (c) 2018, 2019 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
38.034783
120
0.612769
8e70890b5d8f5b931487868442814fe6f2b0b76b
532
py
Python
example/health_check_server.py
parmentelat/websockets
207518d813347b42d5f2fb9f50b09bd101016a24
[ "BSD-3-Clause" ]
1
2020-07-21T20:13:04.000Z
2020-07-21T20:13:04.000Z
example/health_check_server.py
parmentelat/websockets
207518d813347b42d5f2fb9f50b09bd101016a24
[ "BSD-3-Clause" ]
null
null
null
example/health_check_server.py
parmentelat/websockets
207518d813347b42d5f2fb9f50b09bd101016a24
[ "BSD-3-Clause" ]
1
2020-12-18T09:14:03.000Z
2020-12-18T09:14:03.000Z
#!/usr/bin/env python # WS echo server with HTTP endpoint at /health/ import asyncio import http import websockets def health_check(path, request_headers): if path == '/health/': return http.HTTPStatus.OK, [], b'OK\n' async def echo(websocket, path): async for message in websocket: await web...
24.181818
58
0.736842
924e8007d94a2f3840b2749f0e2775fe68ee3f1c
2,195
bzl
Python
maven/fetch.bzl
cgruber/bazel_maven_repository
f8e43e9e14cd228cbbb736704fe4fa5841686a49
[ "Apache-2.0" ]
40
2019-01-10T14:06:32.000Z
2022-03-13T18:30:25.000Z
maven/fetch.bzl
cgruber/bazel_maven_repository
f8e43e9e14cd228cbbb736704fe4fa5841686a49
[ "Apache-2.0" ]
78
2019-01-09T19:57:17.000Z
2021-04-29T06:18:23.000Z
maven/fetch.bzl
square/bazel_maven_repository
8f21d5989b87e801da81d5a12c9adc244fdb3c28
[ "Apache-2.0" ]
11
2019-01-09T21:57:18.000Z
2020-11-13T12:38:34.000Z
# # Copyright (C) 2020 Square, 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,...
35.983607
99
0.626879
2f45852a0e9d15f8859a915c993c16d35f25b1ab
353
py
Python
src/260. Single Number III.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/260. Single Number III.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
src/260. Single Number III.py
xiaonanln/myleetcode-python
95d282f21a257f937cd22ef20c3590a69919e307
[ "Apache-2.0" ]
null
null
null
from collections import Counter class Solution(object): def singleNumber(self, nums): """ :type nums: List[int] :rtype: List[int] """ C = Counter(nums) return [n for n, c in C.iteritems() if c == 1] # Given nums = [1, 2, 1, 3, 2, 5], return [3, 5]. print Solution()....
25.214286
54
0.541076
947ee794ac95b0bf7012a926daed175e948003f6
1,049
py
Python
var/spack/repos/builtin/packages/py-azure-mgmt-containerregistry/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-03-05T10:54:32.000Z
2021-03-05T14:14:52.000Z
var/spack/repos/builtin/packages/py-azure-mgmt-containerregistry/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
32
2020-12-15T17:29:20.000Z
2022-03-21T15:08:31.000Z
var/spack/repos/builtin/packages/py-azure-mgmt-containerregistry/package.py
kkauder/spack
6ae8d5c380c1f42094b05d38be26b03650aafb39
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2021-04-07T18:27:09.000Z
2022-03-31T22:52:38.000Z
# Copyright 2013-2021 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) class PyAzureMgmtContainerregistry(PythonPackage): """Microsoft Azure Container Registry Client Library for Python.""...
47.681818
111
0.732126
080464d9f90b5a3962dd596e208fa2cfa4f3b65c
9,924
py
Python
flexget/components/managed_lists/lists/entry_list/api.py
guillaumelamirand/Flexget
51945105c253a64c079eb5a62680392ce9013794
[ "MIT" ]
2
2017-03-25T10:39:25.000Z
2019-12-11T03:46:26.000Z
flexget/components/managed_lists/lists/entry_list/api.py
guillaumelamirand/Flexget
51945105c253a64c079eb5a62680392ce9013794
[ "MIT" ]
null
null
null
flexget/components/managed_lists/lists/entry_list/api.py
guillaumelamirand/Flexget
51945105c253a64c079eb5a62680392ce9013794
[ "MIT" ]
null
null
null
import copy import logging from math import ceil from flask import jsonify, request from sqlalchemy.orm.exc import NoResultFound from flexget.api import APIResource, api from flexget.api.app import ( Conflict, NotFoundError, base_message_schema, etag, pagination_headers, success_response, ) f...
34.699301
99
0.649637
a8f8cf8794d61748699f9b0cce01ebd6f5e5d5ae
1,038
py
Python
app/v1/views/users.py
codeMarble254/storo-v1
6386afe9fc65a9f8fef86677b27d120b24dd6244
[ "MIT" ]
null
null
null
app/v1/views/users.py
codeMarble254/storo-v1
6386afe9fc65a9f8fef86677b27d120b24dd6244
[ "MIT" ]
null
null
null
app/v1/views/users.py
codeMarble254/storo-v1
6386afe9fc65a9f8fef86677b27d120b24dd6244
[ "MIT" ]
1
2018-12-09T20:43:35.000Z
2018-12-09T20:43:35.000Z
'''This module manages all user endpoints(signup, login, logout etc)''' from flask import jsonify, make_response from flask_restful import Resource from werkzeug.security import generate_password_hash from .resources import Initialize from ..models.user import User from ..utils.users import Validation class Signup(R...
35.793103
87
0.683044
462f67feaa47b83af2a3dcd5cb3c07138e995492
693
py
Python
guis/cpu/animated_plot.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
1
2022-02-02T04:44:56.000Z
2022-02-02T04:44:56.000Z
guis/cpu/animated_plot.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
guis/cpu/animated_plot.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
from collections import deque from random import randint import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation fig = plt.figure() ax = plt.axes(xlim=(0, 200), ylim=(0, 100)) line, = ax.plot([], []) y_list = deque([-1] * 400) x_list = deque(np.linspace(200, 0, num=400)) def init...
18.72973
44
0.623377
955bf1c8424cefd6d0df4c8f827f0fcb1f93df7d
515
py
Python
fboss/py/fboss/cli/commands/arp.py
nathanawmk/fboss
9f36dbaaae47202f9131598560c65715334a9a83
[ "BSD-3-Clause" ]
834
2015-03-10T18:12:28.000Z
2022-03-31T20:16:17.000Z
fboss/py/fboss/cli/commands/arp.py
nathanawmk/fboss
9f36dbaaae47202f9131598560c65715334a9a83
[ "BSD-3-Clause" ]
82
2015-04-07T08:48:29.000Z
2022-03-11T21:56:58.000Z
fboss/py/fboss/cli/commands/arp.py
nathanawmk/fboss
9f36dbaaae47202f9131598560c65715334a9a83
[ "BSD-3-Clause" ]
296
2015-03-11T03:45:37.000Z
2022-03-14T22:54:22.000Z
#!/usr/bin/env python3 # # Copyright (c) 2004-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same direct...
27.105263
78
0.737864
9c49f3be1e2a48c0649a72f4a45dab9c6b2b5948
962
py
Python
dp/300.py
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
dp/300.py
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
dp/300.py
MingfeiPan/leetcode
55dc878cfb7b15a34252410ae7420a656da604f8
[ "Apache-2.0" ]
null
null
null
class Solution: def lengthOfLIS(self, nums): """ :type nums: List[int] :rtype: int """ if not nums: return 0 size = len(nums) arr = [] arr.insert(0, 1) for i in range(1, size): maxn = 1 for j...
24.666667
68
0.403326
d7163806cfde24373e8ebfea6645da4d08d79e73
1,040
py
Python
20201206/20201206.py
jtmach/AdventOfCode2019
1ee66652708cd59f3bfa7bb3f6dcefbc4b384b44
[ "MIT" ]
null
null
null
20201206/20201206.py
jtmach/AdventOfCode2019
1ee66652708cd59f3bfa7bb3f6dcefbc4b384b44
[ "MIT" ]
null
null
null
20201206/20201206.py
jtmach/AdventOfCode2019
1ee66652708cd59f3bfa7bb3f6dcefbc4b384b44
[ "MIT" ]
null
null
null
import os script_dir = os.path.dirname(os.path.abspath(__file__)) input = [] with open(os.path.join(script_dir, "input.txt"), "r") as file: questionaire = {} for line in file: if (line.strip('\n') != ""): if "People" in questionaire: questionaire["People"] += 1 else: questionaire["...
26.666667
81
0.629808
798e56713bd119edda54c5f9f7ef9c4009ace7b2
3,282
py
Python
mysqldb.py
mcmissile007/ws_tickers
6dd9ca3199c26a3db34956985fab5618c0c1abc6
[ "MIT" ]
null
null
null
mysqldb.py
mcmissile007/ws_tickers
6dd9ca3199c26a3db34956985fab5618c0c1abc6
[ "MIT" ]
null
null
null
mysqldb.py
mcmissile007/ws_tickers
6dd9ca3199c26a3db34956985fab5618c0c1abc6
[ "MIT" ]
null
null
null
import pymysql import logging import traceback from singleton import Singleton from database_config import MysqlDataBaseConfig from config import Config class MysqlDataBase(metaclass=Singleton): def __init__(self, ticker_priority_exchange): self.logger = logging.getLogger( Config.LOGGING_NA...
33.489796
165
0.513406
1f9a8ef7e7363d6587e40500acd324c408cea4c3
548
py
Python
routes/web.py
LouisDG6/LouisDG6-capstone_backend
abf784d80fa1604d2352c2f896210a9bc84f7a80
[ "MIT" ]
null
null
null
routes/web.py
LouisDG6/LouisDG6-capstone_backend
abf784d80fa1604d2352c2f896210a9bc84f7a80
[ "MIT" ]
null
null
null
routes/web.py
LouisDG6/LouisDG6-capstone_backend
abf784d80fa1604d2352c2f896210a9bc84f7a80
[ "MIT" ]
null
null
null
"""Web Routes.""" from masonite.routes import Get, Post, Put, Delete, Route, RouteGroup ROUTES = [ Get("/", "WelcomeController@show").name("welcome"), RouteGroup([ Get("/", "BakeryController@index").name("index"), Get("/@id", "BakeryController@show").name("show"), Post("/", "BakeryCon...
30.444444
69
0.605839
71ec198ff8fbf4b6b44f5ee50b713bade21b4c70
673
py
Python
jupyterlab/_version.py
reesscot/jupyterlab
11c2c54ed7915d0746d942279d76c5a2f69dc1aa
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/_version.py
reesscot/jupyterlab
11c2c54ed7915d0746d942279d76c5a2f69dc1aa
[ "BSD-3-Clause" ]
null
null
null
jupyterlab/_version.py
reesscot/jupyterlab
11c2c54ed7915d0746d942279d76c5a2f69dc1aa
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. from collections import namedtuple VersionInfo = namedtuple('VersionInfo', [ 'major', 'minor', 'micro', 'releaselevel', 'serial' ]) # DO NOT EDIT THIS DIRECTLY! It is managed by bumpversion versi...
25.884615
73
0.668648
d037f4658ec721928fadb9affef32a2d81299fc9
16,034
py
Python
tests/test_deobfuscate_filenames.py
degville/sabnzbd
0406f1df013fb8e4216a97ab3d152650809f6241
[ "MIT", "PSF-2.0", "0BSD" ]
null
null
null
tests/test_deobfuscate_filenames.py
degville/sabnzbd
0406f1df013fb8e4216a97ab3d152650809f6241
[ "MIT", "PSF-2.0", "0BSD" ]
8
2022-03-21T10:20:29.000Z
2022-03-25T13:57:40.000Z
tests/test_deobfuscate_filenames.py
degville/sabnzbd
0406f1df013fb8e4216a97ab3d152650809f6241
[ "MIT", "PSF-2.0", "0BSD" ]
null
null
null
#!/usr/bin/python3 -OO # Copyright 2007-2021 The SABnzbd-Team <team@sabnzbd.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any late...
45.039326
120
0.6881
b6f6947d47e8bfd6ecbec7176312648e92c6792b
2,077
py
Python
mybot.py
Elcid-Chawa/mybot
6db2649c2f28af48a744fb5b0d93e08a77f26947
[ "Apache-2.0" ]
null
null
null
mybot.py
Elcid-Chawa/mybot
6db2649c2f28af48a744fb5b0d93e08a77f26947
[ "Apache-2.0" ]
null
null
null
mybot.py
Elcid-Chawa/mybot
6db2649c2f28af48a744fb5b0d93e08a77f26947
[ "Apache-2.0" ]
null
null
null
from flask import Flask, request from dotenv import load_dotenv import os from pymessenger import Bot app = Flask(__name__) load_dotenv() VERIFIER_JETON = os.environ.get('VERIFIER_JETON') PAGE_ACCESS_TOKEN = os.environ.get('PAGE_ACCESS_TOKEN') FB_API_URL = 'https://graph.facebook.com/v10.0/me/messages?access_token='+P...
30.544118
106
0.656235
3d9ebd8536d0c1744cd62754467f587a75009158
4,137
py
Python
tests/ga_engine_test.py
nayash/ga-hyperparam-tuning
4f80a66cb69fd5c8e49a9b7c4e3911540ff48890
[ "Apache-2.0" ]
2
2020-09-19T21:23:45.000Z
2021-09-04T09:24:19.000Z
tests/ga_engine_test.py
DarkKnight1991/ga-hyperparam-tuning
4f80a66cb69fd5c8e49a9b7c4e3911540ff48890
[ "Apache-2.0" ]
null
null
null
tests/ga_engine_test.py
DarkKnight1991/ga-hyperparam-tuning
4f80a66cb69fd5c8e49a9b7c4e3911540ff48890
[ "Apache-2.0" ]
2
2020-07-06T10:34:03.000Z
2021-11-29T17:23:20.000Z
# # Copyright (c) 2019. Asutosh Nayak (nayak.asutosh@ymail.com) # # 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 # import sys sys.path.app...
43.09375
120
0.53372
cfbfcedfcbd9800d1b3ebbb7cdf8ba6920519462
463
py
Python
meas_models/migrations/0004_formulaindex_idf.py
deka108/meas_deka
9646b04b878f325ade0a59e41bfcb10ab962d753
[ "Apache-2.0" ]
null
null
null
meas_models/migrations/0004_formulaindex_idf.py
deka108/meas_deka
9646b04b878f325ade0a59e41bfcb10ab962d753
[ "Apache-2.0" ]
1
2018-06-19T16:27:31.000Z
2018-06-21T02:57:03.000Z
meas_models/migrations/0004_formulaindex_idf.py
deka108/mathqa-server
9646b04b878f325ade0a59e41bfcb10ab962d753
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2017-01-18 11:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('meas_models', '0003_formula_question'), ] operations = [ migrations.AddFiel...
22.047619
59
0.61987
0c961b465e51fff3c7caf8fb92cbf8acbad6b045
51,907
py
Python
tests/api/test_checkout.py
igoryok-zp/saleor
3a6fe51c068aca991331d6eb43317102ed68ed09
[ "CC-BY-4.0" ]
2
2019-07-27T22:56:14.000Z
2021-09-08T14:37:38.000Z
tests/api/test_checkout.py
igoryok-zp/saleor
3a6fe51c068aca991331d6eb43317102ed68ed09
[ "CC-BY-4.0" ]
1
2020-04-27T01:00:45.000Z
2020-04-27T01:00:45.000Z
tests/api/test_checkout.py
techonomics69/saleor
fd4cf8531b65fed24b742d51bec8f015d61f3efc
[ "CC-BY-4.0" ]
1
2021-04-15T07:16:34.000Z
2021-04-15T07:16:34.000Z
import uuid from unittest import mock from unittest.mock import ANY, patch import graphene import pytest from django.core.exceptions import ValidationError from prices import Money, TaxedMoney from saleor.checkout.models import Checkout from saleor.checkout.utils import clean_checkout, is_fully_paid from saleor.core....
33.859752
88
0.687961
0f8f4f3e0199c041df114e9e9934fa664362729e
2,479
py
Python
dss_workflow/dags/pump_scheduler.py
CUrW-SL/DSS-Framework
43a39b322ffb0eb92dd116e77cf9a8479357a121
[ "MIT" ]
null
null
null
dss_workflow/dags/pump_scheduler.py
CUrW-SL/DSS-Framework
43a39b322ffb0eb92dd116e77cf9a8479357a121
[ "MIT" ]
null
null
null
dss_workflow/dags/pump_scheduler.py
CUrW-SL/DSS-Framework
43a39b322ffb0eb92dd116e77cf9a8479357a121
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from airflow import DAG from airflow.operators.dummy_operator import DummyOperator from airflow.models import Variable import sys from airflow.operators.python_operator import PythonOperator sys.path.insert(0, '/home/curw/git/DSS-Framework/dss_workflow/plugins/operators') from...
32.618421
95
0.713594
7aeecbc5dfaeb026755f932e996178b9fcdbfad5
694
py
Python
ex42.py
hninpoeaukyaw/coding-sprint
09548104fec7f659607e3ae4a214f84b4712060f
[ "MIT" ]
null
null
null
ex42.py
hninpoeaukyaw/coding-sprint
09548104fec7f659607e3ae4a214f84b4712060f
[ "MIT" ]
null
null
null
ex42.py
hninpoeaukyaw/coding-sprint
09548104fec7f659607e3ae4a214f84b4712060f
[ "MIT" ]
null
null
null
## Animal is-a object (yes, sort of confusing) look at the ex class Animal(object): pass ## ?? class Dog(Animal): def __init__(self, name): ## ?? self.name = name ## ?? class Cat(Animal): def __init__(self, name): ## ?? self.name = name ## ?? class Person(object): ...
15.422222
61
0.533141
b14ad2853af8c014483dd11c62b14ee649fa06e1
1,160
py
Python
chatroom/urls.py
jason-feng/chatroom
40cc07f6099c8717bf5399690077bc9414ff8650
[ "Apache-2.0" ]
null
null
null
chatroom/urls.py
jason-feng/chatroom
40cc07f6099c8717bf5399690077bc9414ff8650
[ "Apache-2.0" ]
null
null
null
chatroom/urls.py
jason-feng/chatroom
40cc07f6099c8717bf5399690077bc9414ff8650
[ "Apache-2.0" ]
null
null
null
"""chatroom URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
41.428571
132
0.722414
43e3d0fb4dac8eacb201434a8667a31ff5a0d535
2,616
py
Python
pySDC/implementations/problem_classes/HenonHeiles.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
20
2015-03-21T09:02:55.000Z
2022-02-26T20:22:21.000Z
pySDC/implementations/problem_classes/HenonHeiles.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
61
2015-03-02T09:35:55.000Z
2022-03-17T12:42:48.000Z
pySDC/implementations/problem_classes/HenonHeiles.py
brownbaerchen/pySDC
31293859d731646aa09cef4345669eac65501550
[ "BSD-2-Clause" ]
19
2015-02-20T11:52:33.000Z
2022-02-02T10:46:27.000Z
import numpy as np from pySDC.core.Errors import ParameterError from pySDC.core.Problem import ptype from pySDC.implementations.datatype_classes.particles import particles, acceleration # noinspection PyUnusedLocal class henon_heiles(ptype): """ Example implementing the harmonic oscillator """ def ...
29.727273
108
0.547783
43e7e7b1bfe21ae048c6edc5178264c547ae59aa
634
py
Python
django_API/dj_api_catalog/tests.py
zivlir/dj_API
75f6d32a138fdd187eacffd2dcc1df9bca69accc
[ "MIT" ]
null
null
null
django_API/dj_api_catalog/tests.py
zivlir/dj_API
75f6d32a138fdd187eacffd2dcc1df9bca69accc
[ "MIT" ]
null
null
null
django_API/dj_api_catalog/tests.py
zivlir/dj_API
75f6d32a138fdd187eacffd2dcc1df9bca69accc
[ "MIT" ]
null
null
null
from django.test import TestCase # Create your tests here. from rest_framework.views import APIView from rest_framework.response import Response class HelloApiView(APIView): """Test API View.""" def get(self, request, format=None): """Returns a list of APIView features.""" an_apiview= [ ...
28.818182
77
0.641956
076d58897f9067a876ff17d3591c173838a15c1a
119
py
Python
NodeT.py
Jcarlos0828/LeetCode-PracticeResults
73566a131629038caf2555eaf4999379227ec369
[ "MIT" ]
1
2019-06-26T22:44:16.000Z
2019-06-26T22:44:16.000Z
NodeT.py
Jcarlos0828/LeetCode-PracticeResults
73566a131629038caf2555eaf4999379227ec369
[ "MIT" ]
null
null
null
NodeT.py
Jcarlos0828/LeetCode-PracticeResults
73566a131629038caf2555eaf4999379227ec369
[ "MIT" ]
null
null
null
class NodeT: def __init__(self, val = 0): self.val = val self.left = None self.right = None
23.8
32
0.537815
8432eb01186377bd898de9f8c1fcee881d2c6c29
1,791
py
Python
app/accounts/models.py
jamedadi/linkak
8569bd07d947c00f37009aed755c2c63bfcc32eb
[ "MIT" ]
2
2021-09-19T09:03:07.000Z
2021-09-19T09:03:17.000Z
app/accounts/models.py
jamedadi/linkak
8569bd07d947c00f37009aed755c2c63bfcc32eb
[ "MIT" ]
2
2021-09-20T19:18:27.000Z
2021-09-26T13:26:01.000Z
app/accounts/models.py
jamedadi/Link-Shortener
8569bd07d947c00f37009aed755c2c63bfcc32eb
[ "MIT" ]
4
2021-09-20T17:26:41.000Z
2021-09-24T12:23:23.000Z
from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.db import models from django.utils import timezone from django.utils.translation import ugettext_lazy as _ from accounts.managers import UserManager class User(AbstractBaseUser, PermissionsMi...
33.792453
93
0.6823
d41c6511bbee71875a7b0ef77e21f7468f17cbed
11,731
py
Python
sudoku/sudoku_algorithms.py
leomrocha/sudoku
49b5fa571f3dd6ba6ea0e2cb29cd0a47449847a4
[ "MIT" ]
null
null
null
sudoku/sudoku_algorithms.py
leomrocha/sudoku
49b5fa571f3dd6ba6ea0e2cb29cd0a47449847a4
[ "MIT" ]
null
null
null
sudoku/sudoku_algorithms.py
leomrocha/sudoku
49b5fa571f3dd6ba6ea0e2cb29cd0a47449847a4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Sudoku solver algorithms """ import copy import math import random class Sudoku(object): """ Defines common functions for solvers and generators """ def __init__(self): """ """ #dimension self.D = 0 #quadrant dimension && n# of quadr...
35.122754
102
0.547012
6fb27364b2e86d5b88c321f3a9621bf48123b861
1,301
py
Python
communityid/icmp6.py
auspex-labs/pycommunityid
0a1d0bada3cfe07e38a78ece023ef90396f2df17
[ "BSD-3-Clause" ]
null
null
null
communityid/icmp6.py
auspex-labs/pycommunityid
0a1d0bada3cfe07e38a78ece023ef90396f2df17
[ "BSD-3-Clause" ]
null
null
null
communityid/icmp6.py
auspex-labs/pycommunityid
0a1d0bada3cfe07e38a78ece023ef90396f2df17
[ "BSD-3-Clause" ]
null
null
null
""" This module mirrors Zeek's logic for mapping ICMP6's message type and codes into a port-like notion suitable for ordering request/response into the same "flow". """ ECHO_REQUEST = 128 ECHO_REPLY = 129 MLD_LISTENER_QUERY = 130 MLD_LISTENER_REPORT = 131 ND_ROUTER_SOLICIT = 133 ND_ROUTER_ADVERT = 134 ND_NEIGHBOR_SOLIC...
28.282609
70
0.749424
e74bbc3772b9c5d1f630c852e548388b477d2844
621
py
Python
project/kay/tests/cache_test/settings.py
yosukesuzuki/let-me-notify
39f50214403822712329c1cd953167d6e9b315d6
[ "MIT" ]
1
2020-09-13T06:56:22.000Z
2020-09-13T06:56:22.000Z
project/kay/tests/cache_test/settings.py
yosukesuzuki/let-me-notify
39f50214403822712329c1cd953167d6e9b315d6
[ "MIT" ]
null
null
null
project/kay/tests/cache_test/settings.py
yosukesuzuki/let-me-notify
39f50214403822712329c1cd953167d6e9b315d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Kay test settings. :Copyright: (c) 2009 Takashi Matsuo <tmatsuo@candit.jp> All rights reserved. :license: BSD, see LICENSE for more details. """ DEBUG = False ROOT_URL_MODULE = 'kay.tests.cache_test.urls' MIDDLEWARE_CLASSES = ( 'kay.auth.middleware.AuthenticationMiddleware', 'kay.cac...
20.7
76
0.750403
98658dc189622ee444259aef4a192b30b15e7808
953
py
Python
2_Arrays/5.py
allenalvin333/Hackerrank_Interview
b40981ef55d04fb14d81a6e1c9ade1878f59394d
[ "MIT" ]
2
2021-11-21T07:59:17.000Z
2021-11-25T13:41:50.000Z
2_Arrays/5.py
allenalvin333/Hackerrank_Interview
b40981ef55d04fb14d81a6e1c9ade1878f59394d
[ "MIT" ]
null
null
null
2_Arrays/5.py
allenalvin333/Hackerrank_Interview
b40981ef55d04fb14d81a6e1c9ade1878f59394d
[ "MIT" ]
1
2021-09-20T16:20:07.000Z
2021-09-20T16:20:07.000Z
# https://www.hackerrank.com/challenges/crush/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'arrayManipulation' function below. # # The function is expected to return a LONG_INTEGER. # The function accepts following parameters: # 1. INTEGER n # 2. 2D_INTEGER_ARRAY...
20.717391
64
0.642183
0b1e3d9c5c33f81a600c32df16f594cb38057371
3,671
py
Python
airflow/sensors/date_time.py
Piatachock/airflow
6dd0a0df7e6a2f025e9234bdbf97b41e9b8f6257
[ "Apache-2.0" ]
27
2019-02-25T14:20:36.000Z
2022-03-22T09:35:13.000Z
airflow/sensors/date_time.py
XiangchunChen/airflow
56bdfe7a840c25360d596ca94fd11d2ccfadb4ba
[ "Apache-2.0" ]
200
2019-01-09T15:33:06.000Z
2022-01-12T09:13:42.000Z
airflow/sensors/date_time.py
XiangchunChen/airflow
56bdfe7a840c25360d596ca94fd11d2ccfadb4ba
[ "Apache-2.0" ]
14
2019-06-25T17:08:29.000Z
2022-03-29T13:25:53.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...
37.845361
98
0.683737
35c6a377a80d54cdb961987d136c280cef4975ec
471,316
py
Python
rades/__init__.py
Lewinta/rades
923db69cd3585e3b71470890b7a9d959992bb81c
[ "MIT" ]
null
null
null
rades/__init__.py
Lewinta/rades
923db69cd3585e3b71470890b7a9d959992bb81c
[ "MIT" ]
null
null
null
rades/__init__.py
Lewinta/rades
923db69cd3585e3b71470890b7a9d959992bb81c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals __version__ = '0.0.1' old_invoices = [ { "posting_date": "13-10-2018", "ars": "ARS HUMANO", "customer": "AIDELYS OLIVO FDEZ", "servicio": "Sonografia", "ncf": "B0200004485", "factura": "B0100000069", "reclamado": 1353.8, "pagado"...
21.189408
95
0.561738
4d58d1926643d0f454dab83d1a240e59d00f9baf
11,094
py
Python
src/awsiotclient/classic_shadow.py
whill-labs/aws-iot-device-client-python
58b5b157dd1de1527929bea6b4939447a8b1ff50
[ "Apache-2.0" ]
3
2021-11-13T06:43:27.000Z
2021-12-08T12:34:16.000Z
src/awsiotclient/classic_shadow.py
whill-labs/aws-iot-device-client-python
58b5b157dd1de1527929bea6b4939447a8b1ff50
[ "Apache-2.0" ]
null
null
null
src/awsiotclient/classic_shadow.py
whill-labs/aws-iot-device-client-python
58b5b157dd1de1527929bea6b4939447a8b1ff50
[ "Apache-2.0" ]
null
null
null
import threading from concurrent.futures import Future from traceback import format_exc from typing import Any, Callable, Dict, Optional from awscrt import mqtt from awsiot import iotshadow from . import ExceptionAwsIotClient, dictdiff, get_module_logger logger = get_module_logger(__name__) ShadowDocument = Optional...
41.550562
125
0.620786
1073dbfbefe70f8b5ce421cb36d8c129550ec237
1,420
py
Python
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
10
2019-09-06T21:51:43.000Z
2022-03-26T12:27:16.000Z
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
12
2019-09-06T19:15:52.000Z
2021-12-05T02:05:10.000Z
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
1
2020-06-13T20:23:42.000Z
2020-06-13T20:23:42.000Z
r"""*Main implementation file for* ``flake8-absolute-import``. flake8 plugin to require absolute imports **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 6 Sep 2019 **Copyright** \(c) Brian Skinn 2019-2021 **Source Repository** http://github.com/bskinn/flake8-absolute-import **License...
22.1875
70
0.647887
e25cbc4f18665e733885cd951738b6c038898c67
580
py
Python
Lintcode/Tag_BinarySearch/387. The Smallest Difference.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/Tag_BinarySearch/387. The Smallest Difference.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
Lintcode/Tag_BinarySearch/387. The Smallest Difference.py
ctc316/algorithm-python
ac4580d55e05e93e407c6156c9bb801808027d60
[ "MIT" ]
null
null
null
class Solution: """ @param A: An integer array @param B: An integer array @return: Their smallest difference. """ def smallestDifference(self, A, B): if len(B) > len(A): A, B = B, A A.sort() B.sort() from bisect import bisect_left minimum = f...
25.217391
59
0.477586
bc183d631cb48e1ce98945542f9f660d40de253a
1,326
py
Python
src/platform.py
Jbcalibur/Tetris
ffb646749149e6bab9993d210e0b93376df15fec
[ "MIT" ]
null
null
null
src/platform.py
Jbcalibur/Tetris
ffb646749149e6bab9993d210e0b93376df15fec
[ "MIT" ]
null
null
null
src/platform.py
Jbcalibur/Tetris
ffb646749149e6bab9993d210e0b93376df15fec
[ "MIT" ]
null
null
null
from src.default_sprite import DefaultSprtite import pygame class Platform(DefaultSprtite): def __init__(self, parent, color): DefaultSprtite.__init__(self, parent, color, (100, 10)) self.rect = pygame.draw.rect( self.image, self.color, (0, 0, *self.size)) self.rect.x = (self.p...
36.833333
147
0.61463
4524cb5e91db7e1455ef5daf31f6d677844ea362
16,804
py
Python
model.py
Tiamat-Tech/alias-free-gan-pytorch
f14d54ce2d973880b0c352614b2d63088c9026ae
[ "MIT" ]
485
2021-06-30T01:23:30.000Z
2022-03-29T12:38:08.000Z
model.py
Tiamat-Tech/alias-free-gan-pytorch
f14d54ce2d973880b0c352614b2d63088c9026ae
[ "MIT" ]
25
2021-07-07T16:12:12.000Z
2021-11-07T18:52:13.000Z
model.py
Tiamat-Tech/alias-free-gan-pytorch
f14d54ce2d973880b0c352614b2d63088c9026ae
[ "MIT" ]
42
2021-07-05T12:55:18.000Z
2022-02-17T01:09:34.000Z
import math import torch from torch import nn from torch.nn import functional as F from stylegan2.model import PixelNorm, EqualLinear, EqualConv2d from stylegan2.op import conv2d_gradfix, upfirdn2d, fused_leaky_relu from op import filtered_lrelu def polyval(coef, x): res = 0 for i, c in enume...
28.529711
103
0.532671
f7937c7c7eb8d87d3d98bff95b4ca80892a68edc
2,230
py
Python
inventory_products/views/search_comic.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
null
null
null
inventory_products/views/search_comic.py
LuchaComics/comicscantina-django
78e630000fb1e1f6299f80655c8f57a496236ab1
[ "BSD-2-Clause" ]
5
2021-03-19T02:58:32.000Z
2022-03-11T23:57:30.000Z
inventory_products/views/search_comic.py
lendierickx/comics-django
3f5c6e85c89ff157dbf67179ea3b9007d7de446c
[ "BSD-2-Clause" ]
null
null
null
import json from django.shortcuts import render from django.core import serializers from django.http import HttpResponse from django.conf import settings from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from api.models.ec.organization import Organization from api.mod...
38.448276
77
0.730493
8abd59baa31075edcaa4a942d649ed4b8dbe3f19
797
py
Python
examples/blog/blog/app/entry/model.py
whiteclover/medoly
e5f7558b0d23770882b8001e886e7ee2c53695be
[ "Apache-2.0" ]
null
null
null
examples/blog/blog/app/entry/model.py
whiteclover/medoly
e5f7558b0d23770882b8001e886e7ee2c53695be
[ "Apache-2.0" ]
null
null
null
examples/blog/blog/app/entry/model.py
whiteclover/medoly
e5f7558b0d23770882b8001e886e7ee2c53695be
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from medoly import kanon from sqlalchemy import (Column, Integer, String,) from sqlalchemy.dialects.mysql import MEDIUMTEXT, DATETIME, TIMESTAMP from blog.sqla import Base @kanon.bloom("model") class Entry(Base): """Entry model""" __tablename__ = "entries" id = Column(Integer, pr...
29.518519
69
0.706399
fbc72b188c788141cbff36c95e1af44d58cf9006
231
py
Python
djspikeval_default/__init__.py
pmeier82/django-spikeval-default
b13d47965167c4abf223b8d163a9ca5a15961b00
[ "BSD-3-Clause" ]
null
null
null
djspikeval_default/__init__.py
pmeier82/django-spikeval-default
b13d47965167c4abf223b8d163a9ca5a15961b00
[ "BSD-3-Clause" ]
null
null
null
djspikeval_default/__init__.py
pmeier82/django-spikeval-default
b13d47965167c4abf223b8d163a9ca5a15961b00
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .module import ModuleDefault as Module __author__ = "pmeier82" __version__ = "0.1" default_app_config = "djspikeval_default.config.DjSpikevalDefaultAppConfig"
23.1
75
0.787879
7346c62c4d7a789a4da4b5e154cf92148965c956
1,333
py
Python
src/Python/Meshes/BoundaryEdges.py
cvandijck/VTKExamples
b6bb89414522afc1467be8a1f0089a37d0c16883
[ "Apache-2.0" ]
309
2017-05-21T09:07:19.000Z
2022-03-15T09:18:55.000Z
src/Python/Meshes/BoundaryEdges.py
yijianmingliu/VTKExamples
dc8aac47c4384f9a2de9facbdd1ab3249f62ec99
[ "Apache-2.0" ]
379
2017-05-21T09:06:43.000Z
2021-03-29T20:30:50.000Z
src/Python/Meshes/BoundaryEdges.py
yijianmingliu/VTKExamples
dc8aac47c4384f9a2de9facbdd1ab3249f62ec99
[ "Apache-2.0" ]
170
2017-05-17T14:47:41.000Z
2022-03-31T13:16:26.000Z
#!/usr/bin/env python import vtk def main(): colors = vtk.vtkNamedColors() diskSource = vtk.vtkDiskSource() diskSource.Update() featureEdges = vtk.vtkFeatureEdges() featureEdges.SetInputConnection(diskSource.GetOutputPort()) featureEdges.BoundaryEdgesOn() featureEdges.FeatureEdgesOff(...
30.295455
79
0.735184
963e1462ca633989a6e592676f7304b51b050403
7,766
py
Python
sdk/python/pulumi_azure_nextgen/cdn/v20191231/get_origin_group.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/cdn/v20191231/get_origin_group.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/cdn/v20191231/get_origin_group.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
47.644172
259
0.724182
c099da8924f0ac05680818ef408dc78d219d3eca
46,014
py
Python
src/transformers/utils/dummy_tf_objects.py
Yokohide0317/transformers
1089c30a4a3c56dcf017e500ba4b44e5c39f68dd
[ "Apache-2.0" ]
1
2022-01-22T14:31:15.000Z
2022-01-22T14:31:15.000Z
src/transformers/utils/dummy_tf_objects.py
Yokohide0317/transformers
1089c30a4a3c56dcf017e500ba4b44e5c39f68dd
[ "Apache-2.0" ]
1
2022-01-17T03:24:35.000Z
2022-01-17T03:24:35.000Z
src/transformers/utils/dummy_tf_objects.py
Yokohide0317/transformers
1089c30a4a3c56dcf017e500ba4b44e5c39f68dd
[ "Apache-2.0" ]
1
2022-02-25T18:09:31.000Z
2022-02-25T18:09:31.000Z
# This file is autogenerated by the command `make fix-copies`, do not edit. # flake8: noqa from ..file_utils import DummyObject, requires_backends class TensorFlowBenchmarkArguments(metaclass=DummyObject): _backends = ["tf"] def __init__(self, *args, **kwargs): requires_backends(self, ["tf"]) class...
22.633546
75
0.677033
4e13c1c66de677bb0046e8635f08cf128b2e0b00
12,838
py
Python
vnpy/trader/gateway.py
WongLynn/vnpy_dajia
621797c74377eee42f4c1ebe6392285aa6ac63f9
[ "MIT" ]
null
null
null
vnpy/trader/gateway.py
WongLynn/vnpy_dajia
621797c74377eee42f4c1ebe6392285aa6ac63f9
[ "MIT" ]
null
null
null
vnpy/trader/gateway.py
WongLynn/vnpy_dajia
621797c74377eee42f4c1ebe6392285aa6ac63f9
[ "MIT" ]
null
null
null
""" """ import os import sys from abc import ABC, abstractmethod from typing import Any, Sequence, Dict, List, Optional, Callable from copy import copy from logging import INFO, DEBUG, ERROR from vnpy.event import Event, EventEngine from .event import ( EVENT_TICK, EVENT_BAR, EVENT_ORDER, EVENT_TRADE,...
29.111111
93
0.612167
0b41e4e48a3cdcb9815cfcec58314accb7aabefb
2,548
py
Python
angrmanagement/ui/widgets/qfiledesc_viewer.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
474
2015-08-10T17:47:15.000Z
2022-03-31T21:10:55.000Z
angrmanagement/ui/widgets/qfiledesc_viewer.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
355
2015-08-17T09:35:53.000Z
2022-03-31T21:29:52.000Z
angrmanagement/ui/widgets/qfiledesc_viewer.py
DennyDai/angr-management
8a4ba5dafbf2f4d2ba558528a0d1ae099a199a04
[ "BSD-2-Clause" ]
95
2015-08-11T14:36:12.000Z
2022-03-31T23:01:01.000Z
import os import typing from PySide2.QtWidgets import QFileDialog, QFrame, QComboBox, QMessageBox, QPushButton, QVBoxLayout, QTextEdit from angr.storage.file import SimFileDescriptor if typing.TYPE_CHECKING: from angr.sim_state import SimState class QFileDescriptorViewer(QFrame): """ embeded in `StateIn...
31.45679
110
0.623626
f6d745c86236f5be80cadc09eb95e5968d6577ef
56
py
Python
aioalfacrm/__init__.py
stas12312/aioalfacrm
1501634fa5ef4591936be2e6147827565e4a0b36
[ "MIT" ]
null
null
null
aioalfacrm/__init__.py
stas12312/aioalfacrm
1501634fa5ef4591936be2e6147827565e4a0b36
[ "MIT" ]
49
2021-11-11T16:00:40.000Z
2021-11-24T15:37:34.000Z
aioalfacrm/__init__.py
stas12312/aioalfacrm
1501634fa5ef4591936be2e6147827565e4a0b36
[ "MIT" ]
null
null
null
from .client import AlfaClient __all__ = [AlfaClient]
11.2
30
0.767857
d2a085ebf580b4ad40cf62da464db0e52e4e7a1a
2,835
py
Python
traffic/traffic_lenet_v5.py
JamesLuoau/Traffic-Sign-Recognition-with-Deep-Learning-CNN
e73a892a17db71121861b746861d57643d34ea30
[ "Apache-2.0" ]
49
2017-01-10T05:35:25.000Z
2022-02-18T07:36:04.000Z
traffic/traffic_lenet_v5.py
jcheng1602/Traffic-Sign-Recognition-with-Deep-Learning-CNN
e73a892a17db71121861b746861d57643d34ea30
[ "Apache-2.0" ]
1
2019-05-18T13:26:07.000Z
2019-05-18T13:26:07.000Z
traffic/traffic_lenet_v5.py
jcheng1602/Traffic-Sign-Recognition-with-Deep-Learning-CNN
e73a892a17db71121861b746861d57643d34ea30
[ "Apache-2.0" ]
25
2017-04-25T03:15:17.000Z
2020-05-10T09:46:36.000Z
import tensorflow as tf from tensorflow.contrib.layers import flatten from .traffic_data import TrafficDataSets from .data_explorer import TrainingPlotter from .traffic_lenet import Lenet import logging.config logging.config.fileConfig('logging.conf') class LenetV5(Lenet): def _LeNet(self, x, color_channel, vari...
38.310811
106
0.6194
6f21120bd4c9abd910b67a8f28375aed0181e243
434
py
Python
env01/Scripts/cursor_show-script.py
unis369/Mytubedownload
73011e4f18165a43f6750a4ce375885ade5f64c6
[ "MIT" ]
null
null
null
env01/Scripts/cursor_show-script.py
unis369/Mytubedownload
73011e4f18165a43f6750a4ce375885ade5f64c6
[ "MIT" ]
null
null
null
env01/Scripts/cursor_show-script.py
unis369/Mytubedownload
73011e4f18165a43f6750a4ce375885ade5f64c6
[ "MIT" ]
null
null
null
#!c:\python_code\project\youtubedownload\env01\scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'cursor==1.3.4','console_scripts','cursor_show' __requires__ = 'cursor==1.3.4' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '...
33.384615
77
0.68894
677658ef9217233569a6d302dd9ad64cbe9bc286
2,345
py
Python
ocr.py
DamsithKarunaratna/code_matching_algorithm
96c8456cdbc9a28ed7f421f7ad5687b1ad76b6a5
[ "MIT" ]
null
null
null
ocr.py
DamsithKarunaratna/code_matching_algorithm
96c8456cdbc9a28ed7f421f7ad5687b1ad76b6a5
[ "MIT" ]
5
2021-03-19T01:31:34.000Z
2022-03-11T23:50:51.000Z
ocr.py
DamsithKarunaratna/code_matching_algorithm
96c8456cdbc9a28ed7f421f7ad5687b1ad76b6a5
[ "MIT" ]
null
null
null
from PIL import Image # import the necessary packages import pytesseract import cv2 import os import re # ============================================================================================ # ============================================================================================ def extract_text(mpath_...
34.485294
94
0.523667
e36ba18c20b6c9720f72319e7dee5c9d99006140
12,699
py
Python
reana/reana_dev/run.py
diegodelemos/reana
54fbbfa478052d74b667a79a5c0bc04c20b687ac
[ "MIT" ]
null
null
null
reana/reana_dev/run.py
diegodelemos/reana
54fbbfa478052d74b667a79a5c0bc04c20b687ac
[ "MIT" ]
null
null
null
reana/reana_dev/run.py
diegodelemos/reana
54fbbfa478052d74b667a79a5c0bc04c20b687ac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2020 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """`reana-dev`'s run commands.""" import os import sys import time import click from reana....
32.561538
103
0.60367