hexsha stringlengths 40 40 | size int64 5 2.06M | ext stringclasses 11
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 251 | max_stars_repo_name stringlengths 4 130 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 251 | max_issues_repo_name stringlengths 4 130 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 251 | max_forks_repo_name stringlengths 4 130 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.05M | avg_line_length float64 1 1.02M | max_line_length int64 3 1.04M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa5091c977e174a89ee327dd53969b51dbce3e17 | 3,436 | py | Python | Development/NASTRAN TRANSLATOR.py | toni-lv/AeroComBAT2 | 6633ebd586570ea53d130748dcdf16f31840f84a | [
"MIT"
] | 2 | 2020-05-19T08:41:20.000Z | 2021-04-05T13:17:34.000Z | Development/NASTRAN TRANSLATOR.py | toni-lv/AeroComBAT2 | 6633ebd586570ea53d130748dcdf16f31840f84a | [
"MIT"
] | null | null | null | Development/NASTRAN TRANSLATOR.py | toni-lv/AeroComBAT2 | 6633ebd586570ea53d130748dcdf16f31840f84a | [
"MIT"
] | 1 | 2022-03-25T12:39:58.000Z | 2022-03-25T12:39:58.000Z | from pyNastran.bdf.bdf import BDF
model = BDF()
model.is_nx = True
section = 5
#filename = r'D:\SNC IAS\01 - FAST Program\05 - Modified Sections\01 - AeroComBAT Files\section_{}.dat'.format(section)
filename = r'C:\Users\benna\Desktop\Work Temp\SNC\FAST\SIMPLE_SECTIONS\CTRIA6_1_100.dat'
model.read_bdf(filename, xref=T... | 34.707071 | 119 | 0.563155 |
fa50b1c117a73b73cdb56047b0035eccafe1e85c | 343 | py | Python | project-a/labels.py | achon22/cs231nLung | 37a1d46a36f737a8d8461f7ef9237f818a74493f | [
"MIT"
] | 2 | 2018-05-06T12:45:03.000Z | 2019-03-31T07:01:41.000Z | project-a/labels.py | achon22/cs231nLung | 37a1d46a36f737a8d8461f7ef9237f818a74493f | [
"MIT"
] | null | null | null | project-a/labels.py | achon22/cs231nLung | 37a1d46a36f737a8d8461f7ef9237f818a74493f | [
"MIT"
] | 1 | 2018-05-06T12:56:05.000Z | 2018-05-06T12:56:05.000Z | #!/usr/bin/env python
if __name__ == '__main__':
main() | 16.333333 | 32 | 0.586006 |
fa518d531da2342c26be802a278f2c4aacb9c1db | 242 | py | Python | 03/code/Node.py | libchaos/algorithm-python | 9d5635e19c58c75bf1f14a3fba9d7340f77df863 | [
"MIT"
] | 2 | 2018-03-14T21:57:10.000Z | 2019-07-18T08:47:28.000Z | 03/code/Node.py | libchaos/algorithm-python | 9d5635e19c58c75bf1f14a3fba9d7340f77df863 | [
"MIT"
] | null | null | null | 03/code/Node.py | libchaos/algorithm-python | 9d5635e19c58c75bf1f14a3fba9d7340f77df863 | [
"MIT"
] | 2 | 2018-06-20T14:56:31.000Z | 2022-02-15T05:27:11.000Z | #!/usr/bin/env python
#coding: utf-8
if __name__ == "__main__":
n1 = Node(1, None)
n2 = Node(2, None)
n1.next = n2
| 14.235294 | 45 | 0.566116 |
fa53434fce13f8d24606feb5ccc693b179203f59 | 8,493 | py | Python | mc/history/History.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2021-04-29T05:36:44.000Z | 2021-04-29T05:36:44.000Z | mc/history/History.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2020-03-28T17:43:18.000Z | 2020-03-28T17:43:18.000Z | mc/history/History.py | zy-sunshine/falkon-pyqt5 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | [
"MIT"
] | 1 | 2021-01-15T20:09:24.000Z | 2021-01-15T20:09:24.000Z | from PyQt5.Qt import QObject
from PyQt5.Qt import QDateTime
from PyQt5.Qt import QUrl
from PyQt5.Qt import pyqtSignal
from mc.app.Settings import Settings
from calendar import month_name
from .HistoryModel import HistoryModel
from mc.common.models import HistoryDbModel
from mc.common.models import IconsDbModel
from mc.... | 31.690299 | 103 | 0.566231 |
fa5457d3656080bf562008a41abeb2ddba3062a6 | 1,184 | py | Python | pkg/iface/__init__.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null | pkg/iface/__init__.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null | pkg/iface/__init__.py | ToraNova/rapidflask | f42354b296659dac5be904d7bb68076b9458f79a | [
"MIT"
] | null | null | null |
from flask_socketio import send, emit
from pkg.system.servlog import srvlog
#----------------------------------------------------------------------------------------
# External calls
# introduced u7
# The livelog functions allows other functions which are not registered with
# socketio to emit a message.
# Generalizat... | 39.466667 | 89 | 0.588682 |
fa5755c213e58345d8c0de7794177a485cfa6195 | 5,322 | py | Python | Co-Simulation/Sumo/run_tracis_synchronization.py | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/run_tracis_synchronization.py | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/run_tracis_synchronization.py | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | # coding: utf-8
import argparse
import logging
import os
import sys
from util.func import (
data_from_json,
)
if 'SUMO_HOME' in os.environ:
sys.path.append(os.path.join(os.environ['SUMO_HOME'], 'tools'))
import traci
else:
sys.exit("Please declare environment variable 'SUMO_HOME'")
# ----- GLOBAL_VA... | 34.335484 | 153 | 0.599211 |
fa57681709017fbba645c042551e1a13aa15f233 | 2,977 | py | Python | web/flask.py | ponyatov/metaLpy | 96149313e8083536ade1c331825242f6996f05b3 | [
"MIT"
] | null | null | null | web/flask.py | ponyatov/metaLpy | 96149313e8083536ade1c331825242f6996f05b3 | [
"MIT"
] | null | null | null | web/flask.py | ponyatov/metaLpy | 96149313e8083536ade1c331825242f6996f05b3 | [
"MIT"
] | null | null | null | ## @file
## @defgroup flask flask
## @brief minimized Flask-based backend
## @ingroup web
import config
from core.env import *
from core.io import Dir
from .web import Web
from core.meta import Module
from core.time import *
from gen.js import jsFile
from gen.s import S
from web.html import htmlFile
import os, re
... | 27.311927 | 87 | 0.570037 |
fa585adced0045c21720dece6bf4df472dd95491 | 2,038 | py | Python | setup.py | iamsrp/pyfestival | 0c750d1874f9d065e6099ec69fd241e03f199fec | [
"BSD-2-Clause"
] | 8 | 2016-02-13T20:23:11.000Z | 2021-11-24T02:09:29.000Z | setup.py | iamsrp/pyfestival | 0c750d1874f9d065e6099ec69fd241e03f199fec | [
"BSD-2-Clause"
] | 11 | 2016-08-05T07:06:37.000Z | 2021-08-29T17:06:07.000Z | setup.py | iamsrp/pyfestival | 0c750d1874f9d065e6099ec69fd241e03f199fec | [
"BSD-2-Clause"
] | 21 | 2015-03-29T02:19:40.000Z | 2021-11-24T02:09:32.000Z | #!/usr/bin/env python
from distutils.core import setup, Extension
from distutils.util import get_platform
import os
festival_include = os.environ.get("FESTIVAL_INCLUDE", '/usr/include/festival')
speech_tools_include = os.environ.get("SPECCH_INCLUDE", '/usr/include/speech_tools')
festival_lib = os.environ.get("FESTIVAL... | 33.409836 | 113 | 0.695289 |
fa59234ee5465427ecc4262b967741db7cd1ff69 | 838 | py | Python | main.py | jhkloss/libg3n_parsing_notebook | e7afef1cc0baf777df334350e967a5d1873998e2 | [
"Unlicense"
] | null | null | null | main.py | jhkloss/libg3n_parsing_notebook | e7afef1cc0baf777df334350e967a5d1873998e2 | [
"Unlicense"
] | null | null | null | main.py | jhkloss/libg3n_parsing_notebook | e7afef1cc0baf777df334350e967a5d1873998e2 | [
"Unlicense"
] | null | null | null |
from parse_manual.parser import parse as parse_manual
from parse_pyparsing.parser import parse as parse_pyparsing
from parse_yaml.parser import parse as parse_yaml
from parse_xml.parser import parse as parse_xml
from timer.PerformanceTimer import PerformanceTimer
# Manual Parsing
manual_timer = PerformanceTimer('Man... | 29.928571 | 67 | 0.826969 |
fa5eb07c8e71475d3547c240435a4985faf8004b | 3,152 | py | Python | src/test/python/apache/aurora/client/test_base.py | wfarner/aurora | 68447b3852d47e8e5f97b8a8df873ca13ab716e0 | [
"Apache-2.0"
] | null | null | null | src/test/python/apache/aurora/client/test_base.py | wfarner/aurora | 68447b3852d47e8e5f97b8a8df873ca13ab716e0 | [
"Apache-2.0"
] | null | null | null | src/test/python/apache/aurora/client/test_base.py | wfarner/aurora | 68447b3852d47e8e5f97b8a8df873ca13ab716e0 | [
"Apache-2.0"
] | null | null | null | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | 38.91358 | 100 | 0.716688 |
fa5edf57ae9919a788f538f6d462693bbb54ecba | 23,204 | py | Python | ms_deisotope/data_source/_vendor/AgilentD.py | mobiusklein/ms_deisotope | 5b05b40b3f75ace38d03b823499ea3ebc74efad4 | [
"Apache-2.0"
] | 18 | 2017-09-01T12:26:12.000Z | 2022-02-23T02:31:29.000Z | ms_deisotope/data_source/_vendor/AgilentD.py | mobiusklein/ms_deisotope | 5b05b40b3f75ace38d03b823499ea3ebc74efad4 | [
"Apache-2.0"
] | 19 | 2017-03-12T20:40:36.000Z | 2022-03-31T22:50:47.000Z | ms_deisotope/data_source/_vendor/AgilentD.py | mobiusklein/ms_deisotope | 5b05b40b3f75ace38d03b823499ea3ebc74efad4 | [
"Apache-2.0"
] | 14 | 2016-05-06T02:25:30.000Z | 2022-03-31T14:40:06.000Z | import os
import glob
import warnings
import logging
from collections import deque
from six import string_types as basestring
from lxml import etree
try:
log = logging.getLogger(os.path.basename(__file__))
except Exception:
log = None
from collections import OrderedDict, defaultdict
from weakref import WeakV... | 31.146309 | 98 | 0.616704 |
fa5f942835d516a7601b80f50c40625787b25076 | 12,080 | py | Python | prospector/client/cli/prospector_client.py | pombredanne/vulnerability-assessment-kb | 3a32e3eea5413b7acd6ac70a6cba46ccc84e83d2 | [
"Apache-2.0"
] | 41 | 2019-02-21T03:27:21.000Z | 2020-06-04T13:39:52.000Z | prospector/client/cli/prospector_client.py | pombredanne/vulnerability-assessment-kb | 3a32e3eea5413b7acd6ac70a6cba46ccc84e83d2 | [
"Apache-2.0"
] | 3 | 2019-02-28T19:07:34.000Z | 2020-05-18T19:34:28.000Z | prospector/client/cli/prospector_client.py | pombredanne/vulnerability-assessment-kb | 3a32e3eea5413b7acd6ac70a6cba46ccc84e83d2 | [
"Apache-2.0"
] | 32 | 2019-02-26T16:09:35.000Z | 2020-05-30T13:47:40.000Z | import logging
import sys
from datetime import datetime
import requests
from tqdm import tqdm
import log
from datamodel.advisory import AdvisoryRecord
from datamodel.commit import Commit
from filtering.filter import filter_commits
from git.git import GIT_CACHE, Git
from git.version_to_tag import get_tag_for_version
f... | 38.842444 | 125 | 0.59048 |
fa5fa0507088e412dac0381129f186b5aaf9c2d7 | 34 | py | Python | masteronly.py | mbs5mz/cs3240-labdemo | bc6f04f136686394248e6629aeba0cd3bed7770f | [
"MIT"
] | null | null | null | masteronly.py | mbs5mz/cs3240-labdemo | bc6f04f136686394248e6629aeba0cd3bed7770f | [
"MIT"
] | null | null | null | masteronly.py | mbs5mz/cs3240-labdemo | bc6f04f136686394248e6629aeba0cd3bed7770f | [
"MIT"
] | null | null | null | print("This is the master branch") | 34 | 34 | 0.764706 |
fa601fe1d2a43b58da3a5908f30d4dd1e67e4207 | 2,507 | py | Python | pyethereum/config.py | CJentzsch/pyethereum | 35c67e28ea1279b63ac40f3a987a741d6d994022 | [
"MIT"
] | null | null | null | pyethereum/config.py | CJentzsch/pyethereum | 35c67e28ea1279b63ac40f3a987a741d6d994022 | [
"MIT"
] | null | null | null | pyethereum/config.py | CJentzsch/pyethereum | 35c67e28ea1279b63ac40f3a987a741d6d994022 | [
"MIT"
] | 2 | 2020-09-09T20:01:12.000Z | 2021-09-01T15:47:10.000Z |
import os
import uuid
import StringIO
import ConfigParser
from pyethereum.utils import data_dir
from pyethereum.packeter import Packeter
from pyethereum.utils import sha3
config_template = \
"""
# NETWORK OPTIONS ###########
[network]
# Connect to remote host/port
# poc-6.ethdev.com:30300
remote_host = 207.12.89.1... | 21.991228 | 75 | 0.70004 |
fa60dfbb5a27f65a90d0edd2f3424a73f6bf1539 | 290 | py | Python | sb_backend/app/service/setup/service_noseriesline.py | DmitriyGrigoriev/sb-fastapi | 1aef3db6ce26ea054e048e5927552d48c2eccbfb | [
"MIT"
] | null | null | null | sb_backend/app/service/setup/service_noseriesline.py | DmitriyGrigoriev/sb-fastapi | 1aef3db6ce26ea054e048e5927552d48c2eccbfb | [
"MIT"
] | null | null | null | sb_backend/app/service/setup/service_noseriesline.py | DmitriyGrigoriev/sb-fastapi | 1aef3db6ce26ea054e048e5927552d48c2eccbfb | [
"MIT"
] | null | null | null | from sqlmodel import SQLModel
from sb_backend.app.service.base.base_service import ServiceBase
from sb_backend.app.crud.setup.crud_noseriesline import CRUDBase, noseriesline
noseriesline_s = ServiceBase(noseriesline)
| 32.222222 | 78 | 0.841379 |
fa610e2a204d0b2414477f21c38684441a0652cb | 543 | py | Python | AllSpiders/00_Spider/29_js2.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | null | null | null | AllSpiders/00_Spider/29_js2.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | null | null | null | AllSpiders/00_Spider/29_js2.py | GongkunJiang/MySpider | 8c088f696679b13568843af521279f9f25f40314 | [
"MIT"
] | null | null | null | # coding=utf-8
from selenium import webdriver
import time
driver = webdriver.PhantomJS(executable_path=r'E:\Documents\Apps\phantomjs-2.1.1-windows\bin\phantomjs.exe')
driver.get("https://movie.douban.com/typerank?type_name=&type=11&interval_id=100:90&action=")
# 10000
js = "document.body.scrollTop=10000"
#js="var q=... | 22.625 | 108 | 0.782689 |
fa6414e49146863505731712674d2bc44a0b263b | 113 | py | Python | pony/orm/tests/test_f_strings.py | luckydonald/pony | e733f14ef4e21514b49248b7b72aae0728029852 | [
"Apache-2.0"
] | 2,628 | 2015-01-02T17:55:28.000Z | 2022-03-31T10:36:42.000Z | pony/orm/tests/test_f_strings.py | luckydonald/pony | e733f14ef4e21514b49248b7b72aae0728029852 | [
"Apache-2.0"
] | 525 | 2015-01-03T20:30:08.000Z | 2022-03-23T12:30:01.000Z | pony/orm/tests/test_f_strings.py | luckydonald/pony | e733f14ef4e21514b49248b7b72aae0728029852 | [
"Apache-2.0"
] | 256 | 2015-01-02T17:55:31.000Z | 2022-03-20T17:01:37.000Z | from sys import version_info
if version_info[:2] >= (3, 6):
from pony.orm.tests.py36_test_f_strings import * | 28.25 | 52 | 0.734513 |
fa64885ad634e2c117f27b9037fa2f92f06d7384 | 1,042 | py | Python | setup.py | hoosiki/notion-as-db | cd7ef9b26b4eb86e1e7fcb7b48053cb361cb9710 | [
"BSD-2-Clause"
] | null | null | null | setup.py | hoosiki/notion-as-db | cd7ef9b26b4eb86e1e7fcb7b48053cb361cb9710 | [
"BSD-2-Clause"
] | null | null | null | setup.py | hoosiki/notion-as-db | cd7ef9b26b4eb86e1e7fcb7b48053cb361cb9710 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup
with open('README.md') as readme_file:
readme = readme_file.read()
install_requireent = []
setup_requires = [
'pandas',
'config2',
... | 23.681818 | 120 | 0.675624 |
fa65b4e9e09e4d5ff6693e3667dc5ce68e121420 | 435 | py | Python | python/alejo/hackerrank_contact_list.py | alejodeveloper/algorithms-practices | 55c2f388c9b37f0f48bcc946045d4a6d75589e6f | [
"MIT"
] | null | null | null | python/alejo/hackerrank_contact_list.py | alejodeveloper/algorithms-practices | 55c2f388c9b37f0f48bcc946045d4a6d75589e6f | [
"MIT"
] | 1 | 2020-04-29T19:33:15.000Z | 2020-04-29T19:33:15.000Z | python/alejo/hackerrank_contact_list.py | alejodeveloper/algorithms-practices | 55c2f388c9b37f0f48bcc946045d4a6d75589e6f | [
"MIT"
] | null | null | null | import sys
from collections import defaultdict
sys.stdin.readline()
my_results = defaultdict(int)
for line in sys.stdin.readlines():
operation, contact = line.strip().split(' ')
if operation == 'add':
map(add_contact, contact)
else:
print(my_results[contact])
| 18.913043 | 48 | 0.666667 |
fa66baebed871b04ea5017870ffe52df882a7abb | 10,658 | py | Python | stacker_blueprints/asg.py | aengelas/stacker_blueprints | 70131511714a5a3595ee56b7d6ea569ff41aa3b6 | [
"BSD-2-Clause"
] | 43 | 2015-12-30T13:47:57.000Z | 2020-12-05T00:36:57.000Z | stacker_blueprints/asg.py | aengelas/stacker_blueprints | 70131511714a5a3595ee56b7d6ea569ff41aa3b6 | [
"BSD-2-Clause"
] | 87 | 2015-12-22T23:00:43.000Z | 2019-07-25T15:27:11.000Z | stacker_blueprints/asg.py | aengelas/stacker_blueprints | 70131511714a5a3595ee56b7d6ea569ff41aa3b6 | [
"BSD-2-Clause"
] | 40 | 2016-01-25T12:27:38.000Z | 2020-12-28T14:48:22.000Z | import copy
from troposphere import (
Ref, FindInMap, Not, Equals, And, Condition, Join, ec2, autoscaling,
If, GetAtt, Output
)
from troposphere import elasticloadbalancing as elb
from troposphere.autoscaling import Tag as ASTag
from troposphere.route53 import RecordSetType
from stacker.blueprints.base import... | 37.396491 | 78 | 0.561644 |
fa6881de69c9929008a699b6ce522f86648d2221 | 403 | py | Python | input/migrations/0016_auto_20190524_0055.py | JianaXu/productivity | f7478ce2f154538185f071d58a0e4a2cc0b17ee8 | [
"bzip2-1.0.6"
] | null | null | null | input/migrations/0016_auto_20190524_0055.py | JianaXu/productivity | f7478ce2f154538185f071d58a0e4a2cc0b17ee8 | [
"bzip2-1.0.6"
] | 10 | 2019-05-15T06:25:36.000Z | 2022-02-10T08:46:38.000Z | input/migrations/0016_auto_20190524_0055.py | JianaXu/productivity | f7478ce2f154538185f071d58a0e4a2cc0b17ee8 | [
"bzip2-1.0.6"
] | 1 | 2019-05-21T03:01:48.000Z | 2019-05-21T03:01:48.000Z | # Generated by Django 2.1.1 on 2019-05-24 00:55
from django.db import migrations, models
| 21.210526 | 55 | 0.57072 |
fa6b5b623f434c261ce5c85dbe3b4296800991aa | 3,038 | py | Python | tools/decompiler/basicblock.py | miniupnp/sundog | eb48447d1791e8bbd9ce4afe872a541dc67fcca1 | [
"MIT"
] | 54 | 2017-01-31T08:14:04.000Z | 2022-03-18T23:26:35.000Z | tools/decompiler/basicblock.py | miniupnp/sundog | eb48447d1791e8bbd9ce4afe872a541dc67fcca1 | [
"MIT"
] | 9 | 2018-02-25T15:28:55.000Z | 2021-10-15T14:29:44.000Z | tools/decompiler/basicblock.py | miniupnp/sundog | eb48447d1791e8bbd9ce4afe872a541dc67fcca1 | [
"MIT"
] | 13 | 2017-01-29T12:38:26.000Z | 2021-12-22T23:57:35.000Z | # Copyright (c) 2017 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import opcodes
####### Basic blocks ########
def find_basic_blocks(proc, dseg, proclist, debug=False):
'''
Perform control flow... | 31.645833 | 89 | 0.618828 |
fa6e2940900591d9470ba01c2dd2e48f3b5615c8 | 1,136 | py | Python | data-pipeline/src/data_pipeline/datasets/exac/exac_regional_missense_constraint.py | broadinstitute/gnomadjs | 00da72cdc2cb0753f822c51456ec15147c024a1d | [
"MIT"
] | 38 | 2018-02-24T02:33:52.000Z | 2020-03-03T23:17:04.000Z | data-pipeline/src/data_pipeline/datasets/exac/exac_regional_missense_constraint.py | broadinstitute/gnomadjs | 00da72cdc2cb0753f822c51456ec15147c024a1d | [
"MIT"
] | 385 | 2018-02-21T16:53:13.000Z | 2020-03-04T00:52:40.000Z | data-pipeline/src/data_pipeline/datasets/exac/exac_regional_missense_constraint.py | broadinstitute/gnomadjs | 00da72cdc2cb0753f822c51456ec15147c024a1d | [
"MIT"
] | 13 | 2020-05-01T13:03:54.000Z | 2022-02-28T13:12:57.000Z | import hail as hl
| 29.894737 | 115 | 0.601232 |
fa6ed198a2d394bfc16d45930d5a58eda8c180fc | 2,426 | py | Python | smokey/ranger/ranger.py | godatadriven/hdp-smokey | b60c6941d77b66b4f84747d5fe10c972db88f7f7 | [
"Apache-2.0"
] | 1 | 2018-02-11T14:05:06.000Z | 2018-02-11T14:05:06.000Z | smokey/ranger/ranger.py | godatadriven/hdp-smokey | b60c6941d77b66b4f84747d5fe10c972db88f7f7 | [
"Apache-2.0"
] | null | null | null | smokey/ranger/ranger.py | godatadriven/hdp-smokey | b60c6941d77b66b4f84747d5fe10c972db88f7f7 | [
"Apache-2.0"
] | 1 | 2021-01-29T18:08:53.000Z | 2021-01-29T18:08:53.000Z | import os
import logging
import requests
import ambari.api as api
from utils.utils import logmethodcall
| 38.507937 | 116 | 0.640148 |
fa6fa5a701f70f4832c2cbf824364381684d1511 | 4,567 | py | Python | tests/player_state_test.py | the-gigi/dominion | 2bccad2e51a574c881372d32819e2e3049d93e78 | [
"MIT"
] | 2 | 2020-04-16T03:21:25.000Z | 2022-01-15T18:24:08.000Z | tests/player_state_test.py | the-gigi/dominion | 2bccad2e51a574c881372d32819e2e3049d93e78 | [
"MIT"
] | 36 | 2020-07-03T04:42:50.000Z | 2020-07-05T18:30:57.000Z | tests/player_state_test.py | the-gigi/dominion | 2bccad2e51a574c881372d32819e2e3049d93e78 | [
"MIT"
] | null | null | null | import unittest
from dominion_game_engine.card_util import *
from dominion_game_engine.cards import *
from dominion_game_engine.player_state import PlayerState
if __name__ == '__main__':
unittest.main()
| 38.378151 | 99 | 0.662798 |
fa7021d6098d58c035a0d3dad7302d599a66813a | 923 | py | Python | setup.py | hyong/mercury-python | b93806926253497e5af3a9578078f523a7b1eb8e | [
"Apache-2.0"
] | null | null | null | setup.py | hyong/mercury-python | b93806926253497e5af3a9578078f523a7b1eb8e | [
"Apache-2.0"
] | null | null | null | setup.py | hyong/mercury-python | b93806926253497e5af3a9578078f523a7b1eb8e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
setup(name='mercury',
version='1.12.9',
description='Python Language pack for Mercury',
author='Eric Law',
author_email='eric.law@accenture.com',
url='https://github.com/Accenture/mercury-python',
project_ur... | 32.964286 | 66 | 0.588299 |
fa71facc34b7918ebfa76bd5b5238004818e6414 | 926 | py | Python | nailgun/nailgun/notifier.py | Zipfer/fuel-web | c6c4032eb6e29474e2be0318349265bdb566454c | [
"Apache-2.0"
] | 1 | 2021-04-06T16:13:35.000Z | 2021-04-06T16:13:35.000Z | nailgun/nailgun/notifier.py | Zipfer/fuel-web | c6c4032eb6e29474e2be0318349265bdb566454c | [
"Apache-2.0"
] | null | null | null | nailgun/nailgun/notifier.py | Zipfer/fuel-web | c6c4032eb6e29474e2be0318349265bdb566454c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 33.071429 | 78 | 0.684665 |
fa7209a12d727d51c6c0d529030ddf8254ae67ef | 316,484 | py | Python | mxfold2/param_turner2004.py | proterabio/mxfold2 | 571ba83a9caa562f3fef4701648602469fde8ebe | [
"MIT"
] | 46 | 2020-09-17T04:50:22.000Z | 2022-03-22T08:14:15.000Z | mxfold2/param_turner2004.py | proterabio/mxfold2 | 571ba83a9caa562f3fef4701648602469fde8ebe | [
"MIT"
] | 7 | 2021-02-09T10:09:03.000Z | 2022-01-14T21:19:02.000Z | mxfold2/param_turner2004.py | proterabio/mxfold2 | 571ba83a9caa562f3fef4701648602469fde8ebe | [
"MIT"
] | 20 | 2020-10-15T09:03:59.000Z | 2022-03-09T07:16:20.000Z | import numpy as np
score_stack = np.array([
[ 0, 0, 0, 0, 0, 0, 0, 0, ],
[ 0, -240, -330, -210, -140, -210, -210, -140, ],
[ 0, -330, -340, -250, -150, -220, -240, -150, ],
[ 0, -210, -250, 130, -50, -140, -130, 130, ],
[ 0, -140, -150, -50, 30, -60, -100, 30, ],
[ 0, -210, -220, -140, -60, -110, -90, -60,... | 25.451066 | 218 | 0.238603 |
fa720fd284632ca043a6e9fbc3f2ae675f312343 | 1,687 | py | Python | tests/ansible/lib/callback/nice_stdout.py | jrosser/mitogen | 898c06f1b9f1417b9f7c18465bee78eda7df2ec0 | [
"BSD-3-Clause"
] | null | null | null | tests/ansible/lib/callback/nice_stdout.py | jrosser/mitogen | 898c06f1b9f1417b9f7c18465bee78eda7df2ec0 | [
"BSD-3-Clause"
] | null | null | null | tests/ansible/lib/callback/nice_stdout.py | jrosser/mitogen | 898c06f1b9f1417b9f7c18465bee78eda7df2ec0 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
import io
from ansible.module_utils import six
try:
from ansible.plugins import callback_loader
except ImportError:
from ansible.plugins.loader import callback_loader
DefaultModule = callback_loader.get('default', class_only=True)
| 28.59322 | 63 | 0.55898 |
3af82b0bc4790111d93fd0095599d158eeba1d2c | 13,386 | py | Python | dialRL/rl_train/callback.py | PawelMlyniec/Dail-a-ride | 2b8954f9041b7635bcf8fa44e9129f2cd391f457 | [
"MIT"
] | 1 | 2020-12-24T22:08:52.000Z | 2020-12-24T22:08:52.000Z | dialRL/rl_train/callback.py | Thibaud-Ardoin/Dial-a-Ride | 7d9b3cd904d3194dccad31fec2533e2cf58cad0c | [
"MIT"
] | null | null | null | dialRL/rl_train/callback.py | Thibaud-Ardoin/Dial-a-Ride | 7d9b3cd904d3194dccad31fec2533e2cf58cad0c | [
"MIT"
] | null | null | null | import os
import numpy as np
import csv
import matplotlib.pyplot as plt
from moviepy.editor import *
from matplotlib.image import imsave
import matplotlib
matplotlib.use('Agg')
# import tensorflow as tf
# from stable_baselines.common.callbacks import BaseCallback, EvalCallback
# from stable_baselines.common.vec_env im... | 45.686007 | 165 | 0.554983 |
3af87716a5a3d2e4d00d68925f64456996df98b4 | 8,196 | py | Python | train.py | tna-hub/text2sql | 15b0d3392be03c5f794a38bcaf336b60916dc4d1 | [
"BSD-3-Clause"
] | null | null | null | train.py | tna-hub/text2sql | 15b0d3392be03c5f794a38bcaf336b60916dc4d1 | [
"BSD-3-Clause"
] | null | null | null | train.py | tna-hub/text2sql | 15b0d3392be03c5f794a38bcaf336b60916dc4d1 | [
"BSD-3-Clause"
] | null | null | null | import json
import torch
from sqlnet.utils import *
from sqlnet.model.seq2sql import Seq2SQL
from sqlnet.model.sqlnet import SQLNet
import numpy as np
import datetime
#import mxnet as mx
#from bert_embedding import BertEmbedding
import argparse
if __name__ == '__main__':
parser = argparse.ArgumentParser()
pars... | 48.211765 | 134 | 0.587726 |
3af8f1e275cd19adaa5bb2394843a71b553551e5 | 758 | py | Python | py/py_0685_inverse_digit_sum_ii.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0685_inverse_digit_sum_ii.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | py/py_0685_inverse_digit_sum_ii.py | lcsm29/project-euler | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | [
"MIT"
] | null | null | null | # Solution of;
# Project Euler Problem 685: Inverse Digit Sum II
# https://projecteuler.net/problem=685
#
# Writing down the numbers which have a digit sum of 10 in ascending order, we
# get:$19, 28, 37, 46,55,64,73,82,91,109, 118,\dots$Let $f(n,m)$ be the
# $m^{\text{th}}$ occurrence of the digit sum $n$. For examp... | 30.32 | 79 | 0.633245 |
3af9c8ef389a9995607211ee0514625e68a7c702 | 189 | py | Python | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/apps/profiles/choices.py | powerdefy/cookiecutter-django-rest | 8841d7c959e588f34f260405af167206eaf47376 | [
"MIT"
] | null | null | null | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/apps/profiles/choices.py | powerdefy/cookiecutter-django-rest | 8841d7c959e588f34f260405af167206eaf47376 | [
"MIT"
] | null | null | null | {{cookiecutter.github_repository_name}}/{{cookiecutter.app_name}}/apps/profiles/choices.py | powerdefy/cookiecutter-django-rest | 8841d7c959e588f34f260405af167206eaf47376 | [
"MIT"
] | null | null | null | from django.db import models
| 18.9 | 34 | 0.613757 |
3afa222274ac5c4cc6f82d844f11e23c6709df36 | 2,196 | py | Python | test_scripts/json_over_tcp.py | luozh05/Doc | 3471a9c8578d6530abf5c3ee3100488b0dc1e447 | [
"Apache-2.0"
] | null | null | null | test_scripts/json_over_tcp.py | luozh05/Doc | 3471a9c8578d6530abf5c3ee3100488b0dc1e447 | [
"Apache-2.0"
] | null | null | null | test_scripts/json_over_tcp.py | luozh05/Doc | 3471a9c8578d6530abf5c3ee3100488b0dc1e447 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import socket
import sys
import json
#HOST="localhost"
HOST="172.20.1.11"
PORT=37568
if __name__ == '__main__':
#test get cases:right input, case 0
cmd = {}
cmd["cmd-set-parameters"] = {}
cmd["cmd-set-parameters"]["evt-version"] = "evt-version-2.0"
cmd["cmd-set-parameters"... | 26.780488 | 76 | 0.607013 |
3afc9808039be0c4906a8ad82c7a46e1f069e435 | 5,628 | py | Python | test_api.py | atifar/mini-key-value | 0efe621260aa0a1aaa22ed721d05b4173b4171dd | [
"MIT"
] | null | null | null | test_api.py | atifar/mini-key-value | 0efe621260aa0a1aaa22ed721d05b4173b4171dd | [
"MIT"
] | null | null | null | test_api.py | atifar/mini-key-value | 0efe621260aa0a1aaa22ed721d05b4173b4171dd | [
"MIT"
] | null | null | null |
# 'list collections' tests
# 'list keys' tests
# 'get a key' tests
# 'create a key' tests
# 'update a key' tests
# 'delete a key' tests
| 31.266667 | 78 | 0.643923 |
3afca77e1d303804e80011de9994eebd4cd184b7 | 31 | py | Python | demo.py | TOMMYWHY/acnet_mobilenet | 6ebd21510cb6cca84f498d86daa081321a585b08 | [
"MIT"
] | null | null | null | demo.py | TOMMYWHY/acnet_mobilenet | 6ebd21510cb6cca84f498d86daa081321a585b08 | [
"MIT"
] | null | null | null | demo.py | TOMMYWHY/acnet_mobilenet | 6ebd21510cb6cca84f498d86daa081321a585b08 | [
"MIT"
] | null | null | null |
p = touch.autograd.Variable()
| 10.333333 | 29 | 0.709677 |
3afcf96dc2192ab7589903691b5438ff0a9e7099 | 3,251 | py | Python | cosmoscope/server.py | cosmoscope/cosmo-server | a51e0f77bbf07d731eece176fffc2c14d311a90b | [
"MIT"
] | null | null | null | cosmoscope/server.py | cosmoscope/cosmo-server | a51e0f77bbf07d731eece176fffc2c14d311a90b | [
"MIT"
] | 85 | 2018-05-24T17:41:45.000Z | 2019-02-05T18:55:38.000Z | cosmoscope/server.py | cosmoscope/cosmoscope | a51e0f77bbf07d731eece176fffc2c14d311a90b | [
"MIT"
] | null | null | null | import logging
import signal
import gevent
import msgpack
from zerorpc import Publisher, Puller, Pusher, Server
import numpy as np
import jsonpickle
from .store import store
from .data import Data
from .operations.operation import Operation
from .utils.singleton import Singleton
__all__ = ['ServerAPI']
| 28.025862 | 100 | 0.649339 |
3afde623e923bb16765921cd6884a6f3f7f37e8e | 3,612 | py | Python | cexapi/cexapi.py | codarrenvelvindron/cex.io-api-python | 5e54ca7d4d98e509e18d1ecda311da544649ea60 | [
"MIT"
] | 1 | 2021-11-09T18:47:44.000Z | 2021-11-09T18:47:44.000Z | cexapi/cexapi.py | codarrenvelvindron/cex.io-api-python | 5e54ca7d4d98e509e18d1ecda311da544649ea60 | [
"MIT"
] | null | null | null | cexapi/cexapi.py | codarrenvelvindron/cex.io-api-python | 5e54ca7d4d98e509e18d1ecda311da544649ea60 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Author: t0pep0
# e-mail: t0pep0.gentoo@gmail.com
# Jabber: t0pep0@jabber.ru
# BTC : 1ipEA2fcVyjiUnBqUx7PVy5efktz2hucb
# donate free =)
# Forked and modified by Codarren Velvindron
# Compatible Python3
import hmac
import hashlib
import time
import urllib.request, urllib.parse, urllib.error
i... | 36.484848 | 122 | 0.614341 |
3afe20d5d7e69d6cf6f226fe42a4f3f4119240fa | 1,125 | py | Python | Fourier/FourierType.py | SymmetricChaos/FiniteFields | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | [
"MIT"
] | 1 | 2021-08-22T15:03:59.000Z | 2021-08-22T15:03:59.000Z | Fourier/FourierType.py | SymmetricChaos/NumberTheory | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | [
"MIT"
] | null | null | null | Fourier/FourierType.py | SymmetricChaos/NumberTheory | 65258e06b7f04ce15223c1bc0c2384ef5e9cec1a | [
"MIT"
] | null | null | null | import numpy as np
from GeneralUtils import list_to_sum
| 22.959184 | 47 | 0.396444 |
3afe29425779a97835f8aa292d16b97d3ebe99af | 13,194 | py | Python | src/glados/es/ws2es/mappings_skeletons/es_chembl_tissue_mapping.py | chembl/GLaDOS | 044ed5f927b45dd5033c9383085ad5922c61f331 | [
"Apache-2.0"
] | 33 | 2017-09-21T11:38:44.000Z | 2022-03-19T06:41:47.000Z | src/glados/es/ws2es/mappings_skeletons/es_chembl_tissue_mapping.py | chembl/GLaDOS | 044ed5f927b45dd5033c9383085ad5922c61f331 | [
"Apache-2.0"
] | 739 | 2016-08-22T09:32:17.000Z | 2022-03-22T09:29:32.000Z | src/glados/es/ws2es/mappings_skeletons/es_chembl_tissue_mapping.py | chembl/GLaDOS | 044ed5f927b45dd5033c9383085ad5922c61f331 | [
"Apache-2.0"
] | 5 | 2020-06-12T01:51:41.000Z | 2021-09-17T10:32:53.000Z | # Elastic search mapping definition for the Molecule entity
from glados.es.ws2es.es_util import DefaultMappings
# Shards size - can be overridden from the default calculated value here
# shards = 3,
replicas = 1
analysis = DefaultMappings.COMMON_ANALYSIS
mappings = \
{
'properties':
{
... | 66.301508 | 120 | 0.488176 |
d70045662563ef27515bc31c292104985de68053 | 2,733 | py | Python | top_book/book/views.py | mfarjami/DRF-top | 914ed9068ed73d7d8a692c8ed2e77cba96cee5b1 | [
"MIT"
] | null | null | null | top_book/book/views.py | mfarjami/DRF-top | 914ed9068ed73d7d8a692c8ed2e77cba96cee5b1 | [
"MIT"
] | null | null | null | top_book/book/views.py | mfarjami/DRF-top | 914ed9068ed73d7d8a692c8ed2e77cba96cee5b1 | [
"MIT"
] | null | null | null | from rest_framework.decorators import api_view
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.response import Response
from .models import Book
from .serializers import BookSerializer
# Create your views here.
class GetFavData(APIView):
class UpdateFavData(... | 35.960526 | 82 | 0.691914 |
d700ee43fe0eef5ccc9227c82691c00f27054812 | 1,463 | py | Python | mysite/urls.py | mnithya/cs3240-s15-team06-test | 58f5d152f43f87c46e12252b2e52da98dcb443fb | [
"MIT"
] | null | null | null | mysite/urls.py | mnithya/cs3240-s15-team06-test | 58f5d152f43f87c46e12252b2e52da98dcb443fb | [
"MIT"
] | null | null | null | mysite/urls.py | mnithya/cs3240-s15-team06-test | 58f5d152f43f87c46e12252b2e52da98dcb443fb | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
# Examples:
# url(r'^$', 'mysite.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', '... | 36.575 | 73 | 0.598086 |
d701a6651f142786ed830a72df90c9d0bacf6951 | 4,338 | py | Python | source/cf/defaults/lambdas/libs/videostream/videostream/__init__.py | vteremasov/aws-iot-kickstart | de6313b02cd35519febbf43ae56aa7a01513cbc1 | [
"Apache-2.0"
] | 8 | 2019-08-14T06:36:32.000Z | 2021-08-08T05:59:40.000Z | source/cf/defaults/lambdas/libs/videostream/videostream/__init__.py | vteremasov/aws-iot-kickstart | de6313b02cd35519febbf43ae56aa7a01513cbc1 | [
"Apache-2.0"
] | null | null | null | source/cf/defaults/lambdas/libs/videostream/videostream/__init__.py | vteremasov/aws-iot-kickstart | de6313b02cd35519febbf43ae56aa7a01513cbc1 | [
"Apache-2.0"
] | 4 | 2019-11-25T06:14:08.000Z | 2021-03-21T14:56:10.000Z | '''
Module camera provides the VideoStream class which
offers a threaded interface to multiple types of cameras.
'''
from threading import Thread
import io
import os
import platform
import numpy as np # pylint: disable=import-error
| 35.557377 | 104 | 0.581374 |
d70221e578207ce862200803a43004bc9a1ee74c | 23,838 | py | Python | JaxCQL/model.py | yisu0005/JaxCQL | 6cb404c34dc02c99ac9a2ea551c28f867f78f9f7 | [
"MIT"
] | null | null | null | JaxCQL/model.py | yisu0005/JaxCQL | 6cb404c34dc02c99ac9a2ea551c28f867f78f9f7 | [
"MIT"
] | null | null | null | JaxCQL/model.py | yisu0005/JaxCQL | 6cb404c34dc02c99ac9a2ea551c28f867f78f9f7 | [
"MIT"
] | null | null | null | from functools import partial
from matplotlib.pyplot import xcorr
import numpy as np
import jax
import jax.numpy as jnp
import flax
from flax import linen as nn
import distrax
from .jax_utils import batch_to_jax, extend_and_repeat, next_rng
# def multiple_action_q_function(forward):
# # Forward the q function ... | 37.958599 | 131 | 0.615068 |
d7051e18592cfcaabdc61f04c12bac4c5a8c6910 | 423 | py | Python | prophet-gpl/tools/return_counter.py | jyi/ITSP | 0553f683f99403efb5ef440af826c1d229a52376 | [
"MIT"
] | 18 | 2017-06-14T07:55:45.000Z | 2022-03-24T09:32:43.000Z | prophet-gpl/tools/return_counter.py | jyi/ITSP | 0553f683f99403efb5ef440af826c1d229a52376 | [
"MIT"
] | 2 | 2017-07-25T13:44:39.000Z | 2018-03-16T06:43:40.000Z | prophet-gpl/tools/return_counter.py | jyi/ITSP | 0553f683f99403efb5ef440af826c1d229a52376 | [
"MIT"
] | 5 | 2017-07-29T19:09:37.000Z | 2021-04-10T16:39:48.000Z | #!/usr/bin/env python
f = open("repair.log", "r");
lines = f.readlines();
cnt = 0;
for line in lines:
tokens = line.strip().split();
if (len(tokens) > 3):
if (tokens[0] == "Total") and (tokens[1] == "return"):
cnt += int(tokens[3]);
if (tokens[0] == "Total") and (tokens[2] == "differ... | 32.538462 | 93 | 0.520095 |
d705f14bd1a2d796545981606b203d6d8aee15de | 4,968 | py | Python | pytorch_toolkit/instance_segmentation/segmentoly/rcnn/openvino_net.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 3 | 2020-12-29T02:47:32.000Z | 2021-11-12T08:12:51.000Z | pytorch_toolkit/instance_segmentation/segmentoly/rcnn/openvino_net.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 28 | 2020-09-25T22:40:36.000Z | 2022-03-12T00:37:36.000Z | pytorch_toolkit/instance_segmentation/segmentoly/rcnn/openvino_net.py | morkovka1337/openvino_training_extensions | 846db45c264d6b061505213f51763520b9432ba9 | [
"Apache-2.0"
] | 1 | 2021-04-02T07:51:01.000Z | 2021-04-02T07:51:01.000Z | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 44.357143 | 117 | 0.618357 |
d707022831c9689c8fc33323a8b72036d852d9e5 | 96 | py | Python | scuole/cohorts/apps.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | 1 | 2019-03-12T04:30:02.000Z | 2019-03-12T04:30:02.000Z | scuole/cohorts/apps.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | 616 | 2017-08-18T21:15:39.000Z | 2022-03-25T11:17:10.000Z | scuole/cohorts/apps.py | texastribune/scuole | 8ab316ee50ef0d8e71b94b50dc889d10c6e83412 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16 | 33 | 0.760417 |
d7075ae50fe80531ab2a8eb41c4eb490a0897696 | 297 | py | Python | conftest.py | gousteris/git-diff-conditional-buildkite-plugin | 517442ca9ebe21021e1078debf88c231ba8e8dff | [
"MIT"
] | 19 | 2020-03-27T11:53:11.000Z | 2021-04-14T23:11:27.000Z | conftest.py | segmentio/git-diff-conditional-buildkite-plugin | 62a276000149da0bbf4e152634211c75966a8558 | [
"MIT"
] | 7 | 2020-03-27T11:59:51.000Z | 2021-08-06T14:01:42.000Z | conftest.py | segmentio/git-diff-conditional-buildkite-plugin | 62a276000149da0bbf4e152634211c75966a8558 | [
"MIT"
] | 6 | 2020-03-28T20:49:49.000Z | 2022-01-19T17:48:02.000Z | """Place fixtures in this file for use across all test files"""
import pytest
| 21.214286 | 65 | 0.754209 |
d709950f1405568464eefb85068efdc744532b55 | 3,763 | py | Python | subthalamic.py | ModelDBRepository/256624 | 9b9b0ca38baa34f8e34e822ffd366f56f5cfd979 | [
"MIT"
] | null | null | null | subthalamic.py | ModelDBRepository/256624 | 9b9b0ca38baa34f8e34e822ffd366f56f5cfd979 | [
"MIT"
] | null | null | null | subthalamic.py | ModelDBRepository/256624 | 9b9b0ca38baa34f8e34e822ffd366f56f5cfd979 | [
"MIT"
] | null | null | null | import numpy as np
import moch
import soch
import os
import sys
import scipy.io
import thorns
main(sys.argv[1])
| 32.162393 | 78 | 0.513952 |
d70aa5b75b6b2e9f5fff4f2b801da5ec7145cca9 | 8,911 | py | Python | env/lib/python3.5/site-packages/cartopy/tests/test_img_tiles.py | project-pantheon/pantheon_glob_planner | c0d50a53b36c4678192ec75ad7a4cd68c570daef | [
"BSD-3-Clause"
] | null | null | null | env/lib/python3.5/site-packages/cartopy/tests/test_img_tiles.py | project-pantheon/pantheon_glob_planner | c0d50a53b36c4678192ec75ad7a4cd68c570daef | [
"BSD-3-Clause"
] | null | null | null | env/lib/python3.5/site-packages/cartopy/tests/test_img_tiles.py | project-pantheon/pantheon_glob_planner | c0d50a53b36c4678192ec75ad7a4cd68c570daef | [
"BSD-3-Clause"
] | null | null | null | # (C) British Crown Copyright 2011 - 2018, Met Office
#
# This file is part of cartopy.
#
# cartopy is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option)... | 36.670782 | 79 | 0.606778 |
d70ba27847eddad0f8d65da93714b0825a9609bc | 8,310 | py | Python | utils/process_data.py | JiatianWu/tf-monodepth2 | 8f8ade9ac1268ec2c80db41386df47d26074eaf8 | [
"MIT"
] | null | null | null | utils/process_data.py | JiatianWu/tf-monodepth2 | 8f8ade9ac1268ec2c80db41386df47d26074eaf8 | [
"MIT"
] | null | null | null | utils/process_data.py | JiatianWu/tf-monodepth2 | 8f8ade9ac1268ec2c80db41386df47d26074eaf8 | [
"MIT"
] | null | null | null | import os
import pdb
import h5py
import pickle
import numpy as np
from scipy.io import loadmat
import cv2
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
import csv
import bisect
import matplotlib as mpl
import matplotlib.... | 31.123596 | 153 | 0.59651 |
d70bfa071ce979b042b3019dc6f0957d42a9409f | 808 | py | Python | src/genome/visibles/sphere_gene.py | stu-smith/blender-evolution | 644b92d4dc30e82708b2e78da4f274c9ab142704 | [
"MIT"
] | null | null | null | src/genome/visibles/sphere_gene.py | stu-smith/blender-evolution | 644b92d4dc30e82708b2e78da4f274c9ab142704 | [
"MIT"
] | null | null | null | src/genome/visibles/sphere_gene.py | stu-smith/blender-evolution | 644b92d4dc30e82708b2e78da4f274c9ab142704 | [
"MIT"
] | null | null | null | from ..gene import Gene
from ..scalar_gene_property import ScalarGeneProperty
from ..color_gene_property import ColorGeneProperty
from ...visible_objects.sphere import Sphere
| 29.925926 | 74 | 0.689356 |
d70e4ccae007401a0990ed92fad1c07898cb2c3c | 4,092 | py | Python | thrift/test/testset/generator.py | danobi/fbthrift | 46cb6c481e34a6569929314cff432333689f3a5b | [
"Apache-2.0"
] | null | null | null | thrift/test/testset/generator.py | danobi/fbthrift | 46cb6c481e34a6569929314cff432333689f3a5b | [
"Apache-2.0"
] | null | null | null | thrift/test/testset/generator.py | danobi/fbthrift | 46cb6c481e34a6569929314cff432333689f3a5b | [
"Apache-2.0"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates.
#
# 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 ... | 32.736 | 121 | 0.663978 |
d7107b0e3157b6073b0e042c74159c3a2d63cd03 | 540 | py | Python | test/test_runner.py | antsankov/cufcq-new | 93899232a281aee59840746c0131af5d56eae272 | [
"MIT"
] | null | null | null | test/test_runner.py | antsankov/cufcq-new | 93899232a281aee59840746c0131af5d56eae272 | [
"MIT"
] | null | null | null | test/test_runner.py | antsankov/cufcq-new | 93899232a281aee59840746c0131af5d56eae272 | [
"MIT"
] | null | null | null | from tornado.testing import AsyncHTTPTestCase
import unittest
| 27 | 71 | 0.751852 |
d7108aaef549127c37482205d3e95284067ddf78 | 189 | py | Python | uber/views.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | uber/views.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | 5 | 2020-02-12T00:43:34.000Z | 2021-06-10T20:18:42.000Z | uber/views.py | sami-mai/Carpool-R-Us | 306c60788e3dc123c3ac85e0c40ac5a291590709 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
| 18.9 | 51 | 0.687831 |
d710c8f60cb9024bad5b455bf64fd5e34f00636a | 736 | py | Python | PIP/Class Program/ClassQuestion5.py | ankitrajbiswal/SEM_5 | db716e242e77149a4091e0e564356ddc724aeff0 | [
"Apache-2.0"
] | 10 | 2021-04-24T11:46:48.000Z | 2022-01-17T05:14:37.000Z | PIP/Class Program/ClassQuestion5.py | ankitrajbiswal/SEM_5 | db716e242e77149a4091e0e564356ddc724aeff0 | [
"Apache-2.0"
] | 2 | 2021-06-28T11:51:50.000Z | 2021-11-01T08:21:53.000Z | PIP/Class Program/ClassQuestion5.py | ankitrajbiswal/SEM_5 | db716e242e77149a4091e0e564356ddc724aeff0 | [
"Apache-2.0"
] | 16 | 2021-04-24T11:46:58.000Z | 2022-03-02T05:08:19.000Z | '''def operations(a,b,c):
if(c=='+'):
return a+b
elif(c=='-'):
return a-b
elif(c=='*'):
return a*b
elif(c=='/'):
return a/b
elif(c=='%'):
return a%b
elif(c=='**'):
return a**b
elif(c=='//'):
return a//b
else:
... | 26.285714 | 88 | 0.509511 |
d71227084c2c9e3c8560447c816cdd1517d2990e | 1,491 | py | Python | flaskr/data/data_loader.py | bathlarajat/chartjsExamples | 2b65e7933b5abb63069f14be5c21400ae0339402 | [
"MIT"
] | 3 | 2021-01-04T20:38:42.000Z | 2022-03-21T22:37:22.000Z | flaskr/data/data_loader.py | datahappy1/flask_chartjs_drilldown_example_project | 48013697bc5eb71950cc923bc053488ff7b1a706 | [
"MIT"
] | null | null | null | flaskr/data/data_loader.py | datahappy1/flask_chartjs_drilldown_example_project | 48013697bc5eb71950cc923bc053488ff7b1a706 | [
"MIT"
] | null | null | null | import os
import csv
import itertools
from datetime import datetime
| 36.365854 | 114 | 0.550637 |
d712411aa65ad60106f946dcc651e825873ac55d | 1,430 | py | Python | plugins/dnspark.py | mmannerm/ddupdate | 4822689898def7200a90ca5c4a98dcb8f316c078 | [
"MIT"
] | 34 | 2018-02-08T16:25:49.000Z | 2022-03-17T00:38:54.000Z | plugins/dnspark.py | mmannerm/ddupdate | 4822689898def7200a90ca5c4a98dcb8f316c078 | [
"MIT"
] | 56 | 2017-12-30T10:05:17.000Z | 2022-03-30T15:53:38.000Z | plugins/dnspark.py | mmannerm/ddupdate | 4822689898def7200a90ca5c4a98dcb8f316c078 | [
"MIT"
] | 25 | 2019-01-09T01:39:14.000Z | 2022-03-29T21:45:59.000Z | """
ddupdate plugin updating data on dnspark.com.
See: ddupdate(8)
See: https://dnspark.zendesk.com/hc/en-us/articles/
216322723-Dynamic-DNS-API-Documentation
"""
from ddupdate.ddplugin import ServicePlugin, ServiceError
from ddupdate.ddplugin import http_basic_auth_setup, get_response
| 30.425532 | 76 | 0.678322 |
d712e45f32f1e75fade001b57a11c6b19a4548c1 | 714 | py | Python | userbot/modules/__helpme.py | sekret666/codeaz | 141d9a656326f4a5a6c149d3433e39cf7396a8d2 | [
"MIT"
] | null | null | null | userbot/modules/__helpme.py | sekret666/codeaz | 141d9a656326f4a5a6c149d3433e39cf7396a8d2 | [
"MIT"
] | null | null | null | userbot/modules/__helpme.py | sekret666/codeaz | 141d9a656326f4a5a6c149d3433e39cf7396a8d2 | [
"MIT"
] | 1 | 2021-12-15T06:27:45.000Z | 2021-12-15T06:27:45.000Z | # C O D E A Z/ Samil
from userbot import BOT_USERNAME
from userbot.events import register
# LANGUAGE CONSTANTS #
from userbot.language import get_value
LANG = get_value("__helpme")
# #
| 23.8 | 54 | 0.584034 |
d7141ae014ac95863434646bbd6943b07b157f83 | 216 | py | Python | Ex-15.py | gilmartins83/Guanabara-Python | 43128c35fcd601db1f72c80a9c76f4b4f4085c7f | [
"MIT"
] | null | null | null | Ex-15.py | gilmartins83/Guanabara-Python | 43128c35fcd601db1f72c80a9c76f4b4f4085c7f | [
"MIT"
] | null | null | null | Ex-15.py | gilmartins83/Guanabara-Python | 43128c35fcd601db1f72c80a9c76f4b4f4085c7f | [
"MIT"
] | null | null | null | dias = int(input("quantos dias voce deseja alugar o carro? "))
km = float(input("Quantos kilometros voc andou? "))
pago = dias * 60 + (km * 0.15)
print("o valor do aluguel do carro foi de R$ {:.2f}" .format(pago))
| 36 | 67 | 0.662037 |
d714611ff086011342bf685f42497f2e7b46e1e3 | 9,010 | py | Python | cirq/contrib/quimb/density_matrix.py | lilies/Cirq | 519b8b70ba4d2d92d1c034c398161ebdbd23e2e7 | [
"Apache-2.0"
] | 3 | 2020-09-26T03:56:28.000Z | 2020-09-27T13:21:04.000Z | cirq/contrib/quimb/density_matrix.py | lilies/Cirq | 519b8b70ba4d2d92d1c034c398161ebdbd23e2e7 | [
"Apache-2.0"
] | null | null | null | cirq/contrib/quimb/density_matrix.py | lilies/Cirq | 519b8b70ba4d2d92d1c034c398161ebdbd23e2e7 | [
"Apache-2.0"
] | 1 | 2020-04-14T15:29:29.000Z | 2020-04-14T15:29:29.000Z | from functools import lru_cache
from typing import Sequence, Dict, Union, Tuple, List, Optional, cast, Iterable
import numpy as np
import quimb
import quimb.tensor as qtn
import cirq
def _add_to_positions(positions: Dict[Tuple[str, str], Tuple[float, float]],
mi: int,
q... | 42.300469 | 80 | 0.56515 |
d7168d63372783b7232cd178045b15c0e30dc43a | 9,150 | py | Python | plugins/mgba_bridge/script_disassembler/script_disassembler.py | notyourav/the-little-hat | f52b38b18b762e704b36cef06c07656348ea6995 | [
"MIT"
] | null | null | null | plugins/mgba_bridge/script_disassembler/script_disassembler.py | notyourav/the-little-hat | f52b38b18b762e704b36cef06c07656348ea6995 | [
"MIT"
] | null | null | null | plugins/mgba_bridge/script_disassembler/script_disassembler.py | notyourav/the-little-hat | f52b38b18b762e704b36cef06c07656348ea6995 | [
"MIT"
] | 2 | 2021-10-05T20:40:12.000Z | 2022-01-05T00:17:36.000Z | from dataclasses import dataclass
import struct
from typing import Tuple
from plugins.mgba_bridge.script_disassembler.utils import barray_to_u16_hex, u16_to_hex
from plugins.mgba_bridge.script_disassembler.definitions import get_pointer, commands, parameters, get_script_label, used_labels
# Disassembler for tmc scrip... | 37.044534 | 132 | 0.594317 |
d717ca185441b7405138c795fdcfae7c8f70ce12 | 3,366 | py | Python | gcloud/apigw/views/query_task_count.py | ZhuoZhuoCrayon/bk-sops | d1475d53c19729915727ce7adc24e3226f15e332 | [
"Apache-2.0"
] | 1 | 2020-08-16T09:21:58.000Z | 2020-08-16T09:21:58.000Z | gcloud/apigw/views/query_task_count.py | ZhuoZhuoCrayon/bk-sops | d1475d53c19729915727ce7adc24e3226f15e332 | [
"Apache-2.0"
] | null | null | null | gcloud/apigw/views/query_task_count.py | ZhuoZhuoCrayon/bk-sops | d1475d53c19729915727ce7adc24e3226f15e332 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making PaaS (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance ... | 35.0625 | 115 | 0.686275 |
d71a3783efcdfcf37cb4cd953c69e007c41c2a7b | 28,222 | py | Python | applications/MultilevelMonteCarloApplication/python_scripts/statistical_variable_utilities.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 778 | 2017-01-27T16:29:17.000Z | 2022-03-30T03:01:51.000Z | applications/MultilevelMonteCarloApplication/python_scripts/statistical_variable_utilities.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 6,634 | 2017-01-15T22:56:13.000Z | 2022-03-31T15:03:36.000Z | applications/MultilevelMonteCarloApplication/python_scripts/statistical_variable_utilities.py | lkusch/Kratos | e8072d8e24ab6f312765185b19d439f01ab7b27b | [
"BSD-4-Clause"
] | 224 | 2017-02-07T14:12:49.000Z | 2022-03-06T23:09:34.000Z | # Import Python libraries
import numpy as np
# Import distributed framework
from exaqute import *
try:
init()
except:
pass
try:
computing_units_auxiliar_utilities = int(os.environ["computing_units_auxiliar_utilities"])
except:
computing_units_auxiliar_utilities = 1
"""
auxiliary function of UpdateO... | 51.59415 | 215 | 0.704734 |
d71aa4de2d66c237cc707eb9393bb1bbbb06c886 | 75 | py | Python | test/test_maximum_average_subarray_i.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_maximum_average_subarray_i.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | test/test_maximum_average_subarray_i.py | spencercjh/sync-leetcode-today-problem-python3-example | 4957e5eadb697334741df0fc297bec2edaa9e2ab | [
"Apache-2.0"
] | null | null | null | solution = MaximumAverageSubarrayI()
assert X == solution.findMaxAverage( ) | 37.5 | 38 | 0.8 |
d71b31a775449f37fd1fbb33703f6b57df4d8967 | 6,310 | py | Python | test/test_http.py | mikiec84/gaffer | 8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d | [
"MIT",
"Unlicense"
] | null | null | null | test/test_http.py | mikiec84/gaffer | 8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d | [
"MIT",
"Unlicense"
] | null | null | null | test/test_http.py | mikiec84/gaffer | 8c5d5b5e2ff3fcb1f7cc7c8fbfc623f97dd0da8d | [
"MIT",
"Unlicense"
] | 1 | 2018-10-28T00:59:17.000Z | 2018-10-28T00:59:17.000Z | # -*- coding: utf-8 -
#
# This file is part of gaffer. See the NOTICE for more information.
import os
import time
import pytest
import pyuv
from gaffer import __version__
from gaffer.manager import Manager
from gaffer.http_handler import HttpEndpoint, HttpHandler
from gaffer.httpclient import (Server, Process, Proce... | 22.862319 | 73 | 0.601426 |
d71c193d332979ad562f8d1039609bbf9888baf0 | 1,366 | py | Python | tmi/api/io.py | fish2000/TMI | e849545644b99c132ecde24427531edd45213614 | [
"BSD-3-Clause"
] | null | null | null | tmi/api/io.py | fish2000/TMI | e849545644b99c132ecde24427531edd45213614 | [
"BSD-3-Clause"
] | null | null | null | tmi/api/io.py | fish2000/TMI | e849545644b99c132ecde24427531edd45213614 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import print_function
from enum import unique
import sys
from clu.enums import AliasingEnum, alias
from clu.exporting import Exporter
exporter = Exporter(path=__file__)
export = exporter.decorator()
# Assign the modules `__all__` and `__dir__` using the exporter:
__all__, __d... | 22.393443 | 65 | 0.614934 |
d71cffea04fc4afe67a3b3abc9d1b2f6ae38f8e9 | 4,256 | py | Python | Numpy/Num.py | shreejitverma/Data-Scientist | 03c06936e957f93182bb18362b01383e5775ffb1 | [
"MIT"
] | 2 | 2022-03-12T04:53:03.000Z | 2022-03-27T12:39:21.000Z | Numpy/Num.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Numpy/Num.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 2 | 2022-03-12T04:52:21.000Z | 2022-03-27T12:45:32.000Z | # Create list baseball
import numpy as np
baseball = [180, 215, 210, 210, 188, 176, 209, 200]
# Import the numpy package as np
# Create a numpy array from baseball: np_baseball
np_baseball = np.array(baseball)
# Print out type of np_baseball
print(type(np_baseball))
# height is available as a regular list
# Import... | 22.638298 | 78 | 0.743186 |
d71d1bf7f27ba4c1c44e668d8bb681ca4183dc5f | 3,469 | py | Python | REMARKs/SolvingMicroDSOPs/Calibration/SetupSCFdata.py | ngkratts/REMARK | 92c057a93a7d10a890696db55f874d5fde394b91 | [
"Apache-2.0"
] | 18 | 2019-01-28T13:17:39.000Z | 2021-09-10T16:29:55.000Z | REMARKs/SolvingMicroDSOPs/Calibration/SetupSCFdata.py | ngkratts/REMARK | 92c057a93a7d10a890696db55f874d5fde394b91 | [
"Apache-2.0"
] | 89 | 2019-01-06T19:32:34.000Z | 2021-08-30T13:30:48.000Z | REMARKs/SolvingMicroDSOPs/Calibration/SetupSCFdata.py | ngkratts/REMARK | 92c057a93a7d10a890696db55f874d5fde394b91 | [
"Apache-2.0"
] | 50 | 2018-08-01T16:33:06.000Z | 2021-10-05T20:20:26.000Z | '''
Sets up the SCF data for use in the SolvingMicroDSOPs estimation.
'''
from __future__ import division # Use new division function
from __future__ import print_function
from __future__ import absolute_import
from builtins import zip
from builtins import str
from builtins import range
import os, sys
# Find pat... | 41.795181 | 114 | 0.763909 |
d71d1d8702943a9a53fdd7509061a707d77261fd | 31,436 | py | Python | build/lib/app/routes.py | Dialjini/BarsCrm_backend | 490894b676f27de846c33af9dd67a7ad8677818c | [
"Apache-2.0"
] | null | null | null | build/lib/app/routes.py | Dialjini/BarsCrm_backend | 490894b676f27de846c33af9dd67a7ad8677818c | [
"Apache-2.0"
] | null | null | null | build/lib/app/routes.py | Dialjini/BarsCrm_backend | 490894b676f27de846c33af9dd67a7ad8677818c | [
"Apache-2.0"
] | null | null | null | from app import app
from flask import render_template, redirect, session, request, send_from_directory
from app import models, db, reqs
from flask_socketio import SocketIO, emit
import json
from xhtml2pdf import pisa
import os
from datetime import datetime
socketio = SocketIO(app)
if __name__ == '__main__':
socke... | 32.677755 | 110 | 0.594637 |
d71dbac43bd9efda4e60dfd4b71b2414be991d39 | 790 | py | Python | ch2Perceptron/example2.py | junseokpark/deepLearningFromScratch | 07c225a86502a16f4475a3a6a346fd6203bf9f40 | [
"MIT"
] | null | null | null | ch2Perceptron/example2.py | junseokpark/deepLearningFromScratch | 07c225a86502a16f4475a3a6a346fd6203bf9f40 | [
"MIT"
] | null | null | null | ch2Perceptron/example2.py | junseokpark/deepLearningFromScratch | 07c225a86502a16f4475a3a6a346fd6203bf9f40 | [
"MIT"
] | null | null | null | import numpy as np
x = np.array([0,1])
w = np.array([0.5,0.5])
b = -0.7
print(w*x)
print(np.sum(w*x))
print(np.sum(w*x)+b)
print(XOR(0,0))
print(XOR(1,0))
print(XOR(0,1))
print(XOR(1,1))
| 15.8 | 29 | 0.46962 |
d71ede6a1c08ec38b1d5adae7fd269d6b1aa94ed | 2,413 | py | Python | model/custom_resnet.py | gkdivya/torch-cv-wrapper | fe30c32e0a6293c1301521ce45a72a9d63354942 | [
"MIT"
] | 2 | 2021-08-03T12:16:32.000Z | 2021-09-04T07:36:31.000Z | model/custom_resnet.py | gkdivya/torch-cv-wrapper | fe30c32e0a6293c1301521ce45a72a9d63354942 | [
"MIT"
] | null | null | null | model/custom_resnet.py | gkdivya/torch-cv-wrapper | fe30c32e0a6293c1301521ce45a72a9d63354942 | [
"MIT"
] | 3 | 2021-07-03T15:04:14.000Z | 2021-08-05T11:08:09.000Z | import torch
import torch.nn as nn
import torch.nn.functional as F
def CustomResNet():
return ResNet(BasicBlock)
| 29.072289 | 83 | 0.528802 |
d720aec2d84e6036038a117411622fba835ee1b0 | 12,810 | py | Python | playground/test_condconv_weights/test_routing_weights.py | harry11162/detectron2 | d5d41e23cd5317b9d80d5f9e4886771ba53c1a3a | [
"Apache-2.0"
] | null | null | null | playground/test_condconv_weights/test_routing_weights.py | harry11162/detectron2 | d5d41e23cd5317b9d80d5f9e4886771ba53c1a3a | [
"Apache-2.0"
] | null | null | null | playground/test_condconv_weights/test_routing_weights.py | harry11162/detectron2 | d5d41e23cd5317b9d80d5f9e4886771ba53c1a3a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates.
"""
Detectron2 training script with a plain training loop.
This script reads a given config file and runs the training or evaluation.
It is an entry point that is able to train standard models in detectron2.
In order to let one script support tr... | 39.294479 | 117 | 0.676581 |
d720d5649b3f6f61d2b618a481884218c21dc51a | 4,894 | py | Python | ocean_drifters_data/buoy_data.py | nglaze00/trajectory-analysis | 35cf6bfa75eaf3cae5635729ccdf15d17a6177c7 | [
"MIT"
] | 4 | 2021-02-23T14:52:53.000Z | 2022-03-31T14:14:37.000Z | ocean_drifters_data/buoy_data.py | nglaze00/trajectory-analysis | 35cf6bfa75eaf3cae5635729ccdf15d17a6177c7 | [
"MIT"
] | 2 | 2022-01-11T18:44:50.000Z | 2022-01-15T05:42:48.000Z | ocean_drifters_data/buoy_data.py | nglaze00/trajectory-analysis | 35cf6bfa75eaf3cae5635729ccdf15d17a6177c7 | [
"MIT"
] | 1 | 2022-03-08T02:20:37.000Z | 2022-03-08T02:20:37.000Z | """
Author: Nicholas Glaze, Rice ECE (nkg2 at rice.edu)
Code for converting ocean drifter data from Schaub's format to ours.
"""
import h5py
from trajectory_analysis.synthetic_data_gen import *
dataset_folder = 'buoy'
f = h5py.File('dataBuoys.jld2', 'r')
print(f.keys())
### Load arrays from file
## Graph
# elist... | 35.722628 | 133 | 0.643645 |
d720f208a3df6385750ad1742504776a36069d68 | 6,151 | py | Python | Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-01-09T20:04:31.000Z | 2022-01-09T20:04:31.000Z | Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | 1 | 2022-02-15T12:01:57.000Z | 2022-03-24T19:48:47.000Z | Latest/venv/Lib/site-packages/apptools/permissions/default/user_manager.py | adamcvj/SatelliteTracker | 49a8f26804422fdad6f330a5548e9f283d84a55d | [
"Apache-2.0"
] | null | null | null | #------------------------------------------------------------------------------
# Copyright (c) 2008, Riverbank Computing Limited
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditi... | 33.612022 | 106 | 0.558121 |
d72176db25b837eec39504c5b4f9c46b726440a8 | 97 | py | Python | libraries/exhibitions/apps.py | chris-lawton/libraries_wagtail | 60c2484b137bb33763da2e49b191b1a380f3d56f | [
"ECL-2.0"
] | 9 | 2017-12-19T21:15:23.000Z | 2022-03-23T08:11:52.000Z | libraries/exhibitions/apps.py | chris-lawton/libraries_wagtail | 60c2484b137bb33763da2e49b191b1a380f3d56f | [
"ECL-2.0"
] | 140 | 2017-07-12T00:09:53.000Z | 2021-11-02T17:30:43.000Z | libraries/exhibitions/apps.py | chris-lawton/libraries_wagtail | 60c2484b137bb33763da2e49b191b1a380f3d56f | [
"ECL-2.0"
] | 3 | 2017-08-21T10:47:34.000Z | 2020-08-20T14:04:18.000Z | from django.apps import AppConfig
| 16.166667 | 35 | 0.773196 |
d722d3dbdd851da32d3a6d5f6fb12b40e48dbb16 | 227 | py | Python | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null | 2-1_factorial_Q1_recursive.py | Soooyeon-Kim/Algorithm | 28a191d7382d9c3bb6d9afb19f4cff642c3aec03 | [
"MIT"
] | null | null | null |
if __name__ == "__main__":
main() | 17.461538 | 36 | 0.53304 |
d724654c41c2d3df788e13f69c9b62305d208d29 | 1,210 | py | Python | PyPoll/main.py | adekted/python-challenge | a38442e0e0996a17397d15395e1b53ff4cc52ce4 | [
"MIT"
] | null | null | null | PyPoll/main.py | adekted/python-challenge | a38442e0e0996a17397d15395e1b53ff4cc52ce4 | [
"MIT"
] | null | null | null | PyPoll/main.py | adekted/python-challenge | a38442e0e0996a17397d15395e1b53ff4cc52ce4 | [
"MIT"
] | null | null | null | import os
import csv
pollresults = os.path.join(".","raw_data","election_data_1.csv")
output = os.path.join(".","results.txt")
with open(pollresults, newline = '') as polldata:
pollreader = csv.reader(polldata, delimiter = ",")
firstline = polldata.readline()
votes = 0
poll_results = {}
for row... | 28.809524 | 98 | 0.575207 |
d72479d0e051c4a22354d598e1cbb9a5f7561db5 | 1,907 | py | Python | ReinforcementLearning/ExperienceReplay.py | Suryavf/SelfDrivingCar | 362ac830516366b1c31ef01ea0456eb99f0d9722 | [
"MIT"
] | 11 | 2019-08-14T18:55:13.000Z | 2021-09-10T05:54:49.000Z | ReinforcementLearning/ExperienceReplay.py | Suryavf/SelfDrivingCar | 362ac830516366b1c31ef01ea0456eb99f0d9722 | [
"MIT"
] | 3 | 2020-05-05T15:20:20.000Z | 2021-06-22T07:47:26.000Z | ReinforcementLearning/ExperienceReplay.py | Suryavf/SelfDrivingCar | 362ac830516366b1c31ef01ea0456eb99f0d9722 | [
"MIT"
] | 1 | 2020-12-18T15:46:09.000Z | 2020-12-18T15:46:09.000Z | import numpy as np
from common.prioritized import PrioritizedExperienceReplay
| 35.314815 | 78 | 0.58259 |
d724fe813f619adf66dd7a68f8f674a9c901f1fa | 9,707 | py | Python | domdf_python_tools/dates.py | domdfcoding/domdf_python_tools | eb15c744eac3005e13fae8d8a5582e955137cf22 | [
"MIT"
] | null | null | null | domdf_python_tools/dates.py | domdfcoding/domdf_python_tools | eb15c744eac3005e13fae8d8a5582e955137cf22 | [
"MIT"
] | 57 | 2020-06-16T15:48:20.000Z | 2022-03-31T08:35:09.000Z | domdf_python_tools/dates.py | domdfcoding/domdf_python_tools | eb15c744eac3005e13fae8d8a5582e955137cf22 | [
"MIT"
] | null | null | null | # !/usr/bin/env python
#
# dates.py
"""
Utilities for working with dates and times.
.. extras-require:: dates
:pyproject:
**Data:**
.. autosummary::
~domdf_python_tools.dates.months
~domdf_python_tools.dates.month_full_names
~domdf_python_tools.dates.month_short_names
"""
#
# Copyright 2020 Dominic Davis-... | 26.814917 | 109 | 0.708561 |
d72583632536ec0cced7fa350c14b691453b491f | 5,812 | py | Python | admix/tasks/check_transfers.py | XENONnT/admix | 3abcd40d08dc6a403bc535a5b0f13f624a5d766e | [
"BSD-3-Clause"
] | 2 | 2021-01-23T21:43:48.000Z | 2021-01-23T21:43:57.000Z | admix/tasks/check_transfers.py | XENONnT/admix | 3abcd40d08dc6a403bc535a5b0f13f624a5d766e | [
"BSD-3-Clause"
] | 17 | 2019-09-30T12:54:26.000Z | 2021-12-09T21:17:37.000Z | admix/tasks/check_transfers.py | XENONnT/admix | 3abcd40d08dc6a403bc535a5b0f13f624a5d766e | [
"BSD-3-Clause"
] | 2 | 2020-03-28T14:06:05.000Z | 2021-03-18T21:50:48.000Z | # -*- coding: utf-8 -*-
import json
import os
from admix.helper import helper
import time
import shutil
from admix.interfaces.database import ConnectMongoDB
from admix.helper.decorator import Collector
#get Rucio imports done:
from admix.interfaces.rucio_dataformat import ConfigRucioDataFormat
from admix.interfaces.r... | 41.514286 | 185 | 0.562285 |
d726c821bd4d42ffbe3ad183aeab04cc58a7918f | 4,113 | py | Python | fantastico/mvc/models/tests/test_module_filter_compound_or.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 2 | 2016-12-18T02:42:25.000Z | 2018-01-30T16:32:29.000Z | fantastico/mvc/models/tests/test_module_filter_compound_or.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 1 | 2020-07-28T07:16:35.000Z | 2020-07-28T07:16:35.000Z | fantastico/mvc/models/tests/test_module_filter_compound_or.py | bopopescu/fantastico | 7c95f244f0cf0239ac5408146612dd72f88d35ea | [
"MIT"
] | 1 | 2020-07-24T05:55:28.000Z | 2020-07-24T05:55:28.000Z | '''
Copyright 2013 Cosnita Radu Viorel
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, distribu... | 46.213483 | 128 | 0.701191 |
d726fb4760e4aa5a235cc0ba701a2901f20f2e31 | 7,182 | py | Python | main.py | AlexanderBrandborg/TextGameEngine | a00997b6300ba91a8981539b1cb2f36416c384ef | [
"MIT"
] | null | null | null | main.py | AlexanderBrandborg/TextGameEngine | a00997b6300ba91a8981539b1cb2f36416c384ef | [
"MIT"
] | null | null | null | main.py | AlexanderBrandborg/TextGameEngine | a00997b6300ba91a8981539b1cb2f36416c384ef | [
"MIT"
] | null | null | null | import json
import os
global_characters = []
global_items = []
global_notifyer = Notifyer()
def main():
with open("game.json") as layout_file:
layout = json.load(layout_file)
print(layout["title"])
print("Press any key to start")
input()
rooms = []
for roomDto in layout["rooms... | 30.561702 | 123 | 0.564188 |
d728c55b4f2bb7d8f35b667f6a550393bb16970f | 16,046 | py | Python | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | null | null | null | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.py | Brantone/appcenter-sdks | eeb063ecf79908b6e341fb00196d2cd9dc8f3262 | [
"MIT"
] | 6 | 2019-10-23T06:38:53.000Z | 2022-01-22T07:57:58.000Z | sdks/python/appcenter_sdk/models/InternalHockeyAppCompatibilityResponse.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
"""
import pprint
import re # noqa: F401
import six
def to_str(self)... | 37.316279 | 325 | 0.680294 |
d72946ce37dfd233bdc1990a40d96dc9871865f7 | 3,356 | py | Python | contrib/experiments/interpretation/penobscot/local/default.py | elmajdma/seismic-deeplearning | bc084abe153509c40b45f8bf0f80dfda1049d7dc | [
"MIT"
] | 270 | 2019-12-17T13:40:51.000Z | 2022-03-20T10:02:11.000Z | contrib/experiments/interpretation/penobscot/local/default.py | elmajdma/seismic-deeplearning | bc084abe153509c40b45f8bf0f80dfda1049d7dc | [
"MIT"
] | 233 | 2019-12-18T17:59:36.000Z | 2021-08-03T13:43:49.000Z | contrib/experiments/interpretation/penobscot/local/default.py | elmajdma/seismic-deeplearning | bc084abe153509c40b45f8bf0f80dfda1049d7dc | [
"MIT"
] | 118 | 2019-12-17T13:41:43.000Z | 2022-03-29T02:06:36.000Z | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __future__ import division
from __future__ import pri... | 27.284553 | 105 | 0.700834 |
d72956bd1ede9e6b4c33e5348df8b0b68299b20e | 743 | py | Python | evaluation/dwf_power.py | TrustedThings/litepuf | 8b0f93af626775e7971d25643081af1c2829bf3d | [
"BSD-2-Clause"
] | null | null | null | evaluation/dwf_power.py | TrustedThings/litepuf | 8b0f93af626775e7971d25643081af1c2829bf3d | [
"BSD-2-Clause"
] | null | null | null | evaluation/dwf_power.py | TrustedThings/litepuf | 8b0f93af626775e7971d25643081af1c2829bf3d | [
"BSD-2-Clause"
] | null | null | null | from ctypes import *
from dwfconstants import *
dwf = cdll.LoadLibrary("libdwf.so")
hdwf = c_int()
dwf.FDwfParamSet(DwfParamOnClose, c_int(0)) # 0 = run, 1 = stop, 2 = shutdown
print("Opening first device")
dwf.FDwfDeviceOpen(c_int(-1), byref(hdwf))
if hdwf.value == hdwfNone.value:
print("failed to open device")... | 28.576923 | 77 | 0.74428 |
d729c41c45e0ad91c39b5482430d352eba2c6c9e | 699 | py | Python | src/backend/common/sitevars/flask_secrets.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 266 | 2015-01-04T00:10:48.000Z | 2022-03-28T18:42:05.000Z | src/backend/common/sitevars/flask_secrets.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 2,673 | 2015-01-01T20:14:33.000Z | 2022-03-31T18:17:16.000Z | src/backend/common/sitevars/flask_secrets.py | ofekashery/the-blue-alliance | df0e47d054161fe742ac6198a6684247d0713279 | [
"MIT"
] | 230 | 2015-01-04T00:10:48.000Z | 2022-03-26T18:12:04.000Z | from typing import TypedDict
from backend.common.sitevars.sitevar import Sitevar
| 24.103448 | 76 | 0.706724 |
d729d478b0bd147f173fcca0692b2e9d89ab472f | 1,782 | py | Python | cornflow-server/migrations/versions/f3bee20314a2_.py | ggsdc/corn | 4c17c46a70f95b8882bcb6a55ef7daa1f69e0456 | [
"MIT"
] | 2 | 2020-07-09T20:58:47.000Z | 2020-07-20T20:40:46.000Z | cornflow-server/migrations/versions/f3bee20314a2_.py | baobabsoluciones/cornflow | bd7cae22107e5fe148704d5f41d4f58f9c410b40 | [
"Apache-2.0"
] | 2 | 2022-03-31T08:42:10.000Z | 2022-03-31T12:05:23.000Z | cornflow-server/migrations/versions/f3bee20314a2_.py | ggsdc/corn | 4c17c46a70f95b8882bcb6a55ef7daa1f69e0456 | [
"MIT"
] | null | null | null | """
Added DAG master table and DAG permissions table
Revision ID: f3bee20314a2
Revises: ca449af8034c
Create Date: 2021-12-14 14:41:16.096297
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "f3bee20314a2"
down_revision = "ca449af8034c"
branch_labels = None
depen... | 30.20339 | 74 | 0.626263 |
d72a11a2c8bf6250447fd4fa6eb0f797bb01fbab | 6,184 | py | Python | autoPyTorch/core/autonet_classes/autonet_feature_data.py | thomascherickal/Auto-PyTorch | 9e25a3bdef8e836e63979229eef77830cd64bb53 | [
"BSD-3-Clause"
] | 1 | 2019-09-02T00:37:52.000Z | 2019-09-02T00:37:52.000Z | autoPyTorch/core/autonet_classes/autonet_feature_data.py | thomascherickal/Auto-PyTorch | 9e25a3bdef8e836e63979229eef77830cd64bb53 | [
"BSD-3-Clause"
] | null | null | null | autoPyTorch/core/autonet_classes/autonet_feature_data.py | thomascherickal/Auto-PyTorch | 9e25a3bdef8e836e63979229eef77830cd64bb53 | [
"BSD-3-Clause"
] | 1 | 2019-09-02T00:40:30.000Z | 2019-09-02T00:40:30.000Z |
__author__ = "Max Dippel, Michael Burkart and Matthias Urban"
__version__ = "0.0.1"
__license__ = "BSD"
from autoPyTorch.core.api import AutoNet
| 52.854701 | 126 | 0.733991 |
d72b1da8920d5a9113865f0b4d64b0fa86860726 | 2,421 | py | Python | src/dispatch/incident_priority/service.py | mclueppers/dispatch | b9e524ca10e5b2e95490b388db61c58e79e975e2 | [
"Apache-2.0"
] | 1 | 2022-02-23T02:42:10.000Z | 2022-02-23T02:42:10.000Z | src/dispatch/incident_priority/service.py | mclueppers/dispatch | b9e524ca10e5b2e95490b388db61c58e79e975e2 | [
"Apache-2.0"
] | 1 | 2021-04-30T21:36:14.000Z | 2021-04-30T21:36:14.000Z | src/dispatch/incident_priority/service.py | AlexaKelley/dispatch | b46d8416a0e4ec9badb76f6f3d1765c6093203f8 | [
"Apache-2.0"
] | 1 | 2021-04-08T10:02:57.000Z | 2021-04-08T10:02:57.000Z | from typing import List, Optional
from fastapi.encoders import jsonable_encoder
from sqlalchemy.sql.expression import true
from .models import IncidentPriority, IncidentPriorityCreate, IncidentPriorityUpdate
def get(*, db_session, incident_priority_id: int) -> Optional[IncidentPriority]:
"""Returns an incident ... | 35.602941 | 100 | 0.748451 |
d72c0a38e98d75d19247ea6d9280edc5b014f693 | 1,143 | py | Python | Ex036.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | Ex036.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | Ex036.py | andrade-lcs/ex_curso_em_video_python | f2d029efe7a20cdf0fcb5b602f9992e27d37c263 | [
"MIT"
] | null | null | null | from time import sleep
aa = 0
print('\033[2;31;40m-=\033[m'*40)
while aa == 0:
print('Este software ira calcular seu financiamento')
sleep(1)
a = float(input('Qual a sua renda mensal? R$'))
sleep(1)
b = float(input('Qual o valor do imvel? R$'))
sleep(1)
c = float(input('Em quantos anos des... | 39.413793 | 178 | 0.591426 |
d72d5a4417022f67b70e7c3aa53322cdcc3be526 | 1,295 | py | Python | neuralnetworksanddeeplearning_michael_nielsen/chapter_1/0020_single_perceptron_as_NAND.py | researcherben/learn_machine_learning | db117703786b46d7b3eb5c20b7240d006c01b90d | [
"Apache-2.0"
] | null | null | null | neuralnetworksanddeeplearning_michael_nielsen/chapter_1/0020_single_perceptron_as_NAND.py | researcherben/learn_machine_learning | db117703786b46d7b3eb5c20b7240d006c01b90d | [
"Apache-2.0"
] | null | null | null | neuralnetworksanddeeplearning_michael_nielsen/chapter_1/0020_single_perceptron_as_NAND.py | researcherben/learn_machine_learning | db117703786b46d7b3eb5c20b7240d006c01b90d | [
"Apache-2.0"
] | 1 | 2019-03-03T16:26:16.000Z | 2019-03-03T16:26:16.000Z | '''
Single perceptron can replicate a NAND gate
https://en.wikipedia.org/wiki/NAND_logic
inputs | output
0 0 1
0 1 1
1 0 1
1 1 0
'''
# weight. Higher value means more important
w = [-2, -2]
bias = 3
for indx in range(4):
# input decision factors; value 0 or 1
if (indx == 0): x = [ 0, 0]
... | 23.981481 | 69 | 0.626255 |
d72d81ba3f6fdaef1e59e65c0b11f8060df26e53 | 5,158 | py | Python | job-search/Indeed_Scraper.py | oscarevolves/JobSearch_WebScraper | 776d137e7cdd636774e6c731894dc6c2a9a0a03b | [
"Apache-2.0"
] | 2 | 2019-11-25T20:16:11.000Z | 2019-12-13T19:39:33.000Z | job-search/Indeed_Scraper.py | oscarevolves/JobSearch_WebScraper | 776d137e7cdd636774e6c731894dc6c2a9a0a03b | [
"Apache-2.0"
] | 3 | 2019-11-27T20:40:10.000Z | 2019-12-13T09:36:15.000Z | job-search/Indeed_Scraper.py | oscarevolves/JobSearch_WebScraper | 776d137e7cdd636774e6c731894dc6c2a9a0a03b | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Author: Oscar Villagrana
from bs4 import BeautifulSoup
import re
import pandas as pd
import requests
#-------------------------------------------------
# Making the Soup
#-------------------------------------------------
page = "https://www.indeed.com/q-software-developer-l-San-Francisco-jobs.h... | 28.977528 | 186 | 0.597325 |
d72da0462a860ef207ae387369b10c547914c8ab | 24 | py | Python | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 37 | 2015-04-21T15:33:53.000Z | 2022-02-07T00:02:29.000Z | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 86 | 2015-02-01T22:26:02.000Z | 2021-07-09T08:49:36.000Z | tests/acknowledge/acknowledge.py | orenyodfat/CWR-DataApi | f3b6ba8308c901b6ab87073c155c08e30692333c | [
"MIT"
] | 27 | 2015-01-26T16:01:09.000Z | 2021-11-08T23:53:55.000Z | __author__ = 'yaroslav'
| 12 | 23 | 0.75 |
d72ddd086f69dbbd5f9fa1618ec9586c8a562c0f | 591 | py | Python | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 24 | 2015-01-03T00:47:06.000Z | 2020-11-27T14:58:32.000Z | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 4 | 2015-03-14T14:00:21.000Z | 2020-12-30T07:15:20.000Z | mangopi/tests/site/test_mangaFox.py | BFTeck/mangopi | 8598c8b35c38f9bf2a0880c93af5c1d3ae5728be | [
"MIT"
] | 5 | 2015-02-04T00:44:08.000Z | 2018-08-13T21:59:47.000Z | from unittest import TestCase
from mangopi.site.mangafox import MangaFox
| 28.142857 | 84 | 0.732657 |
d72e69e7855a795df76657ade7f8ca50ed7c1338 | 3,562 | py | Python | src/core/service/extractor.py | Mahe1980/btb | 29f65acb0dc5fe0f6ae03140cff87126a78e4aae | [
"Apache-2.0"
] | null | null | null | src/core/service/extractor.py | Mahe1980/btb | 29f65acb0dc5fe0f6ae03140cff87126a78e4aae | [
"Apache-2.0"
] | null | null | null | src/core/service/extractor.py | Mahe1980/btb | 29f65acb0dc5fe0f6ae03140cff87126a78e4aae | [
"Apache-2.0"
] | null | null | null | import json
import pandas as pd
import re
from pathlib import Path
from src.core.connectors.connectors import get_nz_conn
from src.settings.envs import NZ_TO_DATASET_DTYPE_MAPPING
from src.settings import envs
from src.settings import log_config
import logging
logger = logging.getLogger(__name__)
| 39.142857 | 111 | 0.607805 |
d72eba65f9d051669771438ac61513bf982abaad | 3,925 | py | Python | mmdet/ops/nms_rotated/nms_rotated_wrapper.py | vpeopleonatank/OBBDetection | 86fb098d8d2ff3fc3cc447714d89a44c0939614a | [
"Apache-2.0"
] | 274 | 2021-04-06T15:46:06.000Z | 2022-03-31T02:00:10.000Z | mmdet/ops/nms_rotated/nms_rotated_wrapper.py | vpeopleonatank/OBBDetection | 86fb098d8d2ff3fc3cc447714d89a44c0939614a | [
"Apache-2.0"
] | 136 | 2021-07-11T11:26:54.000Z | 2022-03-31T02:45:34.000Z | mmdet/ops/nms_rotated/nms_rotated_wrapper.py | vpeopleonatank/OBBDetection | 86fb098d8d2ff3fc3cc447714d89a44c0939614a | [
"Apache-2.0"
] | 84 | 2021-05-29T06:58:14.000Z | 2022-03-31T07:44:10.000Z | import BboxToolkit as bt
import numpy as np
import torch
from . import nms_rotated_ext
| 32.983193 | 76 | 0.601783 |
d7315024b9feb9895ac394720425de68d6266009 | 12,033 | py | Python | StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py | AnomalyInc/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | 2 | 2017-04-27T11:04:27.000Z | 2019-02-07T21:03:32.000Z | StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | StreamPy/StreamPy-UI/src/root/nested/temp/MakeNetwork(1).py | StreamPy/StreamPy | 94abca276b2857de48259f4f42ef95efbdf5f6d1 | [
"Apache-2.0"
] | null | null | null | from Stream import Stream
from Stream import _no_value, _multivalue
from Agent import Agent
from root.nested.OperatorsTestNew import stream_agent
def make_network(stream_names_tuple, agent_descriptor_dict):
""" This function makes a network of agents given the names
of the streams in the network and a descript... | 37.25387 | 95 | 0.634588 |
d7343b09e03a726772cf411ddcf471ddbd4605d5 | 10,627 | py | Python | pyfuntofem/base.py | anilyil/funtofem | 332c9fcc90f2b2763b54b9b35f40527de3534a08 | [
"Apache-2.0"
] | null | null | null | pyfuntofem/base.py | anilyil/funtofem | 332c9fcc90f2b2763b54b9b35f40527de3534a08 | [
"Apache-2.0"
] | null | null | null | pyfuntofem/base.py | anilyil/funtofem | 332c9fcc90f2b2763b54b9b35f40527de3534a08 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# This file is part of the package FUNtoFEM for coupled aeroelastic simulation
# and design optimization.
# Copyright (C) 2015 Georgia Tech Research Corporation.
# Additional copyright (C) 2015 Kevin Jacobson, Jan Kiviaho and Graeme Kennedy.
# All rights reserved.
# FUNtoFEM is licensed under t... | 32.59816 | 138 | 0.57655 |
d735642e9d558eb3bf9fdd07fb6538d0fa899e7b | 987 | py | Python | shell/core/backdoors.py | theralfbrown/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | 3 | 2020-03-21T04:37:50.000Z | 2021-08-14T07:31:13.000Z | shell/core/backdoors.py | security-geeks/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | null | null | null | shell/core/backdoors.py | security-geeks/shellsploit-framework | 93b66ab9361872697eafda2125b37005f49116be | [
"MIT"
] | 3 | 2020-02-04T13:28:47.000Z | 2020-06-10T01:34:19.000Z | from color import *
#Will be add command line params ..
| 17.625 | 37 | 0.672746 |