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
8eb3b7710999d36b387bd9beb986d1717757af42
1,443
py
Python
src/main/resources/META-INF/auto_rb.py
baojiawei1230/ReviewGen
47690b12e43913e8c5fb26e2d497bcff20ce5cb0
[ "Apache-2.0" ]
null
null
null
src/main/resources/META-INF/auto_rb.py
baojiawei1230/ReviewGen
47690b12e43913e8c5fb26e2d497bcff20ce5cb0
[ "Apache-2.0" ]
null
null
null
src/main/resources/META-INF/auto_rb.py
baojiawei1230/ReviewGen
47690b12e43913e8c5fb26e2d497bcff20ce5cb0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python from rbtools.api.client import RBClient client = RBClient('http://10.200.2.68/', username='baojiawei', password='111111') root = client.get_root() repos = root.get_repositories() if repos.num_items < 1: raise Exception('No valid repositories.') #print(repos.nu...
25.767857
76
0.708247
83ddf4863e517e1bab02bc8509db32862797fdfd
2,025
py
Python
models/base_model.py
CelestineAkpanoko/AirBnB_clone
5f2828f67601641a688768cd72f55937bc92f9fb
[ "MIT" ]
null
null
null
models/base_model.py
CelestineAkpanoko/AirBnB_clone
5f2828f67601641a688768cd72f55937bc92f9fb
[ "MIT" ]
null
null
null
models/base_model.py
CelestineAkpanoko/AirBnB_clone
5f2828f67601641a688768cd72f55937bc92f9fb
[ "MIT" ]
1
2021-11-17T21:56:48.000Z
2021-11-17T21:56:48.000Z
#!/usr/bin/python3 """A module containing the base model for all data sets. """ from datetime import datetime from uuid import uuid4 class BaseModel: """Represents the base class for all data sets. """ def __init__(self, *args, **kwargs): """Initializes a new instance of the BaseModel. Ar...
30.223881
73
0.540247
4bb3bdb0d34a7b7c5715d072b73dac7526065a5f
88
py
Python
pollbot/display/__init__.py
tobikrs/ultimate-poll-bot
eaa190ba1fec852c1a7d12c8a4633245f00c435f
[ "MIT" ]
1
2020-03-22T05:49:44.000Z
2020-03-22T05:49:44.000Z
pollbot/display/__init__.py
RuslanBitcash/ultimate-poll-bot
33bc71b56f79453359043bd0e778cd153d3a83a3
[ "MIT" ]
null
null
null
pollbot/display/__init__.py
RuslanBitcash/ultimate-poll-bot
33bc71b56f79453359043bd0e778cd153d3a83a3
[ "MIT" ]
1
2021-01-29T17:10:11.000Z
2021-01-29T17:10:11.000Z
# Import for easier re-export from .poll import * # noqa from .settings import * # noqa
22
30
0.715909
cda36daea0efd7990fee08eb6a19c3d25639c828
14,482
py
Python
azurelinuxagent/common/cgroupapi.py
AZaugg/WALinuxAgent
7c62e8c3d487c21af23bde5555f93a4b7d4d51eb
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/cgroupapi.py
AZaugg/WALinuxAgent
7c62e8c3d487c21af23bde5555f93a4b7d4d51eb
[ "Apache-2.0" ]
null
null
null
azurelinuxagent/common/cgroupapi.py
AZaugg/WALinuxAgent
7c62e8c3d487c21af23bde5555f93a4b7d4d51eb
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2018 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
46.867314
174
0.65868
60795dd1263559958b808137677f5fe49ea3ff0c
1,144
py
Python
nuagelearning/admin.py
mcrts/nuage-learning
5aa567e55063d513060dccdc6fea54e8a0533175
[ "MIT" ]
1
2022-03-30T18:39:41.000Z
2022-03-30T18:39:41.000Z
nuagelearning/admin.py
mcrts/nuage-learning
5aa567e55063d513060dccdc6fea54e8a0533175
[ "MIT" ]
null
null
null
nuagelearning/admin.py
mcrts/nuage-learning
5aa567e55063d513060dccdc6fea54e8a0533175
[ "MIT" ]
null
null
null
import time from confluent_kafka.admin import AdminClient, NewTopic from nuagelearning.utils import logger class Admin: topics = ["server", "clients"] session_time_out = 6000 def __init__(self, server): self.admin = AdminClient({'bootstrap.servers': server}) def initialize(self): t...
28.6
99
0.579545
34e92c048dcf38e396d9b0caa7d11fa132d83ee6
4,365
py
Python
sparklingml/param/_shared_params_code_gen.py
sparklingpandas/sparklingml
0fc718697774524f1c06fe1670c39c76aa4522cc
[ "Apache-2.0" ]
77
2017-07-26T11:33:50.000Z
2021-09-14T22:25:06.000Z
sparklingml/param/_shared_params_code_gen.py
holdenk/sparklingml
f6263a755a78dbd905c17c15bf282a6a03e62945
[ "Apache-2.0" ]
55
2017-07-10T19:01:09.000Z
2018-10-18T17:55:20.000Z
sparklingml/param/_shared_params_code_gen.py
sparklingpandas/sparklingml
0fc718697774524f1c06fe1670c39c76aa4522cc
[ "Apache-2.0" ]
13
2017-07-06T18:52:36.000Z
2021-03-29T10:34:37.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 us...
33.576923
79
0.660939
8e43bb6132b7a1a5e78f847730aabde9c423caaf
1,943
py
Python
disco_lang_kernel/install.py
fryguybob/disco_lang_kernel
dcd1d05e565b58ba9332d1799e90a702a738b4cf
[ "BSD-3-Clause" ]
null
null
null
disco_lang_kernel/install.py
fryguybob/disco_lang_kernel
dcd1d05e565b58ba9332d1799e90a702a738b4cf
[ "BSD-3-Clause" ]
null
null
null
disco_lang_kernel/install.py
fryguybob/disco_lang_kernel
dcd1d05e565b58ba9332d1799e90a702a738b4cf
[ "BSD-3-Clause" ]
null
null
null
import json import os import sys import argparse from jupyter_client.kernelspec import KernelSpecManager from IPython.utils.tempdir import TemporaryDirectory kernel_json = {"argv":[sys.executable,"-m","disco_lang_kernel", "-f", "{connection_file}"], "display_name":"Disco", "language":"disco", "codemirror_mode":"sh...
28.15942
91
0.665466
e2ebfd2c50c97093d274ab207f5a352b5bae8c0f
3,900
py
Python
logsanalysis.py
kevjp/Logs-Analysis-Project
7b1cef2a38654d11bab9d2fd3328798d15999001
[ "MIT" ]
null
null
null
logsanalysis.py
kevjp/Logs-Analysis-Project
7b1cef2a38654d11bab9d2fd3328798d15999001
[ "MIT" ]
null
null
null
logsanalysis.py
kevjp/Logs-Analysis-Project
7b1cef2a38654d11bab9d2fd3328798d15999001
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Jul 20 12:50:52 2017 @author: kevinryan Provide analysis of news database - Top 3 accessed articles see function top3articles - List of most accessed authors see function mostpopularauthors - List of days when greater than 1% of requests...
35.779817
79
0.618462
35a6d576eef0ed61ea6816cc87f56848039abe00
7,146
py
Python
pytest_honors/__init__.py
aminohealth/pytest-honors
bbc006937b31a1c77a6e744e375f370770bdd914
[ "MIT" ]
9
2019-09-02T20:33:54.000Z
2021-01-19T20:11:06.000Z
pytest_honors/__init__.py
aminohealth/pytest-honors
bbc006937b31a1c77a6e744e375f370770bdd914
[ "MIT" ]
null
null
null
pytest_honors/__init__.py
aminohealth/pytest-honors
bbc006937b31a1c77a6e744e375f370770bdd914
[ "MIT" ]
1
2021-09-27T17:54:40.000Z
2021-09-27T17:54:40.000Z
"""The machinery behind the constraints honoring reporting and enforcement.""" import enum from operator import attrgetter from typing import Callable, Dict, List, Type from pytest import ExitCode, PytestWarning from .constraints import ConstraintsGroup MAGIC_MARK = "honors" OPT_MARKDOWN_REPORT = "honors_report_mar...
32.189189
98
0.646096
d7bafeb4f4aff8b0c3de60b39254827af51b46b8
3,829
py
Python
src/models/A2C.py
qihongl/free-recall
507b9195432dcb0bc76fa469c637451407f5631a
[ "MIT" ]
2
2022-03-29T14:07:59.000Z
2022-03-31T05:40:50.000Z
src/models/A2C.py
qihongl/free-recall
507b9195432dcb0bc76fa469c637451407f5631a
[ "MIT" ]
null
null
null
src/models/A2C.py
qihongl/free-recall
507b9195432dcb0bc76fa469c637451407f5631a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class A2C(nn.Module): """a MLP actor-critic network process: relu(Wx) -> pi, v Parameters ---------- dim_input : int dim state space dim_hidden : int number of hidden units dim_output : int dim actio...
27.746377
72
0.598329
02f2741d884f9b5f8b5a5026a6dcf023f4ceb5b8
11,016
py
Python
python/paddle/distributed/auto_parallel/operators/dist_eltwise.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
11
2016-08-29T07:43:26.000Z
2016-08-29T07:51:24.000Z
python/paddle/distributed/auto_parallel/operators/dist_eltwise.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
null
null
null
python/paddle/distributed/auto_parallel/operators/dist_eltwise.py
L-Net-1992/Paddle
4d0ca02ba56760b456f3d4b42a538555b9b6c307
[ "Apache-2.0" ]
1
2021-09-24T11:23:36.000Z
2021-09-24T11:23:36.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
44.240964
96
0.660857
bafe0af54fa2e175b5305bf84f1fba737cd7ae3f
4,917
py
Python
docs/conf.py
DanielWeitzenfeld/pyriskadjust
14fc45c39d83702648ce63ceb7ff676344448998
[ "MIT" ]
8
2019-06-04T22:48:34.000Z
2022-02-18T02:39:09.000Z
docs/conf.py
DanielWeitzenfeld/pyriskadjust
14fc45c39d83702648ce63ceb7ff676344448998
[ "MIT" ]
2
2019-01-29T07:12:21.000Z
2019-12-18T03:04:09.000Z
docs/conf.py
DanielWeitzenfeld/pyriskadjust
14fc45c39d83702648ce63ceb7ff676344448998
[ "MIT" ]
9
2019-01-22T23:45:05.000Z
2022-02-18T02:39:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # pyriskadjust documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this ...
29.981707
77
0.688428
fac818cf741bd5e2acacc198b2e91f7b67fb5d38
859
py
Python
pochtogramm/messenger/migrations/0001_initial.py
grand-roman/chat_site
01a2e1954beadf9f5945e69e5ba96e9dc6129812
[ "BSD-2-Clause" ]
null
null
null
pochtogramm/messenger/migrations/0001_initial.py
grand-roman/chat_site
01a2e1954beadf9f5945e69e5ba96e9dc6129812
[ "BSD-2-Clause" ]
null
null
null
pochtogramm/messenger/migrations/0001_initial.py
grand-roman/chat_site
01a2e1954beadf9f5945e69e5ba96e9dc6129812
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-15 23:59 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
31.814815
146
0.620489
57169412ed6b05faaae451345dd0b6493392ff9c
71
py
Python
formlang/__main__.py
TsarN/bsse-formlang-2
aa57130792f3d246915e58ef7ad08c82dd4cd467
[ "MIT" ]
null
null
null
formlang/__main__.py
TsarN/bsse-formlang-2
aa57130792f3d246915e58ef7ad08c82dd4cd467
[ "MIT" ]
2
2020-04-16T12:57:08.000Z
2020-05-25T12:34:47.000Z
formlang/__main__.py
TsarN/bsse-formlang-2
aa57130792f3d246915e58ef7ad08c82dd4cd467
[ "MIT" ]
null
null
null
if __name__ == "__main__": from formlang.main import cli cli()
17.75
33
0.647887
58471f0556bef5dcbc09fd524bb3ca8127efae7d
2,134
py
Python
main.py
sakthiRathinam/clinto
49d7b3be6039de48072db9830d7d5e7a7bfd61c0
[ "MIT" ]
null
null
null
main.py
sakthiRathinam/clinto
49d7b3be6039de48072db9830d7d5e7a7bfd61c0
[ "MIT" ]
null
null
null
main.py
sakthiRathinam/clinto
49d7b3be6039de48072db9830d7d5e7a7bfd61c0
[ "MIT" ]
null
null
null
from fastapi import FastAPI from fastapi.middleware.cors import CORSMiddleware from tortoise.contrib import fastapi # from starlette.middleware.sessions import SessionMiddleware from tortoise.contrib.fastapi import register_tortoise from tortoise.contrib.fastapi import HTTPNotFoundError, register_tortoise from src.conf...
29.638889
87
0.761012
908d7ef27c7d54ea4b0abe52a43d55cff979d229
1,172
py
Python
harness/tests/test_gc_harness.py
shiyuann/determined
856123ae112759de7bded9bc7bd0e07055f2174b
[ "Apache-2.0" ]
1,729
2020-04-27T17:36:40.000Z
2022-03-31T05:48:39.000Z
harness/tests/test_gc_harness.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
1,940
2020-04-27T17:34:14.000Z
2022-03-31T23:02:28.000Z
harness/tests/test_gc_harness.py
ChrisW09/determined
5c37bfe9cfcc69174ba29a3f1a115c3e9e3632e0
[ "Apache-2.0" ]
214
2020-04-27T19:57:28.000Z
2022-03-29T08:17:16.000Z
import os from pathlib import Path from typing import Any, List import pytest from determined.common import storage from determined.exec.gc_checkpoints import delete_checkpoints from tests.storage import util as storage_util @pytest.fixture() def manager(tmp_path: Path) -> storage.StorageManager: return storage...
31.675676
91
0.750853
a903533c38d720d3a800a1466ba2fab40ad5c4d3
6,094
py
Python
venv/lib/python2.7/site-packages/ansible/modules/network/junos/junos_l3_interface.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/ansible/modules/network/junos/junos_l3_interface.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/ansible/modules/network/junos/junos_l3_interface.py
haind27/test01
7f86c0a33eb0874a6c3f5ff9a923fd0cfc8ef852
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Ansible by Red Hat, inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
29.582524
121
0.654742
053088cff358bd56691a9eedbd407996193b48b7
5,927
py
Python
Tools/DatabaseManager/SCOP/ScopIterator.py
deaconjs/SPADE
da28cb927ae14f60aaf847591f81a86c9796d95e
[ "BSD-3-Clause" ]
3
2017-09-26T03:09:14.000Z
2022-03-20T11:12:34.000Z
Tools/DatabaseManager/SCOP/ScopIterator.py
deaconjs/SPADE
da28cb927ae14f60aaf847591f81a86c9796d95e
[ "BSD-3-Clause" ]
null
null
null
Tools/DatabaseManager/SCOP/ScopIterator.py
deaconjs/SPADE
da28cb927ae14f60aaf847591f81a86c9796d95e
[ "BSD-3-Clause" ]
1
2020-01-15T03:05:36.000Z
2020-01-15T03:05:36.000Z
from Bio import SCOP from os import * import parms import ScopDomainViewer class ScopIterator: #isAprofile: 1 (if scopStructure is from a pre-saved profile) or 0 (if it is the original scopStructure) def __init__(self, isAprofile): self.ScopStructure = None self.ScopDomains = None self.currentDomain = -1 se...
31.194737
126
0.704066
75c2314d25d38646e304ba96db891bd5ab068c4b
2,152
py
Python
tests/test_ipvssync.py
akamac/ipvs
666923ee6733b64fdbd79914b75d818491ff5bd3
[ "MIT" ]
null
null
null
tests/test_ipvssync.py
akamac/ipvs
666923ee6733b64fdbd79914b75d818491ff5bd3
[ "MIT" ]
null
null
null
tests/test_ipvssync.py
akamac/ipvs
666923ee6733b64fdbd79914b75d818491ff5bd3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 from functools import wraps import json from operator import itemgetter from os import environ from gnlpy.ipvs import IpvsClient from ipvssync import reload_ipvs import pytest def debug(func): """Decorator for interactive debug using pydevd (PyCharm)""" @wraps(func) def wrapper(*...
34.15873
102
0.564591
c4709c78933a316513011f91d970d0f383f80e06
4,945
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/lv.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/lv.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/lv.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "lv", "date_order": "DMY", "january": [ "janvāris", "janv" ], "february": [ "februāris", "febr" ], "march": [ "marts" ], "april": [ "aprīlis", "apr" ], "may": [ "maijs" ...
19.092664
36
0.290192
2fdf22811bb7e3312ff076b59ff7037aafdcb01b
20,551
py
Python
log_complete_bcl2/model_623.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_623.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
log_complete_bcl2/model_623.py
LoLab-VU/Bayesian_Inference_of_Network_Dynamics
54a5ef7e868be34289836bbbb024a2963c0c9c86
[ "MIT" ]
null
null
null
# exported from PySB model 'model' from pysb import Model, Monomer, Parameter, Expression, Compartment, Rule, Observable, Initial, MatchOnce, Annotation, ANY, WILD Model() Monomer('Ligand', ['Receptor']) Monomer('ParpU', ['C3A']) Monomer('C8A', ['BidU', 'C3pro']) Monomer('SmacM', ['BaxA']) Monomer('BaxM', ['BidM', '...
95.143519
798
0.804146
d1a390f56244507728d71a88e45cb1fe8223ff84
727
py
Python
src/arrays/majorityElement.py
tmbothe/Data-Structures-and-algorithms
ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2
[ "MIT" ]
null
null
null
src/arrays/majorityElement.py
tmbothe/Data-Structures-and-algorithms
ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2
[ "MIT" ]
null
null
null
src/arrays/majorityElement.py
tmbothe/Data-Structures-and-algorithms
ba6bd0b302d16f84694acee1e1eb5d7f948ceeb2
[ "MIT" ]
null
null
null
from collections import defaultdict def majority_element(nums): result = defaultdict(int) for num in nums: result[num] += 1 for num in result: if result[num] > len(nums)/2: return num return False if __name__ == '__main__': nums = [1, 2, 3, 3, 3, 3, 10] # , x = 3 ...
25.068966
77
0.594223
f712ee136bc001e5c792d4c74aba2a21258e8d8c
788
py
Python
python/quadrotorModel/rb_dynamics.py
smallpondtom/quadCaptureSim
b0433e353da9bd1f9a6a04a7cf3eeda73bd52019
[ "MIT" ]
null
null
null
python/quadrotorModel/rb_dynamics.py
smallpondtom/quadCaptureSim
b0433e353da9bd1f9a6a04a7cf3eeda73bd52019
[ "MIT" ]
null
null
null
python/quadrotorModel/rb_dynamics.py
smallpondtom/quadCaptureSim
b0433e353da9bd1f9a6a04a7cf3eeda73bd52019
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ***************************************************************************** # # Copyright (c) 2021 # Georgia Institute of Technology # Tomoki Koike # <tkoike3@gatech.edu> # # ***************************************************************************** # # DESCRIPTION: # Rigid body dynamics ...
22.514286
79
0.427665
41160cfd0f01cf9e87f4edbe892970cc2b0d7bf4
3,509
py
Python
sis_provisioner/dao/bridge.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
null
null
null
sis_provisioner/dao/bridge.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
175
2016-07-18T23:25:45.000Z
2022-02-07T20:44:05.000Z
sis_provisioner/dao/bridge.py
uw-it-aca/bridge-sis-provisioner
6dd31e5ef59263acbcade5e6e4f74b815c16bdee
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module encapsulates the interactions with uw_bridge.users """ import logging import traceback from uw_bridge.models import BridgeUserRole from uw_bridge.users import Users from sis_provisioner.dao import DataFailureExcepti...
33.103774
76
0.628954
6a28e38c784e3f55ac870e354f76a5ee3a97df62
313
py
Python
webscraping_with_python/seleniumControl_3.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
5
2018-05-03T08:16:02.000Z
2021-09-04T03:44:24.000Z
webscraping_with_python/seleniumControl_3.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
1
2022-01-28T19:27:19.000Z
2022-01-28T19:27:19.000Z
webscraping_with_python/seleniumControl_3.py
bflaven/BlogArticlesExamples
5df2dfc26170ffbbade78ba136bf3172391e3b2a
[ "MIT" ]
2
2020-09-10T13:33:27.000Z
2022-02-09T11:07:38.000Z
#! python3 """[path] cd /Users/brunoflaven/Documents/01_work/blog_articles/webscraping_with_python [command] python3 seleniumControl_3.py """ from selenium import webdriver browser = webdriver.Firefox() type(browser) # <class 'selenium.webdriver.firefox.webdriver.WebDriver'> browser.get('http://flaven.fr')
18.411765
77
0.779553
0e0a68212728eca03f65c7726033f1f3d0dde563
1,590
py
Python
Battery_Parameter_Handler.py
clean-code-craft-tcq-1/stream-bms-data-DivyaK-bit
94b265b5be3acc08c1082368a434209026e6e82b
[ "MIT" ]
null
null
null
Battery_Parameter_Handler.py
clean-code-craft-tcq-1/stream-bms-data-DivyaK-bit
94b265b5be3acc08c1082368a434209026e6e82b
[ "MIT" ]
null
null
null
Battery_Parameter_Handler.py
clean-code-craft-tcq-1/stream-bms-data-DivyaK-bit
94b265b5be3acc08c1082368a434209026e6e82b
[ "MIT" ]
1
2021-06-21T13:19:55.000Z
2021-06-21T13:19:55.000Z
import random import report_and_alert battery_limits = {'TEMPERATURE': [0, 45], 'SOC': [20, 80], 'CHARGE_RATE': [0, 0.8]} def generating_random_number(min, max): rand_num = [] #Generates random numbers between min and max if isinstance((min+max) , int): rand_num = random.sample(range(min, max), 10) ret...
36.136364
89
0.749057
45374f73577f4a0744eca000cb0a54feb72ad24c
3,571
py
Python
src/cms/views/linkcheck/linkcheck.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
null
null
null
src/cms/views/linkcheck/linkcheck.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
5
2021-02-10T02:41:20.000Z
2022-03-12T00:56:56.000Z
src/cms/views/linkcheck/linkcheck.py
mckinly/cms-django
c9995a3bfab6ee2d02f2406a7f83cf91b7ccfcca
[ "Apache-2.0" ]
null
null
null
from django.db.models import Q, OuterRef, Subquery from django.urls import reverse from django.views.generic import ListView from django.views.generic.base import RedirectView from linkcheck.models import Link from backend.settings import PER_PAGE from ...models.pages.page_translation import PageTranslation from ...m...
38.815217
85
0.67068
13c99eb77c45535f1dc4268c157ffb650f7777f4
5,829
py
Python
tests/integration/test_examples.py
brtieu/python-sasctl
1eed427c39faaddda78dec4806f12f3f8964890e
[ "Apache-2.0" ]
30
2019-07-12T00:18:21.000Z
2022-03-18T08:36:35.000Z
tests/integration/test_examples.py
brtieu/python-sasctl
1eed427c39faaddda78dec4806f12f3f8964890e
[ "Apache-2.0" ]
89
2019-07-12T20:46:46.000Z
2022-03-29T16:16:46.000Z
tests/integration/test_examples.py
brtieu/python-sasctl
1eed427c39faaddda78dec4806f12f3f8964890e
[ "Apache-2.0" ]
41
2019-07-11T15:08:55.000Z
2022-01-10T05:30:50.000Z
#!/usr/bin/env python # encoding: utf-8 # # Copyright © 2019, SAS Institute Inc., Cary, NC, USA. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os import pytest @pytest.fixture def change_dir(): """Change working directory for the duration of the test.""" old_dir = os.path.abspath(os.cur...
33.693642
91
0.646766
529b8668d6e4fb82dff67b54a04df78a728ad5bd
1,150
py
Python
checkmypass.py
Benr027/Password_checker
c8c96ad13eb1f7ab011d9840f35cb0f23173a89c
[ "MIT" ]
3
2021-11-11T23:00:50.000Z
2022-02-01T15:48:54.000Z
checkmypass.py
Benr027/Password_checker
c8c96ad13eb1f7ab011d9840f35cb0f23173a89c
[ "MIT" ]
1
2022-02-04T17:35:00.000Z
2022-02-04T17:35:00.000Z
checkmypass.py
Benr027/Password_checker
c8c96ad13eb1f7ab011d9840f35cb0f23173a89c
[ "MIT" ]
null
null
null
import requests import hashlib import sys def request_api_data(query_char): url = 'https://api.pwnedpasswords.com/range/' + query_char res = requests.get(url) if res.status_code != 200: raise RuntimeError(f'Error fetching : {res.status_code}, check the api and try again') return res def get_...
28.75
104
0.665217
5c410cdbea5d52f5b26a36b2f75a85ac33b5097f
12,331
py
Python
beem/utils.py
anthonyadavisii/beem
2ddb62073e608c78391de4517f24a7858c5d74db
[ "MIT" ]
1
2020-04-27T09:18:35.000Z
2020-04-27T09:18:35.000Z
beem/utils.py
oldas1/beem
d0b9642bfe5f5df3004a59d4923ea497e3a944b3
[ "MIT" ]
null
null
null
beem/utils.py
oldas1/beem
d0b9642bfe5f5df3004a59d4923ea497e3a944b3
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from builtins import next import re import json import time as timenow import math from datetime import datetime, tzi...
33.058981
132
0.609521
205faf614f1c43708c6d7b7cbfbf9e4f611cd97d
4,983
py
Python
tensorflow/contrib/learn/python/learn/tests/io_test.py
calebchoo/modulabs
10fbaf0581700641fc9b38b1bd722044bfb7c638
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/tests/io_test.py
calebchoo/modulabs
10fbaf0581700641fc9b38b1bd722044bfb7c638
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/learn/python/learn/tests/io_test.py
calebchoo/modulabs
10fbaf0581700641fc9b38b1bd722044bfb7c638
[ "Apache-2.0" ]
1
2020-03-26T00:09:00.000Z
2020-03-26T00:09:00.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.864
84
0.686334
799f8b17d53bb1d9a0d59e14e5e951dcd4b3f57c
3,316
py
Python
helpers/bumper.py
assign101/elk-custom
e7f542c5a08a72643761e2e47bafbd1524e2579f
[ "Apache-2.0" ]
null
null
null
helpers/bumper.py
assign101/elk-custom
e7f542c5a08a72643761e2e47bafbd1524e2579f
[ "Apache-2.0" ]
null
null
null
helpers/bumper.py
assign101/elk-custom
e7f542c5a08a72643761e2e47bafbd1524e2579f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 # # Usage: # ./bumper.py # # Configurable environment variables: # - BUMPER_VERSION_6 overrides the 6.x.x version. # - BUMPER_VERSION_7 overrides the 7.x.x version. # - BUMPER_USE_STAGING_IMAGES set to "true" causes the # docker.elastic.co/staging/ docker registry namespace to be used. # im...
30.703704
80
0.550965
611214086b4adcf039d336743fb8c6123656db91
5,580
py
Python
pytorch_toolkit/ote/ote/modules/compression/nncf_config_generator.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/ote/ote/modules/compression/nncf_config_generator.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
pytorch_toolkit/ote/ote/modules/compression/nncf_config_generator.py
LeonidBeynenson/openvino_training_extensions
c7e6d58c9e715c0f38c864c7d47910362d322aac
[ "Apache-2.0" ]
null
null
null
""" 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 wri...
47.288136
120
0.707527
e156df3fcf8440688fa8cbc3a4d1d4ef6c002809
646
py
Python
bims/models/taxon_group.py
Christiaanvdm/django-bims
f92a63156c711b2d53c5f8ea06867cd64cee9eb9
[ "MIT" ]
null
null
null
bims/models/taxon_group.py
Christiaanvdm/django-bims
f92a63156c711b2d53c5f8ea06867cd64cee9eb9
[ "MIT" ]
null
null
null
bims/models/taxon_group.py
Christiaanvdm/django-bims
f92a63156c711b2d53c5f8ea06867cd64cee9eb9
[ "MIT" ]
null
null
null
# coding=utf-8 """Taxon group model definition. """ from django.contrib.gis.db import models from bims.models import Taxonomy from bims.enums.taxonomic_group_category import TaxonomicGroupCategory class TaxonGroup(models.Model): name = models.CharField( max_length=200, null=False, blank=...
22.275862
77
0.685759
d62eea10477148a929fdd3c122066db41a18cfbc
1,779
py
Python
tokenizers_collection/tokenizers.py
howl-anderson/tokenizers_collection
e662616f566dbdaf332681c0a116b23ba7ad17ac
[ "MIT" ]
null
null
null
tokenizers_collection/tokenizers.py
howl-anderson/tokenizers_collection
e662616f566dbdaf332681c0a116b23ba7ad17ac
[ "MIT" ]
1
2021-11-15T17:47:40.000Z
2021-11-15T17:47:40.000Z
tokenizers_collection/tokenizers.py
howl-anderson/tokenizers_collection
e662616f566dbdaf332681c0a116b23ba7ad17ac
[ "MIT" ]
null
null
null
import os import jieba import thulac import pynlpir from pyltp import Segmentor from tokenizers_collection.helper import get_ltp_data_file pynlpir.open() segmentor = Segmentor() ltp_data_file = get_ltp_data_file() segmentor.load(ltp_data_file) def tokenizer_jieba(input_file, output_file, delim=" "): with ope...
28.693548
76
0.669477
2ebd74d22c96ca0e65c8f0052a95542223358c68
4,038
py
Python
homeass/code/somfytahoma.py
jchasey/domotica
3192cbf4c077c846a7d5ae09fcf66f2dad43bf70
[ "MIT" ]
null
null
null
homeass/code/somfytahoma.py
jchasey/domotica
3192cbf4c077c846a7d5ae09fcf66f2dad43bf70
[ "MIT" ]
null
null
null
homeass/code/somfytahoma.py
jchasey/domotica
3192cbf4c077c846a7d5ae09fcf66f2dad43bf70
[ "MIT" ]
null
null
null
""" Basic support for Somfy Tahoma covers. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/cover.somfytahoma/ @author: glopresti@gmail.com """ import logging import voluptuous as vol # Import the device class from the component that you want to support...
29.911111
78
0.65899
f6e84d3c339f3e6fdb168182b96bfdf6229be9b9
2,736
py
Python
tensorflow/python/kernel_tests/nn_ops/conv3d_backprop_filter_v2_grad_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
190,993
2015-11-09T13:17:30.000Z
2022-03-31T23:05:27.000Z
tensorflow/python/kernel_tests/nn_ops/conv3d_backprop_filter_v2_grad_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
48,461
2015-11-09T14:21:11.000Z
2022-03-31T23:17:33.000Z
tensorflow/python/kernel_tests/nn_ops/conv3d_backprop_filter_v2_grad_test.py
EricRemmerswaal/tensorflow
141ff27877579c81a213fa113bd1b474c1749aca
[ "Apache-2.0" ]
104,981
2015-11-09T13:40:17.000Z
2022-03-31T19:51:54.000Z
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
42.75
80
0.641447
3f6fa4832a7b246b5393e5b79548d987a9ddf514
60
py
Python
apps/offline/__init__.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/offline/__init__.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/offline/__init__.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
default_app_config = "apps.offline.appconfig.OfflineConfig"
30
59
0.85
d560f647114ff10eda86fbdfdfa557cd5ac6c18e
1,587
py
Python
src/username_checker.py
BitBoxGye/botsaxo
80e65c201772125a7d64413c4eb110bbedc9f9d9
[ "MIT" ]
1
2019-08-05T23:02:58.000Z
2019-08-05T23:02:58.000Z
src/username_checker.py
BitBoxGye/botsaxo
80e65c201772125a7d64413c4eb110bbedc9f9d9
[ "MIT" ]
null
null
null
src/username_checker.py
BitBoxGye/botsaxo
80e65c201772125a7d64413c4eb110bbedc9f9d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- def username_checker(self): chooser = 0 while len(self.user_list) > 0 and chooser < len(self.user_list): self.current_user = self.user_list[chooser]["node"]["username"] self.current_id = self.user_list[chooser]["node"]["id"] for index ...
49.59375
87
0.504096
260851e06483406581100fdd3e7b757b646c96c1
4,342
py
Python
userplugins/reply.py
Hurbeyy/MusicPlayer1
5527636b48ed47f44e80c44f3728577777eb0866
[ "MIT" ]
255
2021-05-09T15:50:56.000Z
2022-03-30T21:13:14.000Z
userplugins/reply.py
Hydrayt777/MusicPlayer
f04137b0f49552ec6c4148bf4e5bcb24531094b4
[ "MIT" ]
18
2021-05-09T14:52:13.000Z
2021-10-21T06:31:14.000Z
userplugins/reply.py
Hydrayt777/MusicPlayer
f04137b0f49552ec6c4148bf4e5bcb24531094b4
[ "MIT" ]
1,148
2021-05-10T00:15:46.000Z
2022-03-30T21:13:15.000Z
#MIT License #Copyright (c) 2021 SUBIN #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restriction, including without limitation the rights #to use, copy, modify, merge, publish, distr...
35.884298
223
0.684938
aae2136697c4591c4f70c0f73ad7222bd0ad9eea
493
py
Python
stats-backend/api/migrations/0001_initial.py
cryptobench/golem-stats-backend
567e98873bff6282415ecbdc075c27dab75d805a
[ "MIT" ]
null
null
null
stats-backend/api/migrations/0001_initial.py
cryptobench/golem-stats-backend
567e98873bff6282415ecbdc075c27dab75d805a
[ "MIT" ]
4
2021-03-28T16:42:41.000Z
2022-01-01T14:48:46.000Z
stats-backend/api/migrations/0001_initial.py
golemfactory/golem-stats-backend
95467749a13e4496032150cf08a9a3686ef213d3
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-12 11:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='APICounter', fields=[ ('id', models.AutoFie...
22.409091
114
0.580122
7e152a09ce9a70bf7170351cc27c3178bd6d653b
7,480
py
Python
utils/encoding.py
NahidEbrahimian/Self-Correction-Human-Parsing-on-Binary-Images
eb924b0ceff71a515212972e64fad0de27b8afe9
[ "MIT" ]
9
2022-02-24T05:44:22.000Z
2022-03-07T15:23:33.000Z
utils/encoding.py
NahidEbrahimian/Self-Correction-Human-Parsing-on-Binary-Images
eb924b0ceff71a515212972e64fad0de27b8afe9
[ "MIT" ]
null
null
null
utils/encoding.py
NahidEbrahimian/Self-Correction-Human-Parsing-on-Binary-Images
eb924b0ceff71a515212972e64fad0de27b8afe9
[ "MIT" ]
1
2022-03-08T18:42:59.000Z
2022-03-08T18:42:59.000Z
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ## Created by: Hang Zhang ## ECE Department, Rutgers University ## Email: zhang.hang@rutgers.edu ## Copyright (c) 2017 ## ## This source code is licensed under the MIT-style license found in the ## LICENSE file in the root directory of t...
39.57672
145
0.625936
dc04705b5615ec9b02bf743bd0a13266e2f36e50
79
py
Python
run.py
attila5287/displaytracker
81ad7dba46c0a8865ade21524e9b4233a6574544
[ "MIT" ]
null
null
null
run.py
attila5287/displaytracker
81ad7dba46c0a8865ade21524e9b4233a6574544
[ "MIT" ]
4
2021-06-08T21:05:42.000Z
2022-03-12T00:19:37.000Z
run.py
attila5287/displaytracker
81ad7dba46c0a8865ade21524e9b4233a6574544
[ "MIT" ]
null
null
null
from squares import app if __name__ == '__main__': app.run(debug=True)
13.166667
26
0.670886
e80a19d3623816c460ad53b1bc2769c0996dda74
3,933
py
Python
dataloader/QuickdrawDataset4dict_2nn4nn.py
Team-Squad-Up/multigraph_transformer
180a4dc172695d305ab8a945698cd24401d42e66
[ "MIT" ]
268
2019-12-24T05:27:57.000Z
2022-03-31T13:59:30.000Z
dataloader/QuickdrawDataset4dict_2nn4nn.py
Team-Squad-Up/multigraph_transformer
180a4dc172695d305ab8a945698cd24401d42e66
[ "MIT" ]
2
2020-08-10T02:57:57.000Z
2021-01-05T06:19:40.000Z
dataloader/QuickdrawDataset4dict_2nn4nn.py
PengBoXiangShang/multigraph_transformer
04aaf575a5242d44e08910a9583c623f14b61b62
[ "MIT" ]
26
2019-12-24T13:24:58.000Z
2022-03-21T08:42:20.000Z
import numpy as np from PIL import Image import torch import torch.utils.data as data import torchvision.transforms as transforms import os import time def produce_adjacent_matrix_2_neighbors(flag_bits, stroke_len): assert flag_bits.shape == (100, 1) adja_matr = np.zeros([100, 100], int) adja_matr[ ...
25.875
160
0.592169
56bc89d9d8097ad278542df62f12646ea4eea2a6
13,702
py
Python
vis/visualization/saliency.py
chrisPiemonte/keras-vis
b1e44e3b480bec0c51b38f85bdc4fbaffc954a31
[ "MIT" ]
null
null
null
vis/visualization/saliency.py
chrisPiemonte/keras-vis
b1e44e3b480bec0c51b38f85bdc4fbaffc954a31
[ "MIT" ]
null
null
null
vis/visualization/saliency.py
chrisPiemonte/keras-vis
b1e44e3b480bec0c51b38f85bdc4fbaffc954a31
[ "MIT" ]
1
2019-08-07T12:39:21.000Z
2019-08-07T12:39:21.000Z
from __future__ import absolute_import import numpy as np from scipy.ndimage.interpolation import zoom from keras.layers.convolutional import _Conv from tensorflow.keras.layers import Conv2D, MaxPooling2D from keras.layers.pooling import _Pooling1D, _Pooling2D, _Pooling3D from keras.layers.wrappers import Wrapper fro...
55.473684
128
0.714494
e01d2a0471ede0aa223d4d3095fb540de87c89b3
3,139
py
Python
pypureclient/flasharray/FA_2_13/models/certificate_response.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_13/models/certificate_response.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
pypureclient/flasharray/FA_2_13/models/certificate_response.py
ashahid-ps/py-pure-client
2e3565d37b2a41db69308769f6f485d08a7c46c3
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.13 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ...
28.026786
105
0.546034
4bbced61e61048f18a6b0fc019e9c73a390e6e4e
7,732
py
Python
current/tasks.py
solsword/dunyazad
9b9048396a8629904ecc77a924508fc99c956534
[ "MIT" ]
7
2015-03-30T18:06:58.000Z
2021-06-30T12:45:06.000Z
current/tasks.py
solsword/dunyazad
9b9048396a8629904ecc77a924508fc99c956534
[ "MIT" ]
2
2015-07-04T05:25:34.000Z
2019-07-05T14:23:23.000Z
current/tasks.py
solsword/dunyazad
9b9048396a8629904ecc77a924508fc99c956534
[ "MIT" ]
3
2017-07-04T08:12:04.000Z
2020-04-26T13:27:00.000Z
""" tasks.py """ import os import random from utils import * import asp import ans from ans import Pr, Vr, PVr, SbT # Defines where to search for global rules: GLOBAL_RULES_DIR = "rules" # shortcut: opj = os.path.join # Base source files: BASE_SOURCES = [ "utils.lp", opj("story", "core.lp"), opj("story", "...
24.702875
80
0.605018
5c5b92e5b1f7903920bd19cc4050362b2b09390b
2,141
py
Python
vnpy/api/femas/generator/generate_struct.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
19,529
2015-03-02T12:17:35.000Z
2022-03-31T17:18:27.000Z
vnpy/api/femas/generator/generate_struct.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
2,186
2015-03-04T23:16:33.000Z
2022-03-31T03:44:01.000Z
vnpy/api/femas/generator/generate_struct.py
funrunskypalace/vnpy
2d87aede685fa46278d8d3392432cc127b797926
[ "MIT" ]
8,276
2015-03-02T05:21:04.000Z
2022-03-31T13:13:13.000Z
"""""" import importlib class StructGenerator: """Struct生成器""" def __init__(self, filename: str, prefix: str): """Constructor""" self.filename = filename self.prefix = prefix self.typedefs = {} self.load_constant() def load_constant(self): """""" ...
24.895349
61
0.535731
a38fbb294341aeda4b3e0009f845112f0976bb0b
20,617
py
Python
dnspod_desktop.py
linzhonghong/dnspod_desktop
1a88ebcf6630cc4c4c83b5add5fd0b807584f19e
[ "Apache-2.0" ]
null
null
null
dnspod_desktop.py
linzhonghong/dnspod_desktop
1a88ebcf6630cc4c4c83b5add5fd0b807584f19e
[ "Apache-2.0" ]
null
null
null
dnspod_desktop.py
linzhonghong/dnspod_desktop
1a88ebcf6630cc4c4c83b5add5fd0b807584f19e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'linzhonghong' __version__ = '2013.11.001' import sys reload(sys) sys.setdefaultencoding('UTF-8') import os from signal import SIGTERM import wx import wx.lib.buttons as buttons from gui import MyStatusBar,MyListCtrl,WarnDialog,LogoutDialog,LoginDialog,WarnDialog2 ...
42.6853
131
0.568269
fc9740b9f5219ad9ca259bb8398908630a429db9
11,287
py
Python
torch/_C/__init__/CudaShortTensorBase.py
binh-vu/pytorch-stub
2067c75457c66fd4fd40fde091b5da971f8ea838
[ "MIT" ]
21
2019-01-25T08:53:51.000Z
2021-05-29T05:19:57.000Z
torch/_C/__init__/CudaShortTensorBase.py
binh-vu/pytorch-stub
2067c75457c66fd4fd40fde091b5da971f8ea838
[ "MIT" ]
1
2020-11-19T03:22:24.000Z
2021-03-22T14:48:55.000Z
torch/_C/__init__/CudaShortTensorBase.py
binh-vu/pytorch-stub
2067c75457c66fd4fd40fde091b5da971f8ea838
[ "MIT" ]
4
2019-03-02T05:59:19.000Z
2019-10-05T11:38:55.000Z
# encoding: utf-8 # module torch._C # from /Users/rook/anaconda/lib/python3.6/site-packages/torch/_C.cpython-36m-darwin.so # by generator 1.145 # no doc # imports import torch._C._functions as _functions # <module 'torch._C._functions'> from .object import object class CudaShortTensorBase(object): # no doc d...
26.310023
96
0.607867
026b2e9580c6b108eeaa8b18f5297a822eedf612
1,531
py
Python
scripts/update-fluent-interface.py
vishalbelsare/jina
ae72cc5ce1f7e7f4c662e72e96ea21dddc28bf43
[ "Apache-2.0" ]
2
2021-06-28T16:25:09.000Z
2021-06-28T16:26:41.000Z
scripts/update-fluent-interface.py
vishalbelsare/jina
ae72cc5ce1f7e7f4c662e72e96ea21dddc28bf43
[ "Apache-2.0" ]
null
null
null
scripts/update-fluent-interface.py
vishalbelsare/jina
ae72cc5ce1f7e7f4c662e72e96ea21dddc28bf43
[ "Apache-2.0" ]
null
null
null
import inspect import re import sys from collections import defaultdict from jina import Document all_meth = defaultdict(list) for f in inspect.getmembers(Document): if ( callable(f[1]) and not f[1].__name__.startswith('_') and not f[0].startswith('_') ): if ( 'retu...
26.859649
90
0.512737
91a130b2c7dd24d2dcf79d6d3a74044b5da210a7
544
py
Python
will/plugins/friendly/random_topic.py
Ashex/will
eb57878db8c4e13a69ea670b9fda78daeea31436
[ "MIT" ]
349
2015-01-15T05:12:02.000Z
2022-01-11T09:21:01.000Z
will/plugins/friendly/random_topic.py
Ashex/will
eb57878db8c4e13a69ea670b9fda78daeea31436
[ "MIT" ]
350
2015-01-02T16:33:14.000Z
2022-02-06T17:34:34.000Z
will/plugins/friendly/random_topic.py
chillipeper/will
4bd9a3f5cc4e2ea822cbf4f7a6f04996b3f20449
[ "MIT" ]
184
2015-01-08T13:20:50.000Z
2021-12-31T05:57:21.000Z
from will.plugin import WillPlugin from will.decorators import respond_to, periodic, hear, randomly, route, rendered_template, require_settings import requests class RandomTopicPlugin(WillPlugin): @respond_to("new topic") def give_us_somethin_to_talk_about(self, message): """new topic: set the room ...
36.266667
108
0.726103
f0a7496d22cda58e0b1d03e1f70afc8a18bba348
22,599
py
Python
ghostnet_pytorch/models/my_code.py
JiJiGuoGuo/CV-Backbones-master
fd6737d64517ec4db6a47ccdb37d38cfd87b79a4
[ "Apache-2.0" ]
null
null
null
ghostnet_pytorch/models/my_code.py
JiJiGuoGuo/CV-Backbones-master
fd6737d64517ec4db6a47ccdb37d38cfd87b79a4
[ "Apache-2.0" ]
null
null
null
ghostnet_pytorch/models/my_code.py
JiJiGuoGuo/CV-Backbones-master
fd6737d64517ec4db6a47ccdb37d38cfd87b79a4
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import math def hard_swish(x, inplace: bool = False): ''' 比swish更简洁省时,通常h_swish通常只在更深层次上有用 ''' if inplace: return x.add_(3.).clamp_(0., 6.).div_(6.) else: return (tf.nn.relu6(x + 3.) * x)/ 6. def hard_sigmoid(x): ''' hard_sigmoid是Logistic sigmoid的分段近...
41.772643
139
0.625205
47ef56e92026da19635f21db4420f24e3ea7ddca
6,479
py
Python
v_2.0/gui/MedicionesContinuoAlterno.py
benalcazardiego/RFCV
fa50be8ed82d43c6e197deab1cfb67fa6d0dfdb1
[ "MIT" ]
null
null
null
v_2.0/gui/MedicionesContinuoAlterno.py
benalcazardiego/RFCV
fa50be8ed82d43c6e197deab1cfb67fa6d0dfdb1
[ "MIT" ]
null
null
null
v_2.0/gui/MedicionesContinuoAlterno.py
benalcazardiego/RFCV
fa50be8ed82d43c6e197deab1cfb67fa6d0dfdb1
[ "MIT" ]
null
null
null
''' Created on 12 nov. 2016 @author: Diego ''' from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8(s): return s try: _encoding = QtGui.QApplication.UnicodeUTF8 def _translate(context, text, disambig): return QtG...
51.832
127
0.719401
27363fb3cfbf8e50ed2ec33ec8964a4753cdda0e
1,495
py
Python
lib/runner/recording_system.py
DPNT-Sourcecode/CHK-ijrq01
c37948922d31e30c85524f991fa2f6bf8ada4c91
[ "Apache-2.0" ]
null
null
null
lib/runner/recording_system.py
DPNT-Sourcecode/CHK-ijrq01
c37948922d31e30c85524f991fa2f6bf8ada4c91
[ "Apache-2.0" ]
null
null
null
lib/runner/recording_system.py
DPNT-Sourcecode/CHK-ijrq01
c37948922d31e30c85524f991fa2f6bf8ada4c91
[ "Apache-2.0" ]
null
null
null
import unirest from credentials_config_file import read_from_config_file_with_default RECORDING_SYSTEM_ENDPOINT = "http://localhost:41375" class RecordingSystem: def __init__(self): pass @staticmethod def is_running(): try: response = unirest.get(RECORDING_SYST...
29.9
99
0.585953
379a4db1dedcb706cf3e8c87bb8bf507424cf0e1
37,113
py
Python
manim/mobject/graph.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
1
2021-10-17T15:43:51.000Z
2021-10-17T15:43:51.000Z
manim/mobject/graph.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
manim/mobject/graph.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
"""Mobjects used to represent mathematical graphs (think graph theory, not plotting).""" from __future__ import annotations __all__ = [ "Graph", ] from copy import copy from typing import Hashable, Iterable, List, Optional, Tuple, Type, Union import networkx as nx import numpy as np from manim.mobject.opengl_m...
34.815197
133
0.563522
053e65d6e62c3169b602bd7eed2f350021f9b1a1
2,038
py
Python
spaghettifs/tests/test_mount_commits.py
mgax/SpaghettiFS
7782ed1a30910330f0380b70edf110262743374e
[ "MIT" ]
3
2016-03-16T08:22:47.000Z
2019-09-30T09:35:27.000Z
spaghettifs/tests/test_mount_commits.py
mgax/SpaghettiFS
7782ed1a30910330f0380b70edf110262743374e
[ "MIT" ]
null
null
null
spaghettifs/tests/test_mount_commits.py
mgax/SpaghettiFS
7782ed1a30910330f0380b70edf110262743374e
[ "MIT" ]
4
2015-09-18T12:45:14.000Z
2020-09-22T13:01:58.000Z
from os import path import dulwich from test_filesystem import SpaghettiMountTestCase from spaghettifs import filesystem class MountCommits(SpaghettiMountTestCase): def tearDown(self): if self.mounted: self.umount() super(MountCommits, self).tearDown() def git_repo(self): ...
31.353846
79
0.611384
d5d12498634e111f0e2d1f8f927d8c32b4be8f34
6,828
py
Python
gdcdictionary/schema_test.py
chicagopcdc/datadictionary
89b20832a1ebada7afb4fde3396cf4b5b3720838
[ "Apache-2.0" ]
2
2019-08-22T21:04:29.000Z
2020-02-11T15:02:29.000Z
gdcdictionary/schema_test.py
uc-cdis/tcga_dictionary
7ea1c1616017fa65017cdb7a4afd6007dc16a39a
[ "Apache-2.0" ]
11
2017-07-03T17:54:35.000Z
2019-09-20T14:00:15.000Z
gdcdictionary/schema_test.py
uc-cdis/tcga_dictionary
7ea1c1616017fa65017cdb7a4afd6007dc16a39a
[ "Apache-2.0" ]
9
2017-09-28T15:28:14.000Z
2020-12-15T17:00:42.000Z
"""This is an example of json schema for the GDC using schemas defined in local yaml files. Included are a few functions to augment jsonschema and the python validator. Examples are at the end. """ from __future__ import print_function from jsonschema import validate, ValidationError import copy import yaml import...
33.80198
105
0.567516
cea72f6dd81f57cf26ef5df5aed20b2bc57a54db
28,872
py
Python
omaha_server/omaha/tests/test_api.py
IldarShukubaev/omaha-server
a2de53c5189eba4f426c638d0c017b7a48ce88bb
[ "Apache-2.0" ]
null
null
null
omaha_server/omaha/tests/test_api.py
IldarShukubaev/omaha-server
a2de53c5189eba4f426c638d0c017b7a48ce88bb
[ "Apache-2.0" ]
null
null
null
omaha_server/omaha/tests/test_api.py
IldarShukubaev/omaha-server
a2de53c5189eba4f426c638d0c017b7a48ce88bb
[ "Apache-2.0" ]
null
null
null
# coding: utf8 """ This software is licensed under the Apache 2 license, quoted below. Copyright 2014 Crystalnix 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/...
44.902022
123
0.645193
4a5e16d1f243e7ab7c91f4108f5b6428287f5822
5,779
py
Python
YouCompleteMe/python/ycm/client/command_request.py
April01xxx/vim_config
a61a12a96ed84bd52c56a16ef3d95493316cc9ef
[ "MIT" ]
null
null
null
YouCompleteMe/python/ycm/client/command_request.py
April01xxx/vim_config
a61a12a96ed84bd52c56a16ef3d95493316cc9ef
[ "MIT" ]
null
null
null
YouCompleteMe/python/ycm/client/command_request.py
April01xxx/vim_config
a61a12a96ed84bd52c56a16ef3d95493316cc9ef
[ "MIT" ]
null
null
null
# Copyright (C) 2013 Google Inc. # # This file is part of YouCompleteMe. # # YouCompleteMe 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 3 of the License, or # (at your option) any later vers...
35.89441
78
0.689393
de1917d0a5a47c9e3ea4501bbec0b4c77b0cfa8b
11,062
py
Python
gnn_data.py
lvguofeng/GNN_PPI
eaa5d78529534061d902586caec9b7c056295bf8
[ "MIT" ]
28
2021-05-21T02:25:53.000Z
2022-03-23T15:44:57.000Z
gnn_data.py
lvguofeng/GNN_PPI
eaa5d78529534061d902586caec9b7c056295bf8
[ "MIT" ]
3
2021-08-09T03:20:28.000Z
2021-09-23T08:23:22.000Z
gnn_data.py
lvguofeng/GNN_PPI
eaa5d78529534061d902586caec9b7c056295bf8
[ "MIT" ]
2
2021-06-24T08:26:52.000Z
2022-02-22T11:46:44.000Z
import os import json import numpy as np import copy import torch import random from tqdm import tqdm from utils import UnionFindSet, get_bfs_sub_graph, get_dfs_sub_graph from torch_geometric.data import Data, Dataset, InMemoryDataset, DataLoader class GNN_DATA: def __init__(self, ppi_path, exclude_protein_path=...
38.543554
175
0.543934
d7bca01b4d7d5b07c37ac53073878f0e6480d0a9
1,364
py
Python
setup.py
Stratoscale/cliff-adaptive-table
3946eea37eee00c2c0c9ef9a1cc6e0263d3357b3
[ "Apache-2.0" ]
1
2019-07-01T13:05:29.000Z
2019-07-01T13:05:29.000Z
setup.py
Stratoscale/cliff-adaptive-table
3946eea37eee00c2c0c9ef9a1cc6e0263d3357b3
[ "Apache-2.0" ]
null
null
null
setup.py
Stratoscale/cliff-adaptive-table
3946eea37eee00c2c0c9ef9a1cc6e0263d3357b3
[ "Apache-2.0" ]
1
2019-12-15T11:45:33.000Z
2019-12-15T11:45:33.000Z
from setuptools import setup, find_packages setup( name='cliff-adaptive-table', git_version=True, description='adaptive_table for cliff', long_description='an adaptive table formatter for cliff', author='Lior Segev', author_email='lior@stratoscale.com', url='https://stratoscale.com/', ...
29.652174
96
0.596774
877632d82e4a3df85828d0bb0bbe8aecf31308ba
2,027
py
Python
configs/reppoints/reppoints_moment_r50_fpn_1x_coco.py
GreysonPhoenix/mmdetection
5223e4fa62f418a3f1acd7f877bb0dfada234cdc
[ "Apache-2.0" ]
null
null
null
configs/reppoints/reppoints_moment_r50_fpn_1x_coco.py
GreysonPhoenix/mmdetection
5223e4fa62f418a3f1acd7f877bb0dfada234cdc
[ "Apache-2.0" ]
null
null
null
configs/reppoints/reppoints_moment_r50_fpn_1x_coco.py
GreysonPhoenix/mmdetection
5223e4fa62f418a3f1acd7f877bb0dfada234cdc
[ "Apache-2.0" ]
null
null
null
_base_ = [ '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( type='RepPointsDetector', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0,...
29.808824
79
0.549087
a680a532b03ee6e91d259059f8d3aaf292b599af
9,310
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/modules/cloud/cloudstack/cs_loadbalancer_rule_member.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/modules/cloud/cloudstack/cs_loadbalancer_rule_member.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/modules/cloud/cloudstack/cs_loadbalancer_rule_member.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (c) 2015, Darren Worrall <darren@iweb.co.uk> # Copyright (c) 2015, René Moser <mail@renemoser.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'sta...
26.829971
128
0.627175
0d650e78ac928df7b361b58a8f26680f26ce64de
3,753
py
Python
simimg/classes/tooltip.py
zazaho/SimImg
2f82218acac149be0d098262e2d52ad842e134f6
[ "MIT" ]
5
2019-12-17T01:29:51.000Z
2021-08-21T13:51:04.000Z
simimg/classes/tooltip.py
zazaho/SimImg
2f82218acac149be0d098262e2d52ad842e134f6
[ "MIT" ]
1
2020-04-25T07:54:53.000Z
2020-04-25T07:54:53.000Z
simimg/classes/tooltip.py
zazaho/SimImg
2f82218acac149be0d098262e2d52ad842e134f6
[ "MIT" ]
1
2021-07-27T19:33:27.000Z
2021-07-27T19:33:27.000Z
import tkinter as tk from tkinter import ttk class Tooltip: ''' It creates a tooltip for a given widget as the mouse goes on it. http://www.daniweb.com/programming/software-development/ code/484591/a-tooltip-class-for-tkinter - Originally written by vegaseat on 2014.09.09. - Modified...
27.595588
77
0.538236
1e95ca288ec1076937df11cddebe558b1d264e57
12,561
py
Python
pybamm/models/full_battery_models/lead_acid/higher_order.py
DrSOKane/PyBaMM
903b4a05ef5a4f91633e990d4aec12c53df723a2
[ "BSD-3-Clause" ]
null
null
null
pybamm/models/full_battery_models/lead_acid/higher_order.py
DrSOKane/PyBaMM
903b4a05ef5a4f91633e990d4aec12c53df723a2
[ "BSD-3-Clause" ]
null
null
null
pybamm/models/full_battery_models/lead_acid/higher_order.py
DrSOKane/PyBaMM
903b4a05ef5a4f91633e990d4aec12c53df723a2
[ "BSD-3-Clause" ]
null
null
null
# # Lead-acid higher-order models (FOQS and Composite) # import pybamm from .base_lead_acid_model import BaseModel class BaseHigherOrderModel(BaseModel): """Base model for higher-order models for lead-acid, from [1]_. Uses leading-order model from :class:`pybamm.lead_acid.LOQS` Parameters ---------- ...
38.530675
88
0.649948
743f5d1b2b2c69823471dd4ac372e27c5850ed84
16,163
py
Python
models/pde1d.py
StathisGal/PDE-VAE-pytorch
b1eea3265c854668d643dfcdee2aead8ec9fafec
[ "MIT" ]
12
2020-07-15T21:57:41.000Z
2022-03-28T16:53:26.000Z
models/pde1d.py
StathisGal/PDE-VAE-pytorch
b1eea3265c854668d643dfcdee2aead8ec9fafec
[ "MIT" ]
null
null
null
models/pde1d.py
StathisGal/PDE-VAE-pytorch
b1eea3265c854668d643dfcdee2aead8ec9fafec
[ "MIT" ]
6
2020-07-20T22:12:12.000Z
2022-03-29T08:00:34.000Z
""" pde1d.py PDE VAE model (PDEAutoEncoder module) for fitting data with 1 spatial dimension. """ import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.modules.utils import _single from torch.nn.parameter import Parameter class PeriodicPad1d(nn.Module): def __init__(self, pad, dim=-...
45.148045
134
0.550455
26be0182de9a957bf6d068a15e88bedf29be15da
3,491
py
Python
gs/group/start/interfaces.py
groupserver/gs.group.start
b229cba14b8aee1b7d0808404372fe74531847d6
[ "ZPL-2.1" ]
null
null
null
gs/group/start/interfaces.py
groupserver/gs.group.start
b229cba14b8aee1b7d0808404372fe74531847d6
[ "ZPL-2.1" ]
null
null
null
gs/group/start/interfaces.py
groupserver/gs.group.start
b229cba14b8aee1b7d0808404372fe74531847d6
[ "ZPL-2.1" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################ # # Copyright © 2013, 2014 OnlineGroups.net and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany th...
31.45045
76
0.598682
545c8d6e216adb559de85d1ddf18b3a350082797
3,900
py
Python
mc/instr/mov.py
iximeow/binja-m16c
debf368e5df90a96d6c8b0bc128626a9d6834bb4
[ "0BSD" ]
12
2020-01-15T00:51:06.000Z
2021-10-02T12:45:50.000Z
mc/instr/mov.py
iximeow/binja-m16c
debf368e5df90a96d6c8b0bc128626a9d6834bb4
[ "0BSD" ]
2
2020-02-03T08:26:26.000Z
2020-07-01T19:51:44.000Z
mc/instr/mov.py
iximeow/binja-m16c
debf368e5df90a96d6c8b0bc128626a9d6834bb4
[ "0BSD" ]
4
2020-02-03T07:51:12.000Z
2021-02-14T19:13:07.000Z
from . import * __all__ = ['MovZero8Reg', 'MovImm8Reg', 'MovImm4Reg', 'MovImmReg'] __all__ += ['MovReg8Reg', 'MovRegReg8', 'MovRegReg'] __all__ += ['MovImm8Adr', 'MovImm16Adr', 'MovRegAdr'] __all__ += ['MovdirR0LReg', 'MovdirRegR0L', 'Xchg'] __all__ += ['Mova'] __all__ += ['Stz', 'Stnz', 'Stzx'] class MovZero8Reg(...
23.353293
82
0.642051
f107a21fc988ade81a867b03c9cb180b9a55bfcd
6,575
py
Python
src/python/pants/backend/python/targets/python_binary.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/targets/python_binary.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
null
null
null
src/python/pants/backend/python/targets/python_binary.py
oseemann/pants
628c83d5ab2706b0f64d69568c57a718ec7c5e2a
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from pex....
42.419355
102
0.707529
2b1cf687d60c3558d3ef588d2d01a041162a7887
23,688
py
Python
keras/layers/merge.py
mdand2000/keras-team-keras
5eecd55a6f1d6d149b42f9b76aa53d4c5ab8d3eb
[ "MIT" ]
9
2018-06-28T12:52:00.000Z
2020-09-25T10:32:43.000Z
keras/layers/merge.py
mdand2000/keras-team-keras
5eecd55a6f1d6d149b42f9b76aa53d4c5ab8d3eb
[ "MIT" ]
null
null
null
keras/layers/merge.py
mdand2000/keras-team-keras
5eecd55a6f1d6d149b42f9b76aa53d4c5ab8d3eb
[ "MIT" ]
7
2018-07-02T08:55:46.000Z
2020-04-25T20:59:49.000Z
"""Layers that can merge several inputs into one. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from ..engine.base_layer import Layer from .. import backend as K class _Merge(Layer): """Generic merge layer for elementwise merge functions. Us...
35.836611
100
0.563408
897b620d8f108e280e604675b7748e5d4aaaf562
3,626
py
Python
Logic/UserController.py
ThomasPfeiffer/SCWKbot
1bbe8a056ef8b4e15f382dc234d17f36e668e8e6
[ "Apache-2.0" ]
null
null
null
Logic/UserController.py
ThomasPfeiffer/SCWKbot
1bbe8a056ef8b4e15f382dc234d17f36e668e8e6
[ "Apache-2.0" ]
null
null
null
Logic/UserController.py
ThomasPfeiffer/SCWKbot
1bbe8a056ef8b4e15f382dc234d17f36e668e8e6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from datetime import datetime from datetime import date from datetime import timedelta import re import Entity.User as User import Entity.Event as Event import Responder def get(senderID): user = User.get(senderID) return user def registerForEvent(user, additional): ...
34.207547
132
0.60866
07d018a878bbbbf6ab8ea2407de084167091685f
15,350
py
Python
examples/5_secret_storage.py
parksddd/pykeybasebot
deb541e4b49f6bb67151072c192613ba9b2e3348
[ "BSD-3-Clause" ]
null
null
null
examples/5_secret_storage.py
parksddd/pykeybasebot
deb541e4b49f6bb67151072c192613ba9b2e3348
[ "BSD-3-Clause" ]
null
null
null
examples/5_secret_storage.py
parksddd/pykeybasebot
deb541e4b49f6bb67151072c192613ba9b2e3348
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 ################################### # WHAT IS IN THIS EXAMPLE? # # Keybase has added an encrypted key-value store; see 3_simple_storage.py for # more information. # # This example implements a simple bot to manage hackerspace tool rentals. It # shows one way you can obfuscate entryKeys (which ar...
33.153348
87
0.616221
68c6e79e6953028fa5afc2f8ff4816026af04da9
32,201
py
Python
pyqtgraph/parametertree/Parameter.py
colehurwitz31/pyqtgraph
0ba56b349611f454592c8c634a36e44fbb7e1748
[ "MIT" ]
null
null
null
pyqtgraph/parametertree/Parameter.py
colehurwitz31/pyqtgraph
0ba56b349611f454592c8c634a36e44fbb7e1748
[ "MIT" ]
null
null
null
pyqtgraph/parametertree/Parameter.py
colehurwitz31/pyqtgraph
0ba56b349611f454592c8c634a36e44fbb7e1748
[ "MIT" ]
null
null
null
from ..Qt import QtGui, QtCore import os, weakref, re from ..pgcollections import OrderedDict from ..python2_3 import asUnicode, basestring from .ParameterItem import ParameterItem PARAM_TYPES = {} PARAM_NAMES = {} def registerParameterType(name, cls, override=False): global PARAM_TYPES if name in PARAM_TYPES...
40.864213
164
0.575572
e5a95d2ce9b006a2df0c55fd25ff268ca0daa0a7
34,315
py
Python
mrcnn/utils_fusion.py
hangwudy/Mask_RCNN
8b5d896076b994e2f9136054114c551a8cb3119f
[ "MIT" ]
null
null
null
mrcnn/utils_fusion.py
hangwudy/Mask_RCNN
8b5d896076b994e2f9136054114c551a8cb3119f
[ "MIT" ]
null
null
null
mrcnn/utils_fusion.py
hangwudy/Mask_RCNN
8b5d896076b994e2f9136054114c551a8cb3119f
[ "MIT" ]
null
null
null
""" Mask R-CNN Common utility functions and classes. Copyright (c) 2017 Matterport, Inc. Licensed under the MIT License (see LICENSE for details) Written by Waleed Abdulla """ import sys import os import math import random import numpy as np import tensorflow as tf import scipy import skimage.color import skimage.io ...
37.667398
99
0.612094
452809f16a5391640b496831a5805e9ac2f05de3
57,966
py
Python
sdk/textanalytics/azure-ai-textanalytics/tests/test_batch.py
cicovica/azure-sdk-for-python
cd8bed878f8a11d081358bf67400fb01031582b6
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/tests/test_batch.py
cicovica/azure-sdk-for-python
cd8bed878f8a11d081358bf67400fb01031582b6
[ "MIT" ]
null
null
null
sdk/textanalytics/azure-ai-textanalytics/tests/test_batch.py
cicovica/azure-sdk-for-python
cd8bed878f8a11d081358bf67400fb01031582b6
[ "MIT" ]
null
null
null
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ import pytest from azure.core.exceptions import HttpResponseError, ClientAuthenticationError import platform from azure.core.exceptions import HttpRespon...
52.553037
154
0.686747
a13dd893b4d314ec7800b36ef6718e35d6789a43
1,431
py
Python
networking_ovn/common/exceptions.py
ikukaku/networking-ovn
000594027e1e6d4b266ddbc3b52c8aef91b9be12
[ "Apache-2.0" ]
null
null
null
networking_ovn/common/exceptions.py
ikukaku/networking-ovn
000594027e1e6d4b266ddbc3b52c8aef91b9be12
[ "Apache-2.0" ]
null
null
null
networking_ovn/common/exceptions.py
ikukaku/networking-ovn
000594027e1e6d4b266ddbc3b52c8aef91b9be12
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
36.692308
78
0.712089
010f597323b6b17f221f956f89006ed6b74410d0
3,062
py
Python
lib/ansible/modules/utilities/logic/include_role.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
lib/ansible/modules/utilities/logic/include_role.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
lib/ansible/modules/utilities/logic/include_role.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.1', 'status': [...
27.836364
119
0.688439
f8314cd327a93b9e79b87b0479cdef6a9df49597
3,211
py
Python
home_platform/core.py
ml-lab/home-platform
cbd373f270faaf19f21ed88f0e3bd272a1cbdaa6
[ "BSD-3-Clause" ]
3
2020-07-03T13:03:08.000Z
2022-02-04T16:59:24.000Z
home_platform/core.py
ml-lab/home-platform
cbd373f270faaf19f21ed88f0e3bd272a1cbdaa6
[ "BSD-3-Clause" ]
null
null
null
home_platform/core.py
ml-lab/home-platform
cbd373f270faaf19f21ed88f0e3bd272a1cbdaa6
[ "BSD-3-Clause" ]
2
2021-07-25T08:51:41.000Z
2022-02-04T16:59:31.000Z
# Copyright (c) 2017, IGLU consortium # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyright notice, # this list of conditions ...
39.641975
95
0.638742
cd6cbcfce738014cb08df03fe4191a50859e2d03
12,154
py
Python
test/python/tests/test_loop.py
bh107/bohrium
5b83e7117285fefc7779ed0e9acb0f8e74c7e068
[ "Apache-2.0" ]
236
2015-03-31T15:39:30.000Z
2022-03-24T01:43:14.000Z
test/python/tests/test_loop.py
bh107/bohrium
5b83e7117285fefc7779ed0e9acb0f8e74c7e068
[ "Apache-2.0" ]
324
2015-05-27T10:35:38.000Z
2021-12-10T07:34:10.000Z
test/python/tests/test_loop.py
bh107/bohrium
5b83e7117285fefc7779ed0e9acb0f8e74c7e068
[ "Apache-2.0" ]
41
2015-05-26T12:38:42.000Z
2022-01-10T15:16:37.000Z
import util np_dw_loop_src = """ def do_while(func, niters, *args, **kwargs): import sys i = 0 if niters is None: niters = sys.maxsize while i < niters: cond = func(*args, **kwargs) if cond is not None and not cond: break i += 1 """ class test_loop_fixed: ...
20.290484
116
0.559569
772aeef4518cbba889f05a5c7851075795be874b
4,028
py
Python
class2/p32_sgd.py
24mlight/-MOOC-Tensorflow-2-
db8fe8cf43b34c035d23b1708af4031ab49beffc
[ "MIT" ]
null
null
null
class2/p32_sgd.py
24mlight/-MOOC-Tensorflow-2-
db8fe8cf43b34c035d23b1708af4031ab49beffc
[ "MIT" ]
null
null
null
class2/p32_sgd.py
24mlight/-MOOC-Tensorflow-2-
db8fe8cf43b34c035d23b1708af4031ab49beffc
[ "MIT" ]
null
null
null
# 利用鸢尾花数据集,实现前向传播、反向传播,可视化loss曲线 # 导入所需模块 import tensorflow as tf from sklearn import datasets from matplotlib import pyplot as plt import numpy as np import time ##1## # 导入数据,分别为输入特征和标签 x_data = datasets.load_iris().data y_data = datasets.load_iris().target # 随机打乱数据(因为原始数据是顺序的,顺序不打乱会影响准确率) # seed: 随机数种子,是一个整数,当设置之...
35.333333
108
0.693396
781f71f6de8e95a5f1c2bf7dc41c454043677733
744
py
Python
checkov/terraform/checks/resource/oci/ObjectStoragePublic.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1
2022-02-20T21:20:39.000Z
2022-02-20T21:20:39.000Z
checkov/terraform/checks/resource/oci/ObjectStoragePublic.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
7
2021-04-12T06:54:07.000Z
2022-03-21T14:04:14.000Z
checkov/terraform/checks/resource/oci/ObjectStoragePublic.py
jamesholland-uk/checkov
d73fd4bd7096d48ab3434a92a177bcc55605460a
[ "Apache-2.0" ]
1
2021-12-16T03:09:55.000Z
2021-12-16T03:09:55.000Z
from checkov.common.models.enums import CheckCategories from checkov.terraform.checks.resource.base_resource_negative_value_check import BaseResourceNegativeValueCheck class ObjectStoragePublic(BaseResourceNegativeValueCheck): def __init__(self): name = "Ensure OCI Object Storage is not Public" id ...
37.2
111
0.762097
a119aefcd472dd8297f551e087983b54b22b2327
567
py
Python
src/gui/common.py
iosetek/CommandRecognition
56a58b44bdc4d54feafc955c17dd0ff236486cae
[ "MIT" ]
null
null
null
src/gui/common.py
iosetek/CommandRecognition
56a58b44bdc4d54feafc955c17dd0ff236486cae
[ "MIT" ]
null
null
null
src/gui/common.py
iosetek/CommandRecognition
56a58b44bdc4d54feafc955c17dd0ff236486cae
[ "MIT" ]
null
null
null
class Common: ButtonStartRecording = "BUTTON_START_RECORDING" ButtonStopRecording = "BUTTON_STOP_RECORDING" # MENU button_create_new_app = "BUTTON_CREATE_NEW_APP" button_load_app = "BUTTON_LOAD_APP" button_delete_app = "BUTTON_DELETE_MAP" listbox_apps = "LISTBOX_APPS" label_app_name =...
28.35
61
0.767196
9b9c11d9c6d31fa78be8bf6628c0831d94ecd93b
32,005
py
Python
tests/test_client/tests.py
ufgstores/django19
644716493ecac37271610de0e9cf97fc1fe46f10
[ "BSD-3-Clause" ]
null
null
null
tests/test_client/tests.py
ufgstores/django19
644716493ecac37271610de0e9cf97fc1fe46f10
[ "BSD-3-Clause" ]
null
null
null
tests/test_client/tests.py
ufgstores/django19
644716493ecac37271610de0e9cf97fc1fe46f10
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Testing using the Test Client The test client is a class that can act like a simple browser for testing purposes. It allows the user to compose GET and POST requests, and obtain the response that the server gave to those requests. The server Response objects are annotated with the details ...
41.836601
117
0.669395
724c00a28cfa49936779382f7b32a4bf23d04bbc
1,909
py
Python
app/__init__.py
Lantianyou/microblog
8a4482451c351770b10c5dc86667c0844951c741
[ "MIT" ]
null
null
null
app/__init__.py
Lantianyou/microblog
8a4482451c351770b10c5dc86667c0844951c741
[ "MIT" ]
null
null
null
app/__init__.py
Lantianyou/microblog
8a4482451c351770b10c5dc86667c0844951c741
[ "MIT" ]
null
null
null
from flask import Flask, request from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate from flask_login import LoginManager from flask_mail import Mail from flask_babel import Babel from logging.handlers import SMTPHandler, RotatingFileHandler from config import Config import os import logging from ...
30.301587
79
0.687271
1f4ffa32141b91eb5f846d0bd581bde6dd8790c8
10,175
py
Python
tests/manage/z_cluster/nodes/test_automated_recovery_from_failed_nodes_reactive_IPI.py
xenolinux/ocs-ci
079e978affef00d51e25a352c00edf0492b618dc
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_automated_recovery_from_failed_nodes_reactive_IPI.py
xenolinux/ocs-ci
079e978affef00d51e25a352c00edf0492b618dc
[ "MIT" ]
null
null
null
tests/manage/z_cluster/nodes/test_automated_recovery_from_failed_nodes_reactive_IPI.py
xenolinux/ocs-ci
079e978affef00d51e25a352c00edf0492b618dc
[ "MIT" ]
null
null
null
import logging import pytest from ocs_ci.framework.testlib import ( tier4, tier4a, tier4b, ManageTest, aws_platform_required, ipi_deployment_required, ignore_leftovers ) from ocs_ci.ocs import machine, constants, defaults from ocs_ci.ocs.resources import pod from ocs_ci.ocs.resources.pod import get_all_pods, ge...
34.608844
84
0.607666
cdcd3a97b95312c9644449df084d04540889efa3
21,837
py
Python
dxm/lib/masking_api/api/record_type_qualifier_api.py
experiortec/dxm-toolkit
b2ab6189e163c62fa8d7251cd533d2a36430d44a
[ "Apache-2.0" ]
5
2018-08-23T15:47:05.000Z
2022-01-19T23:38:18.000Z
dxm/lib/masking_api/api/record_type_qualifier_api.py
experiortec/dxm-toolkit
b2ab6189e163c62fa8d7251cd533d2a36430d44a
[ "Apache-2.0" ]
59
2018-10-15T10:37:00.000Z
2022-03-22T20:49:25.000Z
dxm/lib/masking_api/api/record_type_qualifier_api.py
experiortec/dxm-toolkit
b2ab6189e163c62fa8d7251cd533d2a36430d44a
[ "Apache-2.0" ]
12
2019-03-08T19:59:13.000Z
2021-12-16T03:28:04.000Z
# coding: utf-8 """ Masking API Schema for the Masking Engine API # noqa: E501 OpenAPI spec version: 5.1.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import...
42.650391
150
0.635435
be728368dbd152d0926c2ecce4ad73da33e2366f
358
py
Python
ecommerce/baskets/filters.py
Gundwane21/bootcamp
a3df329736ce50058c05592d484aa59412fe8ea9
[ "MIT" ]
16
2021-11-25T11:06:06.000Z
2022-01-31T06:36:18.000Z
ecommerce/baskets/filters.py
Gundwane21/bootcamp
a3df329736ce50058c05592d484aa59412fe8ea9
[ "MIT" ]
19
2021-11-23T21:49:08.000Z
2022-01-08T12:40:04.000Z
ecommerce/baskets/filters.py
Gundwane21/bootcamp
a3df329736ce50058c05592d484aa59412fe8ea9
[ "MIT" ]
60
2021-11-21T08:32:10.000Z
2021-12-12T17:36:19.000Z
from django_filters import rest_framework as filters from baskets.models import Basket, BasketItem class BasketItemFilter(filters.FilterSet): class Meta: model = BasketItem fields = ("product", "quantity", "price") class BasketFilter(filters.FilterSet): class Meta: model = Basket ...
22.375
52
0.687151
ada7748fd9f23316046556b412b49acab6277472
3,784
py
Python
satori.tools/satori/tools/problems/upload_problem.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
4
2021-01-05T01:35:36.000Z
2021-12-13T00:05:14.000Z
satori.tools/satori/tools/problems/upload_problem.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
2
2020-06-06T01:12:07.000Z
2020-06-06T01:16:01.000Z
satori.tools/satori/tools/problems/upload_problem.py
Cloud11665/satori-git
ea1855a920c98b480423bf247bce6e5626985c4a
[ "MIT" ]
2
2021-01-05T01:33:30.000Z
2021-03-06T13:48:21.000Z
# vim:ts=4:sts=4:sw=4:et import os import os.path import sys import yaml from satori.client.common import want_import want_import(globals(), '*') from satori.tools.params import parser_from_xml from satori.tools.problems.common import Dirs, discover_tests, make_oa_map, make_test_data def upload_problem(opts): pr...
43
90
0.608087
93006f1d222edb41c77d438a527a8b45c7416e12
2,037
py
Python
sound.py
camargo-advanced/blasteroidspi
ff0fb5cc62a0c78545a6372104e2d3bf0f9dc84c
[ "MIT" ]
null
null
null
sound.py
camargo-advanced/blasteroidspi
ff0fb5cc62a0c78545a6372104e2d3bf0f9dc84c
[ "MIT" ]
null
null
null
sound.py
camargo-advanced/blasteroidspi
ff0fb5cc62a0c78545a6372104e2d3bf0f9dc84c
[ "MIT" ]
null
null
null
import os import pygame class Sound(): """Load game sounds and make them available to play. This class follows the singleton design pattern. """ _instance = None _sounds = {} def __new__(cls): if cls._instance is None: cls._instance = super(Sound, cls).__new__(cls) ...
37.722222
95
0.46539
0f3b98dac9b16d9788e16dbb9f4b077c72f4f992
12,902
py
Python
evaluator/pipelines.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
null
null
null
evaluator/pipelines.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
null
null
null
evaluator/pipelines.py
jakubhyza/kelvin
b06c0ed0594a3fb48df1e50ff30cee010ddeea5a
[ "MIT" ]
null
null
null
import json import os import io import subprocess import tempfile import shlex import hashlib import logging from common.utils import points_to_color from .results import TestResult from . import testsets from kelvin.settings import BASE_DIR from .utils import parse_human_size, copyfile logger = logging.getLogger('ev...
35.155313
217
0.558131
2da13e02984658546cdf45aa3d3acc79fe876fcc
9,853
py
Python
manim/cli/cfg/group.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
1
2022-01-29T06:11:56.000Z
2022-01-29T06:11:56.000Z
manim/cli/cfg/group.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
manim/cli/cfg/group.py
dianechae/manim
269e5c22cb02de108579eccee2b82583eb71e3dc
[ "MIT" ]
null
null
null
"""Manim's cfg subcommand. Manim's cfg subcommand is accessed in the command-line interface via ``manim cfg``. Here you can specify options, subcommands, and subgroups for the cfg group. """ from __future__ import annotations import os from ast import literal_eval from typing import Union import click from rich.err...
34.57193
130
0.588146
89ea752aed97a25a201d0ef359714c80f63cb4ea
2,670
py
Python
src/apiRegistry/models.py
The-New-Fork/api-juicychain
9bee78a1ab5de53dc3a4284fa0f57c4edc746650
[ "Apache-2.0" ]
null
null
null
src/apiRegistry/models.py
The-New-Fork/api-juicychain
9bee78a1ab5de53dc3a4284fa0f57c4edc746650
[ "Apache-2.0" ]
null
null
null
src/apiRegistry/models.py
The-New-Fork/api-juicychain
9bee78a1ab5de53dc3a4284fa0f57c4edc746650
[ "Apache-2.0" ]
null
null
null
from django.db.models import ( Model, # AutoField, CASCADE, CharField, IntegerField, DateField, ForeignKey, # OneToOneField, # UUIDField ) # import uuid class BaseWalletModel(Model): # TODO when working come back to test this with drf # id = UUIDField(primary_key=True, defa...
23.421053
74
0.64382
5e83e3bd66bd0c0248d70a79ccfbb8100f78a15c
12,079
py
Python
data_utility.py
laurinwagner/grouploss_plus
add9e3e7b4fcfccf0393124aeb6e1f35a442ed88
[ "MIT" ]
null
null
null
data_utility.py
laurinwagner/grouploss_plus
add9e3e7b4fcfccf0393124aeb6e1f35a442ed88
[ "MIT" ]
null
null
null
data_utility.py
laurinwagner/grouploss_plus
add9e3e7b4fcfccf0393124aeb6e1f35a442ed88
[ "MIT" ]
null
null
null
import dataset from dataset.Inshop import Inshop_Dataset import torch from collections import defaultdict from combine_sampler import CombineSampler, CombineSamplerAdvanced, CombineSamplerSuperclass, CombineSamplerSuperclass2 import numpy as np import pickle import matplotlib.pyplot as plt from matplotlib.lines import...
32.734417
181
0.645914
e825026c057a2c2720ed57b2d60a7b1dba63f9c6
2,685
py
Python
guiApp.py
aadityabhusal/facial-expression-classifier
f8f057c3515c3f3d808fe38e90f9e824cfcc37c7
[ "MIT" ]
null
null
null
guiApp.py
aadityabhusal/facial-expression-classifier
f8f057c3515c3f3d808fe38e90f9e824cfcc37c7
[ "MIT" ]
null
null
null
guiApp.py
aadityabhusal/facial-expression-classifier
f8f057c3515c3f3d808fe38e90f9e824cfcc37c7
[ "MIT" ]
null
null
null
# Importing GUI modules import tkinter as tk from tkinter import filedialog from PIL import ImageTk, Image # importing modules for predictions from keras.models import load_model from keras.preprocessing.image import img_to_array import cv2 import numpy as np # using the frontal face harr cascade file from OpenCV (op...
32.349398
93
0.747114
17acad5dcedc6af3e6a10cf5436711f385259cf6
243
py
Python
updates/admin.py
saapenkwah1/ConMan
3fa86f52648b68463bc995ae256745c4ca1d6bf2
[ "Naumen", "Condor-1.1", "MS-PL" ]
7
2015-05-28T19:18:57.000Z
2021-04-16T04:13:26.000Z
updates/admin.py
saapenkwah1/ConMan
3fa86f52648b68463bc995ae256745c4ca1d6bf2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
updates/admin.py
saapenkwah1/ConMan
3fa86f52648b68463bc995ae256745c4ca1d6bf2
[ "Naumen", "Condor-1.1", "MS-PL" ]
3
2018-11-05T09:33:45.000Z
2022-02-18T14:27:22.000Z
from django.contrib import admin from django.contrib.sites.models import Site from updates.models import Update class UpdateAdmin(admin.ModelAdmin): list_display = ('name', 'updated', 'author') admin.site.register(Update, UpdateAdmin)
22.090909
48
0.777778
0172d8048738a3d54cd9c09554435e87fd8c1b3f
3,836
py
Python
test/functional/test_script_address2.py
lirabit0101/lirabit
b6a864ebb53fe987fd681a52b09e60d23535c512
[ "MIT" ]
null
null
null
test/functional/test_script_address2.py
lirabit0101/lirabit
b6a864ebb53fe987fd681a52b09e60d23535c512
[ "MIT" ]
null
null
null
test/functional/test_script_address2.py
lirabit0101/lirabit
b6a864ebb53fe987fd681a52b09e60d23535c512
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test new Lirabit multisig prefix functionality. # from test_framework.test_framework import BitcoinT...
39.958333
93
0.652503
c0df417bd654c945e77a4aece7d524ec13aaa386
6,953
py
Python
cppy/CpUtil.py
GSByeon/cppy
d17ec3a342326c64dc338989b92da359c48fadda
[ "MIT" ]
30
2015-01-23T10:11:26.000Z
2021-12-26T14:16:56.000Z
cppy/CpUtil.py
ippoeyeslhw/cppy
d17ec3a342326c64dc338989b92da359c48fadda
[ "MIT" ]
null
null
null
cppy/CpUtil.py
ippoeyeslhw/cppy
d17ec3a342326c64dc338989b92da359c48fadda
[ "MIT" ]
13
2015-07-23T12:22:27.000Z
2020-09-22T16:15:55.000Z
# coding: utf-8 import win32com import win32com.client class CpCybos(object): LT_TRADE_REQUEST = 0 LT_NONTRADE_REQUEST = 1 LT_SUBSCRIBE = 2 def __init__(self): self.disp = win32com.client.Dispatch('CpUtil.CpCybos') def GetIsConnect(self): return self.disp.IsConnect def GetSe...
33.752427
67
0.707177
13b15e0870cf99d620fe984fe23d34368ac448f8
114,905
py
Python
gclient.py
wang70937/depot_tools
5300616351f523c605de80f5ece8c29321a78847
[ "BSD-3-Clause" ]
null
null
null
gclient.py
wang70937/depot_tools
5300616351f523c605de80f5ece8c29321a78847
[ "BSD-3-Clause" ]
null
null
null
gclient.py
wang70937/depot_tools
5300616351f523c605de80f5ece8c29321a78847
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Meta checkout dependency manager for Git.""" # Files # .gclient : Current client configuration, written by 'config' comma...
37.884932
80
0.635629
31c2673a17f84de9329cd78cfb373897b1ee5a6e
45,767
bzl
Python
swift/internal/api.bzl
LaudateCorpus1/rules_swift
f7c05b638f861f7a01c705c2c83e40c776543611
[ "Apache-2.0" ]
2
2020-07-01T20:21:35.000Z
2021-04-28T21:28:50.000Z
swift/internal/api.bzl
LaudateCorpus1/rules_swift
f7c05b638f861f7a01c705c2c83e40c776543611
[ "Apache-2.0" ]
null
null
null
swift/internal/api.bzl
LaudateCorpus1/rules_swift
f7c05b638f861f7a01c705c2c83e40c776543611
[ "Apache-2.0" ]
2
2021-06-03T10:06:10.000Z
2022-02-02T14:23:52.000Z
# Copyright 2018 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
43.796172
99
0.699674