hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
622d3faaba585f439ef5ba644179adae159db6d5
6,800
py
Python
serverfetcher.py
cwstra/rpdiscordrewrite
b1b25a19026630a6db59cf6d7f9cda66c4c92c48
[ "MIT" ]
1
2020-12-06T19:22:31.000Z
2020-12-06T19:22:31.000Z
serverfetcher.py
cwstra/rpdiscordrewrite
b1b25a19026630a6db59cf6d7f9cda66c4c92c48
[ "MIT" ]
null
null
null
serverfetcher.py
cwstra/rpdiscordrewrite
b1b25a19026630a6db59cf6d7f9cda66c4c92c48
[ "MIT" ]
null
null
null
import ujson as json import asyncpg class ServerFetcher: def __init__(self): #Initialize _all_ our commands self.commands = {} self.commands['channels'] = {} self.commands['channels']['get_specific_entry'] = lambda x: "SELECT "+x+" FROM channels WHERE server_id = $1 AND channel_id =...
57.142857
292
0.595588
622d4b9653aeffb896fb7d776db74af6a40ebca5
28,897
py
Python
backend/api/views.py
Carbonara-Project/Carbonara-Web
be1fac46ed3e4f590f3d885e646970a29ec43cb5
[ "MIT" ]
2
2020-01-07T12:35:11.000Z
2021-09-18T10:30:57.000Z
backend/api/views.py
Carbonara-Project/Carbonara-Web
be1fac46ed3e4f590f3d885e646970a29ec43cb5
[ "MIT" ]
null
null
null
backend/api/views.py
Carbonara-Project/Carbonara-Web
be1fac46ed3e4f590f3d885e646970a29ec43cb5
[ "MIT" ]
null
null
null
import requests import json import asyncio import os import logging from django.conf import settings from django.shortcuts import render from django.http import HttpResponse from django.shortcuts import get_object_or_404 from django.core.paginator import Paginator from django.contrib.auth.models import User...
39.639232
124
0.590027
622d7148eafada5c724cbc949b1b170b669dcd4b
357
py
Python
scapy/scapy/arch/solaris.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/arch/solaris.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
scapy/scapy/arch/solaris.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
null
null
null
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more informations # Copyright (C) Philippe Biondi <phil@secdev.org> # This program is published under a GPLv2 license """ Customization for the Solaris operation system. """ # IPPROTO_GRE is missing on Solaris import socket socket.IPPROTO_GRE...
23.8
64
0.764706
622d71a7993458a44a2b0532af3d8557e147cbbc
1,309
py
Python
test/test_inline_response20010.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_inline_response20010.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
test/test_inline_response20010.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ESPER API REFERENCE OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Li...
24.698113
77
0.724981
622d7cb65e2f84fbedbfe81083386f5c0d25ca33
404
py
Python
pyrigee/maneuver.py
JackCSheehan/pyrigee
fcaf6551fa2626d4f768dadefe031b60faea0abe
[ "MIT" ]
4
2021-02-12T11:24:51.000Z
2022-01-18T06:34:38.000Z
pyrigee/maneuver.py
JackCSheehan/pyrigee
fcaf6551fa2626d4f768dadefe031b60faea0abe
[ "MIT" ]
5
2020-12-12T23:31:24.000Z
2020-12-15T00:17:49.000Z
pyrigee/maneuver.py
JackCSheehan/pyrigee
fcaf6551fa2626d4f768dadefe031b60faea0abe
[ "MIT" ]
null
null
null
''' Class containing defintiion of Maneuver class and relevant constants ''' import numpy as np import math ''' Class that allows users to define maneuvers to a target orbit ''' class Maneuver: ''' Takes an Orbit object describing the new orbit, and a color to change appearance of maneuver in plot ''' ...
23.764706
73
0.685644
622d819fa0ec2a07f659023e25d8036f9236c444
1,358
py
Python
src/app/models/auth.py
brianmask/fast-boiler
7fc1710d13ba7187445e885735cb54ff6169b566
[ "Apache-2.0" ]
null
null
null
src/app/models/auth.py
brianmask/fast-boiler
7fc1710d13ba7187445e885735cb54ff6169b566
[ "Apache-2.0" ]
null
null
null
src/app/models/auth.py
brianmask/fast-boiler
7fc1710d13ba7187445e885735cb54ff6169b566
[ "Apache-2.0" ]
null
null
null
""" All Auth based Tables (Users, Groups) """ from sqlalchemy import ( Boolean, Column, DateTime, ForeignKey, Integer, String, Table, Text, ) from sqlalchemy.sql import func from app.core.db import metadata # Many to Many: User -> Groups # Permissions / Roles user_groups = Table( ...
27.16
79
0.669367
622da4484ad9732e0ac9e12f805aa18e15e3717d
7,389
py
Python
rl_comp.py
Guidosalimbeni/compositionRL
e16774760313720a213e344c857a4a390b92b968
[ "MIT" ]
null
null
null
rl_comp.py
Guidosalimbeni/compositionRL
e16774760313720a213e344c857a4a390b92b968
[ "MIT" ]
null
null
null
rl_comp.py
Guidosalimbeni/compositionRL
e16774760313720a213e344c857a4a390b92b968
[ "MIT" ]
null
null
null
''' https://medium.com/acing-ai/how-i-build-an-ai-to-play-dino-run-e37f37bdf153 https://blog.paperspace.com/dino-run/ https://github.com/Paperspace/DinoRunTutorial https://gist.github.com/cadurosar/bd54c723c1d6335a43c8 http://edersantana.github.io/articles/keras_rl/ https://ai.intel.com/demystifying-deep-reinfo...
31.712446
152
0.568683
622dc3747877e55d10db42dc96d3b7a19a9e2ca5
9,272
py
Python
esperclient/models/token_renew_v0.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
esperclient/models/token_renew_v0.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
esperclient/models/token_renew_v0.py
pallavigopi/esper-client-py
f7e71d3f25a5d91f35628b414e8abe9e6849d316
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ESPER API REFERENCE OpenAPI spec version: 1.0.0 Contact: developer@esper.io --------------------------------------------------------- Copyright 2019 Shoonya Enterprises Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the Li...
26.11831
154
0.585311
622dd479f647b0f07f364124fbb9eea1d97fd123
6,231
py
Python
tests/test_utils/__init__.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
tests/test_utils/__init__.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
tests/test_utils/__init__.py
Vsevolod-pl/hivemind
0300cfd91adeb14d91d9659a98221628f9b775b9
[ "MIT" ]
null
null
null
import asyncio import functools import os import subprocess import time import uuid from contextlib import asynccontextmanager from typing import NamedTuple from multiaddr import Multiaddr, protocols from hivemind import find_open_port from hivemind.p2p.p2p_daemon_bindings.p2pclient import Client TIMEOUT_DURATION =...
32.284974
97
0.665704
622de7f51063bb7241fb0e6bb1db5272ebbdb056
2,146
py
Python
gaphor/diagram/profiles/metaclasspropertypage.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/profiles/metaclasspropertypage.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
gaphor/diagram/profiles/metaclasspropertypage.py
MarianelaSena/gaphor
f1ccc2e2ae98d7fad54f6dd9271e8e10fbb2e324
[ "Apache-2.0" ]
null
null
null
""" Metaclass item editors. """ from gi.repository import Gtk from gaphor import UML from gaphor.core import _ from gaphor.diagram.propertypages import create_hbox_label from gaphor.diagram.propertypages import PropertyPages, NamedElementPropertyPage def _issubclass(c, b): try: return issubclass(c, b) ...
26.825
80
0.637931
622e081d591d87140c7c87f851a401c04022073b
346
py
Python
mmocr/models/textrecog/encoders/__init__.py
JiaquanYe/MASTER-mmocr
eb30cfce1da7676da68e7dd1250e048aad9d4dec
[ "Apache-2.0" ]
75
2021-07-30T09:05:15.000Z
2022-03-23T07:08:22.000Z
mmocr/models/textrecog/encoders/__init__.py
JiaquanYe/MASTER-mmocr
eb30cfce1da7676da68e7dd1250e048aad9d4dec
[ "Apache-2.0" ]
5
2021-09-14T09:03:18.000Z
2022-02-20T16:59:18.000Z
mmocr/models/textrecog/encoders/__init__.py
JiaquanYe/MASTER-mmocr
eb30cfce1da7676da68e7dd1250e048aad9d4dec
[ "Apache-2.0" ]
13
2021-07-30T09:08:09.000Z
2022-01-26T03:51:59.000Z
from .base_encoder import BaseEncoder from .channel_reduction_encoder import ChannelReductionEncoder from .sar_encoder import SAREncoder from .transformer_encoder import TFEncoder from .positional_encoding import PositionalEncoding __all__ = ['SAREncoder', 'TFEncoder', 'BaseEncoder', 'ChannelReductionEncoder', ...
38.444444
79
0.823699
622e09a7d0b5a09691736f49d9ae0903981adca3
1,532
py
Python
tf3d/datasets/specs/siemens_specs.py
zhangyuyi99/google-research
9b3d8c4b026727a9e24a990300027f5be203f88d
[ "Apache-2.0" ]
null
null
null
tf3d/datasets/specs/siemens_specs.py
zhangyuyi99/google-research
9b3d8c4b026727a9e24a990300027f5be203f88d
[ "Apache-2.0" ]
null
null
null
tf3d/datasets/specs/siemens_specs.py
zhangyuyi99/google-research
9b3d8c4b026727a9e24a990300027f5be203f88d
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
32.595745
75
0.716057
622e0a4dcf5d1f92ae4c39015d909158f5781e8d
2,295
py
Python
saf/euler1d_eigval/linear/animator.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/euler1d_eigval/linear/animator.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
saf/euler1d_eigval/linear/animator.py
dmitry-kabanov/fickettmodel
255b1e9cae1cfb7a6b914ad61a17288d52215cc4
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from .solution import Solution class Animator: def __init__(self, grid, tfinal): self._grid = grid self._tfinal = tfinal plt.ion() self._fig, (self._ax1, self._ax2, self._ax3) = plt.subplots(3, 1) plt.hold(False) ...
32.323944
73
0.518083
622e0a4dd1500be45903f7b57fe1bc5c588af661
8,189
py
Python
experiments/vitchyr/goal_distribution/representation_learning/offline_training/pygame_1obj/offline_vae_analysis.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2020-10-23T14:40:09.000Z
2020-10-23T14:40:09.000Z
experiments/vitchyr/goal_distribution/representation_learning/offline_training/pygame_1obj/offline_vae_analysis.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/vitchyr/goal_distribution/representation_learning/offline_training/pygame_1obj/offline_vae_analysis.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
1
2021-05-27T20:38:45.000Z
2021-05-27T20:38:45.000Z
from pathlib import Path import json import gym import numpy as np import torch import rlkit.torch.pytorch_util as ptu from multiworld import register_all_envs from rlkit.envs.encoder_wrappers import EncoderWrappedEnv, DictEncoderWrappedEnv from rlkit.envs.images import EnvRenderer, InsertImageEnv from rlkit.torch.se...
31.988281
139
0.602638
622e40bf15a5532e260a0d1a5e8ad7731b81c3f6
434
py
Python
cassandra-gateway-server/src/tests/healthcheck.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
2
2020-01-13T14:39:32.000Z
2020-02-02T13:20:45.000Z
cassandra-gateway-server/src/tests/healthcheck.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
null
null
null
cassandra-gateway-server/src/tests/healthcheck.py
emeric254/grafana-cassandra-datasource
c0e81b3b5f8909c32c01377b174250608d9c95a7
[ "MIT" ]
1
2020-01-17T11:02:06.000Z
2020-01-17T11:02:06.000Z
# -*- coding: utf-8 -*- from tornado import testing class HealthTestCase(testing.AsyncTestCase): @testing.gen_test def test_http_fetch(self): """ Test if the /health endpoint return 'ok' """ client = testing.AsyncHTTPClient() response = yield client.fetch("http://loc...
24.111111
96
0.652074
622e5548afffd7898d9d12db22c6f5e82a868a9b
3,267
py
Python
doc/examples/inversion/dc3D_AppExample.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
doc/examples/inversion/dc3D_AppExample.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
doc/examples/inversion/dc3D_AppExample.py
markendr/esys-escript.github.io
0023eab09cd71f830ab098cb3a468e6139191e8d
[ "Apache-2.0" ]
null
null
null
__copyright__ = "Copyright (c) 2020 by University of Queensland http://www.uq.edu.au" __license__ = "Licensed under the Apache License, version 2.0 http://www.apache.org/licenses/LICENSE-2.0" __credits__ = "Lutz Gross, Andrea Codd" """ Simple direct current resistivity code that uses class dcResistivityModel in dc...
33
132
0.70401
622e77a4b25e32bec320bb6153afce010996f9da
5,598
py
Python
mdrsl/rule_models/ids/model_fitting/ids_abstract_base.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
mdrsl/rule_models/ids/model_fitting/ids_abstract_base.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
mdrsl/rule_models/ids/model_fitting/ids_abstract_base.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
from typing import Optional, Set from rule_models.ids.ids_classifier import IDSClassifier from rule_models.ids.ids_overlap_cacher import init_overlap_cacher from rule_models.ids.objective_function.ids_objective_function_abstract import AbstractIDSObjectiveFunction from pyarc.qcba.data_structures import QuantitativeD...
42.409091
119
0.673633
622e8ad66c32cfc8c7a5d284b7ba8b26f58b4a42
4,082
py
Python
setup.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
1
2015-08-02T05:36:11.000Z
2015-08-02T05:36:11.000Z
setup.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
setup.py
elliotthill/django-oscar
5a71a1f896f2c14f8ed3e68535a36b26118a65c5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Installation script: To release a new version to PyPi: - Ensure the version is correctly set in oscar.__init__.py - Run: python setup.py sdist upload """ from __future__ import print_function from setuptools import setup, find_packages import os import sys from oscar import get_version PRO...
41.232323
143
0.633513
622e91f253ab66867503253feba4fd1fc53857db
1,090
py
Python
challenges/networks/man-in-the-mirror/solve/intercept-proxy.py
infosec-ucalgary/magpieCTF-2021
78459a1e16ac3a135e891c2246232c4890960b92
[ "MIT" ]
18
2021-02-22T00:09:27.000Z
2022-02-28T14:23:33.000Z
challenges/networks/man-in-the-mirror/solve/intercept-proxy.py
infosec-ucalgary/magpieCTF-2021
78459a1e16ac3a135e891c2246232c4890960b92
[ "MIT" ]
null
null
null
challenges/networks/man-in-the-mirror/solve/intercept-proxy.py
infosec-ucalgary/magpieCTF-2021
78459a1e16ac3a135e891c2246232c4890960b92
[ "MIT" ]
6
2021-02-22T01:32:10.000Z
2022-02-25T15:48:42.000Z
import sys, socket def main(): if (len(sys.argv) <= 3): print("Usage: " + sys.argv[0] + " <intercept_port> <challenge_host> <challenge_port>") exit(1) my_port = int(sys.argv[1]) challenge_site = sys.argv[2] challenge_port = int(sys.argv[3]) serversocket = socket.socket(socket.AF_INET, socket.SOCK...
26.585366
90
0.640367
622ea015834feaa6e0dabf02e93736efcab9bfad
523
py
Python
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/featherwing_tempmotion_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
47
2021-02-15T23:02:36.000Z
2022-03-04T21:30:03.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/featherwing_tempmotion_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
36
2018-01-30T04:03:57.000Z
2021-12-24T13:33:22.000Z
adafruit_circuitpython_libs/adafruit-circuitpython-bundle-py-20210214/examples/featherwing_tempmotion_simpletest.py
jacoblb64/pico_rgb_keypad_hid
3251ca6a98ef86d9f98c54f639c4d61810601a0b
[ "MIT" ]
15
2018-01-10T18:48:14.000Z
2021-12-26T14:25:25.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT """ This example will show the current temperature in the Serial Console whenever the FeatherWing senses that it has been tapped """ import time from adafruit_featherwing import tempmotion_featherwing temp_motion = tempmoti...
29.055556
68
0.791587
622ec6ca7f2fbfa84029804da20fe587eb2a7e4d
1,126
py
Python
var/spack/repos/builtin/packages/py-bb5/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
9
2018-04-18T07:51:40.000Z
2021-09-10T03:56:57.000Z
var/spack/repos/builtin/packages/py-bb5/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
907
2018-04-18T11:17:57.000Z
2022-03-31T13:20:25.000Z
var/spack/repos/builtin/packages/py-bb5/package.py
lguyot/spack
e910c227a7bac3adf2c18fc86cf994811b7d14f7
[ "ECL-2.0", "Apache-2.0", "MIT" ]
29
2018-11-05T16:14:23.000Z
2022-02-03T16:07:09.000Z
############################################################################## # Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyBb5(PythonPack...
36.322581
78
0.614565
622ece4f111d3a5a84e8e46d73bbf642076cd4b6
5,351
py
Python
tests/smac3/smac3_svm_cv.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
2
2021-09-06T02:06:22.000Z
2021-12-09T10:46:56.000Z
tests/smac3/smac3_svm_cv.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
tests/smac3/smac3_svm_cv.py
zhanglei1172/bbobenchmark
841bffdddc1320ac2676e378d20f8b176a7e6cf7
[ "MIT" ]
null
null
null
""" SVM with Cross-Validation ^^^^^^^^^^^^^^^^^^^^^^^^^ An example to optimize a simple SVM on the IRIS-benchmark. SMAC4HPO is designed for hyperparameter optimization (HPO) problems and uses an RF as its surrogate model. It is able to scale to higher evaluation budgets and higher number of dimensions. Also, you can u...
39.932836
97
0.703981
622ed78209f6d114e1b7a15dac7471eb670783f5
6,082
py
Python
martingale/martingale.py
meumesmo/Martingale-Gambling-Strategy
2298ba2b1c45f3d9e6b3cd993f40db51b7f5a662
[ "MIT" ]
1
2020-07-21T13:59:43.000Z
2020-07-21T13:59:43.000Z
martingale/martingale.py
Summerraintesting1/Martingale-Gambling-Strategy
2298ba2b1c45f3d9e6b3cd993f40db51b7f5a662
[ "MIT" ]
null
null
null
martingale/martingale.py
Summerraintesting1/Martingale-Gambling-Strategy
2298ba2b1c45f3d9e6b3cd993f40db51b7f5a662
[ "MIT" ]
2
2021-08-04T02:47:57.000Z
2021-08-07T14:05:10.000Z
import numpy as np import pandas as pd import matplotlib.pyplot as plt def get_spin_result(win_prob): result = False if np.random.random() <= win_prob: res...
28.824645
117
0.629234
622edaac5e2a3b747829c578bc05431022353581
6,813
py
Python
virtex/models/classification.py
Tiamat-Tech/virtex
ae67b23f86ab10934f43df239666592acbd74631
[ "MIT" ]
523
2020-06-12T01:19:42.000Z
2022-03-30T02:38:45.000Z
virtex/models/classification.py
Tiamat-Tech/virtex
ae67b23f86ab10934f43df239666592acbd74631
[ "MIT" ]
28
2020-06-13T01:55:34.000Z
2022-03-22T20:41:01.000Z
virtex/models/classification.py
Tiamat-Tech/virtex
ae67b23f86ab10934f43df239666592acbd74631
[ "MIT" ]
74
2020-06-12T03:18:48.000Z
2022-03-28T01:47:55.000Z
from typing import Any, Dict, List import torch from torch import nn from torch.nn import functional as F from virtex.data.tokenizers import SentencePieceBPETokenizer from virtex.modules.textual_heads import TextualHead from virtex.modules.visual_backbones import VisualBackbone class ClassificationModel(nn.Module):...
38.931429
86
0.635109
622f35732f85ba3696e3490b175e76af3f1e47c3
2,550
py
Python
jinad/api/endpoints/pea.py
jina-ai/jinad
4fb874b145357668ecd84cb015c9db1939ed013c
[ "Apache-2.0" ]
3
2020-10-29T10:11:42.000Z
2022-03-15T02:32:43.000Z
jinad/api/endpoints/pea.py
jina-ai/jinad
4fb874b145357668ecd84cb015c9db1939ed013c
[ "Apache-2.0" ]
41
2020-10-23T13:06:39.000Z
2021-01-06T19:55:06.000Z
jinad/api/endpoints/pea.py
jina-ai/jinad
4fb874b145357668ecd84cb015c9db1939ed013c
[ "Apache-2.0" ]
null
null
null
import uuid from typing import List from fastapi import status, APIRouter, File, UploadFile from jina.logging import JinaLogger from jinad.store import pea_store from jinad.models import PeaModel from jinad.excepts import HTTPException, PeaStartException from jinad.helper import pea_to_namespace, create_meta_files_fr...
26.842105
93
0.639216
622f38901652d2c37498fd6be7e95afdf5fc1a53
4,353
py
Python
simpletkgui/simplestyles.py
michael-genson/simplegui
366222864889c2fd6003aba2a25343c92116d483
[ "MIT" ]
1
2021-04-13T04:38:06.000Z
2021-04-13T04:38:06.000Z
simpletkgui/simplestyles.py
michael-genson/simpletkgui
366222864889c2fd6003aba2a25343c92116d483
[ "MIT" ]
null
null
null
simpletkgui/simplestyles.py
michael-genson/simpletkgui
366222864889c2fd6003aba2a25343c92116d483
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.font as tkFont class Font: def __init__(self, family, h1_size=26, h2_size=22, h3_size=14, body_size=12): self.family = family self.h1 = tkFont.Font(family=family, size=h1_size, weight='bold') self.h2 = tkFont.Font(family=family, size=h2_size, weight='bold...
48.910112
247
0.645762
622f453a75b75c1294a6fe01c29883c420ab6af3
6,736
py
Python
scripts/utils.py
mhd-medfa/NoisyStudent-Based-Object-Recognition
783a10069eaa0fc3fb1b008e32417aab40952a2b
[ "MIT" ]
10
2021-01-17T07:13:09.000Z
2021-06-26T09:17:57.000Z
utils.py
AB-22/Food-101-Classification
dce52c4cd184ba8ff763437566c61f8b30096e25
[ "Apache-2.0" ]
null
null
null
utils.py
AB-22/Food-101-Classification
dce52c4cd184ba8ff763437566c61f8b30096e25
[ "Apache-2.0" ]
2
2021-03-04T11:24:51.000Z
2021-04-28T04:28:23.000Z
import os import random import numpy as np import tensorflow as tf import subprocess as sp import os from tensorflow.keras.utils import to_categorical from sklearn.model_selection import train_test_split from rand_augmentation import Rand_Augment img_augment = Rand_Augment(Numbers=2, max_Magnitude=10) """## Loading t...
31.624413
120
0.680374
622f4d9e4e25165e9014775064da0da9bf441b85
3,303
py
Python
utilities.py
chem-william/helix_fit
b9921b0068f1a3084985ca820094a0db15b6aac2
[ "MIT" ]
null
null
null
utilities.py
chem-william/helix_fit
b9921b0068f1a3084985ca820094a0db15b6aac2
[ "MIT" ]
null
null
null
utilities.py
chem-william/helix_fit
b9921b0068f1a3084985ca820094a0db15b6aac2
[ "MIT" ]
null
null
null
import os import numpy as np from ase.units import Bohr from ase.atoms import Atoms from tqdm import tqdm def _neg_atoms(line) -> bool: if int(line[0]) < 0: return True else: return False def read_cube(file): """ Can't handle .CUBE files with more than 1 dataset in it Returns a ...
27.525
84
0.553436
622f531ab0741a9501867f8879961964380e3fe0
1,480
py
Python
src/onevision/nn/layer/resolution.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
2
2022-03-28T09:46:38.000Z
2022-03-28T14:12:32.000Z
src/onevision/nn/layer/resolution.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
src/onevision/nn/layer/resolution.py
phlong3105/onevision
90552b64df7213e7fbe23c80ffd8a89583289433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Resolution Block used in paper: `Multi-Stage Progressive Image Restoration`. """ from __future__ import annotations from torch import nn from torch import Tensor from onevision.nn.layer.attn import CAB from onevision.type import Int2T from onevision.type import to_2t...
19.473684
79
0.667568
622f621aeaad52fac26719ef56b0a7a145db82a2
6,405
py
Python
kaybee/plugins/references/handlers.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
2
2017-11-08T19:55:57.000Z
2018-12-21T12:41:41.000Z
kaybee/plugins/references/handlers.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
null
null
null
kaybee/plugins/references/handlers.py
pauleveritt/kaybee
a00a718aaaa23b2d12db30dfacb6b2b6ec84459c
[ "Apache-2.0" ]
1
2018-10-13T08:59:29.000Z
2018-10-13T08:59:29.000Z
from typing import List, Dict from docutils import nodes from docutils.readers import doctree from sphinx.application import Sphinx from sphinx.builders.html import StandaloneHTMLBuilder from sphinx.environment import BuildEnvironment from kaybee.app import kb from kaybee.plugins.events import SphinxEvent from kaybee...
38.353293
77
0.627635
622f7866b6781f061d639b570a5a4b0228c4f295
2,397
py
Python
peaviz/adapters/neo4j_adapter.py
arrow-/PEAvish
2cf12161d3e8872e128b12814c543efb0b826794
[ "MIT" ]
5
2018-06-19T19:49:19.000Z
2021-01-02T12:55:56.000Z
peaviz/adapters/neo4j_adapter.py
arrow-/PEAvish
2cf12161d3e8872e128b12814c543efb0b826794
[ "MIT" ]
5
2016-10-24T18:54:40.000Z
2017-06-02T11:36:33.000Z
peaviz/adapters/neo4j_adapter.py
arrow-/PEAvish
2cf12161d3e8872e128b12814c543efb0b826794
[ "MIT" ]
1
2019-07-25T03:07:45.000Z
2019-07-25T03:07:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Neo4j Adapter. Nodes can have multiple labels """ import py2neo class Neo4jAdapter: """ @brief Allows creating and merging nodes on a neo4j instance. @param[(in)] label The random seed for this session is used to label all nodes ...
26.633333
84
0.588235
622fbc8104f3734624c78dcb769ae8fbc7081fd0
1,984
py
Python
tests/regressiontests/delete_regress/models.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2017-07-08T06:24:07.000Z
2017-07-08T06:24:07.000Z
tests/regressiontests/delete_regress/models.py
cheshire/django
d9c4eacbd95f6a02e67f669f294da2dc8967a630
[ "BSD-3-Clause" ]
null
null
null
tests/regressiontests/delete_regress/models.py
cheshire/django
d9c4eacbd95f6a02e67f669f294da2dc8967a630
[ "BSD-3-Clause" ]
1
2020-07-15T05:01:00.000Z
2020-07-15T05:01:00.000Z
from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.db import models class Award(models.Model): name = models.CharField(max_length=25) object_id = models.PositiveIntegerField() content_type = models.ForeignKey(ContentType) content_obje...
28.342857
80
0.75
622ff71defdca8942e272c0b33e9232360c46fbc
14,951
py
Python
canvas_course_site_wizard/tests/test_models.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
canvas_course_site_wizard/tests/test_models.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
5
2018-05-10T19:49:43.000Z
2021-01-29T19:39:34.000Z
canvas_course_site_wizard/tests/test_models.py
Harvard-University-iCommons/django-canvas-course-site-wizard
0210849e959407e5a850188f50756eb69b9a4dc2
[ "MIT" ]
null
null
null
from datetime import datetime from itertools import count from unittest import TestCase, skip from mock import patch, Mock from icommons_common.models import Course, CourseInstance, Term, School, TermCode from canvas_course_site_wizard.models import ( BulkCanvasCourseCreationJob as BulkJob, CanvasCourseGenerati...
46.431677
118
0.719484
62303863fe0347d6208132fe47cd1ff9daec2a5b
245
py
Python
fastemplate/services/v1/__init__.py
htbrandao/fastemplate
239784538e1dd7ea8a6d5105cb9cb27b1d7f53cb
[ "MIT" ]
8
2021-07-28T13:18:02.000Z
2022-02-05T23:10:02.000Z
fastemplate/services/v1/__init__.py
htbrandao/fastemplate
239784538e1dd7ea8a6d5105cb9cb27b1d7f53cb
[ "MIT" ]
null
null
null
fastemplate/services/v1/__init__.py
htbrandao/fastemplate
239784538e1dd7ea8a6d5105cb9cb27b1d7f53cb
[ "MIT" ]
null
null
null
from fastapi import APIRouter from fastemplate.services.v1 import shopcart, fridge v1 = APIRouter() v1.include_router(fridge.router, prefix='/fridge', tags=['fridge']) v1.include_router(shopcart.router, prefix='/shopcart', tags=['shopcart'])
27.222222
73
0.767347
623039c5bbfcc23c786a0ec7b8c4df814eae910e
7,293
py
Python
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
3
2021-03-26T00:48:20.000Z
2022-03-29T22:05:39.000Z
src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_actions.py
v-Ajnava/azure-cli
febec631d79bfca151e84267b5b409594bad598e
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.156069
118
0.605375
62304044a7b2869fe8b54608c692992ad83a3cd3
3,864
py
Python
tensor2tensor/data_generators/video_utils_test.py
shankharaj29/tensor2tensor
b89ba51a6fa9e0c20009cfb57ee8de04f7138392
[ "Apache-2.0" ]
2
2020-03-02T13:49:11.000Z
2020-06-18T09:48:35.000Z
tensor2tensor/data_generators/video_utils_test.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-21T10:57:47.000Z
2019-01-21T10:57:47.000Z
tensor2tensor/data_generators/video_utils_test.py
PedroLelis/tensor2tensor
5a867d031bd493eeb7d2776e1118d1594ff0a623
[ "Apache-2.0" ]
1
2019-01-24T07:17:14.000Z
2019-01-24T07:17:14.000Z
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
38.257426
90
0.703934
6230577af3c2c6a803f373d2b138242f551223cb
806
py
Python
aoc-2015/day-06/day_6.py
bsamseth/advent-of-code-2018
bdd3969e61fac3f1543c20983260aa9fda912e99
[ "MIT" ]
1
2021-01-03T17:09:13.000Z
2021-01-03T17:09:13.000Z
aoc-2015/day-06/day_6.py
bsamseth/advent-of-code-2018
bdd3969e61fac3f1543c20983260aa9fda912e99
[ "MIT" ]
3
2021-06-01T23:09:26.000Z
2022-03-12T01:08:40.000Z
aoc-2015/day-06/day_6.py
bsamseth/advent-of-code
65d40548057a86b6fda37aec8e7d5d473d627124
[ "MIT" ]
null
null
null
import numpy as np from parse import parse with open("input.txt") as f: ops = [parse("{op} {x0:d},{y0:d} through {x1:d},{y1:d}", line) for line in f] lights = np.zeros((1000, 1000), dtype=bool) for op in ops: region = slice(op["x0"], op["x1"] + 1), slice(op["y0"], op["y1"] + 1) if op["op"] == "toggle": ...
26
81
0.544665
6230719093381dfc40e9165c5b9b9fa2b4d5d73d
777
py
Python
rho_blogs/processors.py
rolando-archive/rho-blogs-crawler
c5d47fbc24307bfae847aa8c72064f1be329fdb2
[ "BSD-3-Clause" ]
null
null
null
rho_blogs/processors.py
rolando-archive/rho-blogs-crawler
c5d47fbc24307bfae847aa8c72064f1be329fdb2
[ "BSD-3-Clause" ]
null
null
null
rho_blogs/processors.py
rolando-archive/rho-blogs-crawler
c5d47fbc24307bfae847aa8c72064f1be329fdb2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import with_statement import datetime import locale from contextlib import contextmanager @contextmanager def use_locale(value, category=locale.LC_ALL): original = locale.getlocale() locale.setlocale(category, value) yield locale.setlocale(category, original) class StringToDatetime(...
25.9
69
0.684685
6230741c6a5ebd98074fbdff8afdcced3655c912
1,719
py
Python
fridge/Constituent/Smear.py
SoftwareDevEngResearch/FRIDGe
70ebe31e27b805a935e919e94325b501bdeb3cf6
[ "MIT" ]
1
2018-04-26T00:33:55.000Z
2018-04-26T00:33:55.000Z
fridge/Constituent/Smear.py
SoftwareDevEngResearch/FRIDGe
70ebe31e27b805a935e919e94325b501bdeb3cf6
[ "MIT" ]
2
2018-05-07T02:58:33.000Z
2019-04-22T17:10:13.000Z
fridge/Constituent/Smear.py
SoftwareDevEngResearch/FRIDGe
70ebe31e27b805a935e919e94325b501bdeb3cf6
[ "MIT" ]
null
null
null
import fridge.Constituent.Constituent as Constituent import fridge.utilities.mcnpCreatorFunctions as mcnpCF class Smear(Constituent.Constituent): """Creates a constituent which is a smear of materials.""" def __init__(self, unitInfo, voidMaterial='', voidPercent=1.0): self.universe = unitInfo[0][0] ...
47.75
124
0.675974
62307ea532ae6e03f50a10383c60a9330cc7dd65
3,943
py
Python
exercises/largest-series-product/largest_series_product_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/largest-series-product/largest_series_product_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
null
null
null
exercises/largest-series-product/largest_series_product_test.py
jamesmcm/python
9f1d41da23ff7248e891ee1c8f01d11793e7d3ea
[ "MIT" ]
1
2021-12-29T19:26:23.000Z
2021-12-29T19:26:23.000Z
"""Tests for the largest-series-product exercise Implementation note: In case of invalid inputs to the 'largest_product' function your program should raise a ValueError with a meaningful error message. Feel free to reuse your code from the 'series' exercise! """ import unittest from largest_series_product import lar...
42.397849
79
0.760081
6230da3af4aa7517e9cabeb11fba5dba6cb678af
1,933
py
Python
autox/autox_competition/process_data/feature_type_recognition.py
fanghy06/AutoX
0bad349ef1b047152e2608760fd5d197128be723
[ "Apache-2.0" ]
499
2021-07-27T02:57:58.000Z
2022-03-28T12:08:27.000Z
autox/autox_competition/process_data/feature_type_recognition.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
9
2021-08-03T15:14:56.000Z
2022-03-11T07:06:06.000Z
autox/autox_competition/process_data/feature_type_recognition.py
anonymouslycn/AutoX
ca1045c5919b4d97f1e4c2d8c235f63f6ec5af31
[ "Apache-2.0" ]
87
2021-07-27T01:13:02.000Z
2022-03-29T02:14:09.000Z
import pandas as pd import datetime from autox.autox_competition.CONST import FEATURE_TYPE # datetime的表现形式为:2015-08-28 16:43:37.283 # timestamp的表现形式为:1440751417.283 def detect_TIMESTAMP(df, col): try: ts_min = int(float(df.loc[~(df[col] == '') & (df[col].notnull()), col].min())) ts_max = int(floa...
35.796296
121
0.619245
6230e578b5a313fb6c47a711b5d264da8f84ddbb
4,252
py
Python
src/io.py
erickcan/sound-change-applier
f6c1d75933c4f1269c7b158ace61b95488c84843
[ "MIT" ]
2
2021-04-20T14:30:59.000Z
2021-10-03T18:58:26.000Z
src/io.py
erickcan/sound-change-applier
f6c1d75933c4f1269c7b158ace61b95488c84843
[ "MIT" ]
null
null
null
src/io.py
erickcan/sound-change-applier
f6c1d75933c4f1269c7b158ace61b95488c84843
[ "MIT" ]
null
null
null
import argparse from csv import writer from datetime import datetime as dt from json import load from typing import Optional from src.hash_dict import HashableDict __all__ = [ "today_str", "read_file", "write_txt", "json_to_dict", "before_after_csv", "ScaArgs", ] def today_str() -> str: ...
28.72973
114
0.632408
6230e93219cfeebebf8e5795961e1448dbd86481
20,716
py
Python
applications/tensorflow/cnns/inference/run_benchmark.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/inference/run_benchmark.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
applications/tensorflow/cnns/inference/run_benchmark.py
Splendon/examples
ed4a8a01857b6ddca49559141acf5d0986eb01e1
[ "MIT" ]
null
null
null
# Copyright 2019 Graphcore Ltd. """Run image classification inference on chosen model.""" import argparse import glob import logging import os import time import warnings from pathlib import Path from typing import Callable, Optional, Tuple, Type import numpy as np import tensorflow as tf import yaml try: from g...
51.150617
119
0.619763
623103b00711476d9661732a47f6cf6374aa41e3
3,708
py
Python
discussions-api/app/api/v1/comment.py
bosamatheus/community-discussions
e9ca8ca710c9111c85601b6111b90b4ef604b38f
[ "MIT" ]
null
null
null
discussions-api/app/api/v1/comment.py
bosamatheus/community-discussions
e9ca8ca710c9111c85601b6111b90b4ef604b38f
[ "MIT" ]
null
null
null
discussions-api/app/api/v1/comment.py
bosamatheus/community-discussions
e9ca8ca710c9111c85601b6111b90b4ef604b38f
[ "MIT" ]
null
null
null
"""Comment router module.""" from typing import List, Union from fastapi import APIRouter, Body, Depends, HTTPException, status from fastapi.responses import JSONResponse from app.api import deps from app.domain.comment import Comment, UpdateComment from app.usecase.comment import ( CommentNotFoundToBeReplied, ...
30.393443
78
0.672869
6231418f66bff5519b26790d3202f3308eacfcc8
3,430
py
Python
rest_models/backend/creation.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
61
2016-12-05T09:09:49.000Z
2022-03-09T13:23:06.000Z
rest_models/backend/creation.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
51
2016-12-07T10:19:52.000Z
2022-03-11T23:35:23.000Z
rest_models/backend/creation.py
matheusmatos/django-rest-models
18da71bd921064279b03129aac38d3fbb9e29ae2
[ "BSD-2-Clause" ]
18
2017-03-11T18:07:17.000Z
2022-03-09T13:14:40.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import logging import re from django.conf import settings from django.db.backends.base.creation import BaseDatabaseCreation from rest_models.backend.connexion import LocalApiAdapter logger = logging.getLogger(__name__) ...
37.692308
91
0.69242
62314a35981247588829eba10fd5e5193cd079a8
4,961
py
Python
backend/api/RoutePlanning.py
HowardCHT/MasterOfTravelArrangement
51f7daff63df5fcbb4ce2b744c2fa239aa6afdcf
[ "MIT" ]
1
2021-04-10T03:55:23.000Z
2021-04-10T03:55:23.000Z
backend/api/RoutePlanning.py
HowardCHT/MasterOfTravelArrangement
51f7daff63df5fcbb4ce2b744c2fa239aa6afdcf
[ "MIT" ]
null
null
null
backend/api/RoutePlanning.py
HowardCHT/MasterOfTravelArrangement
51f7daff63df5fcbb4ce2b744c2fa239aa6afdcf
[ "MIT" ]
null
null
null
# from ..models.RoutePlaningModel import RoutePlaning from backend.resource.RoutePlanning import RoutePlanning as RP from backend.models.model import ScenicSpotInfo, CILocation, Datastream from flask_restful import Resource, reqparse import threading from queue import Queue class RoutePlanning(Resource): def get(...
45.1
142
0.580931
623170fd0a878fcb2d15ae5d642e939e8489f4c6
1,051
py
Python
execution_workflows/DaPars/bin/check_bedgraph.py
iRNA-COSI/APAeval
cf1032d23ff3020e0b5ba50b3217b94d2b2d728d
[ "MIT" ]
9
2021-05-25T17:01:09.000Z
2022-02-11T22:07:46.000Z
execution_workflows/DaPars/bin/check_bedgraph.py
iRNA-COSI/APAeval
cf1032d23ff3020e0b5ba50b3217b94d2b2d728d
[ "MIT" ]
146
2021-05-18T23:55:56.000Z
2022-03-31T14:34:06.000Z
execution_workflows/DaPars/bin/check_bedgraph.py
iRNA-COSI/APAeval
cf1032d23ff3020e0b5ba50b3217b94d2b2d728d
[ "MIT" ]
14
2021-05-03T14:38:33.000Z
2021-08-21T21:21:22.000Z
#!/usr/bin/env python3 import sys import argparse def parse_args(args=None): Description = "Check DaPars bedgraph input to have leading chr for all sequence regions. Otherwise, throw an error." Epilog = "Example usage: python check_bedgraph.py <FILE_IN>" parser = argparse.ArgumentParser(description=Description, e...
28.405405
117
0.718363
6231bcf95b070a86ac39ea7b5bbf4f6498e12ad3
1,162
py
Python
lib/ipm/ipm_matches.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/ipm/ipm_matches.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/ipm/ipm_matches.py
Aniket-Gujarathi/d2-net
c716d37087390af04c8843452dadfa47a64cfbe2
[ "BSD-3-Clause-Clear" ]
null
null
null
from PIL import Image import cv2 import numpy as np import pandas as pd from ipm import ipm import random def getimgPair(imgData): imgFiles = [] data = pd.read_csv(imgData, sep=',', header=1, names=['front', 'rear']) data = data.sample(n=100) imgFiles = [data['front'], data['rear']] return imgFile...
33.2
86
0.657487
6232382c671d45316ec6c5486077449f890fb7ab
3,750
py
Python
font_tools/font_generator.py
r0the/monogfx-arduino
049b14fa601800645562b78ff6f3eddf23d51429
[ "BSD-3-Clause" ]
null
null
null
font_tools/font_generator.py
r0the/monogfx-arduino
049b14fa601800645562b78ff6f3eddf23d51429
[ "BSD-3-Clause" ]
null
null
null
font_tools/font_generator.py
r0the/monogfx-arduino
049b14fa601800645562b78ff6f3eddf23d51429
[ "BSD-3-Clause" ]
null
null
null
""" MonoGFX Font Converter Converts a bitmap font represented as a PNG image to a MonoGFX C++ font file for use with the MonoGFX Arduino library. """ FONT_NAME = 'TECHNO' OUTPUT_FILE_NAME = 'fonts/techno.h' INPUT_FILE_NAME = 'fonts_res/Techno.png' GLYPH_WIDTH = 8 GLYPH_HORIZONTAL_OFFSET = 0 GLYPH_HORIZONTAL_SPACING ...
24.509804
89
0.616
623245d4e47498c9537afef6101d4d1ea91f8dd2
5,806
py
Python
routes.example.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
1
2017-08-11T20:37:21.000Z
2017-08-11T20:37:21.000Z
routes.example.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
null
null
null
routes.example.py
trosa/listool
f175c6e30bcc788a381a92c3a8b818a1f1a88de6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # default_application, default_controller, default_function # are used when the respective element is missing from the # (possibly rewritten) incoming URL # default_application = 'init' # ordinarily set in base routes.py default_controller = 'default' # ordinarily set in a...
39.767123
164
0.648123
6232d3d8ba3603cfb7709847f24ed0fbbbb1dd25
31,949
py
Python
spyder/plugins/outlineexplorer/widgets.py
Nicztin/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
1
2019-09-25T15:08:24.000Z
2019-09-25T15:08:24.000Z
spyder/plugins/outlineexplorer/widgets.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
spyder/plugins/outlineexplorer/widgets.py
jorgeps86/spyder
1c7b2232d2abbf1e101a1e2ab0552b32e8472bd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """Outline explorer widgets.""" # Standard library imports from __future__ import print_function import os.path as osp # Third party imports from qtpy....
39.638958
80
0.566152
6232d8dfb40210584055e70c14fe745908b0afe4
6,864
py
Python
model/net.py
bnjasim/named-entity-recognition
7e30df85d6fe0c0998d8b52d9c13ef8780c912a8
[ "MIT" ]
null
null
null
model/net.py
bnjasim/named-entity-recognition
7e30df85d6fe0c0998d8b52d9c13ef8780c912a8
[ "MIT" ]
null
null
null
model/net.py
bnjasim/named-entity-recognition
7e30df85d6fe0c0998d8b52d9c13ef8780c912a8
[ "MIT" ]
null
null
null
"""Defines the neural network, losss function and metrics""" import numpy as np import torch import torch.nn as nn import torch.nn.functional as F class Net(nn.Module): """ This is the standard way to define your own network in PyTorch. You typically choose the components (e.g. LSTMs, linear layers etc.)...
46.067114
120
0.684149
62332b86c21084fbcc8bd9a5901f9929fce0deb8
372
py
Python
reana_client/__init__.py
scailfin/reana-client
01ddb22ac6a9215e87212bede636389f6f24a7d2
[ "MIT" ]
null
null
null
reana_client/__init__.py
scailfin/reana-client
01ddb22ac6a9215e87212bede636389f6f24a7d2
[ "MIT" ]
null
null
null
reana_client/__init__.py
scailfin/reana-client
01ddb22ac6a9215e87212bede636389f6f24a7d2
[ "MIT" ]
1
2019-06-04T22:29:12.000Z
2019-06-04T22:29:12.000Z
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2017, 2018 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-Client.""" from __future__ import absolute_import, print_function from .vers...
21.882353
72
0.717742
623336c60649f3da399f00332aac6a1e9f39d548
23,011
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/virtual_machine_extensions_operations.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/virtual_machine_extensions_operations.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/operations/virtual_machine_extensions_operations.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
47.939583
191
0.683238
62335f774f80406e99e62eb57501fd1b0fe45786
4,140
py
Python
experiments/ashvin/icml2020/hand/relocate/sparse/reproduce1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/relocate/sparse/reproduce1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/icml2020/hand/relocate/sparse/reproduce1.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
""" AWR + SAC from demo experiment """ from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args import rlkit.misc.hyperparameter as hyp from rlkit.launchers.arglauncher import run_variants from rlkit.torch.sac.policies im...
30
77
0.569082
623398f8b1bcd149f918f56ec7b664877d62a52d
16,786
py
Python
cleverhans/attacks/carlini_wagner_l2.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
21
2019-06-07T17:05:30.000Z
2022-02-07T03:25:15.000Z
cleverhans/attacks/carlini_wagner_l2.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
7
2019-12-16T22:20:01.000Z
2022-02-10T00:45:21.000Z
cleverhans/attacks/carlini_wagner_l2.py
iamgroot42/cleverhans
53da9cd6daf9d7457800831c3eaa75f729a39145
[ "MIT" ]
8
2019-06-11T03:06:29.000Z
2022-01-18T04:18:27.000Z
"""The CarliniWagnerL2 attack """ # pylint: disable=missing-docstring import logging import numpy as np import tensorflow as tf from cleverhans.attacks.attack import Attack from cleverhans.compat import reduce_sum, reduce_max from cleverhans.model import CallableModelWrapper, Model, wrapper_warning_logits from clever...
40.350962
80
0.624211
62339d19b69cf403e81179c4a92c5c698b0c04d1
2,363
py
Python
src/swarm_rescue/maps/map_compet_01.py
filliat/swarm-rescue
ce323c90ccb4a25216c63abccd09d3f31eea1189
[ "MIT" ]
1
2021-11-15T23:35:29.000Z
2021-11-15T23:35:29.000Z
src/swarm_rescue/maps/map_compet_01.py
filliat/swarm-rescue
ce323c90ccb4a25216c63abccd09d3f31eea1189
[ "MIT" ]
null
null
null
src/swarm_rescue/maps/map_compet_01.py
filliat/swarm-rescue
ce323c90ccb4a25216c63abccd09d3f31eea1189
[ "MIT" ]
1
2021-12-13T16:11:47.000Z
2021-12-13T16:11:47.000Z
import math import random import time from spg_overlay.rescue_center import RescueCenter from spg_overlay.wounded_person import WoundedPerson from spg_overlay.map_abstract import MapAbstract from simple_playgrounds.playground import SingleRoom from .walls_01 import add_walls, add_boxes class MyMapCompet01(MapAbstr...
31.932432
88
0.619975
6233a2ec97e5d30cd81147c46d74bfc527e07be4
48,433
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/aio/operations/_recommendations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/aio/operations/_recommendations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/aio/operations/_recommendations_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
46.75
763
0.673838
6233b72317a05bcd269a8b82452ed9c867616667
4,003
py
Python
cgatpipelines/tools/pipeline_docs/pipeline_testing/trackers/TestingReport.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
cgatpipelines/tools/pipeline_docs/pipeline_testing/trackers/TestingReport.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
cgatpipelines/tools/pipeline_docs/pipeline_testing/trackers/TestingReport.py
kevinrue/cgat-flow
02b5a1867253c2f6fd6b4f3763e0299115378913
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
import os import glob import collections from collections import OrderedDict as odict from CGATReport.Tracker import TrackerSQL from CGATReport.Utils import PARAMS as P ################################################################### ################################################################### # parameteriz...
28.390071
78
0.527604
6233c43eb7a7a0eb335967534305ef4bc8b053f3
1,414
py
Python
tools.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
2
2022-01-31T19:53:02.000Z
2022-02-28T13:11:01.000Z
tools.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
null
null
null
tools.py
NoSDante/micropython-esp32
7722be7aab5cc7ca603775636a9b1a4e1f7497f0
[ "CC0-1.0" ]
1
2022-01-24T17:57:14.000Z
2022-01-24T17:57:14.000Z
# tools def scan_i2c_bus(i2c): devices = i2c.scan() print("\n--- I2C SCAN ---") if len(devices) == 0: print("No i2c device!") else: print('Devices found:',len(devices)) for device in devices: print("Decimal address: ",device," | Hexa address: ",hex(device)) retur...
26.185185
77
0.615983
6233d360102c15698670d5949a77aa0af0444eb4
13,290
py
Python
biogeme/06serialCorrelation.py
mwong009/iclv_rbm
9fdfad803b53229a2eb42bc2c1a778e9ce1b83a5
[ "MIT" ]
1
2020-07-16T12:30:02.000Z
2020-07-16T12:30:02.000Z
biogeme/06serialCorrelation.py
mwong009/iclv_rbm
9fdfad803b53229a2eb42bc2c1a778e9ce1b83a5
[ "MIT" ]
null
null
null
biogeme/06serialCorrelation.py
mwong009/iclv_rbm
9fdfad803b53229a2eb42bc2c1a778e9ce1b83a5
[ "MIT" ]
1
2020-01-02T15:28:42.000Z
2020-01-02T15:28:42.000Z
###IMPORT NECESSARY MODULES TO RUN BIOGEME from biogeme import * from headers import * from loglikelihood import * from distributions import * from statistics import * ### Variables # Piecewise linear definition of income ScaledIncome = DefineVariable('ScaledIncome',\ CalculatedIncome / 1000) ContI...
39.790419
116
0.752521
6233f137d27332f7df9a494cf74f52cee334276d
43,365
py
Python
moma_example/testing/tests.py
gadio/moma-django
13265379be1dbab18697e5f42f38b3b37f928aa9
[ "Apache-2.0" ]
12
2015-03-29T05:31:25.000Z
2019-06-13T16:17:37.000Z
moma_example/testing/tests.py
antoniotaranto/moma-django
13265379be1dbab18697e5f42f38b3b37f928aa9
[ "Apache-2.0" ]
8
2015-09-04T21:00:50.000Z
2021-06-10T17:39:44.000Z
moma_example/testing/tests.py
antoniotaranto/moma-django
13265379be1dbab18697e5f42f38b3b37f928aa9
[ "Apache-2.0" ]
3
2015-03-25T21:52:14.000Z
2021-01-11T03:02:29.000Z
#========================================================================== # Copyright 2012 Lucidel, Inc., 2013 Cloudoscope Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this work except in compliance with the License. # You may obtain a copy of the License in the LICENSE f...
58.522267
142
0.553557
6233f714786d4c8df57c29a5c384395755d3e9c3
810
py
Python
rl-toolkit/examples/test_cmds/gaifo_s/def.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
4
2021-11-17T20:19:34.000Z
2022-03-31T04:21:26.000Z
rl-toolkit/examples/test_cmds/gaifo_s/def.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
rl-toolkit/examples/test_cmds/gaifo_s/def.py
clvrai/goal_prox_il
7c809b2ee575a69a14997068db06f3c1f3c8bd08
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, './') from rlf import run_policy from tests.test_run_settings import TestRunSettings from rlf.policies.actor_critic.dist_actor_critic import DistActorCritic from rlf.rl.model import MLPBase import torch.nn as nn from rlf import GAIL def get_discrim(): return nn.Sequential( ...
31.153846
97
0.697531
62340400db32d65a6a39f3a20a6e4fb1da66a637
133
py
Python
dl_pipeline/kaggle/.py
mnpinto/dl_pipeline
51bfc25b2070f29dbb5dc9b87092e315862f6740
[ "Apache-2.0" ]
4
2021-02-18T00:09:12.000Z
2021-03-31T16:35:18.000Z
dl_pipeline/kaggle/.py
mnpinto/dl_pipeline
51bfc25b2070f29dbb5dc9b87092e315862f6740
[ "Apache-2.0" ]
4
2021-05-06T10:08:52.000Z
2022-02-26T10:39:42.000Z
dl_pipeline/kaggle/.py
mnpinto/dl_pipeline
51bfc25b2070f29dbb5dc9b87092e315862f6740
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/kaggle_rfcx-species-audio-detection.ipynb (unless otherwise specified). __all__ = []
44.333333
119
0.774436
62340affdf705321be9cfc3f6dee12e2eaa259cc
4,210
py
Python
src/rival_regions_wrapper/authentication_handler.py
joostsijm/rival_regions_wrapper
f518ad4075b165078aee3c6dd93a0b4e8c3ba6d4
[ "MIT" ]
2
2021-04-06T15:39:52.000Z
2021-04-09T11:37:21.000Z
src/rival_regions_wrapper/authentication_handler.py
joostsijm/rival_regions_wrapper
f518ad4075b165078aee3c6dd93a0b4e8c3ba6d4
[ "MIT" ]
3
2021-03-28T10:59:49.000Z
2021-04-02T09:43:16.000Z
src/rival_regions_wrapper/authentication_handler.py
joostsijm/rival_regions_wrapper
f518ad4075b165078aee3c6dd93a0b4e8c3ba6d4
[ "MIT" ]
3
2021-03-19T13:11:47.000Z
2021-08-28T14:16:54.000Z
""" Authentication handler module """ import re import cfscrape from python_anticaptcha import AnticaptchaClient from rival_regions_wrapper import LOGGER, DATA_DIR, login_methods from rival_regions_wrapper.cookie_handler import CookieHandler from rival_regions_wrapper.browser import Browser from rival_regions_wrappe...
32.384615
77
0.587648
62344c779d3fdd802b506b5feee8f388ff34ee3f
1,425
py
Python
examples/connectivity/plot_brain_connectome.py
pravsripad/jumeg
cd98935c803c271d030b057ff91851228c9c2bcb
[ "BSD-3-Clause" ]
6
2015-04-10T07:13:07.000Z
2021-12-12T04:04:37.000Z
examples/connectivity/plot_brain_connectome.py
jdammers/jumeg
3225a4b161a6244a16ca0106a6f0781c4d511a25
[ "BSD-3-Clause" ]
112
2015-01-07T10:19:24.000Z
2022-02-01T15:48:16.000Z
examples/connectivity/plot_brain_connectome.py
jdammers/jumeg
3225a4b161a6244a16ca0106a6f0781c4d511a25
[ "BSD-3-Clause" ]
22
2015-03-11T12:19:50.000Z
2021-11-20T04:24:42.000Z
#!/usr/bin/env python """ Plot connectivity on a glass brain using 'plot_connectome' function from Nilearn (https://nilearn.github.io/). Author: Praveen Sripad <pravsripad@gmail.com> """ import numpy as np import matplotlib.pyplot as plt import mne from mne.datasets import sample from nilearn import plotting from...
27.403846
72
0.697544
62346cdb8a0f8dea9aaeefaaaeb630f6dc359bf7
9,995
py
Python
IPython/parallel/apps/baseapp.py
damianavila/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
2
2020-11-30T14:04:30.000Z
2021-11-08T11:29:05.000Z
IPython/parallel/apps/baseapp.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/parallel/apps/baseapp.py
RuSHi2381/ipython
4481c323e0d261685ad350fc6f437494b889ab12
[ "BSD-3-Clause-Clear" ]
1
2020-11-19T05:18:41.000Z
2020-11-19T05:18:41.000Z
# encoding: utf-8 """ The Base Application class for IPython.parallel apps Authors: * Brian Granger * Min RK """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full lice...
36.083032
91
0.556478
62347c37c22310455f876e407a77af883a9c1d51
587
py
Python
userbot/plugins/wishper.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/wishper.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
userbot/plugins/wishper.py
justteen/BUZZ-USERBOT
55651cce150e1d04d2c61efb2565ef9f46b42933
[ "BSL-1.0" ]
null
null
null
# Made by @Kraken_The_BadASS for @HellBot_Official from telethon import events from asyncio import sleep import os, sys, random, re from userbot.utils import lightning_cmd from userbot import bot # By Team DC @borg.on(lightning_cmd(pattern="wspr ?(.*)")) async def wspr(event): if event.fwd_from: return ...
24.458333
53
0.715503
6234a32580757ac04ca71eaf8c54d41bbcb7e484
6,319
py
Python
fingerprint/exclude_new_fingerprints.py
duanbiao-nlp/DESC_MOL-DDIE
add555a7136e4be13f369320fd694a9aae11eb4f
[ "MIT" ]
14
2020-11-03T13:53:23.000Z
2022-03-23T07:26:50.000Z
fingerprint/exclude_new_fingerprints.py
duanbiao-nlp/DESC_MOL-DDIE
add555a7136e4be13f369320fd694a9aae11eb4f
[ "MIT" ]
1
2022-02-09T09:56:39.000Z
2022-02-09T09:56:39.000Z
fingerprint/exclude_new_fingerprints.py
duanbiao-nlp/DESC_MOL-DDIE
add555a7136e4be13f369320fd694a9aae11eb4f
[ "MIT" ]
4
2020-11-04T04:31:05.000Z
2021-11-05T07:49:27.000Z
import os import sys import json from collections import defaultdict import numpy as np from rdkit import Chem import torch def create_atoms(mol, atom_dict): """Transform the atom types in a molecule (e.g., H, C, and O) into the indices (e.g., H=0, C=1, and O=2). Note that each atom index considers th...
34.530055
98
0.566704
6234d7f51391ec4f637c8725d928f7c530051356
3,752
py
Python
app/api/v1/schema/notification.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
6
2018-11-07T12:41:30.000Z
2020-04-12T18:07:03.000Z
app/api/v1/schema/notification.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
1
2020-10-20T12:33:18.000Z
2020-10-20T12:33:18.000Z
app/api/v1/schema/notification.py
a-wakeel/Device-Registration-Subsystem
dd9fa387e2087a6ccea9676303debe640bd99422
[ "Unlicense" ]
10
2018-11-12T06:15:19.000Z
2021-11-18T05:45:12.000Z
""" DRS notification schema package. Copyright (c) 2018-2021 Qualcomm Technologies, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: Redistrib...
65.824561
844
0.777985
6235053b48f74492b5302cc84b7a5d40cf3e0ce0
9,358
py
Python
data/level/level32.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level32.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level32.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 32, 'move_count': 22, 'board_info': { (0, 0): { 'base': (66, 1), 'prev': (0, -1), 'next': (0, 1), 'fall_point': (0, -1) }, (0, 1): { 'base': (66, 1), 'prev': (0, -1), 'next': (...
22.768856
33
0.192028
62350fe42127bf92a31266336f33173a985c2e41
23,653
py
Python
qnarre/prep/convert/marian.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/marian.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/prep/convert/marian.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2022 Quantapix 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 l...
36.389231
119
0.647994
62351c42238fcefeeb0b9dcbfa38becce92b3a64
3,955
py
Python
alipay/aop/api/request/AlipayDataPrinterStatusGetRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayDataPrinterStatusGetRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayDataPrinterStatusGetRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayDataPrinterStatusGetModel import AlipayDataPrinterStatusGetModel class AlipayDataPrinterStatusGetRequest(object): def __i...
27.275862
148
0.643236
623524a1b5665c4c5d3f0ee6568db926d47f215f
198
py
Python
Exercise_code/100_exercises/list_to_tuple.py
r-martin-/Code_College
e2c8957c05412af188a71266d36b72ab6558440d
[ "MIT" ]
null
null
null
Exercise_code/100_exercises/list_to_tuple.py
r-martin-/Code_College
e2c8957c05412af188a71266d36b72ab6558440d
[ "MIT" ]
null
null
null
Exercise_code/100_exercises/list_to_tuple.py
r-martin-/Code_College
e2c8957c05412af188a71266d36b72ab6558440d
[ "MIT" ]
null
null
null
i = 0 tup1 = () while i < 10: number =input("enter a number") #number = int(number) numbers.append(number) i+=1 # tup1 = numbers.split(',') print(numbers)
8.608696
35
0.510101
62352da224d95a23d1132e3a61a4f6a39c15f286
3,454
py
Python
cov19/country.py
emdemor/modelling-sars-covid19
957df384e9c0017a7c944bd184bf2b0d388c2dc3
[ "MIT" ]
null
null
null
cov19/country.py
emdemor/modelling-sars-covid19
957df384e9c0017a7c944bd184bf2b0d388c2dc3
[ "MIT" ]
null
null
null
cov19/country.py
emdemor/modelling-sars-covid19
957df384e9c0017a7c944bd184bf2b0d388c2dc3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Description ---------- The country object contains information and actions related the countries that are important to understand the Covid dissemination Informations ---------- Author: Eduardo M. de Morais Maintainer: Email: emdemor415@gmail.com ...
29.02521
136
0.610886
623568180372cbdf9a7e7dab6ce7b241215e2e30
838
py
Python
gopatch/domains/admin.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
1
2020-01-15T11:04:16.000Z
2020-01-15T11:04:16.000Z
gopatch/domains/admin.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
2
2021-03-31T19:36:19.000Z
2021-06-10T22:29:26.000Z
gopatch/domains/admin.py
porala/python
41213189a9b35b5b8c40c048f4d6cd3f8e5f25f4
[ "DOC" ]
null
null
null
# Copyright 2012 VPAC, http://www.vpac.org # Copyright 2013-2016 Marcus Furlong <furlongm@gmail.com> # # This file is part of Patchman. # # Patchman 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, version 3 on...
34.916667
70
0.77685
62357078745aa3c1e46e390de1d055d32348f49d
4,637
py
Python
ForgeLink/forgelink/tests/functional/test_root.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
null
null
null
ForgeLink/forgelink/tests/functional/test_root.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
null
null
null
ForgeLink/forgelink/tests/functional/test_root.py
shalithasuranga/allura
4f7fba13415954d07f602a051ec697329dd3706b
[ "Apache-2.0" ]
null
null
null
# 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 (t...
39.974138
81
0.641579
6235c3e00bfd1fb7657a4e6915116878ca8ae485
1,389
py
Python
tests/test_lru.py
nagareproject/sessions-memory
197afa861e9d7fe7617bc55092c693ceb84921ec
[ "BSD-3-Clause" ]
null
null
null
tests/test_lru.py
nagareproject/sessions-memory
197afa861e9d7fe7617bc55092c693ceb84921ec
[ "BSD-3-Clause" ]
null
null
null
tests/test_lru.py
nagareproject/sessions-memory
197afa861e9d7fe7617bc55092c693ceb84921ec
[ "BSD-3-Clause" ]
null
null
null
# -- # Copyright (c) 2008-2021 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. # -- from nagare.sessions import lru_dict def test_no_eviction(): cache = lru_dict.ThreadSafeLR...
22.047619
66
0.510439
6235d1383ec9392edd2d3eb87ea4870528bffc53
28,033
py
Python
syft/frameworks/torch/hook/hook_args.py
abi-aryan/PySyft
3e600704892f285dc504131adb19459af6aa4d8e
[ "Apache-2.0" ]
null
null
null
syft/frameworks/torch/hook/hook_args.py
abi-aryan/PySyft
3e600704892f285dc504131adb19459af6aa4d8e
[ "Apache-2.0" ]
null
null
null
syft/frameworks/torch/hook/hook_args.py
abi-aryan/PySyft
3e600704892f285dc504131adb19459af6aa4d8e
[ "Apache-2.0" ]
null
null
null
import torch import syft as sy from syft.exceptions import RemoteObjectFoundError from syft.exceptions import PureTorchTensorFoundError from syft.exceptions import ResponseSignatureError from syft.frameworks.torch.tensors.interpreters import AutogradTensor from syft.frameworks.torch.tensors.interpreters import Abstrac...
36.837057
158
0.671637
6235e8a5afb8bb1f67741a328d51864ebcbb77d5
1,852
py
Python
setup.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
null
null
null
setup.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
null
null
null
setup.py
vfreex/doozer
8ad0a1234120cdc30890afbbdda1bc40e4a4fc76
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals from setuptools import setup, find_packages import sys if sys.version_info < (3, 6): sys.exit('Sorry, Python < 3.6 is not supported.') with open('./requirements.txt') as f: INSTALL_REQUIRES = f.read().splitlines() ...
34.943396
141
0.647408
6235ebcc38914f472b593bc2809c54630de0949f
5,001
py
Python
mouse_burrows/scripts/detect_dawn.py
david-zwicker/cv-mouse-burrows
906476f49ff9711cd672feca5f70efedaab82b01
[ "BSD-3-Clause" ]
1
2016-03-06T05:16:38.000Z
2016-03-06T05:16:38.000Z
mouse_burrows/scripts/detect_dawn.py
david-zwicker/cv-mouse-burrows
906476f49ff9711cd672feca5f70efedaab82b01
[ "BSD-3-Clause" ]
null
null
null
mouse_burrows/scripts/detect_dawn.py
david-zwicker/cv-mouse-burrows
906476f49ff9711cd672feca5f70efedaab82b01
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2 ''' Created on Nov 26, 2014 @author: David Zwicker <dzwicker@seas.harvard.edu> ''' from __future__ import division from contextlib import closing import sys import os import h5py import numpy as np from scipy import ndimage # add the root of the video-analysis project to the path this_path =...
33.563758
80
0.645871
6235f21c64e2ef211d1827af830aaedf02f32c54
14,410
py
Python
train_roofing_lifting.py
Nyquixt/learnable-triangulation-pytorch
c333370eb75bad5fcc44767d7a9acd8bd718e1ec
[ "MIT" ]
null
null
null
train_roofing_lifting.py
Nyquixt/learnable-triangulation-pytorch
c333370eb75bad5fcc44767d7a9acd8bd718e1ec
[ "MIT" ]
null
null
null
train_roofing_lifting.py
Nyquixt/learnable-triangulation-pytorch
c333370eb75bad5fcc44767d7a9acd8bd718e1ec
[ "MIT" ]
null
null
null
import os import shutil import argparse import time import json from datetime import datetime from collections import defaultdict from itertools import islice import pickle import numpy as np import torch from torch import nn import torch.optim as optim from torch.utils.data import DataLoader from torch.nn.parallel i...
38.945946
218
0.667176
623610c26c412b6a5a6cb5399dcff1b385ea798b
2,011
py
Python
histogram/commands.py
pokey/histogram
1e1a4f86ff4f9a4c1bd27c3654156ddb34ad098f
[ "MIT" ]
null
null
null
histogram/commands.py
pokey/histogram
1e1a4f86ff4f9a4c1bd27c3654156ddb34ad098f
[ "MIT" ]
3
2017-03-31T18:21:32.000Z
2021-03-26T14:08:21.000Z
histogram/commands.py
pokey/histogram
1e1a4f86ff4f9a4c1bd27c3654156ddb34ad098f
[ "MIT" ]
null
null
null
import re from functools import update_wrapper import click import numpy as np import deep_stats.activations.histogram from deep_stats.activations.layer_activations import LayerActivations from deep_stats.config import Config def pass_activations_context(f): """ Used for subcommands of activations to pass c...
23.114943
77
0.655893
62362a94753d223afeceb477265741c7e538e5fa
633
py
Python
test/python/LIM2Metrics/py3/base/common/Facade/Facade.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
20
2015-06-16T17:39:10.000Z
2022-03-20T22:39:40.000Z
test/python/LIM2Metrics/py3/base/common/Facade/Facade.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
29
2015-12-29T19:07:22.000Z
2022-03-22T10:39:02.000Z
test/python/LIM2Metrics/py3/base/common/Facade/Facade.py
sagodiz/SonarQube-plug-in
4f8e111baecc4c9f9eaa5cd3d7ebeb1e365ace2c
[ "BSD-4-Clause" ]
12
2015-08-28T01:22:18.000Z
2021-09-25T08:17:31.000Z
# Complex parts class CPU: def freeze(self): pass def jump(self, position): pass def execute(self): pass class Memory: def load(self, position, data): pass class HardDrive: def read(self, lba, size): pass # Facade class Computer: def __init__(self): self.cpu = CPU() self.me...
21.827586
58
0.619273
6236419bdeb40f94d684b744893b8b30fa7b010c
16,072
bzl
Python
bazel/grpc_build_system.bzl
tomerv/grpc
27662173e750107a4520d5d6972544d67a6a0203
[ "Apache-2.0" ]
5
2019-11-12T04:30:55.000Z
2021-08-11T23:04:12.000Z
bazel/grpc_build_system.bzl
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
9
2021-06-01T23:18:19.000Z
2022-02-22T17:54:02.000Z
bazel/grpc_build_system.bzl
stanley-cheung/grpc
7d6000082a0e79a5307d04454a572a924a4d940d
[ "BSD-3-Clause" ]
2
2021-09-13T15:17:48.000Z
2022-02-04T21:54:39.000Z
# Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
32.600406
284
0.579517
623671d27209ea5ffc0c19284726042c6888023a
1,347
py
Python
thriftrw/__init__.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
40
2016-02-18T18:01:23.000Z
2022-03-31T10:34:33.000Z
thriftrw/__init__.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
56
2016-02-10T16:51:07.000Z
2020-02-07T05:28:49.000Z
thriftrw/__init__.py
albertyw/thriftrw-python
22f6ab645f5af48cae2fee0dc1431dfacb971348
[ "MIT" ]
12
2016-03-29T17:29:28.000Z
2021-10-30T14:36:39.000Z
# Copyright (c) 2016 Uber Technologies, Inc. # # 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, publ...
39.617647
79
0.770601
6236855d110e762c9b33f8962ce9b2a35d0ede3a
678
py
Python
ur_d435_ws/build/realsense-ros/realsense2_camera/catkin_generated/pkg.develspace.context.pc.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
null
null
null
ur_d435_ws/build/realsense-ros/realsense2_camera/catkin_generated/pkg.develspace.context.pc.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
4
2020-05-07T13:31:11.000Z
2020-06-09T00:14:08.000Z
ur_d435_ws/build/realsense-ros/realsense2_camera/catkin_generated/pkg.develspace.context.pc.py
filesmuggler/husky_simulation
2c45f27b5b15fce6171dcae2b7060dfcc8b0bb72
[ "MIT" ]
1
2021-03-06T07:02:51.000Z
2021-03-06T07:02:51.000Z
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/krzysztof/Repos/husky_simulation/ur_d435_ws/devel/include".split(';') if "/home/krzysztof/Repos/husky_simulation/ur_d435_ws/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;...
75.333333
193
0.79941
623686164853750fccf05eddb631f843e7c2084a
985
py
Python
sdks/python/test/test_GDPRPurgeVerifyResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
null
null
null
sdks/python/test/test_GDPRPurgeVerifyResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
6
2019-10-23T06:38:53.000Z
2022-01-22T07:57:58.000Z
sdks/python/test/test_GDPRPurgeVerifyResponse.py
Brantone/appcenter-sdks
eeb063ecf79908b6e341fb00196d2cd9dc8f3262
[ "MIT" ]
2
2019-10-23T06:31:05.000Z
2021-08-21T17:32:47.000Z
# coding: utf-8 """ App Center Client Microsoft Visual Studio App Center API # noqa: E501 OpenAPI spec version: preview Contact: benedetto.abbenanti@gmail.com Project Repository: https://github.com/b3nab/appcenter-sdks """ from __future__ import absolute_import import unittest import appcente...
24.625
105
0.736041
6236877c81f229c0c0393a22f534033d4c4f61e4
4,174
py
Python
catalyst/contrib/models/cv/segmentation/core.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
2
2021-02-22T12:15:41.000Z
2021-05-02T15:22:24.000Z
catalyst/contrib/models/cv/segmentation/core.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/models/cv/segmentation/core.py
balakhonoff/catalyst
82d904aee97045efbaef3963e36c2ce5173ddac4
[ "Apache-2.0" ]
1
2018-12-21T15:56:21.000Z
2018-12-21T15:56:21.000Z
from typing import Dict, List, Union from pathlib import Path import torch from torch import nn from .bridge import BridgeSpec from .decoder import DecoderSpec from .encoder import EncoderSpec, ResnetEncoder, UnetEncoder from .head import HeadSpec class UnetMetaSpec(nn.Module): """@TODO: Docs. Contribution is w...
29.188811
76
0.594154
6236a0ce5eba4f4755057d93fc41189450fdc693
304
py
Python
setup.py
abostroem/utilities
d43df81910116b0cf50b74619fc88c613d9f9434
[ "BSD-3-Clause" ]
null
null
null
setup.py
abostroem/utilities
d43df81910116b0cf50b74619fc88c613d9f9434
[ "BSD-3-Clause" ]
null
null
null
setup.py
abostroem/utilities
d43df81910116b0cf50b74619fc88c613d9f9434
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='utilities_az', version='0.1dev', description='utilities functions and classes for astronomical analysis', author='K. Azalee Bostroem', author_email='abostroem@gmail.com', packages=['utilities_az'], )
27.636364
78
0.684211
6236c4973e260191a1f9a438e4ff44c4d674587c
387
py
Python
tauto/wsgi.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
null
null
null
tauto/wsgi.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
6
2021-03-19T16:01:33.000Z
2022-03-12T00:54:23.000Z
tauto/wsgi.py
weirdaze/tauto
e5a635628cd92998212cf3ae74aef2f0436430f5
[ "MIT" ]
null
null
null
""" WSGI config for tauto project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
6236c8e2c0167a737d0f2208daa6916b4d4c4837
1,257
py
Python
tests/test_crypto.py
lilac/WeRobot
29fd70631b736a0c339f16f7729ea89f986c8bae
[ "MIT" ]
2
2018-06-03T16:32:07.000Z
2018-06-03T16:32:10.000Z
tests/test_crypto.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
null
null
null
tests/test_crypto.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
1
2020-11-01T16:35:32.000Z
2020-11-01T16:35:32.000Z
# -*- coding: utf-8 -*- from werobot.crypto import PrpCrypto, MessageCrypt from werobot.utils import generate_token, to_binary, to_text from werobot.parser import parse_xml import time def test_prpcrypto(): key = "ReUrr0NKeHkppBQq" assert len(key) == 16 crypto = PrpCrypto(key) text = generate_token...
31.425
62
0.616547
6237851f74005f074a9b684d03240d3761121776
1,941
py
Python
examples/linear_elasticity/linear_elastic_iga.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
510
2015-01-19T16:22:25.000Z
2022-03-30T19:02:51.000Z
examples/linear_elasticity/linear_elastic_iga.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
402
2015-01-22T10:57:50.000Z
2022-03-30T15:19:23.000Z
examples/linear_elasticity/linear_elastic_iga.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
156
2015-01-05T14:23:38.000Z
2022-03-22T13:08:30.000Z
r""" Linear elasticity solved in a single patch NURBS domain using the isogeometric analysis (IGA) approach. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) = 0 \;, \quad \forall \ul{v} \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl}+\delta_...
22.056818
100
0.561566
62378e64530b71791cbe0877fcf2b34bff09ce17
41,922
py
Python
Publication/DONE_brooms_MJ99_Argentina.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
2
2018-12-05T07:43:39.000Z
2018-12-05T07:43:42.000Z
Publication/DONE_brooms_MJ99_Argentina.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
Publication/DONE_brooms_MJ99_Argentina.py
sergpolly/Thermal_adapt_scripts
faca767209dc7fa66f35b4738dcdd1b7d3bbac93
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib as mpl import subprocess as sub import pandas as pd import numpy as np import sys import re import os import scipy.stats as st from matplotlib.ticker import MaxNLocator from matplotlib.patches import ConnectionPatch from matplotlib.patches import Rectangle import sci...
38.566697
217
0.616812
623798f9e3df0cf166fe99220d6ab654069cf7f5
1,843
py
Python
carla/recourse_methods/autoencoder/losses/losses.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
140
2021-08-03T21:53:32.000Z
2022-03-20T08:52:02.000Z
carla/recourse_methods/autoencoder/losses/losses.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
54
2021-03-07T18:22:16.000Z
2021-08-03T12:06:31.000Z
carla/recourse_methods/autoencoder/losses/losses.py
jayanthyetukuri/CARLA
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
[ "MIT" ]
16
2021-08-23T12:14:58.000Z
2022-03-01T00:52:58.000Z
import numpy as np import tensorflow as tf import torch import torch.distributions as dists from keras import backend as K from torch import nn def binary_crossentropy(y_true: np.ndarray, y_pred: np.ndarray) -> np.ndarray: return K.sum(K.binary_crossentropy(y_true, y_pred), axis=-1) def mse(y_true: np.ndarray, ...
26.328571
80
0.619642
6237a55f6396cab0f5f29ee935c464f21bd049d3
4,464
py
Python
Principles_of_Computing/2048.py
w3-3w/trash-py
513fa19ef1344bb17f9ae749cdde79a4846ca339
[ "MIT" ]
null
null
null
Principles_of_Computing/2048.py
w3-3w/trash-py
513fa19ef1344bb17f9ae749cdde79a4846ca339
[ "MIT" ]
null
null
null
Principles_of_Computing/2048.py
w3-3w/trash-py
513fa19ef1344bb17f9ae749cdde79a4846ca339
[ "MIT" ]
null
null
null
""" Clone of 2048 game. """ import poc_2048_gui import random as r # Directions, DO NOT MODIFY UP = 1 DOWN = 2 LEFT = 3 RIGHT = 4 # Offsets for computing tile indices in each direction. # DO NOT MODIFY this dictionary. OFFSETS = {UP: (1, 0), DOWN: (-1, 0), LEFT: (0, 1), RIGHT: (0, -1...
28.8
112
0.491711
6237adfca330488fb31320b46d6ec15327e5c293
1,563
py
Python
werobot/messages/messages.py
lilac/WeRobot
29fd70631b736a0c339f16f7729ea89f986c8bae
[ "MIT" ]
2
2018-06-03T16:32:07.000Z
2018-06-03T16:32:10.000Z
werobot/messages/messages.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
9
2020-06-05T19:51:33.000Z
2022-03-11T23:40:25.000Z
werobot/messages/messages.py
Milleree/WeRoBot
f9777f792d55ae70e7262f13e6e3f3667a167036
[ "MIT" ]
1
2020-11-01T16:35:32.000Z
2020-11-01T16:35:32.000Z
# -*- coding: utf-8 -*- import six from werobot.messages.entries import StringEntry, IntEntry, FloatEntry from werobot.messages.base import WeRoBotMetaClass class MessageMetaClass(WeRoBotMetaClass): pass @six.add_metaclass(MessageMetaClass) class WeChatMessage(object): message_id = IntEntry('MsgId', 0) ...
23.328358
70
0.707614
6237b0a9d073f614a78d08ab6693b30cacaa1c38
6,677
py
Python
src/rubrix/sdk/models/token_classification_record.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/token_classification_record.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
src/rubrix/sdk/models/token_classification_record.py
sakares/rubrix
791ffb29815b5d24f2bbbb0fa422f85f8b30098f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2021-present, the Recognai S.L. team. # # 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 ...
35.515957
82
0.654036
6237bad86ebde6d6ddfbaae6c4356a3d3bb5c3ab
4,475
py
Python
comparison.py
LoganK/snow
bace2df4e71ccf6a25e024836d3c6d915493ea40
[ "MIT" ]
null
null
null
comparison.py
LoganK/snow
bace2df4e71ccf6a25e024836d3c6d915493ea40
[ "MIT" ]
3
2021-10-13T21:27:15.000Z
2021-10-21T19:13:37.000Z
comparison.py
LoganK/snow
bace2df4e71ccf6a25e024836d3c6d915493ea40
[ "MIT" ]
1
2021-11-30T10:24:27.000Z
2021-11-30T10:24:27.000Z
#!/usr/bin/env python3 """ How to run ========== This script has two purposes: 1. remove false positives from scan results. run with -r and the required commands. 2. compare two scans and only keep new results run with -c and the required commands. """ import json import argparse import os d...
29.635762
95
0.642235
6237bb86756e5164998a722c6ab20a5430f4b08f
1,567
py
Python
hiicart/tests/google.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
hiicart/tests/google.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
5
2020-10-29T01:05:05.000Z
2020-10-29T01:05:19.000Z
hiicart/tests/google.py
kbourgoin/hiicart
151d64be60ffa5e09b4abc21bf42fd235bf87eea
[ "MIT" ]
null
null
null
import base from datetime import datetime, date, timedelta from decimal import Decimal from django.conf import settings from django.contrib.auth.models import User from hiicart.models import HiiCart, LineItem, RecurringLineItem class GoogleCheckoutTestCase(base.HiiCartTestCase): """Google Checkout related tests"...
38.219512
75
0.683472