blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8dc0a87dd10e8d1d8503e312210b327d6098d695 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /katas/beta/only_readable_once_list.py | b075f9fe98d07c99e321b7906fe37c77f51fe6d7 | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | class SecureList(object):
def __init__(self, lst):
self.lst = list(lst)
def __getitem__(self, item):
return self.lst.pop(item)
def __len__(self):
return len(self.lst)
def __repr__(self):
tmp, self.lst = self.lst, []
return repr(tmp)
def __str__(self):
... | [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
4bfb6408fe3122c020282667a4a2da27d9bce309 | ea2cf796332879d86561f80882da93b672966448 | /configs/csl/rotated_retinanet_obb_csl_gaussian_r50_adamw_fpn_1x_dior_le90.py | 06b08881da2ee813a6c9b31343d7fc13168ee2d2 | [
"Apache-2.0"
] | permissive | yangxue0827/h2rbox-mmrotate | 968c34adf22eca073ab147b670226884ea80ac61 | cfd7f1fef6ae4d4e17cb891d1ec144ece8b5d7f5 | refs/heads/main | 2023-05-23T10:02:58.344148 | 2023-02-14T05:28:38 | 2023-02-14T05:28:38 | 501,580,810 | 68 | 8 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | _base_ = \
['../rotated_retinanet/rotated_retinanet_hbb_r50_adamw_fpn_1x_dior_oc.py']
angle_version = 'le90'
model = dict(
bbox_head=dict(
type='CSLRRetinaHead',
angle_coder=dict(
type='CSLCoder',
angle_version=angle_version,
omega=4,
window='gaus... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
628776070784ddd0d523624b6c9462eea95ff6bf | 0d8486c1d55c40bebea7c5428930f18165d2d0e9 | /tests/asp/AllAnswerSets/aggregates/count.example4.test.py | 76a4479b403d3b6ffc18810437b0f4bc40d563f8 | [
"Apache-2.0"
] | permissive | bernardocuteri/wasp | 6f81bf6aa8fb273c91bbf68ecce4ecb195a55953 | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | refs/heads/master | 2021-06-08T11:58:25.080818 | 2020-10-05T16:57:37 | 2020-10-05T16:57:37 | 124,245,808 | 0 | 0 | Apache-2.0 | 2018-03-07T14:13:16 | 2018-03-07T14:13:16 | null | UTF-8 | Python | false | false | 625 | py | input = """
1 2 0 0
1 3 0 0
1 4 0 0
1 5 0 0
1 6 2 1 7 8
1 7 2 1 6 8
1 8 0 0
1 9 2 1 10 11
1 10 2 1 9 11
1 11 0 0
1 12 2 1 13 14
1 13 2 1 12 14
1 14 0 0
1 15 2 1 16 17
1 16 2 1 15 17
1 17 0 0
2 18 2 0 2 12 6
1 1 1 0 18
2 19 2 0 2 15 9
1 1 1 0 19
1 20 1 0 15
1 20 1 0 12
1 21 1 0 9
1 21 1 0 6
1 1 1 1 21
1 1 1 1 20
0
20 ad... | [
"carminedodaro@gmail.com"
] | carminedodaro@gmail.com |
ebe79df1ad52ea7869c585362ad2a6af388c05ff | eb4877802021fa9f20962a7cfb176239dfb1e169 | /py/testdir_single_jvm/test_GBMGrid_basic.py | bc789ffa818ccfead0bc492810e7f8731686b00e | [
"Apache-2.0"
] | permissive | jinbochen/h2o | bd6f2b937884a6c51ccd5673310c64d6a9e1839b | 48a5196cc790ed46f7c4a556258f8d2aeb7eb1c1 | refs/heads/master | 2021-01-17T23:33:42.765997 | 2013-11-14T20:06:23 | 2013-11-14T20:08:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,703 | py | import unittest, time, sys
sys.path.extend(['.','..','py'])
import h2o, h2o_cmd, h2o_glm, h2o_hosts, h2o_import as h2i, h2o_jobs
DO_CLASSIFICATION = True
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
global localhost
... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
38927db265890ba6187601389420bb4787358329 | 5aef1c2397b96a352f26a9bc3c280bd69171da4c | /Environments/django-env/lib/python3.6/warnings.py | 9425815c0fab76c7114648e38564d2b1a5e2efcd | [] | no_license | FRANKLIU90/Python | ed01cb6aa31c313cdcbb1b514df5db830d0090d3 | b6066bde6e452c5463a4680a688d5628f4a1b898 | refs/heads/master | 2020-04-01T03:08:39.765409 | 2018-10-12T22:44:47 | 2018-10-12T22:44:47 | 152,811,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | /Users/frankyoung/anaconda3/lib/python3.6/warnings.py | [
"python.frankliu@gmail.com"
] | python.frankliu@gmail.com |
65c2e9073be62766e95cebe8a13c9ff565514568 | 3b6ba8d4dc4dd8fe572c1419709facc7bdc2274e | /ai4water/et/utils.py | 52ff6c28677cbbd9cbc4a5bdf178ee7c3ed62076 | [
"MIT"
] | permissive | AtrCheema/AI4Water | fd5bfda1eee530e7bc9ed1b2130ed49dd0d5bf89 | ec2a4a426673b11e3589b64cef9d7160b1de28d4 | refs/heads/master | 2023-09-04T10:59:55.902200 | 2023-02-10T15:55:32 | 2023-02-10T15:55:32 | 284,684,202 | 47 | 17 | MIT | 2023-02-10T15:56:43 | 2020-08-03T11:39:22 | Python | UTF-8 | Python | false | false | 54,339 | py | import re
import math
from easy_mpl.utils import process_axis
from .converter import Temp, Speed, Pressure
from .global_variables import ALLOWED_COLUMNS, SOLAR_CONSTANT, LAMBDA
from .global_variables import default_constants, SB_CONS
from ai4water.backend import np, pd, plt
class AttributeChecker:
def __init__... | [
"ather_abbas786@yahoo.com"
] | ather_abbas786@yahoo.com |
e6b5ea99b76ac5c4be63a4df030cc2d3b5250e7d | 5e5263335626da19e7bffbf82cdbdf5cf2ef94bf | /output_to_nc.py | c4a57a3d473bd1c16141ffb165b6f0d579e9afcd | [] | no_license | nltyrrell/greb_tools | 777e4e4000ed76841fb6d0b1aa9387d8c5d7c56d | 37f6911138f08c5b2b8d490fe3fc07f0b14cec13 | refs/heads/master | 2021-01-01T16:26:01.578981 | 2015-03-27T01:06:40 | 2015-03-27T01:06:40 | 31,241,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,291 | py | import numpy as np
import matplotlib.pyplot as plt
import iris
import iris.plot as iplt
import iris.quickplot as qplt
import sys
import os
# author: Nicholas Loveday
# modified by Nicholas Tyrrell Feb 2015 to use Iris
#This script contains functions for creating plots for the GREB model
##############################... | [
"nicholas.tyrrell@monash.edu"
] | nicholas.tyrrell@monash.edu |
5b8c497921a55d8f2874a4cd060150eafc9b020e | b24e42b82b211d7d22ec57a56d4fc6a9bf782040 | /web/web/brainweb.py | ced39191f49e9820257201e71b706736f56a267c | [] | no_license | pmanava1/EM-connectome | d5276982ac94511b821d099bdf330c315c970079 | ff35d46cea4b51900b4b3fe6d3546f87a29f5834 | refs/heads/master | 2021-01-15T16:57:50.601766 | 2012-01-25T18:37:03 | 2012-01-25T18:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | #!/usr/bin/env /usr/local/epd-7.0-2-rh5-x86_64/bin/python
import empaths
import web
import restargs
import brainrest
import annrest
web.config.debug=True
urls = (
'/bock11/(.*)', 'bock11' ,
'/hayworth5nm/(.*)', 'hayworth5nm' ,
'/hayworth5nm.annotate/(.*)', 'hayworth5nmAnnotate' ,
'/kasthuri11/(.*)', 'kasthuri... | [
"randal@cs.jhu.edu"
] | randal@cs.jhu.edu |
a93164796eaa571c517dc3a2993e7377c297e581 | faa54203033398d264c75814b899d253edf71c9b | /pyflux/gas/__init__.py | dfb1ab71874ada0b2da30c57785c375b3036e9ae | [
"BSD-3-Clause"
] | permissive | th3nolo/pyflux | 4a9e646f9ee0e650676b82134d3810c0a98d8963 | 21bc18ddeabce277e4485e75962e5fa5ff3a46ea | refs/heads/master | 2020-12-02T15:08:53.257900 | 2016-07-24T17:47:59 | 2016-07-24T17:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | from .gas import GAS
from .gasx import GASX
from .gasmodels import GASPoisson, GASNormal, GASLaplace, GASt, GASSkewt, GASExponential
from .gasllm import GASLLEV
from .gasllt import GASLLT
from .gasreg import GASReg
from .scores import BetatScore, SkewtScore | [
"rj-taylor@live.co.uk"
] | rj-taylor@live.co.uk |
4fad2da17132e760ada4823f86f1c68eaee544e8 | 85bc7c68adcad2032c880bc0f93133688d1cc967 | /logger.py | 9733db45e76ef3d906310b5f77433cee0c18634d | [] | no_license | rae83/autocomplete-server | e061156dcbb2bb3c6c45693b0b3d7ff2a1046443 | 66ae15558edc1eeb97b9da5c7ae461a8b7d02ff0 | refs/heads/master | 2020-03-26T15:32:37.732949 | 2018-08-16T23:51:41 | 2018-08-16T23:51:41 | 145,049,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | import logging
from logging.handlers import RotatingFileHandler
import os
# Logger from: https://github.com/yxtay/char-rnn-text-generation
def get_logger(name, log_path=os.path.join(os.path.dirname(__file__), "main.log"), console=False):
"""
Simple logging wrapper that returns logger
configured to log int... | [
"rae83@cornell.edu"
] | rae83@cornell.edu |
19086394a0f2a9f79cbb20e7e4f5a39efe50a248 | 44c631dbb17d56ff48212c5629544125b9d83521 | /tbgame.py | d82740792c1d18bc7097356b8299eaad3f7c7e75 | [] | no_license | briankacupaj/WW2-TextBasedGame | 1144110eaabeb756394723306389df7cd6c2fc84 | f4dd263951c89df87cbaad32907c13c4a16070db | refs/heads/main | 2023-07-21T20:29:09.671829 | 2021-09-02T22:37:29 | 2021-09-02T22:37:29 | 402,580,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,077 | py | import time
import random
items = []
def valid_input(prompt, options):
while True:
option = input(prompt).lower()
if option in options:
return option
print_pause(f'Sorry, the option "{option}" is invalid. Try again.')
def print_pause(string):
print(string)
time.sleep... | [
"noreply@github.com"
] | briankacupaj.noreply@github.com |
35bc67154ffe8de7f1362b6480e4246002cbb1dd | 0898fbb930a58aa1ff57c955bfefa5df66c9e6a3 | /day08/day08.py | b1a799aa2ccb2960fd1ddd2a1991df95bfc1bf69 | [] | no_license | ngsengleng/adventofcode2020 | 1e533ad7e00f462b47addcc3a7aa97d1b2f1425a | 6d40768e19cd5b8a1ec7b75d336bbc7735b28999 | refs/heads/master | 2023-02-02T00:51:13.108655 | 2020-12-16T13:12:59 | 2020-12-16T13:12:59 | 317,387,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | f = 'day08_input.txt'
#f = 'a.txt'
data = open(f, 'r').read().split("\n")
import copy
def get_instr(s):
return s[:3]
def get_num(s):
return int(s.split(" ")[1])
# part 1
def prog1():
instr_set = set()
num = 0
ptr = 0
while ptr not in instr_set:
instr_set.add(ptr)
instr = get... | [
"ngsengleng@gmail.com"
] | ngsengleng@gmail.com |
f79c9ac3da69afb6f18aca5cfd8be28254cb7292 | 811b67fca9efd7b6a2b95500dfdfbd981a2be9a7 | /Machine Learning For Finance/Lesson5_2.py | c7d259b4d24c65ca989844a257248ee28f058f98 | [] | no_license | inaheaven/Finance_Tool | a978ae534dca646088a12b58e00a8ce995b08920 | adeaf05307dc1d4af002bea3d39c3273e93af347 | refs/heads/master | 2020-05-23T13:41:33.912276 | 2019-07-03T02:06:28 | 2019-07-03T02:06:28 | 186,781,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | import pandas as pd
import matplotlib.pyplot as plt
import os
def symbol_to_path(symbol, base_dir="Data/data"):
return os.path.join(base_dir, "{}.csv".format(str(symbol)))
def get_data(symbols, dates):
df = pd.DataFrame(index=dates)
if 'SPY' not in symbols:
symbols.insert(0, 'SPY')
for symb... | [
"sangmin.rim@gmail.com"
] | sangmin.rim@gmail.com |
f9c8be44958d2e203e046c76d6dfb7572522327f | 1c59524a45a5859d1bff39f83f7b4e6b2f9fdfbb | /lib/mAP/mAP.py | 78f5e3d6d62f015872801f3a79c328360dc00c04 | [] | no_license | fendaq/Arithmetic_Func_detection_for_CTPN | d62087547e863f22df4c219ddd616ced4103a42b | 2bf6e05cd706189918ef892666d151894a049fad | refs/heads/master | 2020-03-30T04:17:10.971584 | 2018-09-28T09:48:27 | 2018-09-28T09:48:27 | 150,734,626 | 2 | 0 | null | 2018-09-28T12:05:15 | 2018-09-28T12:05:15 | null | UTF-8 | Python | false | false | 26,963 | py | import glob
import json
import os
import shutil
import operator
import sys
import argparse
MINOVERLAP = 0.5 # default value (defined in the PASCAL VOC2012 challenge)
parser = argparse.ArgumentParser()
parser.add_argument('-na', '--no-animation', help="no animation is shown.", action="store_true")
parser.add_argument(... | [
"chizhanyuefeng@gmail.com"
] | chizhanyuefeng@gmail.com |
4021f6ccb782ce07395d7c0a57af4745e9314937 | 395a4cdd8ce93181199901755a60aed30feabce0 | /flask/bin/coverage | b6a50b476e47d10c218ea3d4cccdfb09a2f85611 | [] | no_license | jlrosa/eserv_auth | 61987cb1a591caf0de5a8fc11fb17b8b4698901f | 8cea12e8e59e86a9522fc029b46a8b87fffa7687 | refs/heads/master | 2021-01-10T09:49:30.854348 | 2016-04-27T09:57:15 | 2016-04-27T09:57:15 | 48,278,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/jlrosa/PycharmProjects/EServ/flask/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jlrosa@ua.pt"
] | jlrosa@ua.pt | |
5199557c64e8efc44c6c09dfeb7a9589f570a1b3 | ddcc3a61898229381300e6e23e43ef7eb3ecec73 | /rancher2.py | 43e0db84efec15d90fa9e82b65069a5aea73ae67 | [] | no_license | gespi1/scripies | 971a7aeab6f7ee40c02e7b673539f7213e00c764 | 1f321e8010e419f7be1f7994d01930213bd48178 | refs/heads/master | 2023-08-25T03:47:29.194424 | 2021-10-03T14:51:28 | 2021-10-03T14:51:28 | 146,621,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | import requests
import json
import argparse
parser = argparse.ArgumentParser(description='finds the volume ID for a persistent volume claim')
parser.add_argument('--project', required=True, help='name of the project')
parser.add_argument('--namespace', required=True, help='name of the namespace within project')
parser... | [
"gespinoza@greathealthworks.com"
] | gespinoza@greathealthworks.com |
f52f5a4bad8ed31e4cb462e2ed17207a1b3255a4 | e298bf40ae88c2bd8e0a07f3e92f3e08a92edcc6 | /rpc.py | cbe3b0616fbd34a490c87035a6645337e0a63f49 | [] | no_license | KevinKaiQian/polar-bear | 46a814c746246394f76505846166673a049f12f2 | 61d4e0ccd7328a6aa543af3b75e5f7fedf98bf8e | refs/heads/master | 2022-04-29T02:15:35.536039 | 2021-05-19T12:33:07 | 2021-05-19T12:33:07 | 172,068,536 | 2 | 0 | null | 2022-03-29T21:56:51 | 2019-02-22T13:11:58 | Python | UTF-8 | Python | false | false | 16,644 | py | # Copyright 2013 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
2c3f9bf1eb7af4abf52697eb26f2d9fc8262ce2d | 23631af0987b3f1d30b0bf8bfcea1bd63159eeba | /gate_api/configuration.py | 4b19c91ec5f25ad45dffcb2880c0358f4580b286 | [] | no_license | xuvw/gateapi-python | 08c3c72ff0e2c4713bf3a2ffe0b15d05e57491ca | 1a3f3551cba4a756f76f17b070c3e0c5ff2e88ea | refs/heads/master | 2020-05-25T14:33:35.592775 | 2019-04-02T08:50:25 | 2019-04-02T08:50:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,144 | py | # coding: utf-8
"""
Gate API v4
APIv4 provides spot, margin and futures trading operations. There are public APIs to retrieve the real-time market statistics, and private APIs which needs authentication to trade on user's behalf. # noqa: E501
OpenAPI spec version: 4.6.1
Contact: support@mail.gate.io... | [
"revilwang@gmail.com"
] | revilwang@gmail.com |
54418ba4ea7bebddbc9352d1581bdaaae2620632 | 96502aad42c8ca91eb41aadca053f55c970799ea | /fastinference/inference/export.py | 4ba118d10d8a10cec45f170e1082a2e96bfe76e2 | [
"Apache-2.0"
] | permissive | hamelsmu/fastinference | 7a39ae59d7360d1ab55fd1b84b9a22afd32f7744 | 13abbd3f34aee7bca0aa66ec35dbd0048631817c | refs/heads/master | 2022-12-08T20:53:45.348089 | 2020-08-19T00:59:30 | 2020-08-19T00:59:30 | 288,598,960 | 1 | 0 | Apache-2.0 | 2020-08-19T01:04:32 | 2020-08-19T01:04:31 | null | UTF-8 | Python | false | false | 3,345 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/00b_inference.export.ipynb (unless otherwise specified).
__all__ = ['get_information']
# Cell
from fastai2.vision.all import *
# Cell
def _gen_dict(tfm):
"Grabs the `attrdict` and transform name from `tfm`"
tfm_dict = attrdict(tfm, *tfm.store_attrs.split(','))
... | [
"muellerzr@gmail.com"
] | muellerzr@gmail.com |
b86351c6429663e169bcf62e81619428d6e0a535 | c878f4d92162f072b803b0c63cdc0a4a8a3090db | /board.py | 4dc0da87b86961619b3e6b2485569c4cb8240e4b | [] | no_license | resfari/board | e9b87d4446126be4816d0441a4db81f905edd1a6 | 35dbdec5897bdb587b155322a9cca268ad8fb242 | refs/heads/master | 2020-12-28T11:06:00.105115 | 2020-02-06T00:46:04 | 2020-02-06T00:46:04 | 238,306,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,385 | py | import random
import sys
import time
USAGE = """
#######################################################################
Usage:
python3 board.py [-help] | [M] [N] | [-p] [path]
Example:\n python3 board.py 70 70
Where is:
[-help] - print usage
[M] - Board hight (M >= 1)
[N] - Board width (N >= 1... | [
"noreply@github.com"
] | resfari.noreply@github.com |
7556cb3735c1fd4e20ea6630c3b74c34c5b5dc33 | a336ca401d5ae916a0c40e02e9fb128e9200828c | /.c9/metadata/environment/accounts/models.py | 8a93c154f7b621867991b1381b94e4fba7f160fa | [] | no_license | h8130084/UnicornAttractor | 7566d6c81c2073e65bdae825dc87798c28c4ce0f | c3bfb12f1d9c0e43b7d21fbc67925278b24af7aa | refs/heads/master | 2021-06-20T19:38:44.947213 | 2019-12-21T13:35:30 | 2019-12-21T13:35:30 | 222,289,623 | 0 | 1 | null | 2021-06-10T22:16:28 | 2019-11-17T17:59:55 | HTML | UTF-8 | Python | false | false | 424 | py | {"filter":false,"title":"models.py","tooltip":"/accounts/models.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":2,"column":26},"end":{"row":2,"column":26},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView... | [
"ubuntu@ip-172-31-84-242.ec2.internal"
] | ubuntu@ip-172-31-84-242.ec2.internal |
b190c5125c2353ba82e1f90f3fdf45a4b86f617f | f0cf25bd4b08e75f0815932416dab60a11b4dc8a | /summary.py | d3e8b3714ac332a24943e855db3c8706d37657a4 | [] | no_license | baganaakh/odoo_api | e89845e4335bd30e1e4d7f2a433741031d6f8758 | 9f1327da6abbfc35aebf2c0034c58b4bd47c0f0a | refs/heads/master | 2023-01-06T14:35:34.767093 | 2020-11-06T10:03:45 | 2020-11-06T10:03:45 | 307,901,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,260 | py | import xmlrpc.client
import json
from datetime import datetime
import time
url = 'http://localhost:8099'
db = 'db58atest'
username = 'baganaa@alldomain.biz'
password = 'work3939'
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db, username, password, {})
models = xmlrpc.c... | [
"baganaakh@gmail.com"
] | baganaakh@gmail.com |
6e7091a9db3c8d7d22b1d7ab6cc6f3c41bd5c680 | df07500faa45bc87105578ba941ce70d4b64c5da | /Chapter2:Large-scale_data_analysis_with_spaCy/Exercise15.py | 477df8e045982cc1a8b967ce35961b3385e1d03c | [] | no_license | BrandonHT/spaCy-tutorial | 08e564db42e1c39f3ec0f105e810ca553b5eeb24 | f3236255e97b84a3ec96f5c14a39c2922fb2508a | refs/heads/main | 2023-02-20T21:56:31.525029 | 2021-01-22T02:49:22 | 2021-01-22T02:49:22 | 330,812,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #Phrase matcher
import json
from spacy.lang.en import English
with open("exercises/en/countries.json", encoding="utf8") as f:
COUNTRIES = json.loads(f.read())
nlp = English()
doc = nlp("Czech Republic may help Slovakia protect its airspace")
# Import the PhraseMatcher and initialize it
from spacy.matcher import ... | [
"brandonhdz2707@gmail.com"
] | brandonhdz2707@gmail.com |
3b464e32cead8156280b1162b8ca8b0d564414bf | 43ec7be4d9c9da383869f24ab07ddc6c7810fe95 | /src/brick.py | c409a8d72d54694f1b2c13f9b57ea16e8340e60e | [] | no_license | Xaqiri/raycastingLOSTest | 75197867be39166e1f6172f7b1253fb39439fab3 | 254d95dd701191f0633c99d1a0d7380e9d6eb998 | refs/heads/master | 2020-05-29T08:50:54.883309 | 2017-03-27T21:21:01 | 2017-03-27T21:21:05 | 70,184,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | import pygame as p
class Brick():
def __init__(self, pos, size, color, font):
self.pos = pos
self.size = size
self.color = color
self.icon = '#' if self.color == (100, 100, 100) else '.'
self.font = font
self.id = 'wall' if self.icon == '#' else 'floor'
... | [
"xaqiri@outlook.com"
] | xaqiri@outlook.com |
7e04c1a3e47a0a3b89d53db7ec53b1b48c02ba06 | 7084600cd442ff13438e56e2ac81f40ff943c1a1 | /tendenci/addons/campaign_monitor/tasks.py | 6602b1370ec42638efe2fd4d448d3d89c8db7dba | [] | no_license | legutierr/tendenci | 16989422c96dc4b542710db130113b81bfe4b7c0 | 7f5c9ab16e23b0de40a7a803b90306bdc31736a2 | refs/heads/master | 2021-01-16T21:52:35.751347 | 2012-09-27T18:45:26 | 2012-09-27T23:36:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | from celery.task import Task
from celery.registry import tasks
from django.contrib import messages
from django.shortcuts import redirect
from createsend import Template as CST
from tendenci.core.site_settings.utils import get_setting
class CampaignGenerateTask(Task):
def run(self, template, **kwargs):
#se... | [
"aragsdale@schipul.com"
] | aragsdale@schipul.com |
710c30670b96b69fcbbe860faf68e239f623e14e | 15eca1cdc59b02c432ef445b37661f0a0151d13d | /quiz/admin.py | 4d46300e2c55298c3006a97019acd3170a161aa5 | [
"MIT"
] | permissive | raksa/django-quickstart | cf27e3396f7b18a53fb48744a2b93eb0bdea8e62 | ff3ca34662b0adca4ffb29cfa8f871d861053bf3 | refs/heads/master | 2022-12-20T20:41:18.016138 | 2019-08-09T07:38:38 | 2019-08-09T07:38:38 | 191,318,909 | 0 | 0 | null | 2022-12-08T05:14:49 | 2019-06-11T07:36:41 | Python | UTF-8 | Python | false | false | 275 | py | from django.contrib import admin
from . import models as m
@admin.register(m.Question)
class QuestionAdmin(admin.ModelAdmin):
list_display = ('question_text',)
@admin.register(m.Choice)
class ChoiceAdmin(admin.ModelAdmin):
list_display = ('choice_text', 'votes')
| [
"eng.raksa@gmail.com"
] | eng.raksa@gmail.com |
a4e757e00264694a74c847735313da1e78c7691a | 25f086a7afc54275a6c5c46c78a69908dce9b130 | /nerf/run_nerf_helpers.py | fd2c5902cbec25871357de4a1e9344a5a6183520 | [
"MIT"
] | permissive | Tubbz-alt/NeRF-Implementation | 57a32cf24d20b6b5355da52d2eb0634f9169a39d | 4a0e46dbf61f45622c7f1bb33415eb977f8e0216 | refs/heads/master | 2022-12-18T22:34:55.142675 | 2020-09-27T04:00:15 | 2020-09-27T04:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,440 | py | import os
import sys
import tensorflow as tf
import numpy as np
import imageio
import json
# Misc utils
def img2mse(x, y): return tf.reduce_mean(tf.square(x - y))
def mse2psnr(x): return -10.*tf.log(x)/tf.log(10.)
def to8b(x): return (255*np.clip(x, 0, 1)).astype(np.uint8)
# Positional encoding
class Embedder... | [
"bcaa2017@mymail.pomona.edu"
] | bcaa2017@mymail.pomona.edu |
e80dbe3f146430b849d82e582afac85ba73f9e37 | 204d220c5c54eb2c4f746495779c406636dc1302 | /kAFL-Fuzzer/kafl_gui.py | 1a54a44c8532ca49d2f45376b0d30da036dbb14c | [] | no_license | dlehgus1023/kAFL | 314cc720b9ed5c4f2c783ed022bb0faca2826a43 | 90759b273a57d1591b34c39a63b21d6afc319c2a | refs/heads/master | 2023-01-01T21:07:13.408334 | 2020-10-29T10:05:51 | 2020-10-29T10:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,090 | py | #!/usr/bin/env python3
#
# Copyright (C) 2017-2019 Sergej Schumilo, Cornelius Aschermann, Tim Blazytko
# Copyright (C) 2019-2020 Intel Corporation
#
# SPDX-License-Identifier: AGPL-3.0-or-later
"""
Given a kAFL workdir, produce a text-based UI with status summary/overview.
"""
import curses
import string
import msgpa... | [
"steffen.schulz@intel.com"
] | steffen.schulz@intel.com |
432e3a168d9f8584af32b3451b25be2587875a63 | 59d345e60814e84a278fb9a23cb8b92aa0a73ffe | /Case4/python/Es2.py | 8babb9e909efdab16343f055b3b426edcc4f6dd1 | [] | no_license | paoloceravolo/BIS2021 | b58aff463b716d8c56f5dbfeeeeffa97a73f60f1 | 749a638cb56e2955a1ca25f55ab0cae54c3c91e0 | refs/heads/main | 2023-05-30T05:47:54.971445 | 2021-06-09T07:56:58 | 2021-06-09T07:56:58 | 352,548,786 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,277 | py | import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from mlxtend.preprocessing import TransactionEncoder
from mlxtend.frequent_patterns import apriori, fpmax, fpgrowth
from mlxtend.frequent_patterns import association_rules
from pm4py.objects.log.util import dataframe_utils
from pm4py.objects.conve... | [
"paolo.ceravolo@unimi.it"
] | paolo.ceravolo@unimi.it |
dd47b3c3b12d0394c13cd989e4409d25f90ad2cc | 3e3506f8a9c18744b5e9c1bda2f66315d2ebe753 | /snippets/serializers.py | 4089503add5e5b2f37f19c8d9fb456de701cad2f | [] | no_license | didoogan/drf | 63ad069540124ab057d4f271aa76be650486981a | 2a0446b6d38ef8ce67c031b2ac5bff62c519cf40 | refs/heads/master | 2020-07-31T00:24:19.904525 | 2016-08-24T20:55:11 | 2016-08-24T20:55:11 | 66,281,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from rest_framework import serializers
from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
from django.contrib.auth.models import User
class SnippetSerializer(serializers.HyperlinkedModelSerializer):
owner = serializers.ReadOnlyField(source='owner.username')
highlight = serializers.Hyperlinke... | [
"tzd0409@gmail.com"
] | tzd0409@gmail.com |
5cb2d812c8f0556a94ef4ec982ce8335c0bb556d | 9f3eb3b468c17ede4108e933b89686d81556b7db | /sso_db_dr.py | 418bc9a4b0f09295c7535abdb216f17e00f6c1e7 | [] | no_license | aditya-prasad13/myrepo | 5667783dfe803c50713fe00feaac698abe547b7b | 7519f237ba43d6498bd6ad03718f1596c70856ad | refs/heads/master | 2020-12-02T17:43:27.684325 | 2017-07-21T09:55:45 | 2017-07-21T09:55:45 | 96,417,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!/usr/bin/python
import requests
import flask_restful as restful
class sso_full_dr(restful.Resource):
def get(self):
mxs_url = "http://192.168.42.112:5000/api/v0.1/sso_maxdrswitch"
mng_url = "http://192.168.42.112:5000/api/v0.1/sso_mongodrswitch"
mx_rslt = requests.get(mxs_url)
mx... | [
"aditya_prasad@rediffmail.com"
] | aditya_prasad@rediffmail.com |
667c2f6baccf55d67c3bb2adc53b01dc04b4b014 | 9f456fa10d8f7570f8ca4ba80ccd988ff55ec8b1 | /rango/forms.py | 427b1a2a1f5799f927e714f04d37037e49bf2f5d | [] | no_license | EdwardTsangUoG/Rango | 9026acbe8334ef8c23596ee29080b0028e958382 | e9d8eee69f131b3988e08ee195f0b834048675c5 | refs/heads/master | 2022-06-13T12:41:48.033255 | 2020-05-04T03:10:46 | 2020-05-04T03:10:46 | 259,286,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | from django import forms
from rango.models import Page, Category
from rango.models import UserProfile
from django.contrib.auth.models import User
class CategoryForm(forms.ModelForm):
name = forms.CharField(max_length=Category.NAME_MAX_LENGTH,
help_text="Please enter the category name."... | [
"2091762t@student.gla.ac.uk"
] | 2091762t@student.gla.ac.uk |
077fa8b5db26b02abb818582046ec268a8d0215b | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/danfolkes-Magnet2Torrent/allPythonContent.py | 0beca59a21a4fb5422f36851ab3bc50601572d49 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,287 | py | __FILENAME__ = Magnet_To_Torrent2
#!/usr/bin/env python
'''
Created on Apr 19, 2012
@author: dan, Faless
GNU GENERAL PUBLIC LICENSE - Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free S... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
610f28250abaf9af175a94307bc6a7f7ee042213 | 7aaa07473630e113126779ca06feee0f38284c0e | /000_DOC/scripts_curso_ice/leo_linea.py | 6964e0d4ee8c7ea0b7367515a70f00a0da3e5163 | [] | no_license | angellinares/GEN_ALG_PY | 10c7a8d8e0c3b1286827f6d70af209c16f884d0d | 5f86e3171303f9cb1358e2944310a184151d80d2 | refs/heads/master | 2021-01-10T13:50:37.850627 | 2015-10-27T18:27:36 | 2015-10-27T18:27:36 | 45,052,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import timeit
fichero = open("texto.txt", 'r')
lineas = fichero.readlines() # leo el fichero de golpe
print lineas
for i, k in enumerate(lineas):
if i == 2:
lin = k.split(',')
print "primer valor %d" % int(lin[0]) # si no lo convierto en entero me da error porque lo considera una cadena
print "segundo valor ... | [
"angel@monzon8.es"
] | angel@monzon8.es |
f90e32623be87b1e57f0764c5dee61fda7509d3a | 514223cfd2815fb91f811787d7994793d8c09019 | /QUANTAXIS/QAMarket/QAShipaneBroker.py | 141cfee13978a11d106b2673c9dd529de95f2819 | [
"MIT"
] | permissive | frosthaoz/QUANTAXIS | 350d9c8f28cecc124ae3f1b5ff1809daed5bd431 | f5f482418e5f6e23ac3530089b8d17300d931b48 | refs/heads/master | 2020-04-01T04:24:17.147637 | 2018-10-12T05:17:16 | 2018-10-12T05:17:16 | 152,862,049 | 1 | 0 | MIT | 2018-10-13T10:44:03 | 2018-10-13T10:44:02 | null | UTF-8 | Python | false | false | 14,363 | py | # coding:utf-8
import base64
import configparser
import json
import os
import urllib
import future
import asyncio
import pandas as pd
import requests
import datetime
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from QUANTAXIS.QAE... | [
"yutiansut@qq.com"
] | yutiansut@qq.com |
3bf3ccb41efe680ae577b1d5444cf90dde7f37a2 | 4599452268f81ee81df8cd5b121fc29678391792 | /src/draw_spheres.py | 06d4fb0463b4a54a746afa4f497db0d8223de43b | [
"MIT"
] | permissive | detorto/mdvis | 766cd94ac7f3c125608f83d3652b120ffbf9bfb7 | 289142f590d5df8f497621a1c1789afacce4809f | refs/heads/master | 2021-01-23T14:03:52.960284 | 2015-11-17T11:23:39 | 2015-11-17T11:23:39 | 42,182,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,597 | py | # mencoder "mf://mpg_288x288x24_lam15_t273_a0353140_0000_rv.dat_%d.png" -mf fps=20 -o anim.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=500
import numpy
import sys
from mmdlab.datareader import readfile_metgas_bin
from mmdlab.utils import make_mlab_scalar_field
from mmdlab.utils import show_scalar_planes
from mmd... | [
"dpuzyrkov@gmail.com"
] | dpuzyrkov@gmail.com |
9161e0ad432f400f0a9950f61ccdff10dcdb800a | 69c613b80e324ff13d2fd69de87c19f159d10723 | /test.py | 92c5d4c80e8c3d0060843521db5f2d26d1e951a5 | [] | no_license | cliu268/playground | e0f711cf4b50dd85583819e5a36e3eb470ab9af4 | 7ed0105e0ec020220cccde2dcee17f95c67b06a0 | refs/heads/master | 2023-08-30T01:13:33.398037 | 2021-09-15T15:35:23 | 2021-09-15T15:35:23 | 299,123,945 | 0 | 2 | null | 2021-03-11T04:23:18 | 2020-09-27T21:38:54 | Jupyter Notebook | UTF-8 | Python | false | false | 572 | py | # print("Hello World!")
# print(" /|")
# print(" / |")
# print(" / |")
# print(" / |")
# print(" /____|")
# name = "WHATTTT"
# print(" My name is " + name + "!!!!")
# num1 = input("Enter number1:")
# num2 = input("Enter number2:")
# result = float(num1) + float(num2)
# print(result)
... | [
"cliu268@gmail.com"
] | cliu268@gmail.com |
5ba2c69680a94e067d20d9d5048ce32195a28bdc | 081baf594da8cefdd99db375b161df0b3f80a15e | /core/utils/rabbitmq/fanout_exchange/send.py | c993324fea6c0a3562294c62f6d80bc9843369b6 | [] | no_license | chaochaoge123/interview_flask | 2d9924594535cf7a88663099870614096ea7133a | a1e7b1f08a2f2b98be1eff6f06fdd0eb6e2fae5d | refs/heads/master | 2023-03-11T22:22:00.578869 | 2021-02-26T03:03:18 | 2021-02-26T03:03:18 | 341,771,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/2/25 14:33
# @Author : qqc
# @File : send.py
# @Software: PyCharm
import pika
import sys
# https://www.rabbitmq.com/tutorials/tutorial-three-python.html
credentials = pika.PlainCredentials('admin', 'admin')
parameters = pika.ConnectionParameters(hos... | [
"qqcqqc_123@163.com"
] | qqcqqc_123@163.com |
d65acbb13cc247e4ebe4347446bc3a48b0474403 | c9ee704b92fa0f32aa15a761ffa68569cb192544 | /13.py | c94e9eea06974fb45a02bb5e60b1c1546b1cb33f | [] | no_license | projecteuler123/projecteuler123 | 0822cce85bb95be6a82523be852437f6fa63e39d | bfc6c868ba038b209df09a9fc995ae1a381561f4 | refs/heads/master | 2020-03-31T05:58:28.364912 | 2018-12-03T03:07:19 | 2018-12-03T03:07:19 | 151,963,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,295 | py | a="""37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741059474233309513058123726617309629
91942213363574161572522430563301811072406154908250
23067588207539346171171980310421047513778063246676
89261670696623633820136378418383684178734361726757
281... | [
"noreply@github.com"
] | projecteuler123.noreply@github.com |
967471732afb0087d67b56255bd24043c473e360 | 40568ca4b55301ce319b7e2226b33a8a58ac45ec | /23. Intro to MongoDB/add_document_to_db.py | 5a88b8e504d4f3efb3ed929265da4e659be23695 | [] | no_license | robbrooks1991/Coding-Challenges | 4b56fe9b6702a8636fe15b29cd46e9ac206b0c66 | d56e60d53e4940c6a3377c43181b6381a548d461 | refs/heads/master | 2021-01-20T07:57:35.403416 | 2017-06-21T18:56:47 | 2017-06-21T18:56:47 | 90,068,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import pymongo
def mongo_connect():
try:
conn = pymongo.MongoClient()
print "Mongo is connected!"
return conn
except pymongo.errors.ConnectionFailure, e:
print "Could not connect to MongoDB: %s" % e
conn = mongo_connect()
db = conn['twitter_stream']
coll = db.my_collection
doc =... | [
"brooksr144@gmail.com"
] | brooksr144@gmail.com |
7c7d143151241e5115e2adc2b0d3f88f829828b8 | bb8d14ae2f99c5b0f78e2942d69d78ed12358c2e | /tracker/TejaTracker.py | 0089d1892d45a7133d264b2e2a0b6cde25da1cd6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lowfill/monedaTEJA | 9354d018e15dadc0383ae78d2955b1c8ed410a67 | 9e737f7f2a3475b18e8382515d0e259c67e0319a | refs/heads/master | 2021-01-18T12:48:06.642061 | 2013-11-14T16:19:46 | 2013-11-14T16:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | #!/usr/bin/python
"""
PunkMoney 0.2 :: Tracker.py
Main listener class for finding and parsing #PunkMoney statements.
"""
from utils.tejaparser import Parser
from time import sleep
import argparse
# Main Tracker class
class TejaTracker(Parser):
def __init__(self):
self.setupLogging()
self.c... | [
"lowfill@gmail.com"
] | lowfill@gmail.com |
81dbb46e91e62093f5b7c5b4d0d6aa967f7e3f03 | d40c5de528cb43b3c6570bc5faeafca5c18e49b5 | /wikinow/views.py | d1fd3c59d8c14c7846c4fe3b686b50f64464eeaa | [] | no_license | yuchaozh/WikiNow | c50296c57d27ca77b712ba726ad3dbc9140b25f8 | f6eecd69af8251de20da2c18c4d436922aacab43 | refs/heads/master | 2021-01-16T19:29:23.804765 | 2014-06-04T21:23:15 | 2014-06-04T21:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from django.shortcuts import render
# from .models import Page
import grab_articles, alchemy_category, news_links, wiki_category
def extract_title(whole_title):
if "..." in whole_title:
sub_title = whole_title.split("...")
elif "-" in whole_title:
sub_title = whole_title.split("-")
title = sub_title[0].rstrip()... | [
"leeabrittany@gmail.com"
] | leeabrittany@gmail.com |
891825cba08187b7841fc95a4b003d692a9c30e3 | fa4618ab323f37137e2cf3044a773085f4737c03 | /yabgp/tests/unit/message/attribute/test_mpreachnlri.py | f17a5fd14f4ab18c6bdc0be08a03e93b45dd4e75 | [
"Apache-2.0"
] | permissive | heidinet/yabgp | 5ebe5dfe93ad34baef71a1a9f8493649fd479be6 | 912e0cd71d3d95089556e421e5499d6bed299414 | refs/heads/master | 2021-01-01T19:45:52.508388 | 2017-07-21T08:29:11 | 2017-07-21T08:29:11 | 98,679,210 | 1 | 0 | null | 2017-07-28T18:57:11 | 2017-07-28T18:57:11 | null | UTF-8 | Python | false | false | 12,557 | py | # Copyright 2015 Cisco Systems, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
29622513bc0b3f87feee614eb571c556137821be | 846ac76a39ac168cb3fb4721001a433c0aa418c2 | /users/models.py | bf09d16a5128c900579403004b469784849af2ad | [] | no_license | Kalyani2306/the_blog | 28f75c3001b226a58733462353abb5aecf10eccb | cd25c0fcf0349fb43d8b3e41bcec8b37c646a294 | refs/heads/master | 2023-06-09T20:10:32.703855 | 2021-06-29T12:30:09 | 2021-06-29T12:30:09 | 232,806,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to='profile_pics')
def __str__(self):
return f'{self.user.... | [
"kalyanipunpale3@gmail.com"
] | kalyanipunpale3@gmail.com |
c2e453a82d6f0ff67fd2933ca09cdf638d6bc380 | 117c5f672da4a4e45ed3c3d32bc3d7e307d33e90 | /0430/blog/mothersday/myblog/migrations/0001_initial.py | 3de1a7e4e7d53fd1b1db8d3991d9f0f607a60470 | [] | no_license | Abonopen/JerryHW | 1f9cb6df68e6f8d8d9d61ee0219a4e26ce271e3f | 940a051d812b06b0586d513c4949753c777a6eb3 | refs/heads/master | 2022-12-23T05:38:53.116747 | 2018-05-11T05:57:12 | 2018-05-11T05:57:12 | 125,175,644 | 0 | 1 | null | 2022-12-17T01:30:53 | 2018-03-14T07:52:58 | Python | UTF-8 | Python | false | false | 724 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-08 12:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Message'... | [
"imkevin0322@gmail.com"
] | imkevin0322@gmail.com |
28c68876752e055269fc5f373c2077f62b221565 | f0bb39fa0d5eb80f081e9f39e59107c9e5f1d473 | /src/implem/ResCNF.py | 1f2efcb9d9a097a5542c320b2cb0a1a26f371095 | [] | no_license | TomVeniat/bsn | f30411e64152a302dde7bfa1426bc2d9fdb3fe80 | 04337e3ea147563768f62aaa496cdb599352487b | refs/heads/master | 2020-03-17T21:21:03.185920 | 2019-02-25T12:41:57 | 2019-02-25T12:41:57 | 133,954,480 | 29 | 5 | null | null | null | null | UTF-8 | Python | false | false | 11,450 | py | from numbers import Number
import networkx as nx
import numpy as np
import torch.nn.functional as F
from torch import nn, torch
from src.interfaces.NetworkBlock import ConvBn, NetworkBlock, Add_Block
from src.networks.StochasticSuperNetwork import StochasticSuperNetwork
from src.utils import loss
from src.utils.drawe... | [
"tom.veniat@lip6.fr"
] | tom.veniat@lip6.fr |
8ca270f8a0167db21533bd8099dfadd32d69046e | 2093151c3f1c91e57e73e9610a37aeabc8ae80f0 | /tests/test_models/test_user.py | 69284dcb6082596803a9925bddf346c75dc5c476 | [] | no_license | alejolo311/AirBnB_clone | 0af09c65e690fa965f55cd591293c022fabcb143 | 679f60bff0125512608f49ddf0b34854767a6a8d | refs/heads/master | 2021-01-03T22:15:38.501560 | 2020-03-01T22:08:08 | 2020-03-01T22:08:08 | 240,256,659 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #!/usr/bin/python3
'''Tests for User class'''
import models
from models.base_model import BaseModel
from models.user import User
import os
import unittest
class TestUser(unittest.TestCase):
'''start tests'''
def test_docstring(self):
'''test if funcions, methods, classes
and modules have docs... | [
"alejolo311@gmail.com"
] | alejolo311@gmail.com |
4e8a9a0d46ec6fd7a0d4e4a3469d3697125dc00a | 11c24617b0f62bc55b7d2f34eb65fa63e3e3ec06 | /Comprehension-Exercise/02. Words Lengths.py | aea8d7a42100485f584a4451e6753d1751ba87ad | [] | no_license | SilviaKoynova/Python-Advanced | 2d1750a4943b82a82ec910d29241bd3fc473289e | 0a94556592bca60b29a85849a5e694f2eeeda52b | refs/heads/main | 2023-07-18T05:41:33.641250 | 2021-08-26T21:15:13 | 2021-08-26T21:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | text = input().split(', ')
print(*[f"{name} -> {len(name)}" for name in text], sep=', ') | [
"noreply@github.com"
] | SilviaKoynova.noreply@github.com |
971b10ea19c5d1463cb92b153dc361635405f186 | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/dcbxtlv_37d6aa3b470efb288cbc76a9c77c1804.py | d458b4bd197b07612fdfe9f43e94db2631f8cae0 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 18,046 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
7cec84d82d2dcb14c1cbdaf99b64ffc73e1ae94e | 11771f5dd90a74d5c76765f27f0d9a9cb044f57b | /route/bbs_make.py | 2185cef4c1bdcfd50b641b610aa030eb0d012695 | [
"BSD-3-Clause"
] | permissive | openNAMU/openNAMU | cc031ea848ac6d829ad243fcf59da26adf0f0814 | 868107e4ef53e4e78af15c590673b78ee385baa5 | refs/heads/beta | 2023-08-24T10:20:00.245680 | 2023-08-23T14:09:53 | 2023-08-23T14:09:53 | 78,184,261 | 86 | 75 | BSD-3-Clause | 2023-09-13T21:36:03 | 2017-01-06T07:22:10 | Python | UTF-8 | Python | false | false | 2,024 | py | from .tool.func import *
def bbs_make():
with get_db_connect() as conn:
curs = conn.cursor()
if admin_check() != 1:
return re_error('/error/3')
if flask.request.method == 'POST':
curs.execute(db_change('select set_id from bbs_set where set_n... | [
"min08101@naver.com"
] | min08101@naver.com |
6e5b281dfdbc8eb03b095b591ce654289d789360 | e0c8e66af3a72a1cc534d7a90fead48754d266b3 | /vb_suite/miscellaneous.py | 8295d275f2dd615f626d02981203b406f233a1ea | [
"BSD-3-Clause"
] | permissive | gwtaylor/pandas | e12b0682347b9f03a24d6bff3e14f563cb7a3758 | 7b0349f0545011a6cac2422b8d8d0f409ffd1e15 | refs/heads/master | 2021-01-15T17:51:47.147334 | 2012-01-13T17:53:56 | 2012-01-13T17:53:56 | 3,174,111 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from vbench.benchmark import Benchmark
from datetime import datetime
common_setup = """from pandas_vb_common import *
"""
#----------------------------------------------------------------------
# cache_readonly
setup = common_setup + """
from pandas.util.decorators import cache_readonly
class Foo:
@cache_reado... | [
"wesmckinn@gmail.com"
] | wesmckinn@gmail.com |
7aa9d2cb87065aef1464ae63bb6dfa762d3f2e1d | 53ed8fab57a74b2e724cef67d3588fce264e6104 | /day1/d1p8(1).py | a82e594491f1af28736eccbdb0926c2b97fb80f3 | [] | no_license | thazhemadam/Serious-Python | ca97e2e6dd87a43828e840810718536cf0ca2d51 | 30d92c9a8ca2343575a4cc0d9a88dedcc8806f80 | refs/heads/master | 2022-11-12T22:24:06.510139 | 2020-06-27T18:34:49 | 2020-06-27T18:34:49 | 275,432,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,276 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 26 18:54:42 2019
@author: user
"""
#Let us stop using our Find function
import re
#we used re.search to return a match object
#we used group function to return what we found
# Let us say we want to find differentc pieces of what we found
# username is one par... | [
"anant.thazhemadam@gmail.com"
] | anant.thazhemadam@gmail.com |
b1a39c78d0f3cac0cac701615403f6d5fbbfdeaa | ee5d53e8f8c150bfa7c8a3a4bb982ded3a972faa | /suit._online_ossMember.py | f13ff877c4f4495176a212b2825696e49f1bbe3f | [] | no_license | regend/redriver | 7f25d9bdd974ff73d4777e37e8d7164c03ae4fb3 | 85383b547e9bd848c73a3e8b91a34dda17766427 | refs/heads/master | 2020-05-09T08:53:04.621598 | 2019-04-03T06:42:14 | 2019-04-03T06:42:14 | 180,996,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | # coding=utf-8
import unittest
import sys
from src.ossMember.member.member import MemberInfo
from src.ossMember.member.memberAdd import MemberAdd
from src.ossMember.member.placementSelect import PlacementSelect
from src.ossMember.orders.order_Change import OrderChange
from src.ossMember.orders.order_Change_Add import O... | [
"kanecake@qq.com"
] | kanecake@qq.com |
376183f1fd02abc26c81e2af35be1774eebe4052 | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/bfdrouter/bfdrouter.py | a4c8d026e8eb6e4b33d202bfd079514c11616f61 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 2,602 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
a4cfe939cf946016e8aa26c131d44218af521253 | d5f53599338a30a9d6c7de7d5c574db59545ed3d | /Gse/generated/Ref/channels/SG1_SignalGen_Output.py | dd5c8e60cf31bbd105160631ee8ff53b9fd5a55e | [
"Apache-2.0"
] | permissive | dstockhouse/eaglesat-fprime | c39a01cc5648dcd8b351f47684923fe481c720be | e640b3faea0000e1ca8acab4d6ff66150196c32b | refs/heads/master | 2020-05-07T15:31:09.289797 | 2019-11-20T00:33:15 | 2019-11-20T00:33:15 | 180,639,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | '''
Created on Wednesday, 10 April 2019
@author: David
THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT!!!
XML Source: /cygdrive/c/Users/David/Documents/eaglesat/eaglesat-fprime/Ref/SignalGen/SignalGenComponentAi.xml
'''
# Import the types this way so they do not need prefixing for execution.
from models.serialize... | [
"dstockhouse@gmail.com"
] | dstockhouse@gmail.com |
29999708e5d55ff8c392e6c15d6e2e9caebd8144 | 7f0fcbdd5ff790adc310c674d2d8c3659d109a62 | /sdt/migrations/0052_ucs_operator_is_active.py | 53c3c313b346e356ae8869f01ba3392042a4e061 | [] | no_license | linyi1130/paddy | f797463b60b0c3e06b8c817db1525cdb0388b2a2 | 366a5d9cedda6f153f29b3ad3542f8f9a53bc866 | refs/heads/master | 2021-09-09T15:11:36.424493 | 2018-03-17T09:28:30 | 2018-03-17T09:28:30 | 111,760,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-04 16:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sdt', '0051_ucs_deposit_balance_account_target_id'),
]
operations = [
migra... | [
"15162533@qq.com"
] | 15162533@qq.com |
6a4b9b33ccb4907b8e2d6194e8a505fcd0aaaeb0 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /539.py | 3f49db2b3056bb0ea18a9558663dea67f0a5b806 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | class Solution(object):
def findMinDifference(self, timePoints):
"""
:type timePoints: List[str]
:rtype: int
"""
timePoints.sort()
diff=float("inf")
for i in range(1,len(timePoints)):
time1=timePoints[i%len(timePoints)]
time2=timePoin... | [
"noelsun@mowennaierdeMBP.lan"
] | noelsun@mowennaierdeMBP.lan |
2d54d1dc86dd11ca0fd2da892931be9a65a2636a | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v6_0_2f/interface/port_channel/ipv6/hide_vrrpv3_holder/vrrpv3e/__init__.py | 5325359c0954094916091552e54c3c268cbea198 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,828 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
e3cd591b49df0c6b2e15e200adda136e62a8bd76 | b7f20e9e993513cce1726af481dbe0a78a94645e | /QtResultVisualization/MplCommands.py | 50d5d69304414f463639c7d2b3ae8147a75246e0 | [] | no_license | SvenMarcus/ResultVisualization | 38b6f0f7eba3fd52aea8dcd31a93a7a3f7cefc5a | 9d103857bd6228b476a899b469fe48868dfb98ac | refs/heads/master | 2021-10-25T23:43:30.179944 | 2019-04-08T10:49:48 | 2019-04-08T10:49:48 | 109,824,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | from matplotlib.backends.backend_pdf import PdfPages
from matplotlib.backends.backend_template import FigureCanvas
from ResultVisualization.Commands import Command
from ResultVisualization.Dialogs import ChooseFileDialog, DialogResult
from ResultVisualization.MainWindow import MainWindow
class ExportPdfCommand(Comma... | [
"s.marcus@outlook.de"
] | s.marcus@outlook.de |
4dd41f91081d4649e198f6707d9523f035a40245 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2021_12_01_preview/aio/operations/_access_review_instance_operations.py | 378596af3f8ac6f043cf6a4178c98399aedc4ea8 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 15,208 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
e30ba69f7f8611075d519ba70a3cf7c4d2bbef58 | a4a555c49c2b7f18171c9e7a3f739f415f48c8c6 | /Lesson3/filehand3.py | fa38ba6146ba976a20b709843a7d3ab65e4fe5b8 | [] | no_license | moshegplay/python_digital | 1f40093db066d8353a61123caf2594fd9a5d681a | 703e8046894e632ce3535bbc656399048ba6452d | refs/heads/master | 2023-02-05T13:25:53.687961 | 2021-01-03T10:39:18 | 2021-01-03T10:39:18 | 356,987,725 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | filename = "C:/Users/אידן חכימי/Documents/Pycharm/hello.txt"
file = open(filename, "r")
print(file.readlines()[2])
file.close()
#########################
##Create a empty file
# f = open("C:/Users/אידן חכימי/Documents/Pycharm/NET4U.txt", "x")
# f.close()
| [
"idanhakimi@gmail.com"
] | idanhakimi@gmail.com |
63aa433b5a60c02b8d6c24ed27079611527400cb | 1ad90e99ef4c8dc35085326233121072a8d15158 | /datagen/generate.py | c6bdcee29fed2179a65b8126c9b9874e044344a3 | [] | no_license | c-guo16/embedding | 99757761f8a51d8c9933497bd11025acd233bbf9 | 3cc1748f475b8cd5abc8eecb9960e92dfbe51d9d | refs/heads/master | 2023-01-21T10:23:15.157971 | 2020-11-28T15:06:30 | 2020-11-28T15:06:30 | 316,748,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | import cv2,numpy,csv
# num_of_res_needed=10000 #生成的训练图片的数量(大约)
# network_input_width=36
#
# if __name__ == '__main__':
#
# img=cv2.imread("./1.jpg",cv2.IMREAD_COLOR)
#
# img_width=img.shape[1]
# img_height=img.shape[0]
# lens_width=int(img_width/10)
# scanned_width=img_width-lens_width
# scan... | [
"2016010563@SEcoder.net"
] | 2016010563@SEcoder.net |
2dd13606ceedf90c8358b2e2e402aaead40749b4 | 2ed5bded83b3b6a1994646ad99b97e6ec6fb01c4 | /ZJetAnalysis/test/flatTree_DoubleMu_Run2012A_cfg.py | 059c662fe77e50072a1ce0a6d0fbbf96ccc49289 | [] | no_license | ForwardGroupBrazil/QCDCodes | 737877bff9c03743609a40b13576524fd2f77b94 | 97abf589b19967f8b26fa8ce05b9a113124d5c9e | refs/heads/master | 2021-01-22T14:38:41.741628 | 2013-09-05T22:40:27 | 2013-09-05T22:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("myprocess")
process.load('FWCore.MessageService.MessageLogger_cfi')
from CMGTools.Production.datasetToSource import *
from CMGTools.Common.Tools.applyJSON_cff import *
##-------------------- Define the source ----------------------------
process.maxEve... | [
""
] | |
dffed986b4dbd206299a14c1eeed0d5c4cb867a6 | 9a074d92f2cbf40d7148ef1f544ccb246a9d73ed | /systeme_de_gestion_de_stock/projet/settings.py | ff0da279cb12ebe3c77892a1a4e5e31e7978f2b4 | [] | no_license | sergedemanou/systeme_de_gestion_de_stock | 300cc7bef2e9ab7469dd49c7d98329aac048bc08 | c3372fcf5530f2b743186f4ed643dae4a6497780 | refs/heads/main | 2023-04-02T05:13:17.585830 | 2021-04-01T08:33:20 | 2021-04-01T08:33:20 | 353,316,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | """
Django settings for projet project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"demanou05@yahoo.fr"
] | demanou05@yahoo.fr |
12bf17c185f2953f9facbbc757deae5717c3e196 | f8492d149d14fb2137b522368f841f22686657fe | /Codi/masp-master/masp/array_response_simulator/simulate_array.py | e3c8e8cf285f4e864a2c841db768fc05ff9cf8dc | [] | no_license | MarcFranco/TFG | fdfae5fd30bd9a714986605e523c077d35e88f62 | 390289f02dc512f38c7a4810fed75d86b826e6ff | refs/heads/Inicial | 2022-11-21T10:08:47.498368 | 2020-07-06T21:34:54 | 2020-07-06T21:34:54 | 237,506,523 | 1 | 1 | null | 2020-03-23T11:44:36 | 2020-01-31T20:00:58 | Python | UTF-8 | Python | false | false | 16,093 | py | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#
# Copyright (c) 2019, Eurecat / UPF
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of... | [
"marc.franco02@estudiant.upf.edu"
] | marc.franco02@estudiant.upf.edu |
dca89cf77d813bdb1d0fed7d050952a5d09b0573 | e45d539e04d91bda4e622983a5b955cd496052f4 | /Sauvegarde_event.py | 90219e7007f809248969fe36066100034cc94579 | [] | no_license | dupuis24/projet1 | 88a1ce938cacdc14dfaff24fb8d294001d5267b0 | 18273b53be534cf3fd8bc0b35e50082ca8aaab93 | refs/heads/master | 2020-03-21T21:07:48.370384 | 2018-08-16T16:51:57 | 2018-08-16T16:51:57 | 139,047,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,825 | py | # import the necessary packages
from collections import deque
from threading import Thread
from queue import Queue
import time
import cv2
class KeyClipWriter:
def __init__(self, bufSize=64, timeout=1.0):
# store the maximum buffer size of frames to be kept
# in memory along with the sleep timeout ... | [
"clarence.dupuis.1@ens.etsmtl.ca"
] | clarence.dupuis.1@ens.etsmtl.ca |
9967b11ca418049e6e54fc94c3f1f8329ceb7f25 | 61e6538e049fd0d10424eb78f2197d8758fac3ce | /kitty.py | d2ddd30572d7f677c16f3e174e14e41a14345b7b | [] | no_license | chivaree/chivaree | 544769e0350addffe6b1eac6c4fe69f3a8eb3b9b | 4c265600b1de81f3918a1b7d58158651223837c5 | refs/heads/master | 2020-03-28T08:53:01.555001 | 2019-05-30T01:52:18 | 2019-05-30T01:52:18 | 147,996,168 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,144,848 | py | # -*- coding: utf-8 -*-
from Rin2.linepy import *
from Rin2.akad.ttypes import *
from multiprocessing import Pool, Process
from datetime import datetime
from time import sleep
from bs4 import BeautifulSoup
from humanfriendly import format_timespan, format_size, format_number, format_length
import time, random, sys, jso... | [
"noreply@github.com"
] | chivaree.noreply@github.com |
f012952b29876b396eeff208f656b11ad3d1d3d2 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc025/C/2658196.py | 38086edb4f9e8897ebee6bd4d4c545b41c0b5eb2 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from itertools import accumulate
N = int(input())
L, R = [0], [0]
for i in range(N):
li, ri = map(int, input().split())
L.append(li)
R.append(ri)
L.sort(reverse=True)
R.sort()
L = list(accumulate(L))
R = list(accumulate(R))
ans = 0
for k in range(N+1):
ans = max(ans, 2*(L[k]-R[k]))
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
7bcff9fa804b622d48c7a6bb33873bdeede52060 | b61dedf12868e2bc511b6693af1985911a13f336 | /src/logpipe/formats/json.py | 5747c863e36910b285e51dc63598357f2e147fee | [
"ISC"
] | permissive | vitorcarmovieira/django-logpipe | f9eebb6674b9ba180a63448c9d71ce2e87929f7c | 89d0543e341518f9ae49124c354e6a6c2e3f4150 | refs/heads/main | 2023-03-03T13:18:22.456270 | 2021-02-13T17:29:32 | 2021-02-13T17:29:32 | 326,679,534 | 1 | 1 | ISC | 2021-02-13T17:29:32 | 2021-01-04T12:39:30 | Python | UTF-8 | Python | false | false | 139 | py | from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
__all__ = ['JSONRenderer', 'JSONParser']
| [
"crgwbr@gmail.com"
] | crgwbr@gmail.com |
8c0b325e2e4aca60b2f48cba3d141b41ada9d59f | 22aea5e9057d04bc90fe3984233a7cdbe72ec24f | /traversal.py | b4d2487908d4dd729c9c3022907410d9c6a67914 | [] | no_license | chigginss/Coding-Challenges | fbea1cc6e6345a2a44946e6d7c085200576fbb71 | 8bedfeab54abcacb3ce096db60977211486c781c | refs/heads/master | 2020-03-21T21:32:26.618673 | 2018-08-21T02:38:22 | 2018-08-21T02:38:22 | 139,069,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | def num_of_paths_to_dest(n):
# input: n - a positive integer representing the grid size.
# output: number of valid paths from (0,0) to (n-1,n-1).
# create a 2D array to save values
memory = [0][0]
# initialize with -1 and then add
for i in range(0, n-1):
for j in range(0, n-1):
memory[i][j] = -... | [
"cierramhiggins@gmail.com"
] | cierramhiggins@gmail.com |
53cd30d03207556424257a7a49ed432f13b6260a | 9aa7b52847a161507eae57c222f6f3b3473fbf67 | /Project/Main/bin/pyhtmlizer | cb636c852d7d27ecd58cab7c59fd4e7b1fc7541b | [] | no_license | azatnt/Project_Aza_Madi | 13a41bcc7bc822503136046dd5905a0884ffccb5 | d2804cd2b1e9b97d44e85d6a24c45d3f41458db3 | refs/heads/master | 2023-01-22T18:17:17.512344 | 2020-11-16T15:56:00 | 2020-11-16T15:56:00 | 261,734,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/Users/sulpak/Documents/GitHub/Project_Aza_Madi/Project/Main/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.scripts.htmlizer import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"58590243+pr1nce07@users.noreply.github.com"
] | 58590243+pr1nce07@users.noreply.github.com | |
4d04066a8e7c894b6f4b1c2667046f8289665528 | c89354cb7aaa05c47a207f40863fa39948e396f4 | /tests/test_exams.py | 064756220ddba6afdb2b3de89e6872401267e617 | [] | no_license | mariiiiiia/profapp | 17fbc6cca6c71212593b7eceff2a9d1a8b3ab9a4 | 4dba874817989fea4b4b6d533a856595a5a97eb7 | refs/heads/master | 2021-01-18T14:14:41.511205 | 2016-01-07T00:34:51 | 2016-01-07T00:34:51 | 10,173,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | import datetime
from django.test import TestCase
from django.test.client import Client
from profapp.models import Student
class TestExam(TestCase):
def setUp(self):
self.stu = [Student.objects.create(am=i,
date_enrolled=datetime.datetime.now(),
... | [
"darksaga2006@gmail.com"
] | darksaga2006@gmail.com |
2a8283ca822002a8cb5973f40a079fd1219f0a40 | 5cd4879e432281d39519fbc9801b001a3a3f4151 | /walloff_web/server_resources/monitor.py | dc96d585f674b5f6729bc4665efb948b28e131c0 | [] | no_license | WalloffDev/Walloff | 43cc5dc0a999cc84843fe5c4da4e673d19fee103 | 256b284d43d7e0dfc22e01ca61f05208e8241015 | refs/heads/master | 2016-09-05T10:44:18.392947 | 2012-12-28T18:23:33 | 2012-12-28T18:23:33 | 6,498,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | # Monitors heartbeats from Android clients #
# Import(s) #
import threading, socket, json
import constants
from lobby_app.models import *
class monitor( threading.Thread ):
# Member(s)
tag = '[MONITOR]: '
monitor_socket = None
ready_flg = None
killed_flg = None
def __init__( self ):
try:
threading.Thread... | [
"bodine.andrew@gmail.com"
] | bodine.andrew@gmail.com |
f6be5f348da2ecdc3c2f5549a9bb3406e3276280 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-securitycenter/google/cloud/securitycenter_v1/types/vulnerability.py | a9fea0e6bca2b8199f9e1f0237c0ce0083326912 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 12,429 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
b7b1ab392f3f33005886b428869d51aedb37ce95 | c13807d1bfddb0218de2d8d124fac582cdecfc5c | /200B.py | 73d4e2490933d310cd2a803565b2359bf2dbc2f3 | [] | no_license | FrankGuo22/Codeforces | b6d09f7bb89abd16d68c1324a684b8be204285ba | 33007f5868838303c4b544bec49f4ca5453f45a0 | refs/heads/master | 2021-01-22T07:13:54.502378 | 2015-05-15T10:54:21 | 2015-05-15T10:54:21 | 31,418,410 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # coding = utf - 8
n = raw_input()
a = map(int,raw_input().split())
sum = 0
for i in a:
sum += i
f1,f2 = float(sum),float(n)
print '{0:.12f}'.format(f1/f2) | [
"526720698@163.com"
] | 526720698@163.com |
36e92b3d30e1040b8e63d1028c04440af0a0e16e | 8548329b7f0aa42e8587f7ee663b8eb8ae84dac9 | /dec1.py | 1579f177029606ac5c0bea9f4d51a04c3915ad4a | [] | no_license | vijeeshtp/python22 | 379f631c77a87df5dcf9910f63b447beaed833c0 | 0d14c3de5fc893779c4fc1926209edea9536feb8 | refs/heads/master | 2020-07-31T23:11:31.820544 | 2019-10-23T06:08:34 | 2019-10-23T06:08:34 | 210,783,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | def xyz (f):
def inner (*a, **b):
print ("---------")
f (*a, **b)
print ("---------")
return inner
@xyz
def hai ():
print ("Hai")
@xyz
def hello():
print ("Hello")
@xyz
def add (a,b):
print ( a+b)
@xyz
def greet (**vals):
print (vals)
print ( vals['msg'] +" ," + ... | [
"vijeesh.tp@techehub.com"
] | vijeesh.tp@techehub.com |
6ac441a175fc3eed064b134d0875d6e53af26e72 | dad5e3ba2261afffcb11333efc3ddf30e20cfcd3 | /topwordsLogOdds.py | ca75565cb0fca1b07a554a85b0a9c46badda3976 | [] | no_license | Angelaaaaaa/Machine-Learning | 96332ad1a30e20ca87bf34b9edec2aa45a14aefb | f90af97e4737d4c5324b46df52200197c413cd5c | refs/heads/master | 2021-01-22T04:01:10.010757 | 2017-02-09T20:38:26 | 2017-02-09T20:38:26 | 81,490,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | import sys
from collections import Counter
import math
import operator
train = sys.argv[1]
fo = open(train, "r")
docs = fo.readlines()
docs = map(lambda s: s.strip(), docs)
def Vnb():
libL = []
conL = []
# split C and L txt file
for txt in docs:
if txt[0] == "l":
libL.append(txt)
else:
con... | [
"noreply@github.com"
] | Angelaaaaaa.noreply@github.com |
8a6fa6896581a869d9bd68c1edf00f636e662dc3 | 0dddcf0dbc8519270e754a4569faff845e991f36 | /pybrowser/downloader.py | 97d8fabf47ae3892dfb198fb13bf4476e6d64eac | [
"MIT"
] | permissive | abranjith/pybrowser | bc5b08933513eadf688e19f93f0890e50a512dd8 | 8a4d435c7071e64e881f2c274fabd5cd7805ea34 | refs/heads/master | 2022-12-13T04:33:04.665674 | 2019-04-28T16:08:53 | 2019-04-28T16:08:53 | 168,921,806 | 22 | 2 | MIT | 2022-12-08T04:57:29 | 2019-02-03T07:44:21 | Python | UTF-8 | Python | false | false | 14,626 | py | import sys
import os
import zipfile
try:
import tarfile
except ImportError:
pass
try:
from urllib import request
except ImportError:
import urllib as request
from requests import Session as HTTPSession
from selenium import webdriver
from selenium.webdriver.chrome.options import Options as ChromeOptions
... | [
"abranjith@gmail.com"
] | abranjith@gmail.com |
2296f109907a1fc0cd3e374b1f43a5f9f53158e3 | d055ea30c1df408b894daf0c2714de21d77fae46 | /django_Project/django_Project/settings.py | 2e5dce150fe1bed4667564f08fc79d0852028214 | [] | no_license | vishvakkumaran/Argonne-Summer-Project-2020 | 7414fc7eec1ba7ac4dafec4a762b4f081d27a2d9 | f7c2b804e3b4aa9878791c6c846bf56fc69332ae | refs/heads/master | 2022-11-18T08:47:48.600898 | 2020-07-20T20:58:03 | 2020-07-20T20:58:03 | 263,693,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | """
Django settings for django_Project project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"vishvakkumaran@cooleylogin1.fst.alcf.anl.gov"
] | vishvakkumaran@cooleylogin1.fst.alcf.anl.gov |
fad239a76939996543ed888402063bca524bc74e | 02a8f927ed485c97e39b294f722aa3174e4bccb5 | /Dimensionality Reduction Folder/Kernel PCA/main.py | 5ae0fba12de74570895871f85af9c2555d5e6da5 | [] | no_license | Quantanalyst/MLeducationalprojects | 768cc2e2216e6fbf712cbbe2a7c3d1209847dc9c | 07a6c983ca03244cf04864d3185d01dc9312bad3 | refs/heads/master | 2020-09-19T23:02:07.451848 | 2020-01-30T20:22:14 | 2020-01-30T20:22:14 | 224,317,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 16 11:16:06 2019
@author: saeed mohajeryami, PhD
Kernel PCA
"""
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.il... | [
"smohajer85@gmail.com"
] | smohajer85@gmail.com |
42ce96bca156c131b8614cf4782ddab933300c90 | 4553c5c7bbdb07779fab531a350000050d885221 | /level2/main.py | c18b4f8c67b24f9c345931233137ef05c882d91f | [] | no_license | Rsilnav/CatalystsCodingContest2017 | 509c972cf9363315cffeb1bc87c8855e8833a824 | f5bcd53519c234a54c6d8bcb49128fa110fa390e | refs/heads/master | 2021-01-18T20:40:10.194819 | 2017-04-02T12:27:20 | 2017-04-02T12:27:20 | 86,984,186 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | import math
def dist(x1, y1, x2, y2):
return math.sqrt((x1 - x2)**2 + (y1 - y2)**2)
def dista(p1, p2):
return dist(p1[0], p1[1], p2[0], p2[1])
f = open("level2/level2-2.txt", "r")
cities = int(f.readline())
list_cities = {}
for city in range(cities):
temp = f.readline().split()
print temp
x =... | [
"rafael.silnav@gmail.com"
] | rafael.silnav@gmail.com |
9eeb8154ad72096462bd0ea3277bc31c5aac1128 | 4ba2947d58c0fcd997be73441224f81263b9d3f7 | /2_002_Stack_and_Queues/010_implement_queue_using_stacks.py | 4fc1977e0b7d15e00a007cfd69f82dfc151997e3 | [] | no_license | codeamt/udacity-dsa-nand | e2c9934cc780d6ad3c2e7d978a5b7046dae12788 | 0801b74f9be48d2a45eecfe32fca7ae7f109ee39 | refs/heads/master | 2022-04-23T21:38:49.140675 | 2020-04-27T18:10:13 | 2020-04-27T18:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | class Stack:
def __init__(self):
self.items = []
def size(self):
return len(self.items)
def push(self, item):
self.items.append(item)
def pop(self):
if self.size()==0:
return None
else:
return self.items.pop()
class Queue:
def __ini... | [
"ludovico.pinzari@gmail.com"
] | ludovico.pinzari@gmail.com |
2b1eb5d84af5a55379d7ebea11b1bc7f0318c0e2 | d43a44c3cd030040e784efc490b2c7b3ee1a2533 | /provider/views.py | 1a1e466804d4a9f436ea0b43a0ca8176e57f841a | [] | no_license | mersysider/mozio | b26401c94949d13eb8bd01538aa8464cf09570ea | 88fa22bf6f283fe5f4259e9715d0298329b40a68 | refs/heads/master | 2021-01-01T04:27:08.164564 | 2016-05-04T04:49:12 | 2016-05-04T04:49:12 | 58,014,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.shortcuts import render
# Create your views here.
from .models import Provider | [
"mersysider@gmail.com"
] | mersysider@gmail.com |
3e14c52e46b70e5aca1d0f5a055cabdee1774a89 | 372da4f11ff2996f4c7e023884f12455fdfbb045 | /RA4Analysis/plotsDaniel/makeSubPlot.py | 0888769bf88a5d67e18425f2471031eadb7038fd | [] | no_license | HephyAnalysisSW/Workspace | ec127f75da58c1bbf12f8999055a1ef513598e94 | dcdee36e344dec8cbfe6dd6986e2345d9c1af25f | refs/heads/94X-master | 2022-11-22T01:52:28.179081 | 2019-03-12T13:19:04 | 2019-03-12T13:19:04 | 13,293,437 | 1 | 1 | null | 2018-11-14T10:52:57 | 2013-10-03T08:07:27 | Python | UTF-8 | Python | false | false | 8,532 | py | import ROOT
import os, sys, copy
ROOT.gROOT.LoadMacro('../../HEPHYPythonTools/scripts/root/tdrstyle.C')
ROOT.setTDRStyle()
from math import *
from array import array
from Workspace.HEPHYPythonTools.helpers import getVarValue, getChain, deltaPhi
from Workspace.RA4Analysis.cmgTuplesPostProcessed_v6_Phys14V2_HT400ST150_... | [
"daniel.spitzbart@cern.ch"
] | daniel.spitzbart@cern.ch |
78f830f6a4e511a9f2c0d2035dc92486062ffd25 | 4191b96f4274939d528932386dade39fad642737 | /qa/rpc-tests/test_framework/util.py | 0a27ba74f01f805bc225186c70632375feffd757 | [
"MIT"
] | permissive | furcalor/hardcode | e925441a6188be7fe2d882aa1e11aad532b0362e | a420a2c1cd8729ad7f957f953d02114d366c2ed2 | refs/heads/master | 2023-04-03T18:57:27.068234 | 2021-04-01T13:59:22 | 2021-04-01T13:59:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,747 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helpful routines for regression testing
#
import os
import sys
from binascii import hexlify, unhex... | [
"81759955+Ethros-Project@users.noreply.github.com"
] | 81759955+Ethros-Project@users.noreply.github.com |
e98acca5fc104aff0d86422d133d604d1cd6858e | ad136e8faf198734dc3cf874521642ba854919f3 | /urlDetection.py | 5f37038acde1eb6e6be7b04c6b1753a90e0b9758 | [] | no_license | Murklan/Ircbot | f6ce83a59d18e884a80a5f726e8a1de244917e8a | b6d501e3bf3b8d4b9fd6e76812fe823edc7f34ce | refs/heads/master | 2016-09-07T15:42:02.019149 | 2016-02-25T18:43:19 | 2016-02-25T18:43:19 | 16,739,693 | 0 | 0 | null | 2016-02-25T18:16:18 | 2014-02-11T17:55:17 | Python | UTF-8 | Python | false | false | 1,380 | py | from bs4 import BeautifulSoup
import urllib2
def get_url_title(data):
start = data.find('http')
stop = data.find(' ', start)
if stop == -1:
stop = len(data)
url = data[start:stop]
if url.find('i.imgur') != -1 and not url.find('/a/') != -1:
url = fix_imgur_url(url)
if retur... | [
"trattmurklan@gmail.com"
] | trattmurklan@gmail.com |
fe2e0dbf229673eea2e424f4dd6335c18441af76 | 9b0ba72bed02517b67309e9a5a404a08612bddb8 | /Basic Algorithm/images/data_utils.py | 289acfbb7ffd94c52978a535326375fc8022b007 | [] | no_license | ngoctuhan/When-i-learn-Machine-Learning-from-Zero | 88c52bd1c74f463d3260721c78da0483ee117a0b | e0e2b247294f18538e6bfdd9075a4f4cd77b96fb | refs/heads/master | 2021-05-25T15:00:52.044191 | 2020-04-07T13:52:04 | 2020-04-07T13:52:04 | 253,798,719 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,981 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 19 22:16:49 2019
@author: trung
"""
import pickle
import numpy as np
import os
from scipy.misc import imread
def load_CIFAR_batch(filename):
""" load single batch of cifar """
with open(filename, 'rb') as f:
datadict = pickle.load(f, fix_imports=True, encoding=... | [
"48152937+ngoctuhan@users.noreply.github.com"
] | 48152937+ngoctuhan@users.noreply.github.com |
d9928d82395d5c0f5f21546f330a57c49586eccf | a3db112bcb20da7c59477d47e5040b65ab862bc5 | /api/Test/ddt.py | 1408cf77b86cf587b5e1bb4db59de0d815bb069a | [] | no_license | wangyongsheng920811/jenkins | 20a9824b86ea6d73d1cde5f95cdb03c795434da0 | 5ad4313362ceb7c740a1435d42d0772070b64641 | refs/heads/master | 2022-11-29T13:48:42.389463 | 2020-08-11T15:05:10 | 2020-08-11T15:05:10 | 286,773,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,920 | py | # -*- coding: utf-8 -*-
# This file is a part of DDT (https://github.com/txels/ddt)
# Copyright 2012-2015 Carles Barrobés and DDT contributors
# For the exact contribution history, see the git revision log.
# DDT is licensed under the MIT License, included in
# https://github.com/txels/ddt/blob/master/LICENSE.md
impor... | [
"wangyongsheng@dding.cn"
] | wangyongsheng@dding.cn |
d88655eca82bb1dfc62a5f8e64effd742211eda1 | 7a3d793802cd0b2cde26d6e901d71c65b5005a0c | /app.py | 16148c97f90dc00ea7799e0bc9c999bbf8d9fe48 | [] | no_license | scroveez/otest | ba7a3d8d1378c5ed20a1778a1411a51eb1a57e4e | 4ea4d5209faa6235f0ae829fe3e1f4c68226eb0e | refs/heads/master | 2020-12-28T18:54:17.390007 | 2020-02-08T17:53:42 | 2020-02-08T17:53:42 | 238,449,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | from flask import Flask, render_template, request, flash, redirect, url_for
import redis
import string
import random
app = Flask(__name__)
#app.debug = True
#app.secret_key = 'kdud743ldsksjdlff092dsjd632skdjhfdd'
@app.route('/')
def connect_redis():
#contenty = {}
#r = redis.StrictRedis(host='192.168.... | [
"mmahmoh@gmail.com"
] | mmahmoh@gmail.com |
1e312786bc748b92bf9119e00e57504af9aee1ef | 174d3cd2f871d5fc9f851dea56d4ec5fba28cd61 | /clinic.1.0/notetaker_1_0/migrations_old/0023_auto__del_note__add_note1.py | 4134cfdc8b5c6362846a088b5de048130e10348e | [] | no_license | naresh-sundarrajan/clinicv2 | 391996bd8a0bc14ee2a2f60e2dfccad77f574b2d | 29880d388922d7b1f762345bf522d6a465c1fda3 | refs/heads/master | 2021-01-22T04:48:39.453865 | 2014-09-02T17:39:43 | 2014-09-02T17:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,797 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Note'
# Adding model 'Note1'
db.create_table(... | [
"naresh.2209@gmail.com"
] | naresh.2209@gmail.com |
5e17f43083d9a47da10c74843cd9354b5b2beefe | 4b9c6991cf570484ef236e102f985249df6ab2d4 | /templatetags/react.py | 0a6f295488333db80319cf2d78a3356e677eb520 | [] | no_license | walkness/django-react | c4cfc4c1b63b050d0d2379e28300aae3e80c97c7 | 364f89565de2c9ed8b097faca56920742c512978 | refs/heads/master | 2021-04-09T16:09:41.245534 | 2016-08-17T15:41:49 | 2016-08-17T15:41:49 | 64,865,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | from django import template
from django.utils.safestring import mark_safe
from webpack_loader.templatetags.webpack_loader import _get_bundle
register = template.Library()
def render_as_tags(bundle, defer):
tags = []
for chunk in bundle:
url = chunk['url']
if chunk['name'].endswith('.js'):
... | [
"w@lker.co"
] | w@lker.co |
ac6c740e1eb8aae6b9ed374a1d30c0b69a3fcaca | 7a2369f3bbb12ca187a92b7607300b3010ad01d6 | /heavywaterapp/settings.py | 216322a8ad1cea6af92cbebbe9d2a3fbc38384dc | [] | no_license | DanielJKelly/doc-clf | 68f3e53b4c59413a73267130ea776b3c9826f1ba | d2eba4a97221b0885cd8d9556946730832f795d2 | refs/heads/master | 2020-03-14T17:33:58.889579 | 2018-05-07T16:54:27 | 2018-05-07T16:54:27 | 131,723,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | """
Django settings for heavywaterapp project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import... | [
"djk8552@gmail.com"
] | djk8552@gmail.com |
21c5e515ecfc7265b137489a1d4bdaae325c9509 | e6454f0182bd9ca71bb67f29aeaaf56fbb2323b6 | /file3.py | f37c806b089cc612aa5cbf3d81d2039672411d5f | [] | no_license | sdbzcm/blockChain | c63fc203e7ea2748aa5b6a93321bef6070f32709 | 08bbc1f3e3382c09a659fb7a05677b8514373c2e | refs/heads/master | 2020-03-30T05:47:56.570237 | 2019-03-22T06:42:10 | 2019-03-22T06:42:10 | 150,820,164 | 0 | 1 | null | 2019-03-22T06:42:11 | 2018-09-29T03:22:16 | Java | UTF-8 | Python | false | false | 29 | py | def m1():
print("hello"); | [
"28227125@qq.com"
] | 28227125@qq.com |
0cb57b09b565be270fb0b66f2fa3a221babd734e | faaca77efe25d55335a95b878c8686f7bdb395f9 | /server_tests/C8H10N4O2_test_116.py | 56cad3684012816a44fa34f274f81365ee86d795 | [] | no_license | JayZisch/CompilerProject | fafde7dc6950a3a9e82703b4fe17a4087b2288b8 | 9e017305218799d4e9843896e108ab5478f18474 | refs/heads/master | 2020-06-02T19:57:07.311202 | 2011-12-15T02:40:38 | 2011-12-15T02:40:38 | 2,885,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | class C:
x = 1
y = x
x = 2
print y
print C.y
C.x = 10
print C.y
| [
"zischj@colorado.edu"
] | zischj@colorado.edu |
eac8e55efa2b9ab7f320a562c98fa8c884b5e994 | 60ce73bf2f86940438e5b7fecaaccad086888dc5 | /working_scrapers/Virginia_amherst.py | dd21db5c4557762ea61e5ec1f6730d25b2bd6a00 | [] | no_license | matthewgomies/jailcrawl | 22baf5f0e6dc66fec1b1b362c26c8cd2469dcb0d | 9a9ca7e1328ae549860ebeea9b149a785f152f39 | refs/heads/master | 2023-02-16T06:39:42.107493 | 2021-01-15T16:37:57 | 2021-01-15T16:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | #!/usr/bin/python
'''
This is an template script
'''
from urllib.request import urlopen, Request
import pandas as pd
import os
import time
import numpy as np
from datetime import datetime
import datetime as dt
import sys
from io import StringIO
from joblib import Parallel, delayed
import requests
from jailscrape.comm... | [
"jborowitz@gmail.com"
] | jborowitz@gmail.com |
a91cd6a30720f35b923f7d66fc4dd8f19c5c66be | 90b16221850962629ec974cd760eb8511187a4c8 | /estados.py | 8b6ecd4d1b8a1dae15ddb200738d62194c04e4d5 | [
"MIT"
] | permissive | hi-hi-ray/space-invaders | d4763e3007e8fda03f3bba93468be5f6e8eaa333 | 8df3bc2b8bf2093d26486dfd17f9acc2caaa0ceb | refs/heads/master | 2020-03-28T01:28:03.409867 | 2018-09-26T04:56:19 | 2018-09-26T04:56:19 | 147,507,209 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Space Invaders
# Created by Raysa Dutra
# -*- coding: utf-8 -*-
#!/usr/bin/env python
from estados_orm import StateOrm
class State(object):
def __init__(self):
self.dao = StateOrm()
def save_state(self, player_position, player_life, enemy_type):
self.dao.create(player_position=player_posi... | [
"rai.dietra4@yahoo.com"
] | rai.dietra4@yahoo.com |
4265c5c776462df6a9e2ace5418932716eac8fc8 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/a_l.py | 653cbd127ab6e82ce289684705f743c8316095a0 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
26571dafb7f2105ef31a78259155c44e4a01ad01 | 22dcd52b6a07e82e8db9bf8b7ad38711d12f69a8 | /venv/Lib/site-packages/sklearn/neighbors/base.py | 9be7b1ffc90f2c7d40252bf586916429df32fafb | [] | no_license | MrGreenPepper/music_cluster | 9060d44db68ae5e085a4f2c78d36868645432d43 | af5383a7b9c68d04c16c1086cac6d2d54c3e580c | refs/heads/main | 2023-08-15T09:14:50.630105 | 2021-10-01T09:45:47 | 2021-10-01T09:45:47 | 412,407,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py |
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py
import sys
from . import _base
from ..externals._pep562 import Pep562
from ..utils.deprecation import _raise_dep_warning_if_not_pytest
deprecated_path = 'sklearn.neighbors.base'
correct_import_path = 'sklearn.neighbors'
_raise_dep_warning_if_... | [
"sebastian_truemper@posteo.de"
] | sebastian_truemper@posteo.de |
6fb599d6df3dd66e74d595abedac11f9dba1dbca | 5b68f33352ac79df3dd69e580a482f9284980b5f | /cellcycleclassification/__init__.py | dc59cad5e1a6ff548bfd5f76d0e5fc71ce6f4ee4 | [] | no_license | em812/CellCycleClassification | 709a454f0563ef46c4d6c719090301183f6c4424 | 0d782112f1114e7a10b27a94e2a7912b9e4a72f3 | refs/heads/master | 2023-02-16T12:02:24.216249 | 2021-01-11T21:48:01 | 2021-01-11T21:48:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 11 18:56:02 2021
@author: lferiani
"""
from pathlib import Path
base_path = Path(__file__).parent
BINARY_MODEL_PATH = base_path / 'trained_models' / 'v_06_60_best.pth'
MULTICLASS_MODEL_PATH = (
base_path / 'trained_models' / 'v_12_63_20201218_2... | [
"luigi.feriani@gmail.com"
] | luigi.feriani@gmail.com |
243a8367cdc66dcf34404bf21fce6717109193c5 | 8fb600fc1037f059d3e4853aff80098e11a87818 | /ethernet_servo/api/__init__.py | 72667a3f85de7113ba76b866d5b422f3b0d41324 | [] | no_license | telescopio-montemayor/ethernet-encoder-servo | f47fe5f8e89651a9b45f32c5ce5a3600b4dde0e8 | 1059920060c0e8eba995e84c8a57bf3da3bdbfb5 | refs/heads/master | 2020-04-08T12:04:12.600999 | 2019-05-03T02:08:35 | 2019-05-03T02:08:35 | 159,332,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import logging
from flask import current_app as app
from flask import Blueprint
from flask_restplus import Api, Resource
from flask_cors import CORS
from ethernet_servo import control
log = logging.getLogger(__name__)
blueprint = Blueprint('api', __name__, url_prefix='/api')
api = Api(blueprint, version='1.0', t... | [
"publico@tangopardo.com.ar"
] | publico@tangopardo.com.ar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.