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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dfdfbaa0434a4a1fbf78dda2a901886803734fe3 | a1b6744ce474a3f611f9c80580f8846968a8e6fd | /utils/data.py | 97ec7f07acb3328091cb74e9707be1dec3cacab7 | [] | no_license | connectomicslab/connectome_spectral_analysis | 35c2a451374b33d56d393aad872c6310bdbc2ed4 | 9ce1ed29456a85d7fcfd59a04fb73caccd0513db | refs/heads/main | 2023-08-13T11:52:04.139735 | 2021-09-24T06:25:27 | 2021-09-24T06:25:27 | 430,620,725 | 1 | 0 | null | 2021-11-22T08:22:04 | 2021-11-22T08:22:04 | null | UTF-8 | Python | false | false | 8,113 | py | import os
import numpy as np
import pandas as pd
import pygsp
import scipy
import scipy.io
import os
class Connectome(pygsp.graphs.Graph):
def __init__(self,sc_file):
super().__init__(sc_file, lap_type='normalized')
self.compute_fourier_basis()
def loader_sc(scale, datadir, sc_type='num'):
# L... | [
"joan.rue.q@gmail.com"
] | joan.rue.q@gmail.com |
2370ae58987abaa1d8a816bd2660abef243c5e37 | 0a839bf5256e9ed3d407d4c95cdd891d9d1b9dcb | /main.py | 770a44882daa18de757950d5b05a5fd6e25ab704 | [] | no_license | cordyrichardson3/hello-flask | 7c788401efb9ac4e9ac3d839dbbefc89b2e3bede | f6601e3d12ee08b54d2040713c57b8a12c48492d | refs/heads/master | 2020-03-29T12:24:59.336911 | 2018-09-22T17:41:21 | 2018-09-22T17:41:21 | 149,898,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from flask import Flask
app = Flask(__name__)
app.config['DEBUG'] = True
@app.route("/")
def index():
return "Hello World"
@app.route("/cordy")
def cordy():
return "Hello Cordy"
app.run() | [
"cordyrichardson3@gmail.com"
] | cordyrichardson3@gmail.com |
774bd4d78ca27980370d7a59191d4404aba8a9a8 | d971d2b9648bd656c1a65eebd162e44bdcb14aa2 | /segment_tree.py | 6cedda244f50d72d8e9d177bd522371710701355 | [] | no_license | AlexandraFr/sf | fafa2e2510942932a6909bf2622743a7b0c9f49d | d822996db232ee233cdf06612a7e1e834084f623 | refs/heads/master | 2021-05-04T07:58:23.528216 | 2016-12-26T13:12:46 | 2016-12-26T13:12:46 | 70,736,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | import math
class SegmentTree:
def __init__(self, string):
self.string = string
self.length = len(string)
self.segment_tree = []
self.__build(string)
def __build(self, string):
for i in range(2 * self.length):
if i < self.length:
self.segmen... | [
"noreply@github.com"
] | AlexandraFr.noreply@github.com |
9634736a12f454ca206ee32d5cf5ef109fc498be | e7efae2b83216d9621bd93390959d652de779c3d | /datadog_checks_base/tests/base/utils/http/test_auth.py | 9aaf1589eca5894c98461fbc44384200ce637cec | [
"BSD-3-Clause",
"MIT",
"BSD-3-Clause-Modification",
"Unlicense",
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"CC0-1.0"
] | permissive | DataDog/integrations-core | ee1886cc7655972b2791e6ab8a1c62ab35afdb47 | 406072e4294edff5b46b513f0cdf7c2c00fac9d2 | refs/heads/master | 2023-08-31T04:08:06.243593 | 2023-08-30T18:22:10 | 2023-08-30T18:22:10 | 47,203,045 | 852 | 1,548 | BSD-3-Clause | 2023-09-14T16:39:54 | 2015-12-01T16:41:45 | Python | UTF-8 | Python | false | false | 5,759 | py | # (C) Datadog, Inc. 2022-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import mock
import pytest
import requests_ntlm
from aws_requests_auth import boto_utils as requests_aws
from requests import auth as requests_auth
from datadog_checks.base import ConfigurationError
from d... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
0d512c4dd24d4ff00806ba46ca226e9e7799731f | 26c4254234d12acef48c51974fed2ddce52cf886 | /medline_scripts/count_abstracts.py | 6c3e73ed3d2a4686603e922820b422b28fc3135e | [] | no_license | zelliott/maple | bb1d05f73ddf0e8cfa3b5e010abe10dab237f587 | 11cfe6889e22e89715f91270bd854762574a8cd6 | refs/heads/master | 2021-06-14T11:51:17.973248 | 2017-04-20T05:51:14 | 2017-04-20T05:51:14 | 67,707,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | #!/usr/bin/python
#$ -S /usr/bin/python
'''
This script examines either a single file or a dir of files
and counts (1) the number of medline citations (i.e. abstracts)
and (2) the number of citations with mesh headings specified.
'''
import xml.etree.ElementTree as et
import os
import operator
import sys
def process... | [
"hubridnoxx@gmail.com"
] | hubridnoxx@gmail.com |
0684c1fa6c7c99b250db6e0daa95f8773397a7a3 | a0230684a0781c09592032de153da91f7f002234 | /Assignment 1/Ramp climbing karel/RampClimbingKarel.py | 7d3fa9897f694d7b7e10f8e3bd552c3ed82607a7 | [] | no_license | pallavimahajan11/Code_in_place | 290bb8e09eb4650fe4ff937eaabbb16e0f8b675d | a15c356f09f965195f7214d7a0b63ba80a6a0cc2 | refs/heads/main | 2023-06-04T08:01:48.381730 | 2021-06-12T19:05:57 | 2021-06-12T19:05:57 | 376,361,655 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from karel.stanfordkarel import *
"""
File: RampClimbingKarel.py
--------------------
When you finish writing this file, RampClimbingKarel should be
able to draw a line with slope 1/2 in any odd sized world
"""
#fuction too turn right
def turn_right():
turn_left()
turn_left()
turn_left()
#to draw a diagona... | [
"noreply@github.com"
] | pallavimahajan11.noreply@github.com |
bc83d60b45697492a232d29dfc684ec71ea59f98 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /easy/884.py | 178f12a5ad59e80269bc9e90bd5d1d258fed01bc | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | class Solution:
def uncommonFromSentences(self, A: str, B: str) -> List[str]:
ans = []
noans = []
B = B.split()
A = A.split()
for string in A:
if string not in B and string not in noans:
ans.append(string)
elif string in noans and strin... | [
"4903319173@qq.com"
] | 4903319173@qq.com |
4d051764f9b430f58be62576f6a7271125ec61f3 | ceb39d672f6ae3bf4f0b92ee2fc5f9efef1c27b6 | /cards/migrations/0002_auto_20190218_1905.py | 3774e7663972ce5d21fac3569b61f41fd13c52fb | [] | no_license | marekrewers/webshop-backend | 0558064893845b886a733be7f96aa6116d30e1bb | 7e20902f0bbacb425948712cf2df07d5a2ed8179 | refs/heads/master | 2020-04-23T03:57:16.259959 | 2019-02-19T10:35:25 | 2019-02-19T10:35:25 | 170,893,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 2.1.7 on 2019-02-18 19:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('categories', '0001_initial'),
('cards', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='card',
... | [
"rewers.marek@gmail.com"
] | rewers.marek@gmail.com |
fc3f5e2f58cb367874453d0f5e45d5bf3d6cef5a | 7c705153a18bab1140754af18f58643cc53ea1aa | /python/knapsack/knapsack.py | abad44dd721c84918e960174719c3051ca37c2f1 | [] | no_license | RishitAghera/internship | 501b02f40f80c6e09b338ae517d6adb96729e941 | 5f82ef636eb214e86de370717e09f924e893186c | refs/heads/master | 2020-12-02T17:23:42.711678 | 2020-04-15T13:41:29 | 2020-04-15T13:41:29 | 231,071,238 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from itertools import chain, combinations
def powerset(items):
return chain.from_iterable(combinations(items, r) for r in range(len(items)+1))
def maximum_value(maximum_weight, items):
result = 0
for choice in powerset(items):
weight = sum(map(lambda x: x['weight'], choice))
if weight > ma... | [
"rishit4879@gmail.com"
] | rishit4879@gmail.com |
1bcffda49ed9845a46821b01dd50f3df43360d22 | aca47fee5e90191f7861fe4e048e2cf6b1bdd2cf | /week2/skol'kosovpalo.py | c6b43996fce7b44d2dec67d3fcaa79290f63108c | [] | no_license | arinalarina/python-for-beginners | fc8afd622ae5fe322dfba7a8f48339882add5cad | 3a1813acfebcf9cdef19ae2364a009224320f5df | refs/heads/master | 2021-01-17T05:24:20.748182 | 2017-07-07T10:20:39 | 2017-07-07T10:20:39 | 95,668,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | a = int(input())
b = int(input())
c = int(input())
if a == b == c:
print(3)
elif a == b != c or a == c != b or b == c != a:
print(2)
else:
print(0)
| [
"arisha0147@mail.ru"
] | arisha0147@mail.ru |
4805a03abae11837e9ec3122e09a0d4a8d57141c | 8f6c37ae954a1aeba9036c5a5fc025b51b247869 | /main.py | 9128afffc0c2353ac62cf0afe03b4be41ae1bfd1 | [] | no_license | dunkfordyce/sick-68-kmk | 1960ba9c9655f126aa6d0db558c0914f826b760d | 9eff4d8593458f9a268bb1f664d0946eacf9f63c | refs/heads/main | 2023-06-05T03:24:06.715574 | 2021-06-27T09:01:35 | 2021-06-27T09:01:35 | 380,694,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | import board
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.matrix import DiodeOrientation
from kmk.keys import KC
class KMKKeyboard(_KMKKeyboard):
col_pins = (board.GP2, board.GP3, board.GP4, board.GP6, board.GP7, board.GP8, board.GP10, board.GP11, board.GP12, board.GP14, board.GP15, board.GP1... | [
"noreply@github.com"
] | dunkfordyce.noreply@github.com |
53f6591907d165fd71f7bb22b09a6b495b873a0e | 9b483242cfa6302b32d74729d7854508e05b0cf3 | /YangSun/Data+Exploration.py | c603f29bc0fa998762a35e034bbef0b48dfbbf16 | [] | no_license | Jay-zheng/Web_Econ | 3e6934d38a4f691d93e46e23e8b7dd71cff3ce3c | a3bd123cff67a7bad0ec8fb208e4b849e5a19ac8 | refs/heads/master | 2020-05-24T21:32:04.702895 | 2017-06-02T11:41:29 | 2017-06-02T11:41:29 | 84,882,691 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py |
# coding: utf-8
# In[1]:
import random
import numpy as np
import pandas as pd
# In[2]:
train = pd.read_csv("Desktop/Webeco/dataset/train.csv")
validation = pd.read_csv("Desktop/Webeco/dataset/validation.csv")
# In[3]:
train.columns
# In[4]:
df = pd.DataFrame()
df['advertiser'] = np.sort(train.advertiser.uni... | [
"noreply@github.com"
] | Jay-zheng.noreply@github.com |
dac2b61b2da27d83c3a8d255e0909e2e53866b01 | 6c4bc4100636a469cda76395f9a7a83ebc5f5c7c | /storage_node_app.py | 0fad133bf5a64b09f57fb02a84675a54446b1d1e | [] | no_license | DevipriyaSarkar/distributed_file_system | cdd3a0385ad682be7e37c133d6d653dc4455a7f5 | 11d569d3b3dc26c33cf13461c55754d5c68d2839 | refs/heads/master | 2023-05-25T00:50:06.915168 | 2020-04-14T14:16:27 | 2020-04-14T14:51:51 | 255,191,117 | 3 | 0 | null | 2023-05-22T23:23:01 | 2020-04-12T23:47:42 | Python | UTF-8 | Python | false | false | 3,293 | py | import os
import random
import flask_utilities
from celery import Celery
from flask import Flask, jsonify, request, send_from_directory
MY_NODE = os.environ['NODE']
MY_PORT = os.environ['PORT']
STORAGE_DIR = f"storage_{MY_NODE}_{MY_PORT}"
CELERY_BROKER_URL = 'redis://redis:6379/0'
CELERY_RESULT_BACKEND = 'redis://red... | [
"dsarkar@linkedin.com"
] | dsarkar@linkedin.com |
3d3b3273a19c26d9e8b69231ddbe241d337363be | 77b6e36045f25206766564c1f52d7ceec9a0c595 | /Day-1/A17.py | 91a2b63348e9672ddba56d09ec3bb0e7b0f93fbb | [] | no_license | VladPuzhanivskyi/practice-python | 9db8a548d7a38e5e8bce2ef762cedb3e51a0cd92 | adf8b17268320d80a7e9c97f33c8a7b7a840801c | refs/heads/master | 2020-03-20T19:41:04.060127 | 2018-06-18T14:05:43 | 2018-06-18T14:05:43 | 137,648,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import datetime
c = int(float(input('Введите суму:')))
f = int(input('введіть кількість років:'))
r = 0.14 * c
d = c + r
template = '{:.' + str(2) + 'f}'
if f == 1:
print(template.format(d))
if f == 2:
print(template.format(c + r * 2))
if f == 3:
print(template.format(c + r * 3))
def printTimeStamp(name):
p... | [
"noreply@github.com"
] | VladPuzhanivskyi.noreply@github.com |
6d746b73e3161fe669213564cda177a20ba02557 | 0ea556c2dc08fcca3c9204daa54a0956522e33ea | /eventify/core/tests/test_api_course.py | e963acc9dcdc7e022e6d1c5739ed2c1951aea96e | [] | no_license | mjr/eventify | 4da5f9e96529a37996641a96347581111801642a | e3c2cc93050d48ee60fca40e350120c7d999c24f | refs/heads/main | 2023-06-01T06:07:01.348091 | 2021-06-23T04:23:27 | 2021-06-23T04:23:27 | 345,531,453 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | from django.core import mail
from rest_framework import status
from rest_framework.test import APITestCase
from ..models import Course
class CoursesGet(APITestCase):
def setUp(self):
Course.objects.create(
title="Rust",
description="Uma linguagem capacitando todos a construir sof... | [
"manaiajr.23@gmail.com"
] | manaiajr.23@gmail.com |
d0dc1a2afe0895dca61ae299988b55c12421afcf | a8547f73463eef517b98d1085430732f442c856e | /luvina/backend/backend.py | 485bd1595d99a78a6756bc76566aa7d2cf851708 | [] | no_license | EnjoyLifeFund/macHighSierra-py36-pkgs | 63aece1b692225ee2fbb865200279d7ef88a1eca | 5668b5785296b314ea1321057420bcd077dba9ea | refs/heads/master | 2021-01-23T19:13:04.707152 | 2017-12-25T17:41:30 | 2017-12-25T17:41:30 | 102,808,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from .enchant_backend import *
from .nltk_backend import *
from .spacy_backend import *
from .common import *
| [
"raliclo@gmail.com"
] | raliclo@gmail.com |
20a738287bd19593383ab45f940a695ba6539015 | 17d2869fba51a6c4c296986d5c1a193c4c72c364 | /Methodology/C_CreateDatabase/core_selection_degiro_isin.py | c46a5141d8064c0b892f57c060f5bff880b7d350 | [
"MIT"
] | permissive | fishwithfros/FinanceDatabase | b7aac10f02e106ce0dbeefce557ff7efedf6a3b3 | f4ec9fea2333b2f9f574897b93accb100f087aed | refs/heads/master | 2023-08-17T18:52:28.140668 | 2021-10-27T07:45:08 | 2021-10-27T07:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,996 | py | isin = {'LU1681046931': 'PA',
'LU1681044480': 'PA',
'LU1681047236': 'PA',
'LU1681045370': 'PA',
'LU1681043599': 'PA',
'LU1681048804': 'PA',
'LU1681040223': 'PA',
'LU1681042609': 'PA',
'LU1681047079': 'PA',
'ES0105336038': 'MC',
'LU048831770... | [
"jer.bouma@gmail.com"
] | jer.bouma@gmail.com |
cea3f841d76d3edd9d8c548399f926ff946909f6 | 67a4e6565d0f5bad565fa8ea2d076684d082691a | /01_Arrays_and_Strings/04_Palindrome_Permutation.py | a5621e7a52f3d5d5f77ef2e519228284fb892d5e | [] | no_license | DStheG/ctci | 5b94664cf78c3a34f3e6095016bbda0ab03bb58b | 43ca1d8933e601597b14539b0e729e83fcd65ebf | refs/heads/master | 2022-02-24T22:43:13.712936 | 2019-08-12T11:26:06 | 2019-08-12T11:26:06 | 164,867,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | #!/usr/bin/python
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
1.4 Palindrome Permutation
Given a string, write a function to check if it is a permutation of a pali-
ndrome. A palindrome is a word or phrase that is the same forwards and bac-
kwards. A permutation is a rearrangemen... | [
"xcrossx@gmail.com"
] | xcrossx@gmail.com |
13d06638f45753fde8cb3a3d58db63efa8d9b8b2 | f8f0100d0bc7305ed90629ff56f7659e634c2122 | /app/example/find_path.py | 729fcc19eca62b53d136f54063047109cff08218 | [] | no_license | g10guang/offerSword | a28b89cedf2c3d617a9616c37153a8303f89c28d | a01a6856c7679971cf4ba0d733bcc5cf418235f7 | refs/heads/master | 2023-08-16T13:16:38.110034 | 2023-08-15T05:48:07 | 2023-08-15T05:48:07 | 130,460,748 | 13 | 5 | null | 2023-05-14T11:59:11 | 2018-04-21T09:50:56 | Python | UTF-8 | Python | false | false | 1,405 | py | # coding=utf-8
# author: Xiguang Liu<g10guang@foxmail.com>
# 2018-04-29 13:18
# 题目描述:https://www.nowcoder.com/practice/b736e784e3e34731af99065031301bca?tpId=13&tqId=11177&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-interviews%2Fquestion-ranking
class TreeNode:
def __init__(self, x):
self.... | [
"g10guang@gmail.com"
] | g10guang@gmail.com |
9fa5defb89eb8064339a7db03c024637c19d6a51 | fb7058d157458b3c7274754d4a6d4bd2d70cae28 | /src/nets/vgg16.py | dfab9e19a4063fff30ebb2e7f83edb3df53377d2 | [] | no_license | manfreddiaz/cnn-traffic-light-evaluation | 2c209015ae6f20750b4fbe4302c8a7a1e9957592 | 55f66e1ab4c681597b8d959d977b6a5e8e0f122f | refs/heads/master | 2021-06-19T12:50:34.703146 | 2017-07-22T16:26:42 | 2017-07-22T16:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | import tensorflow as tf
import nets.base_layers as pr
FIRST_DEPTH = 16
FILTER_SIZE = 3
def stack(network_input, network_input_depth, output_size):
conv3_64 = pr.conv2d(network_input, filters_size=FILTER_SIZE, num_filters=FIRST_DEPTH, input_depth=network_input_depth, strides=[1,1,1,1], padding='SAME')
conv3_6... | [
"takeitallsource@gmail.com"
] | takeitallsource@gmail.com |
6bc50acbbf717bfa1c8c8b6d93a003141bace4b9 | e043acf03569edb59d7bf71322384375931e4180 | /proxies/xici.py | 190e29fbd425e661c99122632639e40a3205b203 | [] | no_license | ZZINDS/Free | f1dedd4d7c2e3a5733ca384c7fda41e43086bfda | 7b963d2de0a28d6043fc36c82c3de12b66ab6661 | refs/heads/master | 2020-03-30T00:27:38.659951 | 2018-09-28T07:14:36 | 2018-09-28T07:14:36 | 150,524,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | # -*- coding: utf-8 -*-
"""
@Time : 2018/9/27 10:23
@Author : ZZINDS
@Site :
@File : xici.py
@Software: N M $ L ®
"""
import re
import requests
'''
Function:
西刺代理类
Input:
-page: 抓取的页码
-proxy_type: 代理类型, 可选项为'all', 'http', 'https'
-quality: 高(普)匿代理/普通代理, 可选项为'all', 'anonymous', 'common'
Return:
-proxyLi... | [
"zzinds@outlook.com"
] | zzinds@outlook.com |
580b3aded81770b622bdae8ded5dd41658137bad | d6118c5e14e46dbb3d2a59483fcd024d031b9657 | /poll.py | 4669467264843e49b7693d9059cf58a6ade45c6f | [] | no_license | pczb/someUtil | a77c6f8894e10a08cd4530399f5b3421533a3939 | 34ced16f56ffd6dfd00cb19da5557cf6adc8accb | refs/heads/master | 2021-01-17T21:35:11.928471 | 2015-05-05T15:41:08 | 2015-05-05T15:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,700 | py | #coding=utf8
from util import tryExec
import urllib2
import urllib
import re
import random
import time
class Poll:
def __init__(self, opener):
self.opener = opener
self.failedTimes = 0
self.succTimes = 0
def parsePollPage(self, htmlpage):
pattern_poll_section = re.compile(r'n... | [
"pczb@labServer.(none)"
] | pczb@labServer.(none) |
d47cb33df078e322c58fc4b4b7229051d0683daa | 22f2a7107a66ee93fdd6b53bd93337360c44a9b5 | /leetcode/leetcode math problems/roman to integer.py | bb0e99ca935554a3389761dd6dd6cf81303408fd | [] | no_license | pradeepmaddipatla16/my_problem_solving_approach_leetcode_medium_hard_problems | 2ea0c3f0f7c5b81afb82d59ef467e3fbd4d4f469 | bff7ba03441bba2179acb285f62206fafcb031c5 | refs/heads/master | 2020-04-30T07:57:15.497033 | 2019-03-20T09:37:06 | 2019-03-20T09:37:06 | 176,700,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | def function1(roman):
sum = 0
buf_dict = {'I':1,'V':5,'X':10,'L':50,'C':100,'D':500,'M':1000}
for i in range(len(roman)):
if i !=len(roman)-1:
if buf_dict[roman[i]]>=buf_dict[roman[i+1]]:sum+=buf_dict[roman[i]]
elif buf_dict[roman[i]]<buf_dict[roman[i+1]]:sum-=buf_dict[roman[... | [
"maddhipatlanani@gmail.com"
] | maddhipatlanani@gmail.com |
6f18b934f9a950dc7454b36377b37ff2c700c11e | 74b74e817e925c3eeb45b2755d345a9ebbe9557c | /1991_tree.py | 2bc457f5263b250bb1bb85970918f0e791ac4d97 | [] | no_license | xdfc1745/baekjoon | 2b81bd2cc86a5359ff956ad524d6d42892136432 | 9dbb84223b26ae049d144699d13b6a605c0d4230 | refs/heads/master | 2022-12-03T00:47:17.026439 | 2020-08-26T14:49:17 | 2020-08-26T14:49:17 | 283,480,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | n = int(input())
node_list = {}
def preorder(root, node_list):
if root != '.':
left = node_list[root][0]
right = node_list[root][1]
print(root, end="")
preorder(left, node_list) # left preorder
preorder(right, node_list) # right preorder
def inorder(root, node_list):
... | [
"xdfc1745@gmail.com"
] | xdfc1745@gmail.com |
3d3575cf4d7f5f440476a08a88e0cc707f956442 | 5d0ba1091f3aa1154f6eb965bea689c13111090e | /List-1/sum3.py | 15f241a9a93648fb200c9320c50e508122881934 | [] | no_license | aryamane/codingbat-python | e355d47fd3b0888b5edad6de3cf501180385cc56 | 7b89ada70248b0c4031ee5452803e73e7935da10 | refs/heads/master | 2022-11-23T11:25:59.564443 | 2020-07-21T02:33:45 | 2020-07-21T02:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import functools
def sum3(nums):
return functools.reduce(lambda x,y: x+y, nums)
print(sum3([1, 2, 3]) )
print(sum3([5, 11, 2]) )
print(sum3([7, 0, 0]) )
#solution 2
# result = 0
# for i in range(len(nums)):
# result = result + nums[i]
# return result | [
"arya.mane03@gmail.com"
] | arya.mane03@gmail.com |
175cd500daf4a0fd308f061cc6c7add4121be01c | 164a6664d2dceea1e20c158d7d5f0a025a4d1974 | /graph_theory.py | 8c14e6a1f9cf456db17b74f6cf3ef6c99d5d6e76 | [] | no_license | ryan-partlan/Graph_Theory | ae76e09c8081edc00bc221c5455c9f6f832a5000 | 4c9434a5c92ab2655dfe1a127a70d3e5a3c50dc3 | refs/heads/master | 2022-09-21T07:31:07.301682 | 2020-06-05T17:52:26 | 2020-06-05T17:52:26 | 269,725,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,325 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 1 11:34:32 2020
@author: Ryan
"""
import copy
import itertools
from scipy.linalg import null_space
#import tkinter as tk
#I intend to make a GUI that makes this program easy to use, but I haven't gotten to it yet
import numpy as np
import networkx as nx
#I... | [
"noreply@github.com"
] | ryan-partlan.noreply@github.com |
b81a4f4351454e527a2f197d3429831c0a28dece | 789e653a9f3c679e02f8f459fb72508aed9537a0 | /scripts/count_annotation_conflicts.py | e2af16d361e96bc6deb06a683e25478e25bf905d | [
"MIT"
] | permissive | gtonkinhill/panaroo | 3df49a4ba546a83dce9d394ee5b27f89e42566f3 | 0d96fc77caa4c87f37bf16e13ad0e09b6e371f96 | refs/heads/master | 2023-07-08T20:49:36.096596 | 2023-05-10T16:22:13 | 2023-05-10T16:22:13 | 162,318,186 | 184 | 28 | MIT | 2023-06-29T16:43:12 | 2018-12-18T16:43:30 | Python | UTF-8 | Python | false | false | 4,424 | py | import argparse
import sys, os
import re
# import Levenshtein as lev
def read_gene_data(inputfile):
gene_data = {}
with open(inputfile, 'r') as infile:
next(infile)
for line in infile:
line = line.strip().split(",")
gene_data[line[3]] = (len(line[4]), line[-2])
ret... | [
"g.tonkinhill@gmail.com"
] | g.tonkinhill@gmail.com |
c21f8f3a3d3d1c3c2952ded3ed79dfdba4129493 | be7c73d8a7a16ee796aa5a5e1777cd50b1420c7a | /2398 Restore Full.py | 838b8786cecc2a772a2fe8684fb640810a0f9eb0 | [] | no_license | ColbyBurkett/IFR2398-Backup-Restore | 3c223f3d468eee50a03d0191b261a0978cee3673 | 99b65bf4bf43c3d58d6f6f7bcf79af00405d4f96 | refs/heads/master | 2022-05-29T16:57:52.271333 | 2020-04-21T22:10:29 | 2020-04-21T22:10:29 | 257,725,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,170 | py | # IFR 2398 Calibration Dump Script
# April 2019 Colby Burkett
#
#
# This script restores all of the backed up calibration information from
# an IFR 2398 or LG SA-7270 Spectrum Analyzer
#
# Don't judge! It's quick and dirty!
#
# Last: Use at your own risk!
from __future__ import division
import datetime
i... | [
"noreply@github.com"
] | ColbyBurkett.noreply@github.com |
5abc9ae6ac9dfdcec6f92f87a7773067e705ccc9 | 873f7d0c7878d26bf89af6f1efd6d9478d92019d | /indels-bottleneck/get_conserved_windows.py | 75b2444f19f895a500d2f0ee6736a4ef2503eb8a | [
"MIT"
] | permissive | glenwilson/variant_analysis | c5d18a95f63cb72f4cd9f6a9371cdb245f65f54c | 0c26e9e16352817af20bbce0c759fff30b4054e5 | refs/heads/master | 2021-01-23T23:56:04.710563 | 2019-01-14T12:50:57 | 2019-01-14T12:50:57 | 122,743,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | #!/usr/bin/python
import csv
import sys
#load the variant vcf files
inputlist = sys.argv[1:]
#this opens csv of windows
win = open('nblrr-noscaffold-windows.csv', 'r')
wincsv = csv.reader(win, delimiter='\t', quotechar=None, doublequote=False)
winlist = [row for row in wincsv]
#file to write conserved regions to
ou... | [
"glenmatthewwilson@gmail.com"
] | glenmatthewwilson@gmail.com |
4ec9f8b7e11a6ce71a9ebc639139caceadea7601 | 2e0f419b50d86889616770b8ac8cb3367484f015 | /deeppy/autoencoder/autoencoder.py | 886ffb276a4ec5de6caf3692f3fd87dd357999e6 | [
"MIT"
] | permissive | ilo10/deeppy | e833d4d44706b779089ba780411532f849191d63 | aa424a4bc36242bb50b51099a7db765ec8221c41 | refs/heads/master | 2021-01-16T00:23:39.400995 | 2015-07-24T09:49:01 | 2015-07-24T09:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,017 | py | import numpy as np
import cudarray as ca
from ..feedforward.layers import Activation, FullyConnected
from ..loss import Loss
from ..base import Model, PickleMixin
from ..input import Input
from ..parameter import Parameter
class Autoencoder(Model, PickleMixin):
def __init__(self, n_out, weights, bias=0.0, bias_pr... | [
"anders.bll@gmail.com"
] | anders.bll@gmail.com |
a22d2c2829181744bcc627e35b88a1c238b9d4b0 | d69e5435acfcfd3c42c22e158e838645c55e02e0 | /cop.py | 9b6bce4c13f0409d7463d5975fdf0b2a522cf5a5 | [
"MIT"
] | permissive | AnJ95/CoP-Bot | 4fa1329b31a63d0aa2d8ce355ceb3a3665d98799 | 39f2eeeaf335310b7134a20ad54097488b893d03 | refs/heads/main | 2023-04-26T05:22:24.317263 | 2021-06-04T14:06:55 | 2021-06-04T14:06:55 | 373,849,836 | 0 | 0 | MIT | 2021-06-04T13:26:08 | 2021-06-04T13:26:07 | null | UTF-8 | Python | false | false | 4,111 | py | from typing import Optional, List
from telegram import Update, Bot, Message, User, MessageEntity, ParseMode
from telegram.ext import Updater, CommandHandler, CallbackContext, Handler, MessageHandler, Filters
from os import environ
# import logging
# logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s ... | [
"develop@fuchss.org"
] | develop@fuchss.org |
43a9eb428dd8198486a10048e0b3883a2e919bc6 | 6f88246ef5640c9bbdc87168cf97cb30e258ea46 | /action.py | 762700f88199979fd0dd3910e8a8114b2df8d384 | [] | no_license | HackerspaceBlumenau/event_validator | 5f20478fe8303985e69166859cd00c95353a28cb | 02b560e1736ffb7a248dee5abd1a58309c6336da | refs/heads/master | 2020-09-05T14:18:34.953870 | 2019-11-17T02:01:36 | 2019-11-17T02:46:10 | 220,130,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,781 | py | import json
import os
import io
from github import Github
ERROR_COMMENT = (
"Olá! Ficamos MUITO felizes em ver seu interesse em "
"participar da nossa comunidade. Mas eu encontrei alguns "
"probleminhas. Estão faltando alguns dados. Você pode dar uma "
"olhadinha novamente? Isso foi o que encontrei:"
... | [
"jvanz@jvanz.com"
] | jvanz@jvanz.com |
77c635ae905cd6cb2dcab4ad1a34cfedc505dfc3 | 2b6288e63e2e3e959feafce5b3f96b0b440e4fc7 | /data_structure/stack/match_bracket.py | 0b2c4c7a9043bdc4956c2b8aa455a0aaa8607e96 | [
"MIT"
] | permissive | excited-tiger/python-warm-up-exercises | a08139ab3dd08c947fdef1794174563d1fd29477 | 141474675f05803f92b914d4d16d19c8f7ab3b4b | refs/heads/master | 2023-04-09T16:29:34.536107 | 2021-04-14T14:49:06 | 2021-04-14T14:49:06 | 296,372,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | # -*- coding:utf-8 -*-
# @atime : 2021/2/2 9:09 下午
"""
brackets balance
https://www.luogu.com.cn/problem/UVA673
"""
def check_balance(brackets_str):
balance_dict = {']': '[', ')': '('}
check_stack = []
for i in brackets_str:
if i in balance_dict:
if not check_stack:
... | [
"sunzhenping@starsee.cn"
] | sunzhenping@starsee.cn |
fad0b70ce3176d2e59880fd778c2decc3fd09852 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/commons/testcase/firstcases/testcase4_020.py | 413bc8c234b5a44ac4b9a708dcde8ced1aa82167 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
0b98e7bdc94e9240c99f75211bb753b687f6e240 | 752e73f2d44d50c0aab4e0a99fca1567d824e713 | /docs/conf.py | f57ce0ee0c74f508140476ac325ce9abb0dec057 | [
"MIT"
] | permissive | iandennismiller/diamond-patterns | b9f10c683bfd69fc3d03b3ab45f21ef7f2ef25d7 | 497fc2f3fcd15098aed4c2888d2f6fcd64072400 | refs/heads/master | 2021-06-27T07:40:45.488777 | 2020-10-16T13:30:09 | 2020-10-16T13:30:09 | 65,153,869 | 1 | 0 | NOASSERTION | 2019-11-16T21:04:55 | 2016-08-07T21:00:52 | CSS | UTF-8 | Python | false | false | 9,066 | py | # -*- coding: utf-8 -*-
#
# diamond documentation build configuration file, created by
# sphinx-quickstart on Wed Nov 20 21:19:09 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All... | [
"ian@iandennismiller.com"
] | ian@iandennismiller.com |
226089badcaa2c7ea385e85956fac83d58627096 | 42c525b135dd5e7621ec7a52157789a4907f5c66 | /Week02/389.找不同.py | c9d5500788cb1db0bba1cafab8ad4aa6e696b513 | [] | no_license | hebe3456/algorithm010 | 6088164d2a2d328171d26bdbd9df717e34c516f4 | 2cb67db2547b7699df5960ec6f2547c6d874010e | refs/heads/master | 2022-12-02T06:35:52.046859 | 2020-08-23T13:17:06 | 2020-08-23T13:17:06 | 272,187,227 | 0 | 0 | null | 2020-06-14T11:20:26 | 2020-06-14T11:20:26 | null | UTF-8 | Python | false | false | 1,403 | py | #
# @lc app=leetcode.cn id=389 lang=python3
#
# [389] 找不同
#
# 审题:多了一个字母,只含小写字母
# 思路:先排序,然后循环遍历比较,找出多的那个字母
# 两个都sort,然后遍历短字符串所有字母,和长字符串比较,return少的字母
# O(N)
# 生成字典,key为字母,value为个数,个数不一样,就返回对应的key,太复杂
# @lc code=start
class Solution:
def findTheDifference(self, s: str, t: str) -> str:
ans = 0
for ... | [
"test121209@163.com"
] | test121209@163.com |
3eed32390288a8236c4e22d1a99782c8d46e333c | e80be2e2907a1256eb3b885d513a8999d23aca1e | /Hash_Table/Single_Number.py | 788624c273aaf34f264331f7a1f1dea26bc6d37f | [] | no_license | ncturoger/LeetCodePractice | eb38fe1c75f0c460b3f7b5410a1b3e82ca3da09e | f0fa1f0af9613914c12f45a218500a75f9ba3c1a | refs/heads/master | 2020-04-08T06:27:18.708645 | 2018-12-21T06:58:47 | 2018-12-21T06:58:47 | 159,097,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | class Solution(object):
def singleNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
target = set(nums)
for item in target:
nums.remove(item)
diff = target - set(nums)
return diff.pop()
print(Solution().singleNumber([2... | [
"Roger_Zeng@asus.com"
] | Roger_Zeng@asus.com |
c0030b784efe68cf06956e206fb8a3bf1c869a12 | 052b1b301fc3f139edf1d6e4cbe59f9d8dc598aa | /cms/urls.py | e3d93116c30a31e49b50073ac80a0dc9d0802198 | [] | no_license | azeemkhanreal/PaperManagement | 4c32da5d072bd5667711d8ddb9797702d56c1719 | a1066760678b60a9598da79a472ea7ffb651ffe9 | refs/heads/master | 2022-12-18T18:16:32.801051 | 2020-09-29T10:46:50 | 2020-09-29T10:46:50 | 194,628,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from django.contrib import admin
from django.urls import path
from cms import views, hawker, communication
urlpatterns = [
path("", views.cms_home, name="cms_home"),
path('add_customer/', views.add_customer, name="add_customer"),
path('customer_update/<int:pk>', views.customer_update, name="customer_update"... | [
"azeemkhan@Azeems-MacBook-Air.local"
] | azeemkhan@Azeems-MacBook-Air.local |
7dbb2fa42a018c691ae7855243ce3e747025dfab | bc8d9bb39ed5a03e54705e8dae94dfecdc7fb6dd | /tests/test_keys.py | ab7ba6b358c531b5dd411f491de9a94a9e1d1ace | [] | no_license | fabioz/PyUpdater | 344d24704c348ecc5b1cf5ab4db2c86dbe20b991 | 4673948d28962c1b174b98e67ea1dc6053e37da3 | refs/heads/master | 2023-09-04T05:36:00.765143 | 2017-06-04T05:04:28 | 2017-06-04T05:04:28 | 95,917,055 | 2 | 0 | null | 2017-06-30T19:14:38 | 2017-06-30T19:14:38 | null | UTF-8 | Python | false | false | 1,638 | py | # --------------------------------------------------------------------------
# Copyright (c) 2016 Digital Sapphire
#
# 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, inclu... | [
"johnymoswag@gmail.com"
] | johnymoswag@gmail.com |
e39c9571a275945d74910ba4e6e1543e7103d66d | 854d21e98f999765b88e7eb6eefe46917728d6d1 | /Mangeoire/opencv_contrib/samples/python2/video.py | 66b936150e7d2eedbd500a140c6e140f09188763 | [
"BSD-3-Clause"
] | permissive | MBaccount/Mangeoire_BiodiGuard | b405b9dbbfb1af3e92adfa1650314577d254a496 | 5afd507d8ec7ad67fbd62ea19a1ccf214fe8110a | refs/heads/main | 2023-08-28T22:59:54.575989 | 2021-10-13T15:34:43 | 2021-10-13T15:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | #!/usr/bin/env python
'''
Video capture sample.
Sample shows how VideoCapture class can be used to acquire video
frames from a camera of a movie file. Also the sample provides
an example of procedural video generation by an object, mimicking
the VideoCapture interface (see Chess class).
'create_capture' is a convini... | [
"manoahberal@live.fr"
] | manoahberal@live.fr |
b809d5d850e4c70569f8e3af88fe82dc1a687bb3 | b09c450a8947194853b6412352dd5658c47727bb | /vagrant/Tournament/tournament.py | 3ff7fa0c146464efcbc65bafe0bedb202096e8cf | [] | no_license | apexa11/Tournament-Results-DataBase | 7cb458f3ff9913a869e6d9399f7c900ee3449bd3 | a920a98d44bf7d7e4fa06f70bb034d069323bc76 | refs/heads/master | 2021-01-25T09:08:33.306946 | 2017-10-09T01:51:34 | 2017-10-09T01:51:34 | 93,779,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | #!/usr/bin/env python
#
# tournament.py -- implementation of a Swiss-system tournament
#
import psycopg2
DBNAME = 'tournament'
def connect():
"""Connect to the PostgreSQL database. Returns a database connection."""
return psycopg2.connect(database = DBNAME)
def deleteMatches():
"""Remove all the match... | [
"apexachoxi7@gmail.com"
] | apexachoxi7@gmail.com |
8a79268966c2dc177f92e3644f742a52bf4ea93a | a9a335c589bb8ef32a55f7cf5cc0afd868435aae | /main.py | 0634e1c1f517c382965a206c45927cb3d91cd23c | [] | no_license | Noah6544/RPG-GAME---UNDER-CONSTRUCTION- | 01674ca36e8a9515aeb9488cd262ff7735802838 | 68ef3837ffa1fdcf23dcf01bb3cb1822a08dce40 | refs/heads/master | 2023-01-21T15:08:28.836912 | 2020-12-03T23:50:08 | 2020-12-03T23:50:08 | 283,945,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,948 | py | class Warrior:
def __init__(self, attack, defense, speed, health, name):
self.name = name
self.attack = 150
self.defense = 75
self.speed = 25
self.health = 105
class Knight:
def __init__(self, attack, defense, speed, health, ame):
self.name = name
self.attack = 75
self.defense = 1... | [
"noah6544@gmail.com"
] | noah6544@gmail.com |
8b90e5bd1e48f2ec01ee33ff31f32d8ab418cc08 | 69d61652f1c463c8eb8507ee5dfcabe5483997ae | /part1 new/hill_climbing.py | c5308c7da8c35f1976a991ad3ebe9af4ed575c8a | [] | no_license | yinhao0424/AI_Project | 6225f6b1b3f5c5ef71fcf9ed6d5e90724e39b513 | f51f6372db96bc9485930bb0ecd9bead479c8128 | refs/heads/master | 2022-04-17T11:17:53.791018 | 2020-04-15T03:35:12 | 2020-04-15T03:35:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | # ALGORITMO:
# HILL CLIMBING GENERICO AND HC WITH RANDOM RECOMMENDATION
from random import shuffle
def hill_climbing(problem):
# Calls neighboards with higher heuristics (because we use -h)
current = problem.initial()
while True:
neighbours = problem.nearStates(current)
if not neighbours:
... | [
"yinhao0424@gmail.com"
] | yinhao0424@gmail.com |
8f120842eb30d596f06bff004ca3c6913a5a7112 | 051588d7ff688feddc1ebd483e9112f858c3ad2a | /rotowire/neural_nets/baseline_model.py | 25e06c758c55a6baa7a1250c5f18928d01dd447a | [] | no_license | gortibaldik/TTTGen | cedfa0fac19ae72ad22dbc00caa0591a18c82c59 | bba791d9337a30fdadef28645525dc75bf926132 | refs/heads/master | 2023-06-07T12:32:36.469506 | 2021-07-01T20:44:07 | 2021-07-01T20:44:07 | 343,827,230 | 4 | 1 | null | 2021-04-13T11:48:21 | 2021-03-02T15:50:04 | Python | UTF-8 | Python | false | false | 14,617 | py | import tensorflow as tf
import numpy as np
import sys
from neural_nets.layers import DecoderRNNCellJointCopy
class EncoderDecoderBasic(tf.keras.Model):
""" EncoderDecoder model which allows usage of different Encoders (Encoder, EncoderCS, EncoderCSBi) and Decoders(DecoderRNNCell, DecoderRNNCellJointCopy)
Enc... | [
"ferotre@gmail.com"
] | ferotre@gmail.com |
2cb29af9f9b4f370b39a8c2aa082b1ae81108164 | ecd20066d585f1acb75a2f5407eda3df9f10822a | /node_modules/mongodb/node_modules/bson/build/config.gypi | 624ae684c409d99035f4b7267abc0ad1073f2fe3 | [
"Apache-2.0"
] | permissive | dehmirandac2/contatooh | e3a70cc7e61d24e844da217f3c9be036366982eb | f6ef6eb1c0c1b42f8712d38d0f62ee1daf6c914f | refs/heads/master | 2021-01-20T19:29:51.083570 | 2016-06-07T20:04:44 | 2016-06-07T20:04:44 | 60,641,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,100 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_byteorder": "l... | [
"dehmirandac2@gmail.com"
] | dehmirandac2@gmail.com |
7b80923ec47deafff37194386c720242e04c6b5e | 5ca4a0d91f5bd119e80478b5bd3d43ed30133a42 | /film20/regional_info/urls.py | d5bd968ae3e4843f38f0a9bd1c0ce218d21c9733 | [] | no_license | thuvh/filmmaster | 1fc81377feef5a9e13f792b329ef90f840404ec5 | dd6a2ee5a4951b2397170d5086c000169bf91350 | refs/heads/master | 2021-01-17T16:10:54.682908 | 2012-04-29T18:19:52 | 2012-04-29T18:19:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | #-------------------------------------------------------------------------------
# Filmaster - a social web network and recommendation engine
# Copyright (c) 2009 Filmaster (Borys Musielak, Adam Zielinski).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Af... | [
"email@ibrahimcesar.com"
] | email@ibrahimcesar.com |
0000f0a78a066bbd4561a3596ef00c2b48d6fb8c | 6830b37bfc6219123798b296bab9b432a72c1f09 | /students/Net_Michael/lesson3/mailroom.py | 54bf35579cdbbaa58935c798075ba2a0c286e0c8 | [] | no_license | AlyssaHong/Self_Paced-Online | 3e9c94a1147a887ec8851c12da1ef0558d406ea2 | 7ca939fd379623a8ff593ac72156160d20bc4496 | refs/heads/master | 2020-03-29T17:24:29.386168 | 2019-01-13T07:57:07 | 2019-01-13T07:57:07 | 150,160,997 | 1 | 0 | null | 2018-09-24T20:00:31 | 2018-09-24T20:00:31 | null | UTF-8 | Python | false | false | 3,578 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# Part I
import sys
def sort_key(donor_db2):
return donor_db2[0].split(" ")[1]
# update the list of donors and donation
def add_donor():
new_donor = input("Name of donor?").title()
if new_donor not in donor_name:
donor_name.append(new_donor)... | [
"nettaimam@gmail.com"
] | nettaimam@gmail.com |
e7635eb2a070079ff7f9b12da8599a7f7df9228b | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/area/_hoverlabel.py | 805d8440f422a88d6b6999761e5eb14f66cfc4bc | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 1,549 | py | import _plotly_utils.basevalidators
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name='hoverlabel', parent_name='area', **kwargs):
super(HoverlabelValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
eba10c184a75bd03c1f6cb226f430eecc5e1cf86 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_160/ch24_2019_06_06_19_38_40_160521.py | ca41a2bc244984c963d834bb43798083e1c4a97e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | def classifica_triangulo(x,y,z):
if x == y and x == z:
return "equilátero"
if x == y and x != z:
return "isósceles"
if x != y and x == z:
return "isósceles"
if y == z and y != x:
return "isósceles"
else:
return "escaleno" | [
"you@example.com"
] | you@example.com |
6fd8c445fb1a3641af36bae26538cf9de60da2b4 | 295f34f4411d984f0ff6026be6e96fe134dc1550 | /usr/lib/pypy/lib-python/2.7/pydoc.py | 4f76a1136e279e7c10274cfe7e4e18eba1bd6611 | [] | no_license | mcashjavier/disco-linux-raspy | 1e3fed914b6040fa9972e7cfc7357ecb72070e8c | 8c23103cf089059fbdadfad8cfb7059c1580da83 | refs/heads/master | 2022-12-20T17:06:39.967203 | 2019-03-12T12:09:22 | 2019-03-12T20:01:10 | 175,072,541 | 0 | 3 | null | 2022-12-18T06:59:27 | 2019-03-11T19:44:12 | null | UTF-8 | Python | false | false | 95,769 | py | #!/usr/bin/pypy
# -*- coding: latin-1 -*-
"""Generate Python documentation in HTML or text for interactive use.
In the Python interpreter, do "from pydoc import help" to provide online
help. Calling help(thing) on a Python object documents the object.
Or, at the shell command line outside of Python:
Run "pydoc <nam... | [
"prog2@magneticash.com"
] | prog2@magneticash.com |
9697e06ec23f5f44526854900b3c097a2d3210cf | 8b649d873b353265a4cc26ba4426507236546a0e | /rest_traversal/__init__.py | c87ba6fb9967acd92234e3731dc3abf8a7ebfa27 | [] | no_license | slykar/rest-traversal-example | 53bd5c80158f0ddc223d626aeddc1bc48f5e00f9 | e3f20ed4b6e40f91cb4ed7d3bd6a7bf36bc9668f | refs/heads/master | 2020-04-01T22:25:26.292420 | 2016-08-25T11:07:42 | 2016-08-25T11:07:42 | 68,810,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | from pyramid.config import Configurator
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.authentication import BasicAuthAuthenticationPolicy
from rest_traversal import rest_api, db
import cornice
CUSTOMERS = {
'super': {
'customer_id': None,
'password': 'duper',
'group'... | [
"sylwester.kardziejonek@gmail.com"
] | sylwester.kardziejonek@gmail.com |
c47b52394b7ca87f8a0783855dd592f0131895d0 | 582676830daade26aef570f8a15f71cda4f21d2a | /probe.py | a67ba8a1f95b1cf58e3a5877834ffeec9bc552ef | [
"MIT"
] | permissive | ec500-software-engineering/exercise-2-ffmpeg-Wwwzff | 31d5c9d3633812d63b77dc4a262e5d7d357496d2 | cf34a65a69ffdbd5d4d7bdad3d462b1adbcc40ec | refs/heads/master | 2020-04-23T12:27:34.117591 | 2019-03-03T17:45:10 | 2019-03-03T17:45:10 | 171,169,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | import subprocess
import json
from pathlib import Path
import shutil
if not shutil.which('ffprobe'):
raise FileNotFoundError('ffprobe not found')
def ffprobe_sync(filein: Path) -> dict:
""" get media metadata """
if not Path(filein).is_file():
raise FileNotFoundError(f'{filein} not found')
me... | [
"noreply@github.com"
] | ec500-software-engineering.noreply@github.com |
60aa38adf37a03e45e87e0f8002e8f86045cb1c7 | bc988dbc15eb9b78fdfe2d414a76128f7c3e377a | /coast_to_coast/coast_to_coast/items.py | bf4883de421cc4ac4eb3662847a62ef509df68e0 | [] | no_license | ourcanadian/ocse-core | 7226aea63c45bac8dedc22a860416492a3b2a4f0 | ef4c13d2686cd5f9e36065fb950e06727df13933 | refs/heads/master | 2022-11-18T00:53:09.008647 | 2020-07-16T22:30:10 | 2020-07-16T22:30:10 | 273,785,486 | 0 | 1 | null | 2020-07-20T02:43:59 | 2020-06-20T21:16:48 | Python | UTF-8 | Python | false | false | 293 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class CoastToCoastItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"rylancole@Rylans-Air.hitronhub.home"
] | rylancole@Rylans-Air.hitronhub.home |
e69d0de340d586d8d11fa237a01c82f7d08b656e | 480b6201e7be081b7535508461165822d77be4f9 | /firenado/uimodules.py | fedca4cfb5adbaf913ff41e9b3a3a06a6c9a7a11 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | piraz/firenado | 191c366a2e8abe732cd532790fa182f0e1d9abdc | 358084c72f8c62d6eae547deb5a7e034d25bad33 | refs/heads/develop | 2022-08-27T20:03:32.012351 | 2022-07-23T22:13:08 | 2022-07-23T22:13:08 | 36,203,159 | 1 | 0 | Apache-2.0 | 2020-11-24T16:05:23 | 2015-05-25T01:35:50 | Python | UTF-8 | Python | false | false | 847 | py | # -*- coding: UTF-8 -*-
#
# Copyright 2015-2021 Flavio Garcia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"piraz@candango.org"
] | piraz@candango.org |
e80eb3c5b5b53d881e2fdeefb093eaa0a333eb6c | ab3559744255ce55a081daeff6490abae805ce62 | /tools/options.py | 0715fba19bcf76c68c2f32e5913b77c7fbe150f6 | [
"Apache-2.0"
] | permissive | haroonshakeel/SemanticPalette | 9d5e89c3bc7b33699ae4db2e0d601d0233d284dc | a1b02a384c09881d6f1ca1a0c0ebfd87278c3d7d | refs/heads/main | 2023-06-26T22:07:28.045226 | 2021-07-28T14:17:10 | 2021-07-28T14:17:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,870 | py | import os
import sys
import torch
import pickle
import datetime
import argparse
from argparse import Namespace
from tools import utils
SEM_CITYSCAPES = ['unlabeled', 'ego vehicle', 'rectification border', 'out of roi', 'static', 'dynamic', 'ground',
'road', 'sidewalk', 'parking', 'rail track', 'bui... | [
"16lemoing@gmail.com"
] | 16lemoing@gmail.com |
9fda4a063ff5883911845494534b63b5d074e989 | 434ba39a150d53a08ac22b03b02a3772149c87d7 | /cognitiveToken.py | 292ed4f879a5c91cffad1012abdd56ead0e3f391 | [] | no_license | chris-geelhoed/TranslateComparison | 1d0de3fff4177df6a91ed0eb5001c078fcb167cb | c8d0033b8b82859c5ab3f9ca3b2fed80e3a1a62d | refs/heads/master | 2021-06-14T12:16:41.255722 | 2017-02-27T21:28:56 | 2017-02-27T21:28:56 | 83,352,696 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | import requests
import pickle
import time
def forceToken():
Subscription_Key = "YOUR SUBSCRIPTION KEY GOES HERE!"
url = "https://api.cognitive.microsoft.com/sts/v1.0/issueToken" ##endpoint
#set the sub key in the post header
headers = {
"Ocp-Apim-Subscription-Key": Subscription_Key
}
... | [
"chris.geelhoed@gmail.com"
] | chris.geelhoed@gmail.com |
0e673f86614d4c80ec7051408adc47ce97e50aa5 | 75e8e2cb626c51b33ef8fe9afdbdb2e657b5cbb8 | /PREDEFINIDAS 2.py | 6358e2bf4dfcd3febb5260afd6840e96fcb7b156 | [] | no_license | lgauing/Guias-dispositivas-y-ejercicios-en-clase_Lady | 23f6fdab9955e3cc6b719af538e1f2b4c80b29d8 | d2f8a66d762c4028ab9817aeb098e71e42281d1a | refs/heads/main | 2023-06-06T05:26:49.369585 | 2021-06-27T17:17:42 | 2021-06-27T17:17:42 | 380,863,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # Lady Mishell Gauin Gusñay
# 3er semestre de software A1
# funciones de cadenas
mensaje = 'Hola ' + 'mundo ' + 'Python’
men1=mensaje.split()
men2=' '.join(men1)
print(mensaje[0],mensaje[0:4],men1,men2)
print(mensaje.find("mundo"), mensaje.lower())
| [
"85961525+lgauing@users.noreply.github.com"
] | 85961525+lgauing@users.noreply.github.com |
0e7d07db7b2b932cebb3c06cd3a86a09652bb50a | 8ae894191b3e411e9fd0155c7ac3b025664d5f17 | /chapter02/knock16.py | 1bbb382abbd19c38e122df598df233cc30baa89f | [] | no_license | shirai-ryo/100knock2017 | 2589dd652c474e9c1e1cfc440c0b9d3156fbca71 | 01489f589f80167fe47a492d5296b394f543f821 | refs/heads/master | 2020-03-07T06:11:44.502714 | 2018-03-29T16:27:27 | 2018-03-29T16:27:27 | 127,315,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | f = open('hightemp.txt', 'r')
N = int(input())
count = 0
for line in f:
if count % N == 0:
print()
# N行を出力?したところで、空白の行を入れる
print(line)
count += 1
f.close()
| [
"noreply@github.com"
] | shirai-ryo.noreply@github.com |
2f523bf95ffba1f04fc4fa165b6176d6fc5f4a81 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/mbyken001/question2.py | 1d7d0e32e1a97140ba0c5c5b551cb774e63aec54 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | #Assignment 5-Question 2
#Vending machine
#Enter cost
cost = eval( input ( "Enter the cost (in cents):\n" ) )
if cost <=0:
print("")
else:
deposit= eval (input ( "Deposit a coin or note (in cents):\n" ) )
i = cost-deposit
while i>0:
extra= eval (inpu... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
cb568bf4ed3f69faaacfeeaba7b3796ae3a90ab1 | 3b7abb4b1f7da65dc401200b183b648200325026 | /admin_service.py | fd9027e79061941133d862945dd0761938a5d066 | [] | no_license | votesappteam/rest-service-python | b44a2f4e3434de1c3841ace32fa359aa65df895c | bdb5a90a2a94fc92ec4386e448045a7f044a3e90 | refs/heads/master | 2023-04-11T08:53:29.348654 | 2021-04-26T13:46:48 | 2021-04-26T13:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,928 | py | import configparser
import datetime
import math
import random
# import json
import re
import string
import flask
from flask import Flask, render_template, request, redirect, url_for, session, flash
# import pymysql
from flask_pymongo import PyMongo
from flask_sqlalchemy import SQLAlchemy
from source.mail_service impor... | [
"61419742+votesappteam@users.noreply.github.com"
] | 61419742+votesappteam@users.noreply.github.com |
12d808094d51053e5934fb28f0dcbbaef96b7e43 | 76f17df8dfeaff39bb23cdfcf55cb5b8018c8814 | /ProxySource/proxyNova.py | b5da2ca9bd28faf3d84d3c602b499b346f7dadf8 | [] | no_license | samsonllam/proxy-utility | 8c3d079f7f2f6cb21f62e59923a2069602cd3cfe | 2356a0a83dcc26f8f7bf77d5db3c52a1684140ce | refs/heads/master | 2020-12-01T06:33:41.250414 | 2019-12-28T09:55:29 | 2019-12-28T09:55:29 | 230,576,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | import time
import js2py
import loguru
import pyquery
import requests
def getProxiesFromProxyNova():
proxies = []
# 按照網站規則使用各國代碼傳入網址取得各國 IP 代理
countries = [
'tw',
'jp',
'kr',
'id',
'my',
'th',
'vn',
'ph',
'hk',
'uk',
'... | [
"fongpuilam@gmail.com"
] | fongpuilam@gmail.com |
3ae17f389f2cbbb7ab8a27b1621e1718c1ae8e09 | 6319ca627fdb1c89f19b08053d418db9825a539b | /Load_semester.py | 0b12535718c2a5b8c85db8160a8229a728c9df5f | [] | no_license | williamrtam/PennCourseReview2.0 | fb5b07aafd908d589f80f9f2957766c5c565458c | 7a16b61c4a324654e80bd00fbeb1b0c7e304bed6 | refs/heads/master | 2022-12-11T08:20:27.474123 | 2020-10-22T00:25:03 | 2020-10-22T00:25:03 | 124,487,091 | 0 | 0 | null | 2022-12-07T03:58:48 | 2018-03-09T04:20:34 | HTML | UTF-8 | Python | false | false | 692 | py | import requests
import json
import re
import sys
import os
import db_functions as db
from APIRequest import get_request_pcr, print_components, set_http_pcr
conn = db.get_connection()
print("Currently in db:")
db.doQuery(conn, "select * from Semester;")
http_str = set_http_pcr("semesters")
json_obj = get_request_p... | [
"willtam@seas.upenn.edu"
] | willtam@seas.upenn.edu |
cf95ea73cfd5113b7ece32fa64c811f159a1b5fe | e6c0683afc2a3d48ada10ffa9f7d257e7c64589e | /purity_fb/purity_fb_1dot6/models/directory_service.py | 203e2febaf5c82ca52a01c9e8de1d4fb3f665632 | [
"Apache-2.0"
] | permissive | unixtreme/purity_fb_python_client | 9a5a0375f4505421974aadc674ed04982c2bf84f | e836afe9804ffa99f74bf4b5202f181c3c04d9df | refs/heads/master | 2020-04-24T14:53:56.977344 | 2019-02-22T12:37:45 | 2019-02-22T12:37:45 | 172,042,713 | 0 | 0 | NOASSERTION | 2019-02-22T10:05:44 | 2019-02-22T10:05:44 | null | UTF-8 | Python | false | false | 8,415 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API (1.0 - 1.6), developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.6
Contact: info@purestorage.com
... | [
"azaria.zornberg@purestorage.com"
] | azaria.zornberg@purestorage.com |
2d20b51302c61b50e4c36ad33f8fa93167553059 | c1fe1f9b3b790370f35df4b2be46435e4e4c0686 | /newrelic/api/cat_header_mixin.py | 0db5d0fc18106bc68e07fcffcb4a7324c007954c | [
"Apache-2.0"
] | permissive | BillSchumacher/newrelic-python-agent | 0358365ba547e7b2ec383e9e8118a8f353005ab7 | 79f3da46fe3fdbe68beb3cb9511d6b291f0ebc8e | refs/heads/main | 2022-11-16T02:53:33.877322 | 2020-07-05T03:20:17 | 2020-07-05T03:20:17 | 277,208,609 | 0 | 0 | Apache-2.0 | 2020-07-05T01:00:17 | 2020-07-05T01:00:13 | null | UTF-8 | Python | false | false | 4,266 | py | # Copyright 2010 New Relic, 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 agreed to in writ... | [
"opensource@newrelic.com"
] | opensource@newrelic.com |
542a2dfc44395e85c1f87848f139eaca5f2bcba8 | f9fcde08ff87b2d740c9b8e0ec61e66f08791427 | /apps/neplat/walker.py | 2f4231392b202bfc4c63e753b32a7890f5dc4e14 | [
"BSD-2-Clause"
] | permissive | amirgeva/py2d | c0187cb44d8371a247b87a17c30560a4aa1dfb6a | 0557941989a4eb6045bc00e3b3ac5192eb464936 | refs/heads/master | 2022-12-17T20:49:23.043521 | 2022-11-26T07:48:43 | 2022-11-26T07:48:43 | 63,190,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | import sys
from engine import *
from engine.utils import vector2
class Walker(Entity):
def __init__(self,spr_filename):
super().__init__(load_file(spr_filename))
self.set_acceleration(0, 200)
self.onground=0
def collision(self,other,col_pt):
y=col_pt.y
h=self.anim.get_c... | [
"amirgeva@gmail.com"
] | amirgeva@gmail.com |
d9a26c20ab0c90ff0de2ec461a88699266fde70a | 706d5ff4707793a225f41c469f19a4f1891078da | /ui/web.py | 09e66ea9aaf1e3b9ff5472bb548cf4649962bb4e | [] | no_license | dcc668/PyDemo1.2 | eb5f13a19343e4d9d82fdd7c54f6f45622c5c00e | f883ca1d9bc04673beb9b40d889da74d2aaa5095 | refs/heads/master | 2020-04-15T02:23:16.000157 | 2019-01-30T23:57:41 | 2019-01-30T23:57:41 | 164,312,703 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,073 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'web.ui'
#
# Created by: PyQt5 UI code generator 5.9.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.se... | [
"1187053696@qq.com"
] | 1187053696@qq.com |
a33859d98febcffb4f19ebb946c04f04181cf303 | 1af209a307230f9f5470f687d23cfe87741b9023 | /nblog1/migrations/0001_initial.py | 540fe00ce541555c422561b47b99da02b03b336e | [
"MIT"
] | permissive | naritotakizawa/django-narito-blog1 | 67290a4961a9b7b0ba1b72d1163316a4d2a2bd05 | ea133bbc043cd72215847088323a895fe0b13758 | refs/heads/master | 2021-07-10T09:52:15.330729 | 2020-12-12T06:11:41 | 2020-12-12T06:11:41 | 221,838,129 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,260 | py | # Generated by Django 2.2.7 on 2019-11-15 03:05
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"toritoritorina@gmail.com"
] | toritoritorina@gmail.com |
3fa8421db6c67838cb4fd0331fdf9481e8482882 | c4ea8fdf03c03b7c9a6361bd04e1409016b35354 | /script.py | ae9f4e9ea148294a9679aae2f419e68553b8fcb2 | [] | no_license | SoloLeveling94/Project_2 | 3ea56ae7c22b810a59825fb79418fc26b8b6eaa2 | b10b7c5bc02576bc0af9f604ed21b8519f019259 | refs/heads/main | 2023-06-04T07:50:00.910465 | 2021-06-16T09:10:58 | 2021-06-16T09:10:58 | 374,657,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | import requests
from bs4 import BeautifulSoup
#URL = 'http://books.toscrape.com/'
url = 'http://books.toscrape.com/catalogue/its-only-the-himalayas_981/index.html'
response = requests.get(url)
data = response.content
soup = BeautifulSoup(data, 'html.parser')
results = soup.find(id='default')
info_book = []
dict_info_... | [
"sbokby@gmail.com"
] | sbokby@gmail.com |
54452476970b2431f414ca9ddab22e7a3c54cb7e | 5c729a2e8b1c9126a2430c17b23df0d7de5e3b17 | /easy/websec_level-20/websec_level-20.py | 4a526f4bbb8ee941d703330e4f8392e1d67927da | [] | no_license | NPC-GO/entroy0421_websec_writeup | ea0e94b109596f1d55aa30784010996d9fcaca1e | bd874dee5c38c4bf1de2d40bfdd43152e5199dea | refs/heads/master | 2020-12-01T13:42:38.072740 | 2020-09-25T07:52:12 | 2020-09-25T07:52:12 | 230,645,280 | 0 | 2 | null | 2020-09-25T07:52:13 | 2019-12-28T18:08:04 | Python | UTF-8 | Python | false | false | 375 | py | from requests import *
url = 'http://websec.fr/level20/index.php'
data = {
'value' : '',
'submit' : 'Add'
}
cookies = {
'data' : 'Qzo0OiJGbGFnIjowOnt9Ow=='
}
r = post(url , data=data , cookies=cookies)
pos = r.text.find('WEBSEC{')
while (True):
txt = r.text[pos]
print(txt, end='')
if(t... | [
"39701965a@gmail.com"
] | 39701965a@gmail.com |
86cf1286c1f1d116e942ca38d501f4115bb7dc9a | d905b94566b8b6dbe46ff0a939390b6e69a9dd2f | /forkids/countingcombatants.py | 130f14118ab95c1cdb6beefaa089cdfbaad191ab | [] | no_license | cwtopel/python | 3b0981f64beb2ba48a2023a6d94f0b1f617421f4 | a1ecf82d5b411033c62dc096510f5fb6aa53bb26 | refs/heads/master | 2021-01-21T07:35:15.114130 | 2015-01-19T21:59:19 | 2015-01-19T21:59:19 | 26,261,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | buildings = 3
ninjas = 25
tunnels = 2
samurai = 40
#so much for these variables I didn't need
#thanks obama
print((3 * 25) + (2 * 40))
| [
"ctopel@protonmail.ch"
] | ctopel@protonmail.ch |
0b2fd76f030c0698c98ebf2062dede17f62b356a | d22903da4e8be134dff562d744f0c5781b2b2c9b | /game/DataCastle/Drug_screening/combine.py | a6eb88f7eac7ebf4db1d190b5c00ad9c0df019df | [] | no_license | xiaoqian19940510/python- | 2eb32e06b864c835fc27d3a68e2aa0974dae2352 | 276a384888c65bed27481db3757ea1834309d070 | refs/heads/master | 2018-09-10T08:52:37.689830 | 2018-08-07T11:37:13 | 2018-08-07T11:37:13 | 113,555,426 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | import pandas as pd
#data process
train1=pd.read_csv('taijing/df_affinity_train.csv')
train2=pd.read_csv('taijing/df_molecule.csv')
test=pd.read_csv('taijing/df_affinity_test_toBePredicted.csv')
train1=pd.DataFrame(train1)
train2=pd.DataFrame(train2)
test=pd.DataFrame(test)
test.columns = ['Protein_ID','Molecule_ID',... | [
"noreply@github.com"
] | xiaoqian19940510.noreply@github.com |
98b140f696433695145daef016d731b86c66831a | beda1bec86d9e7b06b625ab939e0b4175b8e0535 | /benchmark/benchmark.py | 7b3a9fba45c98af2d188a0a23f2c7dab685d4dfc | [
"Apache-2.0"
] | permissive | doyouqa/python-sdk | 1bee86371595c27c9546e844debdcb21ed8c7bda | 1a0bf2c296600967197da9db5c94f3cff13aa7e2 | refs/heads/master | 2020-03-16T23:40:19.275657 | 2017-10-17T20:20:35 | 2017-10-17T20:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,762 | py | #!/usr/bin/env python3
import os
import time
import argparse
import platform
import base64
from contextlib import contextmanager
import logging
import oneid
logger = logging.getLogger('__undefined__')
def main():
parser = argparse.ArgumentParser(description='Run specific benchmark for oneID-connect library')
... | [
"cdunham@gmail.com"
] | cdunham@gmail.com |
84b0ad08bbee0f065c172c9e5d961c13c6f2e508 | 630da111c53b6ffe987f99b6aa7ac0f3ad4c9110 | /test/random_string.py | 81ac86a613d71063f7c50bcd84defca3d707d6f0 | [] | no_license | durenk/python-socket-engine | ad1c1f87abe32815abb4a4fce5fb77473226785d | 8292ab752e419beea089085934b431b36c3138f1 | refs/heads/master | 2021-05-27T06:30:12.558953 | 2013-12-28T06:17:46 | 2013-12-28T06:17:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,230 | py | #!/usr/bin/env python
# coding:utf-8
import _env
import conf
from lib.socket_engine import TCPSocketEngine, Connection
from lib.net_io import send_all, recv_all, NetHead
import socket
import threading
import random
import time
from lib.log import Log, getLogger
import lib.io_poll as iopoll
#from lib.conn_pool import ... | [
"frostyplanet@gmail.com"
] | frostyplanet@gmail.com |
c541376904f49c99666438a9116b7aa518c05664 | 1fab03a8aace79cfb0095e6ec9a618ff0bd72a35 | /unique.py | 04086fda7ee996ee6e256757b6fa02fda35d4447 | [] | no_license | alaeddingurel/justext_folia_conll | cc1baa55e34cd260626b13a5d0a993cdfe6e8571 | 374c2536ac001155ba125cdfeea40d6ba8e79c89 | refs/heads/master | 2020-05-19T19:33:46.546734 | 2019-05-06T11:28:23 | 2019-05-06T11:28:23 | 185,182,910 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 17 10:23:22 2019
@author: user
"""
import pandas as pd
df = pd.read_fwf('/home/user/Desktop/all_info.csv')
df = df['gandhi bhavan']
from pynlpl.formats import folia
for doc_name in glob.glob("*.xml"):
df = pd.read_fwf('/home/user/Desktop/... | [
"noreply@github.com"
] | alaeddingurel.noreply@github.com |
ee4804a60baa6b44b65ba8efe00264d804db19e1 | 840917addef4e36de1539d34aee811f487f2abb5 | /bin/pasteurize | ff8a7b6b7877befa455a612dd76b9d0f1399011c | [] | no_license | goks/DjangoExcel-Project | c26cbbbd8a208521a38dea0d8a11e438590584fd | 050d35f944902c4c76f682d8684a460590709d71 | refs/heads/master | 2020-12-30T22:31:23.380287 | 2016-05-30T16:23:31 | 2016-05-30T16:23:31 | 59,377,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | #!/home/goks/bin/virtualEnv/djangoexcel/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.15.2','console_scripts','pasteurize'
__requires__ = 'future==0.15.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('future==0.15.2', 'console_scripts', '... | [
"gokulav2@gmail.com"
] | gokulav2@gmail.com | |
1eead32becd32c239779d7f2ab4347a0e71989df | 1a3a9ecb618987d8a4ce2a546cf7546c78f318d8 | /dask/bytes/compression.py | 37cebe5379f599d3544f1d566290c4b40b62229d | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | DalavanCloud/dask | 2a433158c3423446584e735f0c27193ce72d5cea | b5e27c254660d6744033b0b7c9297e3eb71afbc3 | refs/heads/master | 2020-04-19T21:46:30.921701 | 2017-09-25T11:43:19 | 2017-09-25T11:43:19 | 168,451,252 | 1 | 0 | NOASSERTION | 2019-01-31T02:44:12 | 2019-01-31T02:44:12 | null | UTF-8 | Python | false | false | 2,763 | py | from __future__ import print_function, division, absolute_import
import bz2
import sys
import zlib
from toolz import identity
from ..compatibility import gzip_compress, gzip_decompress, GzipFile
from ..utils import ignoring
def noop_file(file, **kwargs):
return file
compress = {'gzip': gzip_compress,
... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
1ef4178efb1d01db1887e39443f41b387d96ee8c | 59d1347d6bb37134e7b2f3e1a55dac0df3d4a8a1 | /mybooksite/mybooksite/wsgi.py | b9bdf2bd63c675e389630f1577b612347791aaf5 | [] | no_license | Lukisn/DjangoTutorial | 95ebc5cc21d9ddd6ea0f8a748c20c96f58395f13 | d1d409f50ab7840ddc8820a311d36b143fc3430a | refs/heads/master | 2021-04-26T23:13:45.403057 | 2018-04-17T14:46:42 | 2018-04-17T14:46:42 | 123,951,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for mybooksite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"lukas.reimer@icloud.com"
] | lukas.reimer@icloud.com |
ee22d863f9f616a2b9d29cfee64b9252a79b65c1 | c00a2490947ad10582b5d675f070ccb62b70901d | /chromium/chrome/app/version_assembly/version_assembly_manifest_action.gypi | de47191e55ed4bebae16e3c854bc6fbb8eb62e1f | [
"BSD-3-Clause"
] | permissive | teotikalki/vivaldi-source | 543d0ab336fb5784eaae1904457598f95f426186 | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | refs/heads/master | 2021-01-23T01:17:34.305328 | 2016-04-29T20:28:18 | 2016-04-29T20:28:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | gypi | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file contains an action which can be used to construct a manifest file
# with the same name as the version directory so that chrome.exe identifies the... | [
"jason@theograys.com"
] | jason@theograys.com |
7c856f16ff140fd40cdc6fa09daa1ff4a5e60ff0 | 9f2445e9a00cc34eebcf3d3f60124d0388dcb613 | /2019-12-24-Parametersearch_justNaKDR_fixed kinetics/Modelparameters_temp/outputModels_dict_3474228170.py | ae7e4e7517d1ae469fb53980d9e13a3d1cb1b8ad | [] | no_license | analkumar2/Thesis-work | 7ee916d71f04a60afbd117325df588908518b7d2 | 75905427c2a78a101b4eed2c27a955867c04465c | refs/heads/master | 2022-01-02T02:33:35.864896 | 2021-12-18T03:34:04 | 2021-12-18T03:34:04 | 201,130,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,586 | py | # exec(open('Modelparameters_temp/outputModels_dict_3474228170.py').read())
Models = {}
Models['Model1'] = {'Error': 1.419837827938917, 'parameters': {'notes': '', 'Morphology': {'sm_len': 6.73077545020806e-05, 'sm_diam': 6.73077545020806e-05}, 'Passive': {'Cm': 1.9204758566959047e-10, 'Rm': 337742349.7398348, 'Em':... | [
"analkumar2@gmail.com"
] | analkumar2@gmail.com |
9180653fb1d4e9ff99440afcb90b5fd33e993765 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_365/run_cfg.py | a517d025b507290027fe35f47979dd948e53c8ae | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
b1377b4cdd513c2e3e41267c071ab687b5173900 | 9d7501001c8f446625a84775aaebc16b01cdd6ad | /Scripts/test_17.py | dbddfd5d3cf995f3b1e44611f1e91fc904d8f252 | [] | no_license | Wang5247/pytest017 | e95e3cea7bd02b29039d7d7b71beee1f0f42780f | edc6cedb1ec6efe80793b8c40bcfef59a77dd004 | refs/heads/master | 2022-12-15T12:18:15.629661 | 2020-09-14T08:44:24 | 2020-09-14T08:44:24 | 295,356,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | class Test017:
def test_017(self):
print("test_017")
| [
"1721029461@qq.com"
] | 1721029461@qq.com |
131828766b7f4a327f7e1366069d07203613f579 | b5262cea6ce3fdea0f0caa9c4157d62418799bf9 | /sitio_web/restaurantes/models.py | 4a00d14500834383dd67769917156976bbe1f900 | [] | no_license | rbnuria/DAI | 25a44a0ae412fc7256564f5e7cccbca0c086af5d | a1631a82630a1de9d3ee50762633fdd957dd8943 | refs/heads/master | 2021-03-27T10:25:38.453189 | 2018-04-06T11:07:28 | 2018-04-06T11:07:28 | 116,402,304 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django.db import models
# Create your models here.
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.test #base de dato
restaurantes = db.restaurants #colección | [
"rbnuria6@gmail.com"
] | rbnuria6@gmail.com |
105ecdf7a691354731b96148abcd5e7f9a770273 | d364123a0655bff7e9d725382934fe2c15b5bfc4 | /venv/Lib/site-packages/borax/patterns/lazy.py | 7ad0a3447e458468bc14f2c43704d2f208df7b18 | [] | no_license | yuan1093040152/SeleniumTest | 88d75361c8419354f56856c326f843a0a89d7ca6 | d155b98702bc46c174499042b43257696b861b5e | refs/heads/master | 2023-08-31T15:00:25.415642 | 2023-08-30T09:26:42 | 2023-08-30T09:26:42 | 227,269,300 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | # coding=utf8
"""
A Lazy Creator for a Object.
"""
import operator
__all__ = ['LazyObject']
EMPTY = object()
def proxy_method(func):
def inner(self, *args):
if self._wrapped is EMPTY:
self._setup()
return func(self._wrapped, *args)
return inner
class LazyObject(object):
_... | [
"1093040152@qq.com"
] | 1093040152@qq.com |
c24b5cf5c6bed8dfe29babd7153800bcf4d21d26 | 03f0a82e829a5711a9165d8f7d3762ca0c1ceaea | /ahgl/apps/tournaments/migrations/0017_auto__add_field_tournamentround_wins__add_field_tournamentround_losses.py | a85bf8daf00cadaa573af08f7778f93216006bbc | [
"BSD-2-Clause"
] | permissive | day9tv/ahgl | 4d273a39e06334cc15eb12031de0a806366396b9 | 5e06cfecb28c153c1b83ef89112fc217897131cb | refs/heads/master | 2021-01-22T08:32:53.663312 | 2012-10-06T21:32:52 | 2012-10-06T21:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,453 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'TeamRoundMembership.wins'
db.add_column('tournaments_tournamentround_teams', 'w... | [
"me@ntucker.me"
] | me@ntucker.me |
b901ea41ff6540c9e2f1d67b3a622b92a666448f | 788fc345bb297ee717ba192e00e8af951bc5d300 | /senstech/senstech/doctype/senstech_klassen/senstech_klassen.py | 74301a10003a9aa360cbc3926846644686484356 | [
"MIT"
] | permissive | alkuhlani/senstech | 41aa3ad8b5e25bd66ac472875021f72e3a1259ad | 84082b0dcbb2d5d2618f7172db3bb6e416977e07 | refs/heads/master | 2023-05-13T11:03:45.135113 | 2021-06-08T18:11:21 | 2021-06-08T18:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, libracore AG and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
# import frappe
from frappe.model.document import Document
class SenstechKlassen(Document):
pass
| [
"joel.mesmer@libracore.com"
] | joel.mesmer@libracore.com |
86d60d58012df0a71099b30eedc68ae160d577cf | 824230143f53003ec4b6f12411829b4208679f39 | /coding-practice/Tree/lowest_common_ancestor.py | 87aa93a09abd567b60993765b9415b4e120d1d5f | [
"MIT"
] | permissive | sayak1711/coding_solutions | af29cdaee2134e3b960d65059a0ed57154895478 | 1001e80f9a528f2bd0dcaf30df2cd441280781ba | refs/heads/master | 2023-05-25T17:03:31.390821 | 2023-05-02T05:32:17 | 2023-05-02T05:32:17 | 80,296,568 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | class Node:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
# since it is BST they are in sorted order
# they either lie on same side or on opposite side
# if they are on opposite side of root then root is the LCA
def lca(root, node1, node2):
while (root.val-n... | [
"96sayak@gmail.com"
] | 96sayak@gmail.com |
c5323ef71a9301c277ba11cb312e25abebec563e | e77c5920fc95cc3c2ed418b596f778a9d0fe9567 | /Computer Security 2019/final/crypto/Train/server.py | 41a179d8b70ad6487c0568b2d078e6abb563fcd0 | [] | no_license | ktpss95112/Practices | af55849524da35efbe82c93da7c180dd01a954c3 | 45e95a134ac706c4652f93b04c63eab3dfbe13ad | refs/heads/master | 2022-12-22T23:34:59.796247 | 2022-07-10T13:25:28 | 2022-07-10T13:25:28 | 166,650,609 | 2 | 0 | null | 2022-12-11T20:29:09 | 2019-01-20T10:51:52 | Python | UTF-8 | Python | false | false | 2,486 | py | #!/usr/bin/env python3
import os
from Crypto.Util.number import *
with open('flag', 'r') as f:
flag = f.read()
def genkeys():
e = 3
while True:
p, q = getPrime(512), getPrime(512)
n, phi = p * q, (p - 1) * (q - 1)
if GCD(e, phi) == 1:
d = inverse(e, phi)
ret... | [
"ktpss95112@yahoo.com.tw"
] | ktpss95112@yahoo.com.tw |
1fba2badf65b79d216de3dfc1cc5bdbce4ead09a | 8f34497cbb3313d8da2f751f65fa16f658ce0ded | /task4.py | 96beac5f035fe5664bc85bc1ab288f22bbe64d39 | [] | no_license | jc345932/programming | 8682d1c5fb316b0573b7005f888210567a66bb68 | 5bb812fc2b0519a147c9d047ecee745778198ccb | refs/heads/master | 2020-07-03T19:23:59.544735 | 2016-08-31T06:47:36 | 2016-08-31T06:47:36 | 67,005,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | def calcItem(input):
initial = int(input("Enter the initial stock:"))
bought = int(input("Enter how many we bought:"))
sold = int(input("Enter how many we sold:"))
total = initial + bought - sold
return total
def main():
totalCost = calcItem()
print("The total cost of the product at the end... | [
"junnao.luo@my.jcu.edu.au"
] | junnao.luo@my.jcu.edu.au |
467a37a4c8b531cc5736533e1bfa9642cc7415e2 | 5600178b3efa23159b05fe0621c8d8aa91dcf16c | /samples/cupy_test.py | 2e9f2d940b30bfcb5d6dd4086c6eb4dcc138170d | [] | no_license | ZWJ-here/maskrcnn-keypoint3d | 409cdcbe0d53a10a2121ce5906fb0cc01f3062af | 48ca3789be6210dfae361d6f6a3323f518a2445d | refs/heads/master | 2022-02-19T01:19:35.310696 | 2019-09-12T06:58:38 | 2019-09-12T06:58:38 | 220,231,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import numpy as np
import cupy as cp
import time
x=np.ones((1024,512,4,4))*1024.
y=np.ones((1024,512,4,1))*512.3254
time1=time.time()
for i in range(20):
z=x*y
print('average time for 20 times cpu:',(time.time()-time1)/20.)
x=cp.ones((1024,512,4,4))*1024.
y=cp.ones((1024,512,4,1))*512.3254
time1=time.time()
for... | [
"xixiaoyan@focuschina.com"
] | xixiaoyan@focuschina.com |
97b86ce976f5a392e07c9c4f063f6e33694e068a | 6fdb4eaf5b0e6dbd7db4bf947547541e9aebf110 | /hardware-testing/hardware_testing/production_qc/gripper_assembly_qc_ot3/test_force.py | 7da282fc77af1524104d1f53a043b4aa362af884 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | Opentrons/opentrons | 874321e01149184960eeaeaa31b1d21719a1ceda | 026b523c8c9e5d45910c490efb89194d72595be9 | refs/heads/edge | 2023-09-02T02:51:49.579906 | 2023-08-31T16:02:45 | 2023-08-31T16:02:45 | 38,644,841 | 326 | 174 | Apache-2.0 | 2023-09-14T21:47:20 | 2015-07-06T20:41:01 | Python | UTF-8 | Python | false | false | 8,022 | py | """Test Force."""
from asyncio import sleep
from typing import List, Union, Tuple, Optional
from opentrons.hardware_control.ot3api import OT3API
from opentrons.hardware_control.types import GripperJawState
from hardware_testing.drivers import find_port, list_ports_and_select
from hardware_testing.drivers.mark10 impor... | [
"noreply@github.com"
] | Opentrons.noreply@github.com |
09a9277d2a0674799865d294850b177d744cea52 | 4ad317f50bd6109584d661bc0fbca5886e637c06 | /convert_poeditor.py | f5b23106c916f939729ff5692920ac26f6eca30a | [
"MIT"
] | permissive | CyberSys/POEditor-UE4 | 5119ef458f5e933607efc39a816ae5186099eeda | e6f254e92274313baf4e29a24bf4b87155501550 | refs/heads/master | 2023-08-14T21:26:54.527166 | 2019-01-13T15:08:42 | 2019-01-13T15:08:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,716 | py | # Takes a POEditor .po file and an Unreal Engine .po file and overwrites the
# latter with translated strings from the former, matching msgctxt with
# msgid.
import os
import pycountry
localization_path = 'Localization/Game/'
poeditor_path = 'POEditor/'
poeditor_files = os.listdir(poeditor_path)
for poe_file in poed... | [
"noreply@github.com"
] | CyberSys.noreply@github.com |
70b207e0b366b8b3abb7be390826e6240b2c173d | 0958cceb81de1c7ee74b0c436b800a1dc54dd48a | /wincewebkit/WebKitTools/QueueStatusServer/handlers/nextpatch.py | eb88b4ab1dabea8a3f1569a52291250fb9d294ef | [] | no_license | datadiode/WinCEWebKit | 3586fac69ba7ce9efbde42250266ddbc5c920c5e | d331d103dbc58406ed610410736b59899d688632 | refs/heads/master | 2023-03-15T23:47:30.374484 | 2014-08-14T14:41:13 | 2014-08-14T14:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions a... | [
"achellies@163.com"
] | achellies@163.com |
79c4b5823456f6421c9da6d241e0d6e58fa762d4 | 92c67bd1547dacee271f8dacc469dd01ab5f68c4 | /Robot/Server/server.py | 69e921407b81c5132bf100011d21b56ec22abc86 | [] | no_license | yashkp/raspi | f31dc225888db9f70afdcc05a5b58a43694daada | 3fd47dc186574aa4928c15a0b5546ddad8c5e687 | refs/heads/master | 2020-03-29T06:55:18.007666 | 2018-09-20T18:10:15 | 2018-09-20T18:10:15 | 149,646,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import cv2
from flask import Flask, render_template, Response,request, jsonify
#
#cam.set(3, 480)
#cam.set(4, 640)
class VideoCamera(object):
def __init__(self):
global cam
self.cam = self.camera_obj()
#global cam
def __del__(self):
self.cam.release()
#cam.release... | [
"yaswanthkp14@gmail.com"
] | yaswanthkp14@gmail.com |
066619f24d8a7d6ed974495b5c15395e14e6a26d | 8e98a1d47277f3a5560f059546a4d133b2b75b61 | /src/main.py | 206b1ddeeeaf051d672e7be79e4664edcca6f99f | [] | no_license | BenPalmer1983/activity_v2_archived | 1a24759dfee4b34b31b75a21d2e3873779cea96a | 8b0a6d0e1c931e0eab410064511b262c7e878b98 | refs/heads/master | 2023-06-17T17:16:08.385492 | 2021-07-08T14:45:19 | 2021-07-08T14:45:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | ################################################################
# Main Program
#
#
#
#
################################################################
import os
import time
import datetime
import re
import sys
import shutil
import numpy
import json
import zlib
from globals import g
from activity import activity
... | [
"benpalmer1983@gmail.com"
] | benpalmer1983@gmail.com |
76dd8c450aa549e0fa28ca41ddc2529e4f4bd206 | 202626cbfdb71c1153f2f6f50a41ce3a6e2fbc4c | /functions/requestWeb.py | 518fc69bcbdaa5f8dfd3014dfef2b6d2a85e65f4 | [] | no_license | chhroger/YTDownload | 6927bcba11840f57b941f88e3812a1cd5b2178cb | b1a26db2de3fad9ea53b4c0bc67ea4f7f7e02569 | refs/heads/master | 2021-01-01T18:16:37.840816 | 2017-07-25T11:36:28 | 2017-07-25T11:36:28 | 98,294,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | import re
import requests
from bs4 import BeautifulSoup
request = requests.get("https://www.youtube.com/results?search_query=Bloodborne")
content = request.content
soup = BeautifulSoup(content, "html.parser")
youtube_domain = "https://www.youtube.com{}"
for element in soup.find_all('a', {"rel": "spf-prefetch"}):
... | [
"chhroger@gmail.com"
] | chhroger@gmail.com |
acef582b2caf8dbea4fddacdf03460be937bff76 | 9e9c08e0b5cee7dbea8579c52a2020a94e953f78 | /accounts/signals.py | f4b55c3e64ca3211135b95c6574d0965bc3abfb3 | [] | no_license | vedanti06/Customer_Management | e8393e825baeb31b4f67e84e4dfb40640944d263 | 15f67006da1b659bc3e4591cdeb635269533adc6 | refs/heads/master | 2023-08-24T05:53:13.392577 | 2021-11-05T17:10:10 | 2021-11-05T17:10:10 | 424,994,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User, Group
from .models import *
def customer_profile(sender,instance,created,**kwargs):
if created:
group = Group.objects.get ( name='customer' )
instance.groups.add ( group )
# Added username after vide... | [
"vedantidantwala@gmail.com"
] | vedantidantwala@gmail.com |
d73d5bc205def0ba8182269cd5a7039b8fe84637 | 0a33cc0ebb67c51cc38750f0f04c3e6c088e3b1a | /homeassistant/components/input_button/__init__.py | 3182e36d5fc7c38e4c85efaf5f2fc99cfed0bb94 | [
"Apache-2.0"
] | permissive | robert-alfaro/home-assistant | e9bb08ad22a167ed226fb3de8f5b36acfc393548 | 4a53121b58b77a318f08c64ad2c5372a16b800e0 | refs/heads/dev | 2023-02-28T06:46:23.217246 | 2022-04-26T17:30:08 | 2022-04-26T17:30:08 | 115,894,662 | 4 | 0 | Apache-2.0 | 2023-02-22T06:21:08 | 2018-01-01T02:00:35 | Python | UTF-8 | Python | false | false | 5,618 | py | """Support to keep track of user controlled buttons which can be used in automations."""
from __future__ import annotations
import logging
from typing import cast
import voluptuous as vol
from homeassistant.components.button import SERVICE_PRESS, ButtonEntity
from homeassistant.const import (
ATTR_EDITABLE,
... | [
"noreply@github.com"
] | robert-alfaro.noreply@github.com |
58cdd4b09be2ddfece7ebee800aa0251df29bcf7 | 94d9c7c2bdeda401dbda05d8d368db2c23d19e45 | /dev/workAutomation/excel/taxfree.py | 7a8ddb6526a1a32a1ba151d4c33f69b695a0f23c | [] | no_license | gusek93/Django | 2ed6ac3f25fcc43f11484ed599c8482a6cb5f7ab | 21d9ac00b7c2458bc61bc201ac13fb96d7e395d6 | refs/heads/main | 2023-08-30T14:50:33.863928 | 2021-10-24T19:37:32 | 2021-10-24T19:37:32 | 410,279,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | import os
import sys
import glob
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)) + '/app')))
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'workAutomation.settings')
import django
django.setup()
import pandas as pd
import warnings
# 엑셀 읽어오기
file_path = glob.glob('./media/t... | [
"gusek93@naver.com"
] | gusek93@naver.com |
0b9cf60b77ba7abf732228b31c930de8ddfbff86 | 8ebc932406c45a1c9d7eb46ff9d3b0826ad6ca19 | /weekone/day2/mrmrs.py | 054107cab9b2352444120a1aa6893ce62e6c0f8b | [] | no_license | zupercat/python-projects | 00c6080e8a1a49066bd8a6de1477711178e8b7f6 | ba43557df770d63645d944b540b0b914071b151e | refs/heads/master | 2020-07-03T10:17:23.221376 | 2019-08-12T07:01:11 | 2019-08-12T07:01:11 | 201,876,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | name_one = input("Please state your name ")
name = name_one[4:10000]
print("hello",name) | [
"alicia.y.wen@icloud.com"
] | alicia.y.wen@icloud.com |
94cc4fcea23e4fa5784cb9e54032e743b57064b5 | 094531188a783de87db45d68a3fcc4e332f2e967 | /importFromFlam/9_16.py | 48a9660d0d8f2e6e249a5b3517d79df792d8d667 | [] | no_license | nortongeo/wui-fire | 641adf89ac78719e0094502b8a6e57ce809c59b2 | b0ce2c9da505466dfe90b88197192dc971dd7cba | refs/heads/master | 2022-05-01T07:40:05.681341 | 2017-10-22T18:34:54 | 2017-10-22T18:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,948 | py | #-------------------------------------------------------------------------------
# Name: generateTraining Tool
# Purpose: Takes raw naip and lidar data, uses thresholds to classify data
# and generates training samples by identifying tight thresholds.
#
# Steps:
# - Seg... | [
"p.norton5@berkeley.edu"
] | p.norton5@berkeley.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.