blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79f647d28b8a1806e461603d2ce0c7ed4feb685c | 6b1b506139088aa30de9fd65cff9e3b6a3a36874 | /sofia_redux/instruments/forcast/tests/test_merge_correlation.py | bf607a0bd2a309efc56e0610b7ce6f90da3bbc00 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | SOFIA-USRA/sofia_redux | df2e6ad402b50eb014b574ea561734334d70f84d | 493700340cd34d5f319af6f3a562a82135bb30dd | refs/heads/main | 2023-08-17T11:11:50.559987 | 2023-08-13T19:52:37 | 2023-08-13T19:52:37 | 311,773,000 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,672 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from astropy.io import fits
import numpy as np
import sofia_redux.instruments.forcast.configuration as dripconfig
from sofia_redux.instruments.forcast.merge_correlation \
import addhist, merge_correlation
from sofia_redux.instruments.forcast.tests.re... | [
"melanie.j.clarke@nasa.gov"
] | melanie.j.clarke@nasa.gov |
4bc041a12e26bb826ba1c8c93b32b7804937f6ae | e22e03d9761f5c6d581b5af2e77343e8ee4b201d | /edk2/BaseTools/Tests/TestRegularExpression.py | 8b09841d5078520cc2351b9f24739b392a38c852 | [
"OpenSSL",
"BSD-2-Clause"
] | permissive | SamuelTulach/SecureFakePkg | 759975fcc84d62f05ac577da48353752e5334878 | f34080a6c0efb6ca3dd755365778d0bcdca6b991 | refs/heads/main | 2023-08-17T07:51:22.175924 | 2021-10-01T10:46:14 | 2021-10-01T10:46:14 | 410,938,306 | 94 | 14 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | ## @file
# Routines for generating Pcd Database
#
# Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may b... | [
"samtulach@gmail.com"
] | samtulach@gmail.com |
f3c98c3f6c5281bef2b32f3be2008492f48a8504 | cdd693705f336a225ef82e1b20f32a2192f43b93 | /check_model_layers.py | ef67e10a05efbc10e81b2b76209dbfd7252cfe52 | [] | no_license | gombru/iMaterialistFashion | 5a2d6628729d0e2e8d9eed1c146b09e9b0c284bc | 27a278ef54856abd3415bb3eb4a66cc59e9c1d08 | refs/heads/master | 2020-03-11T09:17:48.069509 | 2018-12-14T09:36:50 | 2018-12-14T09:36:50 | 129,906,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import caffe
# Run in GPU
caffe.set_device(0)
caffe.set_mode_gpu()
# load net
net = caffe.Net('evaluation/deploy.prototxt', '../../datasets/iMaterialistFashion/iMaterialistFashion_Inception_iter_95000.caffemodel', caffe.TEST)
print net.blobs
| [
"raulgombru@gmail.com"
] | raulgombru@gmail.com |
507c972bd2d7d0d30352b3d624b7ae44473e0264 | bf287afda71c4360f40ecd78e74049510965db82 | /rampwf/score_types/brier_score.py | 491df244acdd5639c0e22d9e85b7a94e53aac1cf | [
"BSD-3-Clause"
] | permissive | djgagne/ramp-workflow | 26b1bb7188c734c7a46c1c8298504ab522fafda6 | cf1f53e5ef5a2b7d5ca27a21ca30098a17e9fcd7 | refs/heads/master | 2021-01-23T21:48:30.554531 | 2017-09-15T14:42:45 | 2017-09-15T14:42:45 | 102,907,436 | 1 | 0 | null | 2017-09-08T21:52:03 | 2017-09-08T21:52:03 | null | UTF-8 | Python | false | false | 6,207 | py | from .base import BaseScoreType
import numpy as np
from sklearn.metrics import brier_score_loss
class BrierScore(BaseScoreType):
is_lower_the_better = True
minimum = 0.0
maximum = 1.0
def __init__(self, name='brier_score', precision=3):
self.name = name
self.precision = precision
... | [
"djgagne@ou.edu"
] | djgagne@ou.edu |
e70211a6287250bb4f1c24e75fbc7cbe02920446 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03610/s002378580.py | 10133c2cc30824488c99f4f6846df646f0f70405 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | s = input()
s_list = list(s)
l = len(s_list)
k = []
for i in range(0,l,2):
k.append(s_list[i])
s_joined = ''.join(k)
print("{}".format(s_joined)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e225c392fed27a2f54d0b2c84bee22f46b5f8f73 | 493a36f1f8606c7ddce8fc7fe49ce4409faf80be | /.history/B073040023/client_20210614202922.py | 5127563384ff453b6516c3cabfe2a42f5794beb1 | [] | no_license | ZhangRRz/computer_network | f7c3b82e62920bc0881dff923895da8ae60fa653 | 077848a2191fdfe2516798829644c32eaeded11e | refs/heads/main | 2023-05-28T02:18:09.902165 | 2021-06-15T06:28:59 | 2021-06-15T06:28:59 | 376,568,344 | 0 | 0 | null | 2021-06-13T14:48:36 | 2021-06-13T14:48:36 | null | UTF-8 | Python | false | false | 4,670 | py | import socket
import threading
import tcppacket
import struct
from time import sleep
# socket.socket() will create a TCP socket (default)
# socket.socket(socket.AF_INET, socket.SOCK_STREAM) to explicitly define a TCP socket
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM) # explicitly define a UDP socket
udp_h... | [
"tom95011@gmail.com"
] | tom95011@gmail.com |
5600afb59e1efe3b3404e4b6d43937db72335b2f | 40438f8fb232f8f5a213be6d9fd634fcad75f17f | /1_decisionTreeClassifier.py | 5d76aa69af68713d1e947f992f00fad0fc0c0528 | [] | no_license | LintangWisesa/ML_Sklearn_DecisionTree | 6ceaec0ef0c6191353751581d682ac5658eed1ee | b58779d08d4a39090554bdb725fd668e5f748b38 | refs/heads/master | 2020-04-28T14:46:36.064558 | 2019-07-05T02:27:05 | 2019-07-05T02:27:05 | 175,348,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import pandas as pd
import numpy as np
# =================================
# load csv & create dataframe
df = pd.read_csv('0_data.csv')
# print(df)
# =================================
# convert nominal data => ordinal data
from sklearn.preprocessing import LabelEncoder
labelKantor = LabelEncoder()
df['kantorLE'] = l... | [
"lintangwisesa@ymail.com"
] | lintangwisesa@ymail.com |
c1c88a42c6e2b5f2661230d25e9771b94beb8910 | 5524e844f2cbfeebc769397c5a489183db886612 | /3_chapter/links.py | 2f10679f79c029f4c14b210d4d4aebdc376f88b6 | [] | no_license | sirajmuneer123/anand_python_problems | 7c674fbf5097f82c1bd866704bd95866fe0286db | 3c0cb960533da6362e53612cbaf19130a2d69d30 | refs/heads/master | 2021-01-04T02:36:46.064891 | 2015-09-08T05:32:46 | 2015-09-08T05:32:46 | 40,727,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | '''
Problem 8: Write a program links.py that takes URL of a webpage as argument and prints all the URLs linked from that webpage.
'''
import urllib
import re
import sys
url=sys.argv[1]
#connect to a URL
website = urllib.urlopen(url)
#read html code
html = website.read()
#use re.findall to get all the links
links = r... | [
"sirajmuneer4@gmail.com"
] | sirajmuneer4@gmail.com |
f03bd4337a181a9592e7aef5ac212d0fed682004 | 067fb9ca4acd73a5ac92212d125607b48a3e603a | /arc/species/converter.py | dd8f43f99653acae25b001a9de8739997c2096b3 | [
"MIT"
] | permissive | dranasinghe/ARC | 730a25f820252c6aa2ea37669f573b1a68751002 | 9908484b52ef1db19bf8b2da1141d7691f3291fc | refs/heads/master | 2020-04-30T23:34:30.673944 | 2019-03-21T23:29:08 | 2019-03-21T23:29:08 | 177,147,388 | 1 | 0 | MIT | 2019-03-22T13:43:18 | 2019-03-22T13:43:18 | null | UTF-8 | Python | false | false | 16,890 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import (absolute_import, division, print_function, unicode_literals)
import os
import numpy as np
import logging
from rdkit import Chem
import pybel
from rmgpy.species import Species
from rmgpy.molecule.molecule import Atom, Bond, Molecule
from rmgpy.molecule.e... | [
"alongd@mit.edu"
] | alongd@mit.edu |
9e454ce7dc822bc4e590a1f283e9adfdb8a1967d | 083c174d42b658b108d35b1600c88ee2fac1b187 | /mvp/config.py | 705ed800f9462b85fc0772f9da695fbc59195c4d | [
"MIT"
] | permissive | sgodanas/mvp | 5202157ad5217e5a19e9bbfe80fa7c5838e3f3ad | 1814db4a7f9966e3c066433f1864c77b8cd0ad5d | refs/heads/master | 2023-04-18T08:31:03.142712 | 2021-04-27T15:09:45 | 2021-04-27T15:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
'''
Configure mvp presets and hooks
'''
import os
import sys
USER_PRESETS_PATH = os.path.expanduser('~/.mvp')
PRESETS_PATH = [USER_PRESETS_PATH]
# Add paths from MVP_PRESETS env var
for path in os.environ.get('MVP_PRESETS', '').split(os.pathsep):
if path:
PRESETS_PATH.insert(0, p... | [
"danielbradham@gmail.com"
] | danielbradham@gmail.com |
9249ad119efcabee5c40af68d32a6c718bedc9cd | 6909de83dd90ee1169d6c453c327ab2ce2687485 | /scheme/tests/11.py | 9cbe458b96614b51b34436060c73fa7461d32e63 | [] | no_license | dantefung/cs61a-2021-summer | 730cb0b9ab7327c32c619779d71882531bf328dd | 4f22f20fcfddfb5bf121081919310413209da1b2 | refs/heads/master | 2023-08-19T14:51:27.380738 | 2021-11-01T06:54:33 | 2021-11-01T06:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,528 | py | test = {
"name": "Problem 11",
"points": 1,
"suites": [
{
"cases": [
{
"code": r"""
scm> (define (square x) (* x x))
square
scm> square
(lambda (x) (* x x))
scm> (square 21)
441
scm>... | [
"wuyudi1109@gmail.com"
] | wuyudi1109@gmail.com |
a8d7239b51a01a59c937dba8d1195588f320b114 | 007d35a3a2def8b0801ca0eab3469e8422b9f767 | /1_ Preparation/2_Triangle.py | 49dfe65bba82534c2104ba8055903f0b773eb657 | [] | no_license | yosho-18/Programming-Contest-Challenge-Book_Ant-Book | 91fedf6f608f2e0f9d410922c847d2a2046c1b95 | 94cd41d8c7be50e2f09150ac63b86821933268f8 | refs/heads/master | 2020-06-02T10:53:09.218986 | 2019-06-10T08:55:06 | 2019-06-10T08:55:06 | 191,132,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | n = int(input())
a = [int(i) for i in input().split()]
#Longest bar < sum other bar
ans = 0
for i in range(n):
for j in range(i + 1, n):
for k in range(j + 1, n):
len = a[i] + a[j] + a[k]
ma = max(a[i], a[j], a[k])
rest = len - ma
if ma < rest:
... | [
"44283410+wato18@users.noreply.github.com"
] | 44283410+wato18@users.noreply.github.com |
f1bdee81fdd6d3bda77e4cfdcccb42cda93e8d97 | 9009ad47bc1d6adf8ee6d0f2f2b3125dea44c0aa | /00-MY-TEMPLATE-001.py | 84d5cda056758d652204415992f14aea2354c511 | [] | no_license | luctivud/Coding-Trash | 42e880624f39a826bcaab9b6194add2c9b3d71fc | 35422253f6169cc98e099bf83c650b1fb3acdb75 | refs/heads/master | 2022-12-12T00:20:49.630749 | 2020-09-12T17:38:30 | 2020-09-12T17:38:30 | 241,000,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # जय श्री राम
import sys; import math; from collections import *
# sys.setrecursionlimit(10**6)
def get_ints(): return map(int, input().split())
def get_list(): return list(get_ints())
def printspx(*args): return print(*args, end="")
def printsp(*args): return print(*args, end=" ")
MODPRIME... | [
"luctivud@gmail.com"
] | luctivud@gmail.com |
a41b5aa994c57a14e4dc4af3ec85cdec17b93536 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/hzy46_fast-neural-style-tensorflow/fast-neural-style-tensorflow-master/preprocessing/preprocessing_factory.py | 39ee9bf7bc24744fd430f7a725f856708945b2d0 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,861 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"659338505@qq.com"
] | 659338505@qq.com |
729b0ad28719a30dcb5d3de097cab5678f6cb208 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /kS8tfJD2ggohQbWx7_9.py | 10d83a002c78aabd9196a850bec31aca4ebc4060 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py |
def last_name_lensort(names):
return [' '.join(a) for a in sorted([x.split() for x in names],key=lambda x: (len(x[1]), x[1]))]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
dc8aa8d63bfa7714751d7ffc7b3f4c2a3e2b6b2f | 237ff79d806953b55d9e6db8d2fa498333123949 | /app_verifications/text/text_verifications.py | f234ffd13a301804f934726714fd3d7cbafd388b | [
"MIT"
] | permissive | kskarbinski/threads-api | f86358f43a31271cd939695af200975d5c2825ba | c144c1cb51422095922310d278f80e4996c10ea0 | refs/heads/master | 2020-03-11T04:29:16.776817 | 2019-11-29T15:40:34 | 2019-11-29T15:40:34 | 129,777,543 | 0 | 0 | MIT | 2019-11-29T15:40:35 | 2018-04-16T17:00:27 | Python | UTF-8 | Python | false | false | 531 | py | from .text_checks import TextChecks
from app_errors.http_exceptions import HttpException
class TextVerifications(TextChecks):
"""
Every method verifies something related to text. If verification does not pass a HttpException is thrown.
"""
def verify_text_length(self, min_l, max_l):
if self.ch... | [
"kripperr@gmail.com"
] | kripperr@gmail.com |
1fd59d3de0e61312329e973df01ed1a703dd2d0c | 2db55786df5fdf009eeec5f000937f0ec3eb6527 | /tasks/files/config/polybar/scripts/translate_lyrics | 475248a2e2c07bd0ca45147da10883c36f61e07c | [] | no_license | preachermanx/environment | 08ef7a1e558a3c9c78bbfb789584b81997b9787d | cba8277663915ce173bab79f44f890a666abbbed | refs/heads/master | 2020-07-21T13:05:45.011963 | 2019-09-05T08:40:31 | 2019-09-05T08:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | #!/usr/bin/env python3
import os.path
import re
from subprocess import Popen, PIPE
def convert_line(line):
time_search = re.search(r'\[(\d+):(\d+).\d+\](.*)', line)
in_seconds = 0
if time_search:
in_seconds = int(time_search.group(1)) * 60
in_seconds += int(time_search.group(2))
re... | [
"rubin.diego@gmail.com"
] | rubin.diego@gmail.com | |
865b559ab81261fddb02dd0c45bf559683654b15 | 3a18b8ba06a58231f4ecb2c1a231722cdf862e6b | /python_code/dillonsCode/websites_folder/todo_tutorial/venv/lib/python3.8/site-packages/werkzeug/sansio/request.py | 4bff19e92e68eb6402b6593f63c1ede873721f74 | [] | no_license | dillonallen92/codeStorage | 98dd7f5a8ecb062e37313a1323aacd362ffc44c7 | 23351e0b3348de922283f6494762db9f291579d6 | refs/heads/master | 2023-07-07T10:32:40.428607 | 2023-06-26T23:26:47 | 2023-06-26T23:28:13 | 141,781,205 | 0 | 1 | null | 2023-02-12T00:21:58 | 2018-07-21T04:30:51 | Mathematica | UTF-8 | Python | false | false | 20,795 | py | import typing as t
from datetime import datetime
from .._internal import _to_str
from ..datastructures import Accept
from ..datastructures import Authorization
from ..datastructures import CharsetAccept
from ..datastructures import ETags
from ..datastructures import Headers
from ..datastructures import Header... | [
"dillon.allen.92@gmail.com"
] | dillon.allen.92@gmail.com |
ea780519562cd70c7534e0046b792df7a61f53bb | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/scikit-image-0.12.3-np110py27_0/lib/python2.7/site-packages/skimage/segmentation/tests/test_quickshift.py | 21dbe8eaab30c11172730b52c6e9c8cdb2b3a251 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,760 | py | import numpy as np
from numpy.testing import assert_equal, assert_array_equal
from nose.tools import assert_true
from skimage._shared.testing import assert_greater, test_parallel
from skimage.segmentation import quickshift
@test_parallel()
def test_grey():
rnd = np.random.RandomState(0)
img = np.zeros((20, 21... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
aa4128f0e18260df3f78b97a5ee21fbabca3e628 | a29bc741d292d5f1d85f7eaf2d69148077d33d0e | /cleancoders/entities/entity.py | 1f351d5a4315cad16286ceaf4f9cc5e6e0acfcaa | [] | no_license | xstrengthofonex/cleancoders | a919692dfc81f9ed39521d4f0cb279d1ac5cde44 | ba1349f811295ef9dda6a8b5e950d834976528d8 | refs/heads/master | 2020-07-26T09:47:10.826517 | 2019-09-15T17:52:59 | 2019-09-15T17:52:59 | 208,607,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from __future__ import annotations
from dataclasses import dataclass
@dataclass
class Entity:
id: str
| [
"xstrengthofonex@gmail.com"
] | xstrengthofonex@gmail.com |
d582dbffd90140f90a648bfa5407b2d45d6eb998 | aa01560e68a07033d4b24c4770966771349e2b4f | /src/jobs/migrations/0007_jobapplication_timestamp.py | 4d5d3057c72f090b51b9eeaba9de95a481cbf144 | [] | no_license | fluffcoding/solitaireHR | a0a357e1b19b955caae8df11ca92188cad79e217 | b97a29f9accc5b45cd62986b62673a6ba802771b | refs/heads/main | 2023-04-05T11:46:41.855323 | 2021-04-26T04:57:27 | 2021-04-26T04:57:27 | 322,067,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Generated by Django 3.1.2 on 2020-12-09 15:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0006_auto_20201209_1527'),
]
operations = [
migrations.AddField(
model_name='jobapplication',
name='timestam... | [
"fluffcoding@gmail.com"
] | fluffcoding@gmail.com |
3157e2ee8eb20e93eacbac32b7d5b25a09afd0f8 | aa9f8d7b48dbe3cbecca5eaa2ad3bbea262dbf24 | /preprocess_tweets.py | afa800638256beb34c242c6a4bccc1bca1796074 | [] | no_license | ssinayoko/Pyhton_Cours | 5381a98c42cba021f34b482776933accd3442a6c | 56b391aeb673b40b564c59053295ac68e2576a1c | refs/heads/master | 2020-08-30T13:32:59.662715 | 2019-10-25T12:50:25 | 2019-10-25T12:50:25 | 218,395,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py |
import re
with open("tweets.csv", "w", encoding="utf-8") as result:
with open("stockerbot-export.csv", "r", encoding="utf-8") as f:
lines = f.readlines()
res_lines = []
for line in lines:
if ",http" in line:
line = line[:20] + line[20:].replace(",http", ',"http... | [
"mickael.bolnet@gmail.com"
] | mickael.bolnet@gmail.com |
d43ae73fa9193326ebf2db488e5cf9323da92c95 | 1904c201d353118f319586d7ed6827b4bbefa0fe | /gcg/exceptions.py | b32edae34ed4afac8ecb74b1b3119f3fa06f2d23 | [] | no_license | byt3-m3/lab_conf_generator | aa9c023c6223869d41d5cf4d5a1d072f3cd8db3c | eb79ca8cb6f6bb45b44605660e70d0585968c598 | refs/heads/master | 2022-12-20T13:42:38.219334 | 2020-10-14T12:55:46 | 2020-10-14T12:55:46 | 225,886,211 | 0 | 1 | null | 2022-12-08T09:54:37 | 2019-12-04T14:28:38 | Python | UTF-8 | Python | false | false | 416 | py | class InvalidTypeError(BaseException):
"""
Used to represent an Invalid Type
"""
class LCGSchemaValidationError(BaseException):
"""
Used to represent an Schema Validation Error
"""
class GCGValidationError(BaseException):
"""
Used to represent an Schema Validation Error
""... | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
849e328890d84d7e0fef4cd4f87c9db2a4533ae8 | 4e33bfc70b0fa0a07ff00960406281ec04044fbc | /task_server/test.py | 8120b975f2822afddaf7102c04169067ffe3ca9b | [] | no_license | JX-Wang/NS_Server_Kafka | 53e22cb7858c20e2ad6fa970ba8b2a3011e7652f | 59f1270084c1cab3736bdab16f17b64cf04722fa | refs/heads/master | 2022-01-24T05:12:19.276923 | 2019-08-04T13:33:36 | 2019-08-04T13:33:36 | 197,998,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # from confluent_kafka import Consumer, KafkaError
#
# mybroker = "10.245.146.221:9092"
#
# c = Consumer({
# 'bootstrap.servers': mybroker,
# 'group.id': '1',
# 'default.topic.config': {
# 'auto.offset.reset': 'smallest'
# }
# })
#
# c.subscribe(['test'])
#
# while True:
# msg = c.poll()
#
# ... | [
"1411349759@qq.com"
] | 1411349759@qq.com |
058851f99bfd8b50b0aac5390fb417b484e5be27 | 1b6a460652f5b43e42614d63c26a57b4e14b6360 | /tests/vm/primitives/test_mirror.py | 5630c176666b04ef700b94d7df85b77fd2a521c6 | [] | no_license | cfbolz/tinySelf | 68800b2782f998f46b7950a688a6a0ec663c661b | f20b38aaaa85b4be89cf1fc2ebc890cd1e33c62b | refs/heads/master | 2020-05-09T10:02:05.385599 | 2019-04-12T15:12:23 | 2019-04-12T15:15:50 | 181,025,576 | 0 | 0 | null | 2019-04-12T14:35:12 | 2019-04-12T14:35:11 | null | UTF-8 | Python | false | false | 619 | py | # -*- coding: utf-8 -*-
from tinySelf.vm.primitives import Mirror
from tinySelf.vm.primitives import PrimitiveIntObject
from tinySelf.vm.primitives import PrimitiveStrObject
from tinySelf.vm.object_layout import Object
def test_mirror():
o = Object()
m = Mirror(o)
assert not o.slot_lookup("v")
add_... | [
"bystrousak@kitakitsune.org"
] | bystrousak@kitakitsune.org |
46b800034adec043d313b5378e4f031082b04f5b | 78d5a6e0846cb6b03544e4f717651ca59dfc620c | /treasury-admin/cashflow/migrations/0014_auto_20180509_1721.py | b65d15269a321a05a67752040eeb929833d9dfb9 | [] | no_license | bsca-bank/treasury-admin | 8952788a9a6e25a1c59aae0a35bbee357d94e685 | 5167d6c4517028856701066dd5ed6ac9534a9151 | refs/heads/master | 2023-02-05T12:45:52.945279 | 2020-12-13T08:07:41 | 2020-12-13T08:07:41 | 320,323,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-05-09 16:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('cashflow', '0013_delete_cashflowdetailtwowayflowproxy'),
... | [
"cn.makodo@gmail.com"
] | cn.makodo@gmail.com |
8283511947571039bbb770029f9d366f2c907ae6 | f47e6aab3e58a1cc12e390492fe982ab1da9aa28 | /modoboa/core/__init__.py | cc91ec6c11ea9816f34bd1f1a699c6c4f799d4c2 | [
"ISC"
] | permissive | kaxdev/modoboa | 7e80b5496f362adf5c503588cc5680a894e365eb | d5f2652a5f957a0d68043f063b8c530dbf76ebf6 | refs/heads/master | 2021-01-12T21:45:59.003052 | 2015-04-10T07:16:58 | 2015-04-10T07:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | import os
from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _, ugettext_lazy
from modoboa.lib import parameters, events
BASE_EVENTS = [
"CanCreate",
"AccountCreated",
"AccountAutoCreated",
"AccountModified",
"AccountDeleted",
"AccountExported",
... | [
"tonio@ngyn.org"
] | tonio@ngyn.org |
3b630469b7e080681f9dcfbc22de9de397c47abe | 90afc972b2259054e7cc9b63ec19bf11c3153e48 | /problems/B/KanaAndDragonQuestGame.py | fa2b220b68f40f19c967dba57ce00ca8c6361ddf | [
"MIT"
] | permissive | Ahsanhabib1080/CodeForces | 88ca768ceefa409b0c10cac500148bfaf19e3c7e | 707b374f03012ec68054841f791d48b33ae4ef1b | refs/heads/master | 2023-05-26T20:58:23.180369 | 2021-06-19T02:40:15 | 2021-06-19T02:40:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | __author__ = 'Devesh Bajpai'
'''
https://codeforces.com/contest/1337/problem/B
Solution: The need is decide the ordering of spells.
Void Absorption: VA : x/2 + 10
Lightening Strikes: LS: x - 10
if we do LS and then VA: (x-10)/2 + 10 = x/2 - 5 + 10 = x/2 + 5
if we do VA and then LS: x/2 + 10 - 10 = x/2
Hence we wou... | [
"devesh.bajpai19@gmail.com"
] | devesh.bajpai19@gmail.com |
e42b34cbc4a94970b7b097398f5ea03951ccfa57 | f1190541e28b38cb951c691a45d6f3a7f784ca67 | /DocumentFeatureSelection/common/data_converter.py | b87bf2892cac77d15af73c25236ceb1e8696136b | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | chandupentela72/DocumentFeatureSelection | ac5b03a6f2fbaab68ddae5d6f2b00478ab6238bf | 799493e2d92d6deca13f894737db01a0826fd14f | refs/heads/master | 2020-12-15T05:50:05.715637 | 2018-10-24T16:12:17 | 2018-10-24T16:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,749 | py | #! -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from DocumentFeatureSelection.common import utils, func_data_converter
from DocumentFeatureSelection.models import DataCsrMatrix, AvailableInputTy... | [
"kensuke.mit@gmail.com"
] | kensuke.mit@gmail.com |
851d21e0d75f1d35f412ced736f15966338ad668 | 8e138461e9ed8e36245965e215685ce978742535 | /qiskit/qpy/__init__.py | 2ede88a790eb89f245a688dbfb032e068abee1c2 | [
"Apache-2.0"
] | permissive | faraimazh/qiskit-terra | 15d8c378114ee109f7b757a7d3795b4c9079c0a8 | 11c2e3ed89452cb6487db784c17c68a8a6284a57 | refs/heads/master | 2023-03-16T11:31:27.071954 | 2022-09-27T00:33:02 | 2022-09-27T00:33:02 | 220,650,207 | 0 | 0 | Apache-2.0 | 2023-03-06T18:13:26 | 2019-11-09T13:59:40 | Python | UTF-8 | Python | false | false | 21,087 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2021, 2022.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | faraimazh.noreply@github.com |
23c67eb0e36af3db5f176a78c5e5de976a388429 | e780a5bd72f98ca2513c993d64a85b08578166a6 | /zinstance/bin/fullrelease | 92515ab7490c40a6ef8bc78e3378398b986397a2 | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | #!/home/ubuntu/workspace/Plone/zinstance/bin/python
import sys
sys.path[0:0] = [
'/home/ubuntu/workspace/Plone/buildout-cache/eggs/zest.releaser-6.13.4-py2.7.egg',
'/home/ubuntu/workspace/Plone/buildout-cache/eggs/zest.pocompile-1.4-py2.7.egg',
'/home/ubuntu/workspace/Plone/buildout-cache/eggs/python_gettext-3.0... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com | |
222a4bf6b0ede4075937141a871684c0bf325701 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Autodesk/Revit/DB/__init___parts/FamilyManager.py | 9782230089fa487843ed9370f9d82992dd886f19 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,040 | py | class FamilyManager(APIObject,IDisposable):
""" The family manager object to manage the family types and parameters in family document. """
def AddParameter(self,*__args):
"""
AddParameter(self: FamilyManager,familyDefinition: ExternalDefinition,parameterGroup: BuiltInParameterGroup,isInstance: bool) -> FamilyPar... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
86e84e1014becbb3d10692c91931c5a9e404c2ed | 63381bdd170be82ac307cb7038f66883af219b40 | /filmweb/migrations/0005_auto_20190416_0022.py | 59ab2f8337a8792d4910ac3d1e621cb4aed62781 | [] | no_license | ofemofem/filmwebapi | 469bb0592c7c201f09a2fd39f0b027fa0537cd53 | 843d10422ab547e39d6e69febcef2ff6887a2a48 | refs/heads/master | 2020-05-10T00:01:59.815109 | 2019-05-14T21:53:07 | 2019-05-14T21:53:07 | 181,519,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 2.2 on 2019-04-15 22:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('filmweb', '0004_auto_20190413_1557'),
]
operations = [
migrations.AlterField(
model_name='movierate',
name='rate',
... | [
"you@example.com"
] | you@example.com |
f99ca48d3852d4c88874fba1340faf146fe721e3 | 51a6413af4995a221bb7cf9bce20a00acedcff9d | /snakify-problems-python/ALL/07_02_even_elements.py | bf6a4977e061271a11a60c4baf349e1c72195400 | [] | no_license | famaxth/Way-to-Coding | 4dff099de31c1a5870cf72a2aaaab74fdcbfed36 | bcb2048898edf418b059ec506eb5ad1507889cfb | refs/heads/main | 2023-08-15T19:34:16.510571 | 2021-10-08T04:53:42 | 2021-10-08T04:53:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | for elem in [int(s) for s in input().split()]:
if elem % 2 == 0:
print(elem, end=' ') | [
"jobin25051999@gmail.com"
] | jobin25051999@gmail.com |
face982b4ba6173f837eb471228815ecc2215c09 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0086_Partition_List/__init__.py | c7c3687f27954729aac793e8ba3b85961232e9fd | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 455 | py | ID = '86'
TITLE = 'Partition List'
DIFFICULTY = 'Medium'
URL = 'https://oj.leetcode.com/problems/partition-list/'
BOOK = False
PROBLEM = r"""Given a linked list and a value _x_, partition it such that all nodes less
than _x_ come before nodes greater than or equal to _x_.
You should preserve the original relative orde... | [
"romain_li@163.com"
] | romain_li@163.com |
38cd6a598240e65f5b94b46d8558809f61b8ac38 | 43b6bffc820d26dfd223728bed71241fb3d54983 | /abc/243/b.py | ba04b3356257b7a3f024e0b783adebfaa9600184 | [] | no_license | kiccho1101/atcoder | 3a163b6a38a62c578dad6d15ccb586d0fcd1e004 | c86cb8e08b881a0a01dc2ef538f0699f3951e897 | refs/heads/master | 2023-03-02T13:27:17.747402 | 2022-05-30T13:51:00 | 2022-05-30T13:51:00 | 223,152,693 | 1 | 0 | null | 2023-02-11T01:29:47 | 2019-11-21T10:52:49 | Python | UTF-8 | Python | false | false | 283 | py | N = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
count_1 = 0
count_2 = 0
A_set = set(A)
for i in range(N):
if A[i] == B[i]:
count_1 += 1
if B[i] in A_set and A[i] != B[i]:
count_2 += 1
print(count_1)
print(count_2)
| [
"youodf11khp@gmail.com"
] | youodf11khp@gmail.com |
3d4b5f3283fdc684ada01e6fe923d14cf91de7a8 | 2ca07aecfa6ff25b0baae6dc9a707a284c2d1b6d | /common/sectools/sectools/common/crypto/functions/utils/__init__.py | 77a586234824b6d3c65e3214d2a6f28fa93e4306 | [
"BSD-3-Clause",
"OpenSSL",
"MIT",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhilangtaosha/msm8996-wp-1-0_test_device | ef05af263ba7955263ff91eb81d45b2437bc492e | 6af9b44abbc4a367a9aaae26707079974c535f08 | refs/heads/master | 2023-03-19T02:42:09.581740 | 2021-02-21T01:20:19 | 2021-02-21T01:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | # ===============================================================================
#
# Copyright (c) 2013-2016 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#
# ===============================================================================
'''
Created... | [
"lonelyjskj@gmail.com"
] | lonelyjskj@gmail.com |
a6107df3c15761e8c74b5b2a07292c4f084d3f81 | 1c14f85aa4f9c98362568d5cd30cf56f814a54a0 | /user_accounts/migrations/0006_auto_20180302_1721.py | 451d5345628601842ea74db9e9ccfdd8a41c3992 | [] | no_license | dimyG/zakanda_public | 26da2e8c70e34b97097f71e57fd0e732bbeac5a0 | 0445ad0c4f23aa40a472afb7ae3f1dd96e9e009d | refs/heads/master | 2022-11-30T14:01:28.132512 | 2020-08-07T14:54:10 | 2020-08-07T14:54:10 | 285,815,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('user_accounts', '0005_auto_20180226_1732'),
]
operations = [
migrations.AlterField(
model_name='basicstats',
... | [
"dimgeows@gmail.com"
] | dimgeows@gmail.com |
ca3bf979f3f95bb0227e30197227edeb4ad65fdb | 94bd1e0d8caae89e8ae7b917d78fb241df650d46 | /gfssi_e03_ssi_area.py | 4aafab0014b207a178784ba5f664388ebe853e80 | [
"MIT"
] | permissive | NingAnMe/GFSSI | 79d36449764a96482b9e2bc3224675c7160ddcd3 | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | refs/heads/master | 2021-06-23T22:00:24.367544 | 2021-02-05T06:10:44 | 2021-02-05T06:10:44 | 196,914,413 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,020 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2019/8/12
@Author : AnNing
"""
import os
import h5py
import numpy as np
from lib.lib_read_ssi import FY4ASSI, FY3DSSI
from lib.lib_constant import FULL_VALUE
from lib.lib_get_index_by_lonlat import get_data_by_index, get_area_index
def _write_out_file(out... | [
"ninganme@qq.com"
] | ninganme@qq.com |
89c6129f1154222ee78183c7ae79f9ac99733671 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/heatmap/colorbar/_separatethousands.py | de1cd8c74ee61d486a9c57a33353a8d2f030d73c | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 455 | py | import _plotly_utils.basevalidators
class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator):
def __init__(
self, plotly_name="separatethousands", parent_name="heatmap.colorbar", **kwargs
):
super(SeparatethousandsValidator, self).__init__(
plotly_name=plotly... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
d810867bcfc8c9188e598edd86bf8ba9c1bd4c83 | 71aad099dc4fce3f4afebf0b38d57d11fddabeff | /fabfile.py | 98bacd1656f30e139d9b31cf99c310abd87fc151 | [] | no_license | spiritEcosse/neatapps | e683a0ca746f78f1f0e096ac10ce4f73ed3bcf58 | 623bcac577b7a4d3ea1bfea32c16cbfa39ad37a6 | refs/heads/master | 2020-04-22T09:59:05.586784 | 2015-10-07T12:40:22 | 2015-10-07T12:40:22 | 170,289,874 | 0 | 0 | null | 2019-05-21T08:44:56 | 2019-02-12T09:28:42 | CSS | UTF-8 | Python | true | false | 2,155 | py | __author__ = 'igor'
from fabric.api import local, run, cd, settings
import os
from neatapps.settings import BASE_DIR
from fabric.state import env
from neatapps.settings_local import HOSTS
env.user = 'root'
env.skip_bad_hosts = True
env.warn_only = False
env.parallel = True
env.shell = "/bin/bash -l -i -c"
REQUIREMENTS... | [
"shevchenkcoigor@gmail.com"
] | shevchenkcoigor@gmail.com |
c474e70bdbc4fb0f290fde3f5c81eb82caf24564 | 406e59a45b07c36717073ff2a446a7d5ce8057db | /data_visual/chapter15/dice_visual.py | bc071f90bf277b590d6b6342b524b89d3a5aa4df | [] | no_license | 15032373556/mystudy | ea074802c03ac3efe2577871a39e54f0a81c7b92 | 08861c40633b5cd93122248b676adbc4748bed7d | refs/heads/master | 2022-12-05T18:33:26.058627 | 2020-08-31T10:25:20 | 2020-08-31T10:25:20 | 291,670,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | import pygal
from die import Die
from sum_num import sum_2,sum_3,multip
#创建两个D6骰子
die_1 = Die()
die_2 = Die()
# #创建两个D8骰子
# die_1 = Die(8)
# die_2 = Die(8)
# #创建三个D6骰子
# die_1 = Die()
# die_2 = Die()
# die_3 = Die()
#掷几次骰子,并将结果存储在一个列表中
results = []
for roll_num in range(1000):
result = die_1.r... | [
"1798549164@qq.com"
] | 1798549164@qq.com |
24aa4af8736e1ea53d2d9ba0b3343622cf855c3f | 6feaf484be6ab130f82dc2cab66684499d7be1bb | /history/perlin_1554525139.025642.py | 2a76530991e878efa09cd9f1aae1162245a90151 | [] | no_license | JacobBunker/2DArt | d3b3d4d6b4f92bc64aab95139a0d0285c9cb2be0 | b8f6bdd081016a9922dc5a0a58226b9262c2ad98 | refs/heads/master | 2020-05-05T05:44:39.844350 | 2019-12-01T06:41:41 | 2019-12-01T06:41:41 | 179,763,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,816 | py | import numpy as np
from PIL import Image
import datetime;
import subprocess
sizeX = 512
sizeY = 512
repeat = 0
permutation = np.random.randint(low=0,high=255,size=[256],dtype=np.uint16)
p = np.empty([sizeX],dtype=np.uint16)
i = 0
while(i < 512):
p[i] = permutation[i%256]
i += 1
def fade(t):
#6t^5 ... | [
"jacob.n.bunker@gmail.com"
] | jacob.n.bunker@gmail.com |
6548a60cc2557c2b62190d7f8081789daf34ade7 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /.c9/metadata/environment/fb_post_learning/fb_post_v2/tests/interactors/tes_get_reactions_to_post_interactor.py | 89ac666e9950eb9917135a99700dc29c9b28d5a4 | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 7,237 | py | {"changed":true,"filter":false,"title":"tes_get_reactions_to_post_interactor.py","tooltip":"/fb_post_learning/fb_post_v2/tests/interactors/tes_get_reactions_to_post_interactor.py","value":"from unittest.mock import create_autospec\n\nfrom fb_post_v2.interactors.storages import StorageInterface\n\nfrom fb_post_v2.intera... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in |
faa303ad648a6c7ff8825e4cfa35fe13c27619fb | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envproject/migrations/0002_auto_20200326_1744.py | 2fa88af2d3c78743c8c0cdfa293983bf102cd8ba | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 940 | py | # Generated by Django 2.2.1 on 2020-03-26 17:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envproject', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='project',
name='logo',
f... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
ddb5c9e743c62271e928590de05e16f13c7cf342 | f8db8b11ad41d246cd4a0d71b75e3a324a481b14 | /SecretPlots/assemblers/__init__.py | 039b40cfcf37663da14edd45bbf7f7bca50520be | [
"MIT"
] | permissive | secretBiology/SecretPlots | b978703497d255eb099b471fdafcea7fdf793bd3 | eca1d0e0932e605df49d1f958f98a1f41200d589 | refs/heads/master | 2022-07-07T07:00:57.625486 | 2022-01-14T05:44:54 | 2022-01-14T05:44:54 | 206,092,023 | 0 | 1 | MIT | 2022-06-21T22:45:18 | 2019-09-03T14:03:56 | Python | UTF-8 | Python | false | false | 433 | py | # SecretPlots
# Copyright (c) 2019. SecretBiology
#
# Author: Rohit Suratekar
# Organisation: SecretBiology
# Website: https://github.com/secretBiology/SecretPlots
# Licence: MIT License
# Creation: 05/10/19, 7:44 PM
#
from SecretPlots.assemblers._base import Assembler
from SecretPlots.assemblers._bars import ... | [
"rohitsuratekar@gmail.com"
] | rohitsuratekar@gmail.com |
02fc867d8ca2fded13b2e27d71b97cb8471db1c6 | 55815c281f6746bb64fc2ba46d074ca5af966441 | /medium/1261.py | c20fe47a1a06a1dbaa21b9bc1188fc7d9b490f82 | [] | no_license | brandoneng000/LeetCode | def5107b03187ad7b7b1c207d39c442b70f80fc2 | c7a42753b2b16c7b9c66b8d7c2e67b683a15e27d | refs/heads/master | 2023-08-30T23:38:04.845267 | 2023-08-30T08:42:57 | 2023-08-30T08:42:57 | 199,584,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | from typing import Optional
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class FindElements:
def __init__(self, root: Optional[TreeNode]):
def dfs(root: TreeNode, expect... | [
"brandoneng000@gmail.com"
] | brandoneng000@gmail.com |
6104deeb0fc1599dd5f3e3b4bbeb0f3de85eae1e | e8b5fde61cda3752507c3d8309c9d7075047a8d0 | /desihub/specsim/specsim/config.py | 0b89a824fb9a7c7f4d98be67ac51aea1fde72277 | [] | no_license | michaelJwilson/LBGCMB | f83af41d80d1991644607d473cd00246432fe601 | fca7d0cd515b756233dfd530e9f779c637730bc4 | refs/heads/master | 2021-08-15T19:40:43.151033 | 2020-04-22T17:42:11 | 2020-04-22T17:42:11 | 163,872,551 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 26,243 | py | ## Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Manage simulation configuration data.
Configuration data is normally loaded from a yaml file. Some standard
configurations are included with this package and can be loaded by name,
for example:
>>> test_config = load_config('test')
Otherwise a... | [
"mjw@roe.ac.uk"
] | mjw@roe.ac.uk |
1dbfce8ff2e4ea921f1c9038ecf9b33e745429a5 | 0213dfa0195d88fd8bfa3027a5888c2b98c79562 | /firebase_login.py | e20b5747826492447e98c86b398125b5e2bcf6ef | [] | no_license | DavidArmendariz/dash-python | 9cd02a06eab46a49ec33e430d9c470263b8d06c6 | f0574c73b635929d1842dd27834e339b048516b5 | refs/heads/master | 2023-01-02T18:43:50.976001 | 2020-11-02T16:36:13 | 2020-11-02T16:40:39 | 222,872,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import requests
_verify_password_url = 'https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyPassword'
api_key = "your_api_key"
def sign_in_with_password(email, password):
body = {'email': email, 'password': password}
params = {'key': api_key}
try:
resp = requests.request('p... | [
"darmendariz1998@outlook.com"
] | darmendariz1998@outlook.com |
c2f5082906869508409e4d0c94b359cb332319c9 | 241724e83f5c12ed9d7dd3b825dfe4e2b1b0f777 | /pde/grids/spherical.py | 473250a053f7850d04875ebd1b259c242fdf6dc5 | [
"MIT"
] | permissive | xuanxu/py-pde | d8be358ab76d4060b14afc74bc7d836591c6188e | de33d938aea8680eff872ae1b64569895662a248 | refs/heads/master | 2021-03-09T21:37:13.920717 | 2020-03-10T12:18:03 | 2020-03-10T12:18:03 | 246,382,909 | 0 | 0 | MIT | 2020-03-10T18:54:22 | 2020-03-10T18:54:22 | null | UTF-8 | Python | false | false | 26,200 | py | '''
Spherically-symmetric grids in 2 and 3 dimensions. These are grids that only
discretize the radial direction, assuming symmetry with respect to all angles.
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
'''
from abc import ABCMeta
from typing import Tuple, Dict, Any, Union, Callable, Generator, TYPE_CH... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
ff4498ec0589e7899a19c0ba51e30c0908698ad8 | 33b92f44ab665c6418742d3142104864312b6597 | /ValveBatchExport/ValveBatchExportRules/QuantificationResults.py | eb6e90791a3eb16bd6f5b6a3f43b9b2d28c20b84 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | SlicerHeart/SlicerHeart | ebe46aec9fd00f9cee7907fa5ad2774ff3e25c93 | 09e440d1cc821e5b5f01146eddfcbd65edec7f32 | refs/heads/master | 2023-08-17T08:42:01.948700 | 2023-08-16T20:19:14 | 2023-08-16T20:19:14 | 38,175,829 | 78 | 33 | BSD-3-Clause | 2023-09-07T14:07:01 | 2015-06-27T21:23:46 | Python | UTF-8 | Python | false | false | 6,557 | py | import os
import logging
import slicer
from pathlib import Path
from collections import OrderedDict
from .base import ValveBatchExportRule
from HeartValveLib.helpers import getSpecificHeartValveMeasurementNodes, getAllFilesWithExtension
class QuantificationResultsExportRule(ValveBatchExportRule):
BRIEF_USE = "Val... | [
"lasso@queensu.ca"
] | lasso@queensu.ca |
362055f348f5bdd9e9815a9fd4a90b337fb7e476 | 3ced55b04ec82df5257f0e3b500fba89ddf73a8a | /tests/molecular/writers/xyz/conftest.py | 4762327c235ce62b0574093cd599d68259bead29 | [
"MIT"
] | permissive | rdguerrerom/stk | 317282d22f5c4c99a1a8452023c490fd2f711357 | 1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a | refs/heads/master | 2023-08-23T21:04:46.854062 | 2021-10-16T14:01:38 | 2021-10-16T14:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | import pytest
import stk
from .case_data import CaseData
@pytest.fixture(
params=(
lambda: CaseData(
molecule=stk.BuildingBlock('BrCCBr', [stk.BromoFactory()]),
writer=stk.XyzWriter(),
string=(
'8\n\nBr -1.423838 1.561473 0.322335\nC -0.740543 -0.2'
... | [
"noreply@github.com"
] | rdguerrerom.noreply@github.com |
d85bd4322220b2482ece10b207a43c99487b7f9c | bdb3716c644b8d031af9a5285626d7ccf0ecb903 | /code/UI/ClientExamples/Python/ExampleQuery_ARAXi__Workflow_Combo.py | 2746ad3c61839a9ddfbb3d73c805ae15c72504ac | [
"MIT",
"Apache-2.0"
] | permissive | RTXteam/RTX | 97d2a8946d233d48cc1b165f5e575af21bda4b26 | ed0693dd03149e56f7dfaf431fb8a82ace0c4ef3 | refs/heads/master | 2023-09-01T21:48:49.008407 | 2023-09-01T20:55:06 | 2023-09-01T20:55:06 | 111,240,202 | 43 | 31 | MIT | 2023-09-14T16:20:01 | 2017-11-18T21:19:13 | Python | UTF-8 | Python | false | false | 2,385 | py | """ This example sends a simple set of DSL commands to the ARAX API.
"""
# Import minimal requirements
import requests
import json
import re
# Set the base URL for the ARAX reasoner and its endpoint
endpoint_url = 'https://arax.ncats.io/api/arax/v1.1/query'
# Create a dict of the request, specifying the list of DSL ... | [
"edeutsch@systemsbiology.org"
] | edeutsch@systemsbiology.org |
1ce57ab64e06a5bbeeefde752bdbc5f55551c62b | 020eb7ca1826df843cc294590ce55ef8b2076263 | /coursework/control-flow/using-conditional-statements/exercise3/func.py | c96fa26d8270a91a99b6487c75080eb6c2a3bddc | [] | no_license | murffious/pythonclass-cornell | d95e3a4a50653f3caee462fcd6bd6a5f476c7248 | da4abfac3af0f4706c1c4afcf1ff978aa41e765c | refs/heads/master | 2023-02-06T05:27:41.199544 | 2020-03-23T17:27:36 | 2020-03-23T17:27:36 | 227,713,413 | 0 | 0 | null | 2023-02-02T05:14:41 | 2019-12-12T23:11:32 | Python | UTF-8 | Python | false | false | 1,636 | py | """
A function to extract names from e-mail addresses.
Author: Paul Murff
Date: Jan 9 2020
"""
import introcs
def extract_name(s):
"""
Returns the first name of the person in e-mail address s.
We assume (see the precondition below) that the e-mail address is in one of
three forms:
... | [
"titan.murff@gmail.com"
] | titan.murff@gmail.com |
7cca05a0f87a3f121f81026ce5455ef7300d7eca | 201b42947d38be70cd0985fb3fc46bd6068ca2f8 | /virtual_env/libs/mysql-connector/python2/mysql/connector/protocol.py | 693dcb3b5a0bf442c553b0fb35efa4351d3155c2 | [
"MIT",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-or-later",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rcosnita/fantastico | d4fade25a10231f50b62fff6b41d814815dd4b62 | 81c8590556baa9e1148071b7835d74b1efada561 | refs/heads/master | 2021-03-12T21:55:03.260192 | 2020-07-28T07:16:39 | 2020-07-28T07:16:39 | 9,280,607 | 3 | 1 | MIT | 2020-07-28T07:16:40 | 2013-04-07T17:52:51 | Python | UTF-8 | Python | false | false | 10,039 | py | # MySQL Connector/Python - MySQL driver written in Python.
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
# MySQL Connector/Python is licensed under the terms of the GPLv2
# <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
# MySQL Connectors. There are special exceptio... | [
"radu.cosnita@gmail.com"
] | radu.cosnita@gmail.com |
14540ef1b5e178096ca59f1de0d3ba6f681d6f22 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fabric/rtfabricsetup.py | 21a22fba816522d0574584c791d13cd993e22106 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
4b001d53c03bc9f56445647b9cb02b088ddb632e | 264ce32d9eebb594cc424ecb3b8caee6cb75c2f3 | /content/hw/04_parameter_null/ok/tests/q2_07.py | 84c54e5929d731f39069c4cd1da758bbe23ce0c3 | [] | no_license | anhnguyendepocen/psych101d | a1060210eba2849f371d754e8f79e416754890f9 | 41057ed5ef1fd91e243ab41040f71b51c6443924 | refs/heads/master | 2022-03-24T02:20:32.268048 | 2019-12-21T02:51:02 | 2019-12-21T02:51:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | test = {
"name": "2: Estimating p and the null distribution of t, easy task",
"points": 1,
"suites": [
{
"cases": [
{
"code": r"""
>>> # Is the center of the distribution plausible?
>>> np.abs(null_samples.me... | [
"charlesfrye@berkeley.edu"
] | charlesfrye@berkeley.edu |
46c94c81f3ad86f95e0553a584efa6694c53d4d2 | 5241641cba4a6cf3b87284b72dcc5b6e70504f32 | /inmemory/apps.py | 10cba8a219f2e21b4dcf2d3831d0aae29811074d | [] | no_license | sdnnet3/coocooclub | a11505b2559b199164f2d881fa37a65cf9767aac | 5b1708194386048f62aa8222ef619f854758c556 | refs/heads/master | 2020-06-11T15:37:01.437796 | 2019-08-26T05:37:48 | 2019-08-26T05:37:48 | 194,009,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class InmemoryConfig(AppConfig):
name = 'inmemory'
| [
"clayton.hutton@gmail.com"
] | clayton.hutton@gmail.com |
7c18941abf61e4145754fe7e1e3b4d587799f0d0 | f70c83e63a1a6ae55083d879197ffeeecfb6036c | /catkin_ws/buildold/ros_arduino_bridge/ros_arduino_firmware/catkin_generated/pkg.installspace.context.pc.py | b73a6eac062336446d3f1ec5d298dac4998391e4 | [] | no_license | jdumont0201/ros-cpp-robot | ed46b004bfac890a32b76d346a3ad506624c3cda | b48e0f0a84c8720e59aebdfc3a28f014a64675c6 | refs/heads/master | 2020-03-16T16:22:15.134808 | 2018-05-23T08:24:40 | 2018-05-23T08:24:40 | 132,784,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ros_arduino_firmware"
PROJECT_SPACE_D... | [
"jbmdumont@localhost.localdomain"
] | jbmdumont@localhost.localdomain |
a74f3d34d7c2cdc48582c70f7525ba1946d0cca9 | dc089930c6dd627b1ca37188c9515b6b7bfc3ba3 | /conscious_consumer/store/urls.py | b3978acfece9cb1ceabcc26029a7ad4ce0f8a4a8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | UPstartDeveloper/conscious-consumer | 923e57b6d1478b654786bfdaa905e7fde17305d7 | 98c5b8c9612b536aa8873353dd48d916287dff5d | refs/heads/master | 2022-11-29T16:16:57.726101 | 2021-04-26T19:57:59 | 2021-04-26T19:57:59 | 247,784,145 | 0 | 0 | MIT | 2022-11-22T07:39:21 | 2020-03-16T18:03:00 | JavaScript | UTF-8 | Python | false | false | 632 | py | from django.urls import path
from .views import (
ProductList,
ProductCreate,
ProductDetail,
ProductUpdate,
ProductDelete,
)
app_name = "store"
urlpatterns = [
# Product CRUD-related URLs
path("products/", ProductList.as_view(), name="product_list"),
path("products/new/", ProductCreate.... | [
"zainr7989@gmail.com"
] | zainr7989@gmail.com |
97823ad8e8fe53a9e20e34f9ce7ce89c75df003e | 010c5fbc97731286be00028ff33fc981d943bca3 | /primal/src/code/impute/tests/cgi/count_cgi_genotypes.old.py | f36441491c351e27f58bc314722118098484e0fa | [] | no_license | orenlivne/ober | 6ce41e0f75d3a8baebc53e28d7f6ae4aeb645f30 | 810b16b2611f32c191182042240851152784edea | refs/heads/master | 2021-01-23T13:48:49.172653 | 2014-04-03T13:57:44 | 2014-04-03T13:57:44 | 6,902,212 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,419 | py | #!/usr/bin/env python
'''
============================================================
Calculate call rates in imputed CGI files.
Created on February 18, 2012
@author: Oren Livne <livne@uchicago.edu>
============================================================
'''
import sys, os, csv, itertools, numpy as np, traceback... | [
"oren.livne@gmail.com"
] | oren.livne@gmail.com |
8522128d89b824867b58a7b3c2b8e336b6cb1814 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow/source/tensorflow/contrib/learn/python/learn/tests/__init__.py | f6a58889f9c89c6369708df68a903013932811c5 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 891 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
9acfaeaff0e83be2eca65c5a519804e3e11d64ff | 6fdbd55d5232d66a740e2893cc9939cb6e89455d | /geupshik_translator/config/storages.py | 181ae2bf99c7e69e523a9a27a78d7df2d6bd122c | [] | no_license | suhjohn/Slang-Translator-KR | f24ff76b034cc78926a30a7ee9b50b15855f5b5a | 69f524ae4c1ce8bbac481ce73221f18747144001 | refs/heads/master | 2021-08-08T18:55:02.819204 | 2017-11-10T12:23:53 | 2017-11-10T12:41:40 | 110,214,064 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from storages.backends.s3boto3 import S3Boto3Storage
from django.conf import settings
class StaticStorage(S3Boto3Storage):
location = settings.STATICFILES_LOCATION
class MediaStorage(S3Boto3Storage):
location = settings.MEDIAFILES_LOCATION
| [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
76b9d760319a2058057ef8578b535f1dca0e79af | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/220/users/2023/codes/1647_2443.py | 6cbe7ef05d32e52d810ed45d557bc58163e7e18e | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Tanque de combustivel.
from math import*
raio = float(input("digite o raio:"))
altura = float(input("digite a altura:"))
opcao = float(input("digite 1 para volume do ar ou 2 para do combustivel:"))
calota_esferica = ((pi*(altura**2)*(3*raio-altura)))/3
volume_esfera = 4*pi*(raio**3)/3
if (opcao==1):
v = calota_es... | [
"psb@icomp.ufam.edu.br"
] | psb@icomp.ufam.edu.br |
42b8ceb2a472566a9eb54fe3e020f1d07b99f9a9 | 7b4f9a5937c6d390289d7252266cfdd3c62be728 | /how_to_think/chapter_3/second_set/exercise_3_4_4_7_b.py | 6029766e3231f4baef19c32fac035a8f6bb033d6 | [] | no_license | LCfP-basictrack/basictrack-2020-2021-2b | d7ea1dc651c202d9e433588c9df8cf3554fd80e8 | 268f066a9baade3c4300a72ef7a866e535a714e0 | refs/heads/master | 2023-05-05T22:32:41.738918 | 2021-05-27T15:12:40 | 2021-05-27T15:12:40 | 358,275,084 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | import turtle
screen = turtle.Screen()
pirate = turtle.Turtle()
steps = [160, -43, 270, -97, -43, 200, -940, 17, -86]
heading = 0
for step in steps:
pirate.left(step)
pirate.forward(100)
heading += step
print("The final heading is", heading % 360)
screen.exitonclick()
| [
"mail@vincentvelthuizen.com"
] | mail@vincentvelthuizen.com |
cbdbd4b45853d6a0849a51a1b17e1bae1b10a9ce | c97830c72b99f005a2024ce57f8af9a912b18c59 | /acc/migrations/0006_profile_id_image.py | ca338e9102c9f4fe6b21eb4d004a7ff4e328efc8 | [] | no_license | toluwanicareer/xenos | 77b4d9c6516c45fffef6affbcaeccdc02ec5ff3a | ba1c25c68c87aaddcf1237e2c055b055e24fa4bc | refs/heads/master | 2021-05-04T15:15:00.373122 | 2018-04-08T20:10:00 | 2018-04-08T20:10:00 | 120,223,340 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-02-17 17:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('acc', '0005_auto_20180217_0620'),
]
operations = [
migrations.AddField(
... | [
"abiodun.toluwanii@gmail.com"
] | abiodun.toluwanii@gmail.com |
76e9b88a8acfc25d43ab10dc0fc98798ffa21f65 | cb6461bfae8b0935b7885697dad0df60670da457 | /pychron/dashboard/tasks/server/panes.py | 1ec709a17a70d5aaec69977e3dd98bc2924d76de | [
"Apache-2.0"
] | permissive | USGSMenloPychron/pychron | 00e11910511ca053e8b18a13314da334c362695a | 172993793f25a82ad986e20e53e979324936876d | refs/heads/develop | 2021-01-12T14:09:18.983658 | 2018-02-06T14:25:05 | 2018-02-06T14:25:05 | 69,751,244 | 0 | 0 | null | 2016-10-01T16:59:46 | 2016-10-01T16:59:46 | null | UTF-8 | Python | false | false | 3,111 | py | # ===============================================================================
# Copyright 2013 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
5b86ad9f6206d82584c6a1da085a0e3e72e2b250 | 11aac6edab131293027add959b697127bf3042a4 | /busiestServers.py | 6fee9c8789a62b906f53a1556f08cd3f3b0a2b41 | [] | no_license | jdanray/leetcode | a76b3436002b31865967b757b73c85992636383b | fd736af3e79899b86dac89d4d925d5bd985944ad | refs/heads/master | 2023-08-15T01:20:05.110565 | 2023-08-14T00:25:58 | 2023-08-14T00:25:58 | 148,686,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # https://leetcode.com/problems/find-servers-that-handled-most-number-of-requests/
from sortedcontainers import SortedList
class Solution(object):
def busiestServers(self, k, arrival, load):
count = collections.Counter()
avail = SortedList(list(range(k)))
busy = []
for (i, a) in enumerate(arrival):
while... | [
"jdanray@users.noreply.github.com"
] | jdanray@users.noreply.github.com |
2f947ab99d89b2f0ef78907083e8ebf86d2ad25a | 9452f681ea486fc53ad88d05392aed5fc450805c | /code25_all/python/2350110.txt | cb11aa556ef4974922179fb7719a30672dd9d2db | [] | no_license | CoryCollins/src-class | 11a6df24f4bd150f6db96ad848d7bfcac152a695 | f08a2dd917f740e05864f51ff4b994c368377f97 | refs/heads/master | 2023-08-17T11:53:28.754781 | 2021-09-27T21:13:23 | 2021-09-27T21:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,273 | txt | #!/usr/bin/python
import timeit
import numpy
import ctypes
import random
USE_RANDOM=True
USE_STATIC_BUFFER=True
STATIC_BUFFER = numpy.empty(4096*20, dtype=numpy.float32)
def render(i):
# pretend these are different each time
if USE_RANDOM:
tex_left, tex_right, tex_top, tex_bottom = random.random(), ... | [
"znsoft@163.com"
] | znsoft@163.com |
2cbc0e35a8851a5ac3b4a3a4cae1d7c9d6e26397 | 4033fed719d91ccea96bb854f499a4ff253c54d3 | /custom_features/DBTT.py | 79b3b098c08eec105c67913a76224dce5ea0fd59 | [] | no_license | H0lland/MAST-ML | 612cc195c08f612b4846b0da40f113c3b40dfc47 | 40ef2c17bb8bb26b928f6cc4623a3a46e02c671a | refs/heads/master | 2020-03-15T13:33:25.533453 | 2018-08-10T15:10:15 | 2018-08-10T15:10:15 | 132,169,522 | 0 | 0 | null | 2018-06-12T15:40:50 | 2018-05-04T17:25:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,577 | py | import numpy as np
import copy
from FeatureOperations import FeatureNormalization, FeatureIO
__author__ = "Tam Mayeshiba"
class DBTT():
"""Class for creating custom feature columns specifically for the
DBTT project.
New methods may be added.
Args:
dataframe <data object>
Returns:... | [
"mayeshiba@wisc.edu"
] | mayeshiba@wisc.edu |
a8880daa6f3d42715335e1ab99fa44f4a9d4f40b | 8b09c10f7ebabccf01dcf21775c7fe0550ee0d9e | /virtual/bin/confusable_homoglyphs | d477d110b1c479190e2e1f2ca41abed42a2bb72f | [
"MIT"
] | permissive | MaryMbugua/Safe | f25da88ccefcc5d54ea142b634be3493be1e24e1 | 2aaa4760cfa96aafc4d37233fe7b4df584e2ed79 | refs/heads/master | 2020-03-18T11:26:22.678249 | 2018-06-05T06:21:58 | 2018-06-05T06:21:58 | 134,671,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/home/nish/Desktop/projects/neighbourhoodwatch/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from confusable_homoglyphs.cli import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"marymbugua.nm@gmail.com"
] | marymbugua.nm@gmail.com | |
6eb1f05ced6608ae3c37f76584a08945f16a2723 | f9cc7246e323a9ce0d93a4e9722e1408e494fb4f | /paymentserver/app/urls.py | d9b4627f88e861d9f3fc7e2a54918547846fd3a8 | [] | no_license | ketsalot1/apps-payment-server | a21e3043b71f85db103e6f094e1ebb243119f491 | e571776af364ebf32dec9fbe4fb1a6554d279328 | refs/heads/master | 2021-01-13T07:09:34.186299 | 2012-03-23T04:06:53 | 2012-03-23T04:06:53 | 69,055,263 | 1 | 0 | null | 2016-09-23T19:37:14 | 2016-09-23T19:37:14 | null | UTF-8 | Python | false | false | 225 | py | from django.conf.urls.defaults import *
from django.conf import settings
urlpatterns = patterns('app.views',
(r'^$', 'home'),
url(r'^payment_succeeded$', 'payment_succeeded',
name='app.payment_succeeded'),
)
| [
"kumar.mcmillan@gmail.com"
] | kumar.mcmillan@gmail.com |
2e699869612e99e69257d64e9b23679d35d7c5b7 | f0e10b8dfabfe931e7fa9d9adda6ca4fcde6940d | /tutu/utils.py | cbfe3a94cdf25490e2330e9b42b4dfd63d60f418 | [
"MIT"
] | permissive | priestc/django-tutu | e0d4cbd977ca1d7ed97f1fb510aa655ada6d74d3 | 267a44a0dd75a1de42d05801149f36ef1ac84b57 | refs/heads/master | 2020-09-27T07:13:01.442268 | 2020-02-08T05:50:53 | 2020-02-08T05:50:53 | 226,460,887 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,217 | py | from tutu.metrics import Metric
import datetime
from django.conf import settings
def validate_metric(metric):
if isinstance(metric, Metric):
return metric
elif isinstance(metric, type) and issubclass(metric, Metric):
return metric()
else:
raise ValueError("Must be a Metric class or ... | [
"cp368202@ohiou.edu"
] | cp368202@ohiou.edu |
666fecfb2a75f1bc7777fe2d07e22f40e6d985eb | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D04B/CUSEXPD04BUN.py | e420b19fdad2bfde8e8a20be17750d9949db5fad | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,519 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD04BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 5},
{ID: 'LOC', MIN: 0, MAX: 5},
{ID: 'CNT'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
50dd5ace63ee64ad2858aaefffaeb374c9271f86 | 49b1b98e9bbba2e377d8b5318fcc13776bbcb10b | /museum/spiders/exhibition17.py | e1d1505e4d08052e575979f21026047abbede4ea | [] | no_license | BUCT-CS1808-SoftwareEngineering/MusemData_Collection_System | fa4e02ec8e8aaa9a240ba92cf7be33dbc0e8e31f | 023e829c77037ba6d2183d8d64dcb20696b66931 | refs/heads/master | 2023-04-29T05:43:01.627439 | 2021-05-23T03:02:09 | 2021-05-23T03:02:09 | 360,040,880 | 0 | 0 | null | 2021-05-23T03:02:09 | 2021-04-21T05:18:41 | Python | UTF-8 | Python | false | false | 2,232 | py | import scrapy
from museum.items import exhibitionItem
import re
import json
# scrapy crawl exhibition17
class Exhibition17Spider(scrapy.Spider):
name = 'exhibition17'
# allowed_domains = ['www.xxx.com']
start_urls = ['http://www.3gmuseum.cn/web/exhibitionHallOften/conventionalExhibitionPage.do?pageNumber=... | [
"szqszq00766@163.com"
] | szqszq00766@163.com |
f67376bd7e13509194aea02f91ac23207e7fca15 | 4bd207d288c95b9f20785bb841224b914f05c280 | /code-master/lib/bitbots/modules/behaviour/head/decisions/head_duty_decider.py | 693c083124300ef7e2a84e8530d287cd73e15850 | [] | no_license | hendrikvgl/RoboCup-Spielererkennung | 435e17ee540c4b4c839e26d54db2528a60e6a110 | c41269a960f4b5ea0814a49f5a20ae17eb0a9d71 | refs/heads/master | 2021-01-10T10:39:00.586760 | 2015-10-21T12:42:27 | 2015-10-21T12:42:27 | 44,675,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | # -*- coding:utf-8 -*-
"""
HeadDutyDecider
^^^^^^^^^^^^^^^
Entscheidet was der Kopf tun soll
History:
* 19.08.14: Created (Nils Rokita)
"""
import time
from bitbots.modules.abstract.abstract_decision_module import AbstractDecisionModule
from bitbots.modules.abstract.abstract_module import debug_m
from bitbots.modu... | [
"hendrik.vgl@gmail.com"
] | hendrik.vgl@gmail.com |
b3828d96fd97bc7eba9ac11905e8647994ec276a | 24e7e0dfaaeaca8f911b40fcc2937342a0f278fd | /venv/Lib/site-packages/plotly/express/_doc.py | 3d4c5d214689f018d81ccf174782cce8575bfd25 | [
"MIT"
] | permissive | BimiLevi/Covid19 | 90e234c639192d62bb87364ef96d6a46d8268fa0 | 5f07a9a4609383c02597373d76d6b6485d47936e | refs/heads/master | 2023-08-04T13:13:44.480700 | 2023-08-01T08:36:36 | 2023-08-01T08:36:36 | 288,455,446 | 1 | 0 | MIT | 2021-01-22T19:36:26 | 2020-08-18T12:53:43 | HTML | UTF-8 | Python | false | false | 26,439 | py | import inspect
from textwrap import TextWrapper
try:
getfullargspec = inspect.getfullargspec
except AttributeError: # python 2
getfullargspec = inspect.getargspec
colref_type = "str or int or Series or array-like"
colref_desc = "Either a name of a column in `data_frame`, or a pandas Series or array_like obj... | [
"50989568+BimiLevi@users.noreply.github.com"
] | 50989568+BimiLevi@users.noreply.github.com |
498cfa85a40dbce059482bbd34786e6433736369 | ff844756ad80c33c2cfcdd7f41a010e8e5674bbf | /test/app_test.py | ed87550c798181e8fababda910e263f710ed8f83 | [] | no_license | riquellopes/congratulations | f133be337413b500052639f30d6ea6b7182681da | 074df3cb2b8dfab007e7fd93f5f1786b0fd7ad95 | refs/heads/master | 2016-09-05T11:52:32.941162 | 2012-03-05T17:18:19 | 2012-03-05T17:18:19 | 3,546,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,440 | py | # coding: utf-8
import datetime
import unittest
from mock import Mock, patch
from nose.tools import assert_equals, assert_true, assert_raises, assert_false
from app import Congratulations, CongratulationsExEnd, app
class MockUrllib(Mock):
def __init__(self, file_test):
self.file_test = file_test
def read(sel... | [
"riquellopes@gmail.com"
] | riquellopes@gmail.com |
6b83013931c9e1b0bc505ae8a5906aa6c3985271 | afcb260d6f0c1d88232d2e300d26d8fb71b5ef43 | /django-app/member/views.py | 0a3ad5f76c034d58d7139ec6bc3f14240c145f63 | [] | no_license | JeongEuiJin/deploy-eb-docker | e5d10f65166ca8a1a4a5fdd32c9647c0d8f5feed | 1f5b57aa5e119f68c169f059e9bf88d5fbf76850 | refs/heads/master | 2020-12-02T17:46:19.905183 | 2017-07-13T07:32:36 | 2017-07-13T07:32:36 | 96,424,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | from django.contrib.auth import authenticate, login
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from .forms import CustomUserCreationForm
# Create your views here.
# @login_required
def home(request):
return render(request, 'member/home.html')
def sig... | [
"hehar1020@gmail.com"
] | hehar1020@gmail.com |
7f028271161ec849660d7f6454b99fd19c01e985 | 2475acb15e1dcd4a42ed8849a6ae7c6f383d5b59 | /calendar_api/migrations/0008_auto_20190529_1753.py | 78acb710d43a80372e2816d2f5f91e5967eda897 | [] | no_license | amigo2/Goker | 2e66cabb32253bfe43a188241b58df962a9a1583 | 0509446382eacabdb7c006a60362891f217bcc3a | refs/heads/master | 2022-12-13T09:50:47.720250 | 2019-08-13T20:54:43 | 2019-08-13T20:54:43 | 169,242,538 | 0 | 0 | null | 2022-12-08T12:23:28 | 2019-02-05T13:06:35 | Python | UTF-8 | Python | false | false | 2,230 | py | # Generated by Django 2.1.4 on 2019-05-29 15:53
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('calendar_api', '0007_auto_20190529_1749'),
]
operations = [
migrations.RenameField(
model_name='adquisition',
old_name='end_... | [
"amigo2@hotmail.com"
] | amigo2@hotmail.com |
623bec47ef4142d1023c81692b0918123a72b98f | 2b0f7d5e7b43bb9d32ee4044a79b0fc67294c986 | /test_skewed.py | 8dcd19468398179bf0edd731c04d67b71f0f73e4 | [] | no_license | rajikalk/Scripts | 766fcc16b97dfd4f918d8efbd2ec529a2dd71639 | 8caec46a6272ff1c7aeb5e359610d7e695dd7d34 | refs/heads/master | 2023-08-30T12:53:09.220312 | 2023-08-28T15:08:23 | 2023-08-28T15:08:23 | 87,136,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,653 | py | import numpy as np
from scipy.optimize import curve_fit
import matplotlib.pyplot as plt
import math as math
import scipy.special as sp
import pickle
import matplotlib.gridspec as gridspec
def func(x, sigma, mu, alpha, c, amp):
#normal distribution
normpdf = (1/(sigma*np.sqrt(2*math.pi)))*np.exp(-(np.power((x-m... | [
"reggie@Reggies-MBP.unicph.domain"
] | reggie@Reggies-MBP.unicph.domain |
53a6dc003f4989217077b1e3d96e789daac4ada0 | cb620e43469856c5a9b578ada5e37a3e610adbbb | /tests/orm/relations/test_morph_to_many.py | 82803862b0910b9c05d28a5de19c63b630db2bd5 | [
"MIT"
] | permissive | sxslex/orator | 5c889bab5a5f43be672275f1623135c7e1cbc98c | 0835a7c0341a5ab7e051318a52ab27f58b695916 | refs/heads/develop | 2021-01-09T07:04:54.556519 | 2015-11-25T11:42:53 | 2015-11-25T11:42:53 | 46,634,951 | 1 | 0 | null | 2015-11-21T21:37:25 | 2015-11-21T21:37:24 | null | UTF-8 | Python | false | false | 5,908 | py | # -*- coding: utf-8 -*-
import arrow
from flexmock import flexmock, flexmock_teardown
from ... import OratorTestCase
from ...utils import MockConnection
from orator.query.builder import QueryBuilder
from orator.query.grammars import QueryGrammar
from orator.query.processors import QueryProcessor
from orator.query.ex... | [
"sebastien.eustace@gmail.com"
] | sebastien.eustace@gmail.com |
db54103a8e02fc43379d24cc3ceb775e95ccf87f | 42e5ed5df5d8c8141691426a8f1996d955584a5e | /sprzet/urls.py | a364724a3a9177f575b8e3bc7bdc514455718412 | [] | no_license | pomidorki185ic/wypozyczalnia | 8ac71d1b5f438b8569ce756279d8a43805c1797a | c57ce4f5e48421b7562183f0b76da6920b2c0bca | refs/heads/master | 2023-05-01T16:15:19.980479 | 2021-05-19T11:00:54 | 2021-05-19T11:00:54 | 317,298,366 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.urls import path
from django.views.generic.base import TemplateView
from . import views
urlpatterns = [
path('spis_sprzetu', views.spis_sprzetu, name = 'spis_sprzetu'),
# path('profilKlienta/rejestracja', views.rejestracja, name = 'profilKlienta/rejestracja'),
#path('profilKlienta/pro... | [
"dawidpawlowski98@wp.pl"
] | dawidpawlowski98@wp.pl |
9781044e5880f01dc60c019e6cb074879a5f0e35 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-containerregistry/azure/mgmt/containerregistry/v2018_09_01/models/registry_usage_py3.py | 4580c01f22c3d11f336e70cb9766cd0fb3f80ed2 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,529 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
7fe23b074a91fc220c26cac409543a4218fa0930 | 91d8fc56bb263296c9f3d2bae4c7929f38057319 | /nmrmint/GUI/widgets.py | 39057f9d5d1bb08003175e6c6fa4ac2d2b1a41d7 | [
"MIT"
] | permissive | sametz/nmrmint | f9f8ca63ea0573c93a38834beba33652eee3595e | 9785e09b62e581bdbb5628e85df49d41fb86ec66 | refs/heads/master | 2022-02-02T03:50:08.509722 | 2018-07-03T02:01:57 | 2018-07-03T02:01:57 | 106,969,220 | 2 | 0 | null | 2017-10-15T00:43:10 | 2017-10-14T23:08:00 | Python | UTF-8 | Python | false | false | 27,493 | py | """Custom widgets composed from standard tkinter widgets.
Provides the following classes:
* _BaseEntryFrame: a base class for a Frame that contains a Label and an Entry
widget, has custom behavior, and calls back when a change to the entry has
been committed.
* ArrayBox: a subclass of _BaseEntryFrame that reads/write... | [
"sametz@udel.edu"
] | sametz@udel.edu |
879917b46e8c4961318c964911dd89f79325b030 | a974de6285db76b669937e9619a805c226bb11a6 | /04_The_Path_of_Python/T-resource_Python_201904/ex/ex4_3.py | 3cdbf41669af8c237a20b793e2c8e0d841b68d20 | [] | no_license | Vincent105/python | 1b3f753e6b9db711e320b53c3e0a04c9fc818c37 | 65351234310a81a85331b0f11aef42507868774d | refs/heads/master | 2021-08-03T21:06:57.977065 | 2021-07-30T09:02:56 | 2021-07-30T09:02:56 | 185,359,652 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # ex4_3.py
f = open("out.txt",mode="w")
print(" 姓名 國文 英文 總分 平均",file=f)
print("%3s %4d %4d %4d %3.1f" % ("洪冰儒", 98, 90, 188, 188/2),file=f)
print("%3s %4d %4d %4d %3.1f" % ("洪雨星", 96, 95, 191, 191/2),file=f)
print("%3s %4d %4d %4d %3.1f" % ("洪冰雨", 92, 88, 180, 180/2),file=f)... | [
"vincent1050917@gmail.com"
] | vincent1050917@gmail.com |
c2365e9ea85baa1801be84fa21fd6de815a01787 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/intermediate/147_v2/hundred_days.py | 93e78caccfce0c3ed9b677ebafe9b895680e3cc5 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 452 | py | from datetime import date
from dateutil.rrule import *
import dateutil
TODAY = date(year=2018, month=11, day=29)
def get_hundred_weekdays(start_date=TODAY):
"""Return a list of hundred date objects starting from
start_date up till 100 weekdays later, so +100 days
skipping Saturdays and Sundays"""
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
9059dc9806200db1b678dcd1aab3278e172c9e60 | 8e1be167066e30eff91c26c0757211cf3cf8b016 | /django/full_stack/login_and_registration/apps/users/migrations/0001_initial.py | 859f377ff7d427d869acba8cbbf4213ceebab8a9 | [] | no_license | dojo-solutions/online-ft-python | 074d0ba968f5a77eaec1bca0904232f2aa29051a | b4f6941d0bba376d121a40a6429b815d5b03c32f | refs/heads/master | 2020-04-21T11:52:31.390772 | 2019-03-02T01:27:54 | 2019-03-02T01:27:54 | 169,542,448 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-02-25 17:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"wes@tao.team"
] | wes@tao.team |
846bfc48306db4e64463137f1678d3024cae52f4 | d6952f048727add5b54a521d04f6c9b5889bcd35 | /pollination_sdk/models/new_recipe_package.py | 8be4cb90b14461dfbef3d33cd2532f98983cdceb | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,401 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from pollination_sdk.configu... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
78ad72f1d54511f8f597e4533e092800f77e17a0 | 99f145ac3a1b9192e54c114379f16bf992781251 | /venv/lib/python2.7/site-packages/pandas/tests/test_panel4d.py | 1b5a7b6ee1e83bfb8fc40cf51cc47fb7a05c1910 | [
"MIT"
] | permissive | dushyantRathore/Cricket-API | 0a7df84f9760090e8a24dc61689e63e123c33d1f | d28bc5e6c613052793117e3dbd9035e4540901bb | refs/heads/master | 2021-03-24T10:18:58.362716 | 2020-07-08T17:52:38 | 2020-07-08T17:52:38 | 79,565,447 | 3 | 1 | MIT | 2018-10-01T19:16:47 | 2017-01-20T14:24:08 | Python | UTF-8 | Python | false | false | 35,347 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from pandas.compat import range, lrange
import operator
import nose
import numpy as np
from pandas.types.common import is_float_dtype
from pandas import Series, Index, isnull, notnull
from pandas.core.panel import Panel
from pandas.core.panel4d import Panel4D
from... | [
"dushyant.bgs@gmail.com"
] | dushyant.bgs@gmail.com |
830a93a7ff43fc82e126221c9908f7a338e3214e | 42e44bfdca15da665fce8f83f57aaa08bc580dce | /tests/test_multiple_sheets.py | e2624e4339c843e005ed4e1b068c81792f2f42c0 | [
"BSD-3-Clause"
] | permissive | andrealmar/pyexcel | b6e20451047c9663ca075f73305c33fce91f319c | 350b6fbf13b9ddaa4d58fd0b65e8028774573013 | refs/heads/master | 2020-12-02T15:08:00.804201 | 2015-09-26T22:30:36 | 2015-09-26T22:30:36 | 43,714,151 | 0 | 0 | null | 2015-10-05T21:12:26 | 2015-10-05T21:12:26 | null | UTF-8 | Python | false | false | 19,842 | py | from base import PyexcelMultipleSheetBase
import pyexcel as pe
import os
from base import create_sample_file1, clean_up_files
from _compact import OrderedDict
from nose.tools import raises
class TestXlsNXlsmMultipleSheets(PyexcelMultipleSheetBase):
def setUp(self):
self.testfile = "multiple1.xls"
... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
b3acd8deb234d935d0bc79788d1e84b43210055d | 42685099f1e25e5c1db51b98546e0be495d2789f | /v6.0.2/log_syslogd/fortios_log_syslogd_override_filter.py | 9df76b4adb66ef98a0ba3135671867ef7fba21a6 | [
"Apache-2.0"
] | permissive | sxhdroid/ansible_fgt_modules | 02aaf9af33063d8178e7e898666ac9cdef150a00 | 58d02d80a8d0ff145bee226b345ad9738af523f6 | refs/heads/master | 2020-04-18T01:34:45.990750 | 2019-01-22T10:47:36 | 2019-01-22T10:47:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,969 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2018 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"magonzalez@fortinet.com"
] | magonzalez@fortinet.com |
28ed22db5c9fb33f2e867f2a54595fb76d76c037 | 4820b6d9665a487b7bd3f91a64354110dc61d31f | /palindrome permutations 2.py | c23d54d40333fba9768cfa1a99410ea2efd0d478 | [] | no_license | iamshivamgoswami/backtracking | 4f5c84342e7bf1865556ef87ee089c249fc73aef | 7e86f7f2852c14335d1f2b4a2a6bc8e577f33c3d | refs/heads/main | 2023-07-03T07:03:27.100901 | 2021-07-27T07:27:25 | 2021-07-27T07:27:25 | 389,594,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | import collections
class Solution:
def generatePalindromes(self, s: str) :
c=collections.Counter(s)
half="".join([k*(v//2) for k,v in c.items() ])
half=[c for c in half]
mid=[k for k,v in c.items() if v%2]
if len(mid)>1:
return []
mid="" if len(mid)==0... | [
"shivamgoswami12@gmail.com"
] | shivamgoswami12@gmail.com |
483fa6de553dfe149fd491fe21befb574ca1242e | 06aa3ec3262f6dd6866ea194ed6385f8e53509bf | /manuscript_codes/AML211DiffTrack/generateNetwork.py | 1fbc726986d5530780c38878ff1d0b29d5980caf | [] | no_license | KuehLabUW/UPSIDE | 95ce078382792d1beb0574c3b19c04e467befa58 | 3c90de9677f24e258800cb95bce6cb528f4ad4ac | refs/heads/master | 2023-07-13T15:58:07.963672 | 2021-08-30T21:14:48 | 2021-08-30T21:14:48 | 329,134,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,187 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 2 13:04:17 2020
@author: phnguyen
"""
import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
from graphviz import Digraph
import pandas as pd
import os
def plotNetwork(Matrix):
# the matrix is set up as position i j is direct... | [
"kuehlab@uw.edu"
] | kuehlab@uw.edu |
9f7dfcce54592311239776e190afd9b0a94e515a | dc891347a3cb625064fe6f88a0cb726d80a4c485 | /backend/manage.py | 1c155b642b5ffcbc4a4e45bfe5071a0646323736 | [] | no_license | crowdbotics-apps/web3-26079 | 5302040b077526e164888b5d2f6a388a40aad460 | 74990a2af2e2debca65caf283030f69da3741a32 | refs/heads/master | 2023-04-12T17:59:31.956124 | 2021-05-03T04:19:52 | 2021-05-03T04:19:52 | 363,814,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'web3_26079.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
55a82d57386c5a5cf6b2d392e5d774c58f62e1d3 | 2008ff2a5e0a7790c4578d2c8ce402e0bb24bfda | /orm_demo/store/migrations/0002_product_description.py | d7f8266267093ff7c3ade5c4483586a0a25ca433 | [] | no_license | ganqzz/django_demo | 788a44a212cbf9e82b2ca84ba86147a90943756a | c880fc784e7bca4a78709ad76772c924b97dc393 | refs/heads/master | 2023-07-09T07:53:56.549362 | 2021-08-13T11:46:39 | 2021-08-13T11:46:39 | 356,131,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 3.1.3 on 2020-12-20 22:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='description',
... | [
"ganqzz@users.noreply.github.com"
] | ganqzz@users.noreply.github.com |
baea0afbd350e02e867f40df5a66499c289ce39d | c13f48423a7b9817ab64addc1fab3c1391cbd860 | /rohdeschwarz/instruments/genericinstrument.py | 03d7004c2ef3fce6cff8b56fea8f8df59a498c44 | [] | no_license | yczhao1984/rohdeschwarz | 7bb891395967e398fefb7660492113e5ff8102fe | b0a72955608280580e13c900103752517b9e7bb5 | refs/heads/master | 2020-03-17T01:35:38.644954 | 2018-03-27T05:41:15 | 2018-03-27T05:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,644 | py | import sys
import os
#import struct
import numpy
from rohdeschwarz.general import ConnectionMethod
from rohdeschwarz.bus.tcp import TcpBus
from rohdeschwarz.bus.visa import VisaBus
class GenericInstrument(object):
_MAX_PRINT = 100
def __init__(self):
self.log = None
self.bus = None
sel... | [
"nick.lalic@gmail.com"
] | nick.lalic@gmail.com |
83342e6852c6e51579957f5c07ce95932a2d5367 | 87b8fc1ba1d5a5a9014cf2e69dcabd7df19e1fc2 | /src/pustakalaya_apps/document/migrations/0025_auto_20180510_1559.py | a4ca646f78a9ca9b2cfbb2a94e9d888169e4310b | [] | no_license | Becram/elibrary-olen | 5a885871b05dc9076a04575748a5bbce6b40c69c | f73772569d1a67fda4e5d44af9d1ed2ddd41166e | refs/heads/master | 2020-04-06T11:13:29.676136 | 2018-10-25T06:36:42 | 2018-10-25T06:36:42 | 157,408,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-05-10 10:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('document', '0024_auto_20180509_1547'),
]
operations = [
migrations.AlterFie... | [
"nishantkarki305@gmail.com"
] | nishantkarki305@gmail.com |
517cf48de68a5d5a2b690755e4ee2036cd8f8b42 | 65b9a63e8c132f32aeb56961968f5e363bd9a087 | /20191107_Keras乘用车销量预测神经网络训练对比实验/code/run.py | f46def6bde3e7c0d5fea16a16fd4dd136888bbbf | [] | no_license | 346644054/examples2019 | e70f13cfb56c3478fc6e335c730e0e70e70a6226 | 5f9777e7a887e635971156354f56ce065fa3f41e | refs/heads/master | 2022-04-09T03:52:52.973414 | 2020-02-28T03:05:02 | 2020-02-28T03:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | # -*- coding: utf-8 -*-
"""
network
fun:
env:
Linux ubuntu 4.4.0-31-generic x86_64 GNU;python 2.7;tensorflow1.10.1;Keras2.2.4
pip2,matplotlib2.2.3
"""
from __future__ import print_function
import os
import numpy as np
import pandas as pd
import keras
import time
import datetime
import proprocess
i... | [
"elesun2018@gmail.com"
] | elesun2018@gmail.com |
ec037038c62bc775b8da6c8634bf9e729c1f0797 | b2319c5e14c94edfb5a39e4c490c1ae6183651ed | /deepgoweb/apps/accounts/models.py | bc9bce7da4d76623d803e2b74b30143d7724999e | [] | no_license | coolmaksat/deepgoweb | 6d67f45059d7bdb4548d50c182a038c6f9c70a31 | fd4904b6b18dd2af06e000679f406b7353a3534f | refs/heads/master | 2021-06-12T14:42:14.513686 | 2021-04-17T10:23:39 | 2021-04-17T10:23:39 | 161,017,035 | 0 | 0 | null | 2018-12-09T07:49:26 | 2018-12-09T07:49:26 | null | UTF-8 | Python | false | false | 1,119 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save, pre_save
from django.utils.translation import ugettext as _
from django.core.exceptions import ValidationError
GENDER_CHOICES = (
(0, 'Male'),
(1, 'F... | [
"coolmaksat@gmail.com"
] | coolmaksat@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.