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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
63b5cb24632edd5d430a55027fef2cb179ad50c6 | 308b8c6e8b33d56f23029f3039d2a8d8e8f9ba1f | /lab1/sentence_gen.py | 2d340a1719d2daf35f78abd68ba4a70bd1fb9f60 | [] | no_license | myrlund/tdt4275-nlp | 029dd79b5366e30771f9cfd960324d538741071b | fce13d7cbb3dbba0494cab94f64c1b9a4f7e06a6 | refs/heads/master | 2021-01-19T07:09:25.870108 | 2013-04-23T13:14:36 | 2013-04-23T13:14:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | #!/usr/bin/env python
# coding: utf8
import random, operator
from loader import *
def sentence_gen(corpora, n, priority, length=15):
"""Generates a sentence of given length, based on popular n-grams."""
counted_ngrams = {}
sorted_ngrams = {}
counted_ngrams = corpora.ngrams(n)
sorted_ngr... | [
"myrlund@gmail.com"
] | myrlund@gmail.com |
e603161e2e56683dbefc6a30f0d9444b0da60f3e | d220e6b1a15dc384567ec30c0d80dcc51566fdac | /app/scrape/reload_series.py | bf0a9a83d7be959a0addde763d2546e2e2feed84 | [
"Apache-2.0"
] | permissive | cs373n/idb | 481c7dae6bdb22bb5955c368b94c32e954fe9062 | 274d843609fc8958d65bfd0c04c90a67acc70ccb | refs/heads/master | 2020-06-25T08:33:17.558044 | 2018-04-12T07:04:12 | 2018-04-12T07:04:12 | 94,237,770 | 2 | 16 | null | 2017-07-21T15:18:44 | 2017-06-13T17:11:10 | JavaScript | UTF-8 | Python | false | false | 5,062 | py | import requests, json, time, datetime, hashlib
from models import db, Series, Event, Character, Creator
class MarvelRequest():
def __init__(self):
self.publicKey = ""
self.privateKey = ""
self.timeStamp = str(datetime.datetime.utcnow())
self.baseurl = "http://gateway.marvel.com/v1... | [
"saketsingh2018@gmail.com"
] | saketsingh2018@gmail.com |
56667ede08c017457c4c2cb5392283faa5332663 | ba4c50d4b03e097f71e5af8ba639721fcb7e1fc5 | /plot_tp6_2.py | f9bb738ef4835ca9238907b8192312d55c1bd760 | [] | no_license | EricHorvat/itbaSSfinal | 0b1b4bc0c6de03b4a6376f2d0a9c9cd3fb310884 | 76f4bfed0c341da474595cc4d35c1a30ddd41506 | refs/heads/master | 2020-04-07T01:30:29.438910 | 2018-12-13T03:28:46 | 2018-12-13T03:28:46 | 157,943,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import matplotlib.pyplot as plt
import numpy as np
import json
def parse_filee(filename):
with open(filename,"r") as file:
return json.loads(file.readline())
def plot_surfacee(dss,dvelocities):
fig = plt.figure()
ax = plt.gca()
oavg = []
ostd = []
for index, ds in enumerate(dss):
... | [
"eric.nahuel.horvat@gmail.com"
] | eric.nahuel.horvat@gmail.com |
e39dd51fde7cd071010f467f6c281e6f42fb42b2 | 1968f0d6064a6947538a54371b01b13c425a56c4 | /errorsOnSite.py | 0e08966c7400df0732547c458ae33be2fc3b7b0b | [] | no_license | pahkao/coursera1 | ef695543625dfdb1fa50a78bd62b16eed600944a | 2506e3f54258da83c9e19e1498825bd799c3d152 | refs/heads/master | 2022-09-12T06:15:44.159155 | 2020-05-30T21:57:15 | 2020-05-30T21:57:15 | 255,118,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | # #### Импорты
import re
from pprint import pprint
#!pip install pyaspeller
from pyaspeller import Word
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
options = Options()
options.add_argument("start-maximized")
options.add_argument... | [
"olkhovskiy91@gmail.com"
] | olkhovskiy91@gmail.com |
5b17489d18983256040a969c95cfb04fe56a0ad6 | 2fb266cb1860008187cdec533d0970183d107e58 | /server/status.py | e35cd60a784ac5ad64e9bc96bfbc7edff3f163b8 | [
"MIT"
] | permissive | bizet/xpmanager | d12fe1e16bee227da825297ec4f5f7290182fa2a | 3f5e62e894c5a4df42d610016a22179726b9d621 | refs/heads/master | 2021-01-22T21:32:16.865883 | 2013-11-04T08:18:35 | 2013-11-04T08:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from db_info import db_xpmanager
class Status:
def __init__(self):
pass
def get(self, i):
status_options = list(db_xpmanager.select('status'))
return status_options | [
"bizet.cn@hotmail.com"
] | bizet.cn@hotmail.com |
d811f5d03ae12bdeb567632e2d82b3ecccc87751 | a1e3e7cf1d27b85d9472c6353e7646d37528b241 | /q11.py | 3ea7528239387d3ae6df885be655e4e6ebe1b32f | [] | no_license | osama1998H/standerdLearnd-string | 421148f81c2c604f6c75dac568ff1faeb20922ce | 0af39cd2fd43be45bb54aca2826bc8bf56e399ed | refs/heads/main | 2023-09-01T04:21:52.499680 | 2021-05-15T19:54:50 | 2021-05-15T19:54:50 | 365,533,408 | 0 | 0 | null | 2023-08-29T08:31:40 | 2021-05-08T14:21:53 | Python | UTF-8 | Python | false | false | 325 | py | string = input("enter the string: ")
def del_odd(string: str)->str:
new_string = ""
string = [i for i in string]
for i in string:
if string.index(i) % 2 != 0:
string.remove(i)
for i in string:
new_string += i
return new_string
new_string = del_odd(string)
print(new_str... | [
"osamamuhammed555@gmail.com"
] | osamamuhammed555@gmail.com |
1459e00c12efcf943450d0d9fbb1d34e6ba7db4b | 93d78f2dd852b90d295bd523fd0bc09a644ee0d2 | /test/sql/test_operators.py | e8ad88511482f9009137ee1ea40257fb924e0846 | [
"MIT"
] | permissive | mrocklin/sqlalchemy | ff13d4d07ba46a049da9611d356d07498e95337d | 156f473de00024688404d73aea305cd4fc452638 | refs/heads/master | 2020-12-03T09:30:34.956612 | 2014-12-01T18:31:48 | 2014-12-01T18:31:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,743 | py | from sqlalchemy.testing import fixtures, eq_, is_, is_not_
from sqlalchemy import testing
from sqlalchemy.testing import assert_raises_message
from sqlalchemy.sql import column, desc, asc, literal, collate, null, true, false
from sqlalchemy.sql.expression import BinaryExpression, \
ClauseList, Grouping, \
Unary... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
1dbfcc3d47f3a48af022c5b19fdcc27352f4d401 | d2b54d3df1dc8f7e88c0d209b35949089facc73f | /treenode/memory.py | b5c7ddd2c1dd51260daf32b36666209d52ca2176 | [
"MIT"
] | permissive | domlysi/django-treenode | df8b08e756884bc8daffdfad7b5b3b102e92e309 | 86e7c76e2b2d60c071cfce6ad1493b2b51f2d304 | refs/heads/master | 2022-12-12T18:10:44.668904 | 2020-08-17T11:01:09 | 2020-08-17T11:01:09 | 287,275,877 | 0 | 0 | MIT | 2020-08-13T12:37:54 | 2020-08-13T12:37:54 | null | UTF-8 | Python | false | false | 522 | py | # -*- coding: utf-8 -*-
from collections import defaultdict
import weakref
__refs__ = defaultdict(weakref.WeakSet)
def clear_refs(cls):
__refs__[cls].clear()
def get_refs(cls):
return __refs__[cls]
def set_ref(cls, obj):
if obj.pk:
__refs__[cls].add(obj)
def update_refs(cls, data):
f... | [
"fabio.caccamo@gmail.com"
] | fabio.caccamo@gmail.com |
7e22d1771263f8683682167b4be8379f2aa928d4 | e17440e48ad6cc7d69bb19395f815292a08a7388 | /common/apps/collectors/add_timestamp_and_id.py | 17b8fd6b6c504deaf5c993e0f17bae71b892e459 | [] | no_license | Tecquilka/uwobs | 70b127c14bd16339214500c1386da2b4d858ceb9 | bf1350e1158efe571db251e39456ae4d7d95ff01 | refs/heads/master | 2022-12-28T20:13:04.540963 | 2020-10-13T09:30:09 | 2020-10-13T09:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!/usr/bin/env python
import datetime
import sys
if len(sys.argv) != 2:
sys.stderr.write("Usage: {0} IDENTIFIER\n".format(sys.argv[0]))
sys.exit(2)
id=sys.argv[1]
try:
while True:
line = sys.stdin.readline()
if not line:
break
now = datetime.datetime.utcnow().isoformat()[:-3]+"Z"
print("... | [
"fullergalway@gmail.com"
] | fullergalway@gmail.com |
30fed9cd0fbcc9ea11672e3c32d6f34d4cb8d46f | 20bf84daa3894ee5625413140913350328d0d3b1 | /data_example/practice_data.py | 6a4e521b4dc3ac4857f6e6c145d5fff70c2e6cb1 | [] | no_license | jinsuyun/DataAnalytics | f9d28c424946fd2279cfbfe4ca2ffb314156ad97 | 8c60c7352aaebb421bc54e20934550e95096482f | refs/heads/master | 2020-06-18T23:11:35.589302 | 2019-07-31T08:51:17 | 2019-07-31T08:51:17 | 196,487,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | import pandas as pd
df = pd.read_csv('adult.data', header=None)
# data basic
print("SIZE")
print(df.size)
print("SHAPE")
print(df.shape) # 몇 x 몇 인지
print("BEFORE COLUMNS")
print(df.columns)
df.columns = ['age', 'workclass', 'fnlwgt', 'education', 'education-num', 'marital-status', 'occupation',
'relationship', 'race', ... | [
"say2dbs@ajou.ac.kr"
] | say2dbs@ajou.ac.kr |
56c2d58dcd0b848ea888575681f0c0591b9d5bbc | 30b8c9fcd359a7f15ad42dd7733a17e3020ff27c | /hipster/urls.py | ca3c62e6b4863498a6f75128e1ec1b3854a566e7 | [] | no_license | MySecondLanguage/django-rest-auth-email-verify-demo | cdfec9efeee7174f0c91b59ea6939813c7fd5a61 | 4d243a471d5dfe338369eb2614215a6303022331 | refs/heads/main | 2023-03-20T20:00:07.199132 | 2021-03-08T11:08:38 | 2021-03-08T11:08:46 | 345,623,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | """hipster URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"mmamunism@gmail.com"
] | mmamunism@gmail.com |
da3f5d0d4b3c71ac3db45cece6411a3233f8b68a | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/webpubsub/azure-mgmt-webpubsub/generated_samples/web_pub_sub_replicas_create_or_update.py | 81ff6144e4226d349866642540011deb03744386 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,920 | 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 may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
d3f832d3e767c0ff4bca2f5cccc70c027d529027 | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/abc083/abc083_a/Main.py | b29da90d1695a2084ca06588e76990130541eb02 | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | a,b,c,d=map(int,input().split())
if a+b>c+d:
print("Left")
elif a+b<c+d:
print("Right")
else:
print("Balanced") | [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
ecc3ad925d8cd3f872845d9ba866ab7860df6f03 | 328578dc61ddfef9959e0cc6b8a0c4f95c272423 | /web_crawler_demo/data_store_demo/csv_store.py | 79f47abd403a63b79bcc1e47ef62387b5dde5190 | [] | no_license | newiflin/web_crawle | 0a5bb3b0b4226d5993b39b256d2d51ececc26a4b | 83d09119bc25be3b425cfcf5fb1c84a57a3dab67 | refs/heads/master | 2020-05-21T18:21:19.472825 | 2019-07-28T09:09:09 | 2019-07-28T09:09:09 | 186,131,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import pandas as pd
import csv
#csv文件 保存含分隔符的文本
with open('data.csv', 'w') as csvfile:
writer = csv.writer(csvfile, delimiter=' ') #delimiter指定分隔符
writer.writerow(['id', 'name', 'old'])
writer.writerow(['101', 'Bob', '23'])
writer.writerow(['102', 'Tim', '22'])
writer.writerow(['103', 'Lisa', '30']... | [
"newiflin@gmail.com"
] | newiflin@gmail.com |
f6256f707e0944be2fc80c00428ef105ef18d54a | 44eb88d1e3d9aa4bab66eaa9e096082500906cf5 | /075.py | 8620cadcc6d21386ae6ae2f3e010ef04a049611c | [
"MIT"
] | permissive | souza-joao/cursoemvideo-python3 | 82f00d6ca7f9bfc201af796ebfc76eed500bc39d | b9f747d1083c1c779630b25b321b291d76611901 | refs/heads/main | 2023-07-16T09:28:58.441664 | 2021-08-31T15:41:59 | 2021-08-31T15:41:59 | 376,969,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | num = (int(input('Digite um número: ')),
int(input('Digite um número: ')),
int(input('Digite um número: ')),
int(input('Digite um número: ')),)
print(f'O número 9 apareceu {num.count(9)} vez(es).')
if 3 in num:
print(f'O número 3 aparece na {num.index(3) + 1}ª posição.')
else:
print('Você não digitou o número 3... | [
"85567361+souza-joao@users.noreply.github.com"
] | 85567361+souza-joao@users.noreply.github.com |
925028b08297779546c047873b5ba67c870ad692 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_55/59.py | 09da2bcfaa4c411daa5449e6b502ef93033a8f6c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | #!/usr/bin/env python
import sys
filename=sys.argv[1]
inputfile=file(filename, 'r')
numcases=int(inputfile.readline().strip())
for case in range(1,numcases+1):
R, k, N = map(long, inputfile.readline().strip().split())
g = map(long, inputfile.readline().strip().split())
y = 0
first_ride = [None] * N
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
e713e3b650aa8bcd75898ce8b9478770267dcfe3 | af9d9043a83a751f00f7b805533d87ccce330d21 | /Portfolio/Datawiz/test_task/test_task/settings.py | 934b25bd3018fa1bfebe472ca3678cf757ebf827 | [] | no_license | HeCToR74/Python | e664b79593a92daa7d39d402f789812dfc59c19f | f448ec0453818d55c5c9d30aaa4f19e1d7ca5867 | refs/heads/master | 2023-03-08T13:44:19.961694 | 2022-07-03T19:23:25 | 2022-07-03T19:23:25 | 182,556,680 | 1 | 1 | null | 2023-02-28T15:30:01 | 2019-04-21T16:26:48 | HTML | UTF-8 | Python | false | false | 3,363 | py | """
Django settings for test_task project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
... | [
"noreply@github.com"
] | HeCToR74.noreply@github.com |
85f6c7b51b3c817448e8059efe2d0bab5d80b27b | 1b79374fe169ffa2d8dd381d8a21f314ef0e68df | /apps/mock_dojosecret/models.py | fef95460c238754cd1149f5492b69a74159239f6 | [] | no_license | HacTso/mock_dojosecret_project | c85900630e4da785b4dd0a6ae6856d54843100f3 | fa1ff570d998e3d0dc028c99e5546e40d0ec03bc | refs/heads/master | 2021-01-24T07:55:52.980273 | 2017-06-05T04:27:49 | 2017-06-05T04:27:49 | 93,364,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,822 | py | from __future__ import unicode_literals
from django.db import models
import re
NAME_REGEX =re.compile('^[A-z]+$')
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
import bcrypt
# Create your models here.
class UserManager(models.Manager):
def register(self,postData):
# return (True)
if l... | [
"hackknh@gmail.com"
] | hackknh@gmail.com |
da71551170a8138c807fd10d025d929b6f0e1ef2 | df3ac7e78ea022ecf156e3a94ae009355fdeb484 | /jobs/views.py | a391b16f522cae398d76a6c782c867e5ef7f4438 | [] | no_license | Dheerajkarmankar/portfolio-project | 6695d9db66e338d5cdaac7b213ada3c205e06ded | b18f411f3de877d69e861e19df26e77681f70b98 | refs/heads/master | 2020-11-27T03:17:13.020812 | 2019-12-20T14:50:45 | 2019-12-20T14:50:45 | 229,284,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.shortcuts import render
from .models import Job
def home(request):
jobs = Job.objects
return render(request, 'jobs/home.html', {'jobs': jobs})
| [
"dkarmankar7@gmail.com"
] | dkarmankar7@gmail.com |
6f990446cead9603dedfef48a68c2ec8c67a8073 | e970c48f83f74e6c28d51b556c47ae07f18f22fa | /code/sampling_methods.py | d0af413c62743488539e35d91194acfa1ad2c58d | [] | no_license | Loopdiloop/fys-stk4155-project2 | ddd812c3eaea525fa6b959d39391f1ece7877332 | 9efb4fb92581faa64fda188a1a600a47fc4bb594 | refs/heads/master | 2020-09-06T00:35:33.097309 | 2019-11-14T00:13:16 | 2019-11-14T00:13:16 | 220,260,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | import numpy as np
import statistical_functions as statistics
from fit_matrix import fit
from functions import franke_function
import copy
class sampling():
def __init__(self, inst):
self.inst = inst
def kfold_cross_validation(self, k, method, deg=5, lambd=1):
"""Method that implements the k... | [
"mamoll@uio.no"
] | mamoll@uio.no |
74cff82d3fb4d7b9313cdc8f801d09727367361a | abbb1e132b3d339ba2173129085f252e2f3311dc | /model-optimizer/extensions/middle/RemoveUselessConcatSplit_test.py | 7f91a7e4cbc1b0606f910b5a814c723cf707ab7f | [
"Apache-2.0"
] | permissive | 0xF6/openvino | 56cce18f1eb448e25053fd364bcbc1da9f34debc | 2e6c95f389b195f6d3ff8597147d1f817433cfb3 | refs/heads/master | 2022-12-24T02:49:56.686062 | 2020-09-22T16:05:34 | 2020-09-22T16:05:34 | 297,745,570 | 2 | 0 | Apache-2.0 | 2020-09-22T19:03:06 | 2020-09-22T19:03:04 | null | UTF-8 | Python | false | false | 16,709 | py | """
Copyright (C) 2018-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
0a7df3c31e01f5af78445a98036348be5e9ad1d7 | 2eadc45342aa161b7367cd09a2465c98d525882a | /secretsanta/__main__.py | c16719c29f42d454b61cea94358ea9ef7f8717d2 | [
"MIT"
] | permissive | jminuscula/secretsanta | a99313b7ed6c5cabe161a52e89d725712e178c12 | 0a305001a9a0ea26cf782f50ebba77256a28117a | refs/heads/master | 2021-12-07T20:08:12.560279 | 2021-11-21T15:09:29 | 2021-11-21T15:09:29 | 111,299,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | #!/usr/bin/env python3.4
import sys
import argparse
import json
from .participant import read_participants_csv
from .manager import SecretSantaDebugManager, SecretSantaDefaultManager
def get_arguments(args):
parser = argparse.ArgumentParser()
parser.add_argument(
'--email', '-e', metavar='PATH',
... | [
"jacobo.tarragon@gmail.com"
] | jacobo.tarragon@gmail.com |
e1d829b54b662af945088f6706746423887e21c6 | 123e7109e676d612481368fbf42c09e7490b83ca | /仪器使用/PCI6289采集卡/program/pci6289_ao_test.py | 076b265d46fd57a77f26750a74dc05f9a6a93829 | [] | no_license | Kaige213/QuantumTransportExperiment | ada6c6999cef079113557e4087f653bfdaf135b5 | 0703c61f72e1490682c5ce2b9a8bb82a545c3730 | refs/heads/main | 2021-11-27T04:59:13.617922 | 2021-09-22T13:28:37 | 2021-09-22T13:28:37 | 251,171,218 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import nidaqmx
with nidaqmx.Task() as task:
task.ao_channels.add_ao_voltage_chan("PCI6289/ao0",min_val=-1, max_val=1)
task.write(0.5)
| [
"yuexiaokai@outlook.com"
] | yuexiaokai@outlook.com |
44891d7b9820b9884945e121c98a187821ebb72e | ef92b7c2ade5905ada8da7a55e7708f318017a9f | /test/__init__.py | 8c7f1088a0651c40bbc94c63dbc66ca8a0cad193 | [] | no_license | nolanbconaway/raspi-nyc-train-display | 1bba781b6420c1e96a29279caeb14b6ade04d918 | 4865629fb97788d649dfd75a27622b5cfa02638b | refs/heads/master | 2020-07-06T13:52:19.100199 | 2020-04-06T02:06:29 | 2020-04-06T02:06:29 | 203,038,726 | 0 | 0 | null | 2020-04-06T02:06:30 | 2019-08-18T17:56:57 | Python | UTF-8 | Python | false | false | 309 | py | """Test package."""
def epoch_to_datetime(epoch):
"""Convert epoch time into a datetime in NYC timezone."""
import datetime
import pytz
return (
pytz.timezone("UTC")
.localize(datetime.datetime.utcfromtimestamp(epoch))
.astimezone(pytz.timezone("US/Eastern"))
)
| [
"nolanbconaway@gmail.com"
] | nolanbconaway@gmail.com |
24bb0afa161eea35fad82d7423ec8767db87fdaf | a4cb0495dec84d433b00d275a63afcd3f5c296b8 | /ResNet/layers/IdentityBlock.py | 992b515223b88207f9b51268c65d2c3dd2395fb7 | [
"MIT"
] | permissive | panuthept/Models_Corpus | 370aa5054145ecb20312360e33217c7a743f327b | 6d9e91eb97829e73d88ecfc4754492f6324ef383 | refs/heads/master | 2023-05-25T10:09:40.600017 | 2020-01-11T14:17:44 | 2020-01-11T14:17:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | import tensorflow as tf
class IdentityBlock(tf.keras.layers.Layer):
def __init__(self, filters, kernel_size, depth=2):
super().__init__()
if isinstance(filters, list):
assert len(filters) == depth, "Length if filter exceed the layer depth."
if isinstance(kernel_size, list):
... | [
"falcon_270394@hotmail.co.th"
] | falcon_270394@hotmail.co.th |
6d8c2fe636110f1a7126213981d239f0d387291c | 185820587b6a0663f8aac706384fa7e00b236bb9 | /samples/python/clusqmgr_suspend.py | af9c8f5fe63ae203a40c03995e0ed6d08bba2407 | [
"MIT"
] | permissive | hlkiltas/mqweb | 9c70252d6af442e45de3a18726b69dcda65db94a | c651014765018d32b5d49054ff8c36618d50093d | refs/heads/master | 2020-03-27T01:51:56.858586 | 2017-09-22T12:11:20 | 2017-09-22T12:11:20 | 145,749,223 | 2 | 0 | MIT | 2018-08-22T18:46:21 | 2018-08-22T18:46:20 | null | UTF-8 | Python | false | false | 878 | py | '''
Supends a queuemanager in a cluster
MQWeb runs on localhost and is listening on port 8081.
'''
import sys
import json
import httplib
import socket
if len(sys.argv) < 3 :
print 'Please pass me the name of a queuemanager and a clustername as argument'
sys.exit(1)
url = "/api/clusqmgr/suspend/" + sys.argv[1] +... | [
"franky.braem@gmail.com"
] | franky.braem@gmail.com |
6d625de9d95abca7e287fd3c385bb06c6b57b4f9 | 82cd87ea45ce91bf7cc6d60a8536c39676ca7689 | /eval.py | 20f28b8bec5eb3d1c886dcc50f2a24ac59a6e38f | [
"MIT",
"Apache-2.0"
] | permissive | gtesei/ebm-anatomy | 2be6bde61eeaa558198755b2535bbd4ec1958ef5 | 24c819b7239f554c8edc46c09085e129922962d2 | refs/heads/master | 2022-08-30T02:46:37.456060 | 2020-05-20T02:35:44 | 2020-05-20T02:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,642 | py | ##############################
# ## EVALUATE TRAINED EBM ## #
##############################
import torch as t
import torchvision.transforms as tr
import torchvision.datasets as datasets
import matplotlib.pyplot as plt
import json
import os
from nets import VanillaNet, NonlocalNet
from utils import download_flowers_... | [
"point0bar1@gmail.com"
] | point0bar1@gmail.com |
f0612efb0fad45a35627608742c836a5c0fd909d | ce7c86b8c9a193d421d7e67b794d81f65ef92c1c | /Day10/day_10.py | 4e9b016b695e356eaf9c9bea80808fcfd277dca2 | [] | no_license | Panagiotis-Zachos/advent-of-code-2020 | a00f9728c4e332940b23f0c3ab904183914971b5 | b305b900eed2d96a1997ee58450d9a11aa3137bf | refs/heads/main | 2023-02-11T04:11:41.908362 | 2021-01-02T18:46:11 | 2021-01-02T18:46:11 | 324,453,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | adapters = list(map(int, open('input.txt').read().split('\n')))
adapters.sort()
# Part 1
dif1 = 1
dif3 = 1
for i in range(1, len(adapters)):
dif = adapters[i] - adapters[i-1]
if dif == 1: dif1 += 1
elif dif == 3: dif3 += 1
print(dif3*dif1)
# Part 2.1
adapters.append(adapters[-1] + 3)
adapt... | [
"noreply@github.com"
] | Panagiotis-Zachos.noreply@github.com |
914431d0adb4b2c7286505f6d7737d82868ba8a8 | 699737150c95c92d2acbdf612e931ca6ccd8ba81 | /a116_buggy_image_ar_version_29-31.py | 86269fa5d5c1116396cd0cdcc4dd13e0c1e34d6e | [] | no_license | AntonioR0211/buggyimage | 25f25a3a8f03eb007231639ad6dfdc2295ad7cf2 | 899a1a843af4429acd5f5e686028c97448c79962 | refs/heads/main | 2023-01-13T20:50:45.582647 | 2020-11-14T07:08:01 | 2020-11-14T07:08:01 | 312,750,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # a116_buggy_image.py
import turtle as trtl
# instead of a descriptive name of the turtle such as painter,
# a less useful variable name x is used
Spider = trtl.Turtle()
# The pensize makes a circle which is the spider body.
Spider.pensize(40)
Spider.circle(20)
Spider.goto(20,20)
# This displays how much legs will be... | [
"noreply@github.com"
] | AntonioR0211.noreply@github.com |
79ec05a20274e044cf8660379e72fb5c8f2319f4 | 405bc4aee79e340a3b41f0f8e3f143118caa7cf6 | /hcipy/atmosphere/standard_atmosphere.py | 1442788a1ad31dcd2827ffc4c897f06293d2af69 | [
"MIT"
] | permissive | rahulbhadani/hcipy | c6c2fd487974ef7534a68f2a5036dc418609fc0a | b52726cb9502b5225ddff9d7b1ff417f2350cda8 | refs/heads/master | 2020-07-06T07:23:43.688016 | 2019-08-02T12:00:28 | 2019-08-02T12:00:28 | 202,938,491 | 0 | 0 | MIT | 2019-08-17T22:58:06 | 2019-08-17T22:58:05 | null | UTF-8 | Python | false | false | 539 | py | from .infinite_atmospheric_layer import InfiniteAtmosphericLayer
from .atmospheric_model import MultiLayerAtmosphere
import numpy as np
def make_standard_atmospheric_layers(input_grid, L0=10):
heights = np.array([500, 1000, 2000, 4000, 8000, 16000])
velocities = np.array([10, 10, 10, 10, 10, 10])
Cn_squared = np.a... | [
"por@strw.leidenuniv.nl"
] | por@strw.leidenuniv.nl |
856fd644e4807971a8bf3571c1cb7ce181e1716d | 72ae28eaff4a6f8239392409069782bf9a827a68 | /setup.py | 4ff5f8dc5cac880a51e4e283a489bfc630c258c1 | [] | no_license | GargiVyas31/Elena | d8030547475ca90a1cb745b5c762b51af12bfe92 | 98453b42219d16826a6461135bfdd7bbc4cf91ec | refs/heads/master | 2023-01-24T00:45:16.900630 | 2020-11-24T22:50:03 | 2020-11-24T22:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import os
from setuptools import setup, find_packages
import src
pkg_scripts = []
setup(
name=src.__name__,
long_description='ELena',
version='1.0.0',
platforms=['Any'],
scripts=pkg_scripts,
provides=[],
namespace_packages=[],
packages=find_packages(),
include_packa... | [
"sayantan@hp.com"
] | sayantan@hp.com |
9eea9265e1ace539b7498d06a98811dc189c3578 | 13486ab3a7c9f4221b25236d11a44caadf9f90f0 | /programming-three/three134.py | 67abd3857686a1d4fc7033b00938fa1b80d3ce94 | [] | no_license | strawwhat/diary | f0ec0c86b32d3ba7bedba33c9c629ec41c9e9a7b | 2d925b42e61c8aebbe6d212bceb3de7e10bd58c3 | refs/heads/master | 2021-01-22T22:34:09.645638 | 2017-10-02T07:44:41 | 2017-10-02T07:44:41 | 85,550,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | #!/usr/bin/python
# *-*coding:utf-8 *-*
"示例3-9 page134 redirect.py 重定向流到python对象"
"""
file-like objects that save standard output in a string and provide
standard input text a string ; redirect runs a passed-in function
with its output and input streams reset to these file-like class objects
类似文件的对象,用于在字符串中保存标准输出并提供... | [
"bnm1122@yeah.net"
] | bnm1122@yeah.net |
c510739d0552b39eefb1a37c3464536b93358cc2 | e0c26c8e9ffc94dd5b1f1757230fd8779dc244bc | /cell/synapse/__init__.py | 21aed928dd6e1bfc544e87bc35ed7278a595e4e9 | [] | no_license | mpelko/neurovivo | 6804e381a78a03164785bf6fa24f84f123a1201f | 10923140da270693988313b36ad6d0ad42bf529a | refs/heads/master | 2016-09-09T18:55:59.331807 | 2014-03-25T18:01:38 | 2014-03-25T18:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from exp2syn_AMPA_synapse import *
from exp2syn_GABA_synapse import * | [
"mpelko@gmail.com"
] | mpelko@gmail.com |
ad73927538d2a6b51e3e9da4eaa96818ced5e08a | f714db4463dd37fc33382364dc4b1963a9053e49 | /tests/sentry/event_manager/interfaces/test_frame.py | 22dd3b8b5756050429bafb0bd12c3db6daa422ae | [
"BUSL-1.1",
"Apache-2.0"
] | permissive | macher91/sentry | 92171c2ad23564bf52627fcd711855685b138cbd | dd94d574403c95eaea6d4ccf93526577f3d9261b | refs/heads/master | 2021-07-07T08:23:53.339912 | 2020-07-21T08:03:55 | 2020-07-21T08:03:55 | 140,079,930 | 0 | 0 | BSD-3-Clause | 2020-05-13T11:28:35 | 2018-07-07T11:50:48 | Python | UTF-8 | Python | false | false | 1,366 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import pytest
from sentry import eventstore
from sentry.event_manager import EventManager
@pytest.fixture
def make_frames_snapshot(insta_snapshot):
def inner(data):
mgr = EventManager(data={"stacktrace": {"frames": [data]}})
mgr.nor... | [
"noreply@github.com"
] | macher91.noreply@github.com |
0a77844aeb0ff0c47c3b8ac2e106430f4a5deb65 | 9e3eef34a21a60610c4dc9f5c5fec809a8cb7706 | /lab2/ex1.py | d1c06a877a652f35276089666fd5e8bca69c1930 | [] | no_license | toma-ungureanu/FII-Python | f7df993a985f82dfed793f7549852abbb191bdee | 60a9b657db7aa09b7e9d42402f4689ca7df615ac | refs/heads/master | 2020-08-28T23:40:22.382485 | 2020-01-22T04:28:35 | 2020-01-22T04:28:35 | 217,855,104 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | def printFibonacciNumbers(n):
f1 = 0
f2 = 1
if n < 1:
return
for x in range(0, n):
print(f2, end=" ")
next = f1 + f2
f1 = f2
f2 = next
# Driven code
printFibonacciNumbers(int(input("Primele x numere Fibonacci: ")))
| [
"toma.florin.ungureanu@gmail.com"
] | toma.florin.ungureanu@gmail.com |
716beeecaa9af980ba1af4c2e9ae8ada8085d998 | 86fb27e01bb1f2d203252aad4e375fba853f30ee | /KNN.py | 5ad9ccbdbb3e3cd1351e56d405d81e1cc96aefcc | [] | no_license | Bhuvaneshwari-Anand/Kirana | e0e8a1c49732ae5e19bc2459db7efd423ce8b5ff | d3651b7e6c0e8390c1659e6d404f506e5201c797 | refs/heads/main | 2023-01-12T21:38:05.905860 | 2020-11-19T15:01:08 | 2020-11-19T15:01:08 | 314,262,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import math
import pandas
import numpy as np
#the dimensions of the item as input
x = float(input())
y = float(input())
#reading the data from the csv file
data = pandas.read_csv("F:\Contest\Infra Mind\Excel and CSV\DatasetFinal.csv")
#store the dataset items in separate arrays for each column
iden = data["ID"].valu... | [
"bhuvaneshwari119anand@gmail.com"
] | bhuvaneshwari119anand@gmail.com |
254fb14e235ff8c88fb37c0a2d8073e8cd9249a5 | f474d500b7da4f4069e24fddcde97783a4f3664b | /vagrantEnv/lib/python3.5/encodings/kz1048.py | 8c13cbaa6892121f32a575a95efa7e9b71c453ad | [
"Apache-2.0"
] | permissive | Thanh-Lai/chat-bot | 220a0fd6383181f0cdaf732b5c02f645bd960a28 | e3007fa6e034d3cccff4615a7eccf0e75bbc1708 | refs/heads/master | 2020-04-23T09:39:04.509356 | 2019-02-18T04:56:25 | 2019-02-18T04:56:25 | 171,075,880 | 0 | 0 | Apache-2.0 | 2019-02-18T04:56:26 | 2019-02-17T03:00:39 | Python | UTF-8 | Python | false | false | 38 | py | /usr/lib/python3.5/encodings/kz1048.py | [
"tlai1122@gmail.com"
] | tlai1122@gmail.com |
15487621d75896236eb3ebe106a4f8748a6a389b | e43b78db4ff598944e58e593610f537f3833d79c | /py-faster-rcnn/lib/roi_data_layer/roidb.py | 93f713e1f127d432736a654ce6fa292eef3b6c67 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | ZJUZQ/Net_caffe | 577e9b3e80a391d772a21c27639465d539fceb1f | bed3c7384a259339c5a0fb2ea34fa0cdd32ddd29 | refs/heads/master | 2021-09-08T12:19:37.039970 | 2018-03-09T14:44:24 | 2018-03-09T14:44:24 | 114,853,721 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Transform a roidb into a trainable roidb by adding a bunch of metada... | [
"zhouqiang@zju.edu.cn"
] | zhouqiang@zju.edu.cn |
36f4077e738bcd0ad9b6fb9a000f343d5aa57385 | fe931e4eb729e010add72732889cfcfa0e82663d | /test/ParametricNLP_test.py | 7e32cc47eea227c73a524210f0191ac4c1677cb2 | [] | no_license | Duam/python-master-thesis-code | 14d7ae68d94475cc978717dbb2a9df691b5246e5 | bb1a800612a1f046d2184ae42e00ed5ec0425b06 | refs/heads/master | 2023-06-30T07:02:28.369372 | 2021-08-06T15:11:26 | 2021-08-06T15:11:26 | 385,187,111 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | import casadi as cas
from thesis_code.utils.ParametricNLP import ParametricNLP
# Create a test optimization problem
nlp = ParametricNLP(name='test_problem', verbose=True)
# Add decision variables and parameters to the problem
nlp.add_decision_var('x', (3,1))
nlp.add_parameter('lbx', (3,1))
nlp.add_parameter('ubx', (3... | [
"paul.daum@posteo.de"
] | paul.daum@posteo.de |
3e1738529ae55e62ae6843901eca2eb0d436e07a | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractIntheinkpotfictionWordpressCom.py | 5a22827f09f4623da612321d5379b4873ab2b614 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 576 | py |
def extractIntheinkpotfictionWordpressCom(item):
'''
Parser for 'intheinkpotfiction.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'trans... | [
"something@fake-url.com"
] | something@fake-url.com |
7534fdc5e9d0e271082d603c5c0a1ba2262d679e | 873d858b79a51a6a14e74e1a6fe4cc97809a69bc | /rosserial_ws/devel/lib/rosserial_client/make_library.py | eed0f221f32c99f4c790655eeb0d5132d20cacf2 | [] | no_license | nichoteloo/ROS-Noetic-devel | cf3058014fc491f38a23426c136cb8fbdee7a397 | 81e7090c5dc0e548aed4aa57b9579e355e9bcd25 | refs/heads/master | 2023-05-07T19:21:03.804523 | 2021-06-02T21:13:48 | 2021-06-02T21:13:48 | 373,293,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/script.py.in
# creates a relay to a python script source file, acting as that file.
# The purpose is that of a symlink
python_script = '/home/nichotelo/ros/rosserial_ws/src/rosserial/rosserial_client/src/rosserial_client/make_library.py'
... | [
"nicolaschristianto@mail.ugm.ac.id"
] | nicolaschristianto@mail.ugm.ac.id |
e23c70a6f0bf97c57a6a3211e8ce4ee4c23a4b01 | 22d3d698edfa66d071a77b98d9d293087e699d87 | /casanova/cli.py | 1ac34d646aac0c3f4e2ac82fc186be538414654c | [
"MIT"
] | permissive | medialab/casanova | 8b880b1848f8f1ea785fdba483395a7d7085b87f | fcd449df0fba33a48693bea4919c81e1654a6866 | refs/heads/master | 2023-07-30T04:16:33.079309 | 2023-07-13T12:41:43 | 2023-07-13T12:41:43 | 254,628,154 | 13 | 2 | MIT | 2023-01-17T16:00:31 | 2020-04-10T12:23:34 | Python | UTF-8 | Python | false | false | 14,540 | py | from typing import Optional, List
import re
import sys
import gzip
import json
import math
import random
import statistics
from itertools import islice
from types import GeneratorType
from os.path import join
from urllib.parse import urlsplit, urljoin
from multiprocessing import Pool as MultiProcessPool
from dataclass... | [
"guillaumeplique@gmail.com"
] | guillaumeplique@gmail.com |
eeb5073afecbaf0f35097a0d4970f139fc0282fd | 014e9a6f3d48ffa7b9ee759904d2e33284a6f4d6 | /api/caoloapi/model/auth.py | c73941f6992e52e8c9728cbae96791221e95e3a7 | [
"MIT"
] | permissive | kissmikijr/caolo-backend | 33c0262239182b96d1215677c45065b4ef90455b | efec05bb793bd40951cb4e5ae4e930d972f63d36 | refs/heads/master | 2023-09-04T01:09:50.068148 | 2021-10-18T22:00:59 | 2021-10-18T22:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from datetime import datetime as dt, timedelta
from passlib.context import CryptContext
from jose import jwt
SECRET_KEY = "fe9fb923daa2a5c34a57b6da5d807a1e9cb48d4afee5c10095bab37bcf860059"
ALGORITHM = "HS256"
ACCESS_TOKEN_EXPIRE_MINUTES = 30
PEPPER_RANGE = (128, 139, 3)
pwd_context = CryptContext(schemes=["bcrypt"]... | [
"littlesnorrboy@gmail.com"
] | littlesnorrboy@gmail.com |
90feabc37881c6074fed4004e3e610421ad0bb4e | b76947d520fb1f867ed7165403cbcc47caabd5cb | /hivemind_powerball/hive/apps.py | 7c2876c4b0a631b48c502bb4c5060e5326ea5b64 | [] | no_license | peter-stratton/hivemind_powerball | abf3b0c21a3e92be45e6271d701ea1ce628960cc | f1e650bb26c23a0c42b05ac6826105bade0d8d3b | refs/heads/master | 2021-01-22T02:17:45.452114 | 2017-02-09T17:42:02 | 2017-02-09T17:42:02 | 81,042,442 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from django.apps import AppConfig
class HiveConfig(AppConfig):
"""Config object for the hive app"""
name = 'hive'
| [
"pstratton@jornaya.com"
] | pstratton@jornaya.com |
d8e85972fade73cbb7841a166d847c90f11b5bd4 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/operations/_virtual_machine_extensions_operations.py | 9e1af3df025f8ded444c980807a5abb4416ee1ed | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 44,661 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
3a46b739fdd3269370d45b82b4103d66bc0a5353 | 1718a0e60b3df6bb23ea50e57bc2a39e268c0d53 | /store_app/views.py | a452b60bee841fcbf43da93e842bf057b9cac01a | [] | no_license | ckizer86/final | 551be3fc3e0e6021a5103acc645238f0d5ddc905 | c6fd0fd8ffe46c23d9fe6f6b7138cce44b32fa1c | refs/heads/main | 2023-05-28T18:50:48.939996 | 2021-06-08T23:36:27 | 2021-06-08T23:36:27 | 374,507,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,172 | py | from django.db.models import fields
from django.shortcuts import render, redirect
from django.http.response import JsonResponse, HttpResponse
from django.views.generic import FormView
from django.urls import reverse
from django.conf import settings
from django.http.response import JsonResponse
from django.views.decorat... | [
"ckizer86@yahoo.com"
] | ckizer86@yahoo.com |
c18140fcd9465540c29e5bf57783ab8ebbab2f3c | 2cc5ad64d812b94508ac9d817d33072e633231ca | /Mission 2/Contest 2.2/Zhou-Xinming-3-2d.py | 51351a85c5457f3e68127e8c5171bd1b30a5995f | [] | no_license | xinmingzh/CS1010X | 6943c06dcd53730e23b54e1fa3df12734cb7c39a | d3613899e82321d06544a7ad6e15d759aaebc988 | refs/heads/master | 2021-04-27T03:00:53.173961 | 2018-02-24T05:45:16 | 2018-02-24T05:45:16 | 120,771,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | #
# CS1010X --- Programming Methodology
#
# Mission 2 - 2D Contest
#
# Note that written answers are commented out to allow us to run your
# code easily while grading your problem set.
from runes import *
########
# Task #
########
# You may submit up to 3 entries. Please update your entry number below.
# Entry 3 o... | [
"xinming.zh@gmail.com"
] | xinming.zh@gmail.com |
64778fcbc1e5fce8a3fa62050a7bf3561afa5db0 | 5822e8bfd09ec98770966763a6637dfaeb0b6dbd | /TWLight/emails/views.py | 350215a5e68768e96691e19d9b15fa5c417b7043 | [
"MIT"
] | permissive | Jain-Aditya/TWLight | 997c01cab83b9af5073589808011c3cc3ecc6d51 | 4c005fb9346e262cc452509b029774bde6cff0dc | refs/heads/master | 2020-04-30T07:56:38.706751 | 2019-03-18T08:04:35 | 2019-03-18T08:04:35 | 176,700,371 | 0 | 0 | null | 2019-03-20T09:34:36 | 2019-03-20T09:34:36 | null | UTF-8 | Python | false | false | 2,763 | py | from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.exceptions import PermissionDenied
from django.core.urlresolvers import reverse, reverse_lazy
from django.core.mail import BadHeaderError, send_mail
from django.http import HttpResponse, HttpResponseRedir... | [
"uyscuti.wiki@gmail.com"
] | uyscuti.wiki@gmail.com |
a1e88c8713d1e262f21e9358122e6e5749a99712 | 6472d60797abbb0d2814495943d2aaabb2baf7d9 | /lecture/lecture.py | 641025b9fad157e83284bbacdec0cc8df25da8ed | [] | no_license | maya-salcedo/webcam-motion-detector | 4e23336b36a56138becd7b7a636fac38d4c9a8d4 | 8746cd3af917b5e6af74cc7cfea6a69a5a715a43 | refs/heads/master | 2023-01-06T17:38:38.566764 | 2020-11-10T19:15:32 | 2020-11-10T19:15:32 | 311,289,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | import cv2
img = cv2.imread("galaxy.jpg", 0) #if you want to read to the image as it is, pass 1,
# grayscale, 0 which is 1 band
# transparency capabilities, -1
print(type(img))
print(img)
print(img.shape)
print(img.ndim)
resized_image = cv2.resi... | [
"maya.salcedo07@gmail.com"
] | maya.salcedo07@gmail.com |
9d10240ecd698eca008640c0eabba53a44e88d15 | 3d8a2d2124c484a7ac81835296c0a8834af8df6e | /one/commands/shell.py | 1019bee8e283c55218e4903522be915893be2b46 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | DNXLabs/one-cli | e067a2a9d49c61494abcd9ba4b63626f656cdbb9 | 37265189ab184e6fa7569c201b181ba5d95a0a2a | refs/heads/master | 2022-12-14T09:15:32.052749 | 2021-09-16T00:08:35 | 2021-09-16T00:08:35 | 253,417,937 | 7 | 1 | Apache-2.0 | 2021-09-16T00:08:36 | 2020-04-06T06:51:25 | Python | UTF-8 | Python | false | false | 914 | py | import click
from one.docker.container import Container
from one.docker.image import Image
from one.utils.environment.aws import EnvironmentAws
container = Container()
image = Image()
environment = EnvironmentAws()
SHELL_IMAGE = image.get_image('shell')
@click.command(help='Shell container with awscli and terraform... | [
"arthurbdiniz@gmail.com"
] | arthurbdiniz@gmail.com |
81d48422f1d924c39d76dcbf258ebdb977195149 | af3840c306fa5eeb2f0d9e5ed779a582d3c7d5d7 | /구구단 11-16.py | e45c083721e6ad8260dc97b620622219cfb596a2 | [] | no_license | HanseamChung/prac_python | 8c6053402a456eb3c78941b0917fa1570c56bbea | d8fc32989ae9707261deb602bea8853d7f7a0aed | refs/heads/master | 2021-05-05T03:12:16.940521 | 2018-02-09T08:37:10 | 2018-02-09T08:37:10 | 119,792,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | i, k = 0, 0
for i in range(11, 17) :
print('\n')
for k in range(1, 10) :
print(str(i*k)+" " , end="")
| [
"noreply@github.com"
] | HanseamChung.noreply@github.com |
e259df553081c2a0843857a31971fbeb29ab02d1 | 8c9df3465ec7cab68b10e67823c1f9b475dab68e | /square__transverse_longitudinal_field_af_ising__static/square_ising.py | 12dad1d1699c6934cd3da33fb9d3ea8f37bdd5f5 | [
"BSD-3-Clause"
] | permissive | deyh2020/quspin_example | f86cf3cea2b8c04efc017e9618cb935494e94f82 | 931ca2ea5e6bbe02ebdd6d6a22d90db24d6c760c | refs/heads/master | 2023-02-07T21:27:12.913763 | 2020-12-30T08:00:57 | 2020-12-30T08:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | ## http://weinbe58.github.io/QuSpin/generated/quspin.basis.spin_basis_general.html#quspin.basis.spin_basis_general
## https://doi.org/10.1103/PhysRevX.8.021069
## https://doi.org/10.1103/PhysRevX.8.021070
## consider nearest neighbor Ising
from __future__ import print_function, division
from quspin.operators import ham... | [
"27846552+ryuikaneko@users.noreply.github.com"
] | 27846552+ryuikaneko@users.noreply.github.com |
1faba7758fe0c892013372af65d23ba65c04f8b8 | f8f841bba1f3c05c69f3a43297b9d63016f95e2a | /format_w2v_file.py | f8577089ee49841b33990da82b63543e3fcb28ef | [] | no_license | valerie94/russian_nballs | 2246d764d16f3b0374193bb0ec14c49ad72df544 | c960de4a7bba40dcd3a7c6e723b1bbea272969f8 | refs/heads/master | 2020-05-18T09:13:10.098864 | 2019-06-04T20:31:29 | 2019-06-04T20:31:29 | 184,317,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | '''This .py program converts initial file with word2vec features to standard format such as
word_1 feature1 feature2 ... feature256 /n '''
'''This script creates file ru_w2v.txt which is w2v file which is required for constracting nballs '''
import re
def change_format(file_name):#input is the initial file
line_arr... | [
"noreply@github.com"
] | valerie94.noreply@github.com |
f4f46508d1a0f02512ff3ef04f883f5f7004be63 | 1bc2a635a93b5bc84606edf9ac2226851cac9e6d | /tests/unit/test_business.py | 99dba73500a5ba0dccb4d31c5d763654cfe9ff9d | [
"MIT"
] | permissive | coolkat64/rolling | 819149cbb1e11a455b93a030477f9da91e2f93e4 | 4c3ee2401128e993a52ac9b52cdbd32e17728129 | refs/heads/master | 2022-11-29T00:35:14.058665 | 2020-07-31T20:37:15 | 2020-07-31T20:37:15 | 285,312,272 | 0 | 0 | MIT | 2020-08-05T14:25:48 | 2020-08-05T14:25:47 | null | UTF-8 | Python | false | false | 37,466 | py | # coding: utf-8
import typing
from aiohttp import ClientResponse
from aiohttp.test_utils import TestClient
import pytest
from rolling.kernel import Kernel
from rolling.model.character import CharacterModel
from rolling.server.controller.business import ALL_OF_THEM
from rolling.server.controller.business import ONE_OF... | [
"sevajol.bastien@gmail.com"
] | sevajol.bastien@gmail.com |
ee714b917523630f20db920691fa7adf93352b79 | b373081e3dd8ddc7520ca57841a0c17d2682ad74 | /Source/systemrl/environments/cartpole.py | 7dc0691b9031afdb006b8d35bac9120361147e0a | [
"MIT"
] | permissive | aarsheem/696-ds | f8e680cf2d2acef6dd04aa14f406d31cce946dfe | 2d74b1e3f430e369202982d7ad8c56f362b00f76 | refs/heads/master | 2020-12-26T22:14:06.200655 | 2020-07-08T22:08:04 | 2020-07-08T22:08:04 | 237,663,363 | 2 | 2 | MIT | 2020-04-24T15:16:49 | 2020-02-01T19:05:05 | Python | UTF-8 | Python | false | false | 5,216 | py | import numpy as np
from typing import Tuple
from .skeleton import Environment
class Cartpole(Environment):
"""
The cart-pole environment as described in the 687 course material. This
domain is modeled as a pole balancing on a cart. The agent must learn to
move the cart forwards and backwards to keep t... | [
"aarsheemishra@1x-nat-vl931-172-30-152-76.wireless.umass.edu"
] | aarsheemishra@1x-nat-vl931-172-30-152-76.wireless.umass.edu |
3039c444c18f0b492a472774de7ddcf70fefc723 | 01dd174a3a7d26226564711e32711f137513663f | /pyscf/grad/uks.py | cb2d2d1dd98fc530fe5f2ab8a3bcd9d5ad9f1214 | [
"Apache-2.0"
] | permissive | cherishyli/pyscf | 00cb09c873edc8890be8501414678cdfa54b177e | 468a4bfc4ce067eb7dab6f9289d71122b219609e | refs/heads/master | 2020-04-18T11:40:00.398066 | 2019-01-24T23:07:36 | 2019-01-24T23:07:36 | 167,508,739 | 1 | 0 | Apache-2.0 | 2019-01-25T08:00:12 | 2019-01-25T08:00:12 | null | UTF-8 | Python | false | false | 10,924 | py | #!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. 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
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
f7af16fa31198ad465290cab948bded706b51328 | b716ab7cc296ba20f23bbc2aed5af6bef29923fc | /2.py | 0f72894c2caf328cb32d74883ee59561b00848b4 | [] | no_license | widyamellysa/dumbways-test | efea011988b962240af3a5f13fa9fc029737e0e7 | ec5a9d09afd12af35d8cd8073376f9727d6c3d25 | refs/heads/master | 2022-11-23T16:27:10.859000 | 2020-08-01T14:49:12 | 2020-08-01T14:49:12 | 284,274,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | total_belanja = float(input("Total belanja : "))
bayar = float(input("Jumlah uang : "))
#DumbwaysJos
if total_belanja >= 50000 and total_belanja <= 80000:
diskon1 = 20000
hasil1 = total_belanja - diskon1
sisa1 = bayar - hasil1
print("Diskon : ", diskon1)
print("Kembalian : ", sisa1)
... | [
"noreply@github.com"
] | widyamellysa.noreply@github.com |
dde7d82754424f14d0b28a6142c13333535560f6 | e3adbec6cd8d0b50880b3b606352a1c751d4ac79 | /functions/singly_linked_list.py | 7cadf3954044adea1f9fcd0cccd0b5268d96d8b1 | [] | no_license | ZiyaoGeng/LeetCode | 3cc5b553df5eac2e5bbb3ccd0f0ed4229574fa2f | c4c60b289c0bd9d9f228d04abe948d6287e70ea8 | refs/heads/master | 2022-04-07T08:19:58.647408 | 2020-03-12T08:56:13 | 2020-03-12T08:56:13 | 218,981,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py |
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
| [
"593947521@qq.com"
] | 593947521@qq.com |
19947694ca5e83f139404b18e79c23211e055d99 | 74c776f1a9a059bbc530fe5d6b12165425d3f954 | /run_cn.py | 33e53e3cce1647da732faa01a74054d3bb265f5a | [
"MIT"
] | permissive | Lyttonkeepfoing/SANER | 0d2ea7df305e0599511bb349dc2b05af59b64425 | ac30f441be615de5224411816935283eddfbe330 | refs/heads/master | 2023-08-25T05:23:01.412133 | 2021-10-19T14:58:11 | 2021-10-19T14:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | import os
# the number of similar words
num = 10
# dataset name
dataset = "WB"
seed = 14
attn_type = "dot"
fusion_type = "gate-concat"
# Path of bert model
bert_model = "data/bert-base-chinese"
# Path of the pre-trained word embeddings for getting similar words for each token
glove_path = "data/tencent_unigram.txt"
po... | [
"nyy477@qq.com"
] | nyy477@qq.com |
1c02be31ccbc204a6af0d465965f54c16f3cf3bf | fd2e10285787a4001665aae69c3c28e09a84ee75 | /breakout.py | 46687816234c78a6b1667f801c73be2fbd37b025 | [] | no_license | laflechejonathan/breakout | 967c60d2141bfd15730baaf1308f56d59cefa267 | be72348db2e1450cfb0c83325e4001d09c674bdd | refs/heads/master | 2021-01-18T20:24:01.702072 | 2017-04-05T04:21:45 | 2017-04-05T04:21:45 | 86,960,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,991 | py | import random
import pygame
import math
import geometry
import constants as const
class BrickGrid:
def __init__(self):
empty_horizontal_space = const.SCREEN_WIDTH - (2 + const.NUM_COLUMNS) * const.BRICK_WIDTH
brick_horizontal_space = empty_horizontal_space / const.NUM_COLUMNS
empty_verti... | [
"jlafleche@zenefits.com"
] | jlafleche@zenefits.com |
1e44102c3d0503284237207d931a11eff57d5169 | 11805f3f0ca426ae21b754526578fe6b69c9fd52 | /emotion-analysis-3-master/read_excel/read_oneStu_allWeek.py | 852b464b524bf620e6f7eedd64b3284516bced5e | [] | no_license | chensheng1/NLP_emotion | 106838156224cfc1ab9491df908d92bfdfac2915 | f43760e7493aa4d360dd0c4d0bca8ba100614612 | refs/heads/master | 2023-03-22T15:54:16.107975 | 2021-03-08T15:00:46 | 2021-03-08T15:00:46 | 345,604,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | '''
读取某同学n的课前、课后和每周总结数据
'''
# -*- coding: utf-8 -*-
import xlrd
xlsfile1 = r"课前预习.xls"# 打开课前预习
xlsfile2 = r"课后作业.xls"# 打开课后作业
xlsfile3 = r"每周总结.xls"# 打开每周总结
xlsfile4 = r"实验练习.xls"# 打开实验练习
book1 = xlrd.open_workbook(xlsfile1)#得到Excel文件的book对象,实例化对象
book2 = xlrd.open_workbook(xlsfile2)
book3 = xlrd.open_workbook(xlsfi... | [
"544740618@qq.com"
] | 544740618@qq.com |
07a8d38422d30557d6ed10da8a9d60d2ec141308 | 3c397042e7fa0d7d4fa25cd75f0d10babd9f933f | /lab_8/mysite/dishes/urls.py | 5290d59685f5e3ad3fc3fb854489224b5e6a6100 | [] | no_license | StepanIonov/RIP_lab | f34f2a95fb8ddcfeeb703efd7088320f40ac1fc5 | 0fefaf77d664ed404d791422658a062fc3e9201c | refs/heads/master | 2023-02-20T12:38:33.389360 | 2021-01-18T10:13:24 | 2021-01-18T10:13:24 | 295,768,234 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django.urls import path
from . import views
urlpatterns = [
path('<int:dish_id>/', views.detail, name='detail'),
path('', views.index, name='index'),
] | [
"42943755+StepanIonov@users.noreply.github.com"
] | 42943755+StepanIonov@users.noreply.github.com |
f327af434bdb44b8db26624273fa576fedb584a9 | 371fe9a1fdeb62ad1142b34d732bde06f3ce21a0 | /scripts/compute_path_pair_distances.py | 32499ed5d2cd2871d18a77acc24343b70b16f798 | [] | no_license | maickrau/rdna_resolution | 971f3b7e803565c9432be69b8e2a2852f55b8b79 | aab42310c31e655cbbc318331082fa3436d69075 | refs/heads/master | 2023-03-03T05:14:33.966930 | 2021-02-17T20:45:20 | 2021-02-17T20:45:20 | 339,851,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,426 | py | #!/usr/bin/python
import sys
graphfile = sys.argv[1]
max_diff = int(sys.argv[2])
modulo = int(sys.argv[3])
moduloindex = int(sys.argv[4])
# name \t path from stdin
def revcomp(s):
comp = {'A': 'T', 'T': 'A', 'C': 'G', 'G': 'C'}
return "".join(comp[c] for c in s[::-1])
def pathseq(p):
global nodeseqs
seq_no_h... | [
"m_rautiainen@hotmail.com"
] | m_rautiainen@hotmail.com |
8658832a7dcc4eabcb30779bae2a6408403a2d6a | 3f5e290adefe73d55c4170029629c9f4794920f1 | /rewrite_verify.py | 6362a48d1f9e92fa3daea97e8de31e2f69f66ab9 | [] | no_license | fengmu/mana1 | d318b36294ab17f6ee8d4b4536a5ddad94e0dce5 | 7d64c33580e2fdc2cbd81e17124dec44d1d8858a | refs/heads/master | 2020-12-24T13:28:28.937308 | 2012-12-11T09:30:43 | 2012-12-11T09:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | # -*- coding: utf-8 -*-
'''
#=============================================================================
# FileName: rewrite_verify.py
# Desc:
# Author: solomon
# Email: 253376634@qq.com
# HomePage:
# Version: 0.0.1
# LastChange: 2012-10-28 18:31:19
# History:
#=============... | [
"fengmu1225@qq.com"
] | fengmu1225@qq.com |
1baef92bd7d86cf90bd97918be9c5310d34eab69 | 6ca2b1b16fce00730bc47a5e6d724aad7698a1f4 | /settings.py | 6b962dbdae1cfd07d515a8220fc6f1cfbe6390ea | [] | no_license | eddy-suiyun/02_Alien-invasion | 72ef3801fb1c1f88743e92de75cf52ea94186b0a | 4ba470369f033d788a890a739d0d608842eb8035 | refs/heads/master | 2021-05-25T17:17:26.037632 | 2020-04-12T13:43:17 | 2020-04-12T13:43:17 | 253,839,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | class Settings(object):
"""存储《外星人入侵》的初始化类"""
def __init__(self):
"""初始化游戏的设置"""
# 屏幕设置
self.screen_width = 1200
self.screen_height = 800
self.bg_color = (230,230,230)
# 飞船设置
self.ship_speed_factor = 1.5
# 子弹设置
self.bullet_speed_factor =... | [
"125443673@qq.com"
] | 125443673@qq.com |
823cfd503c40f9c544e77c62fdbcc4bb86ec03d6 | dd28aede0d492d265e27d491eb46be5bda03e26c | /experimento mnist nuevo/experiment.py | 6fdcd91bdd6ac6aaa2e16f69a3c049eb628d7613 | [] | no_license | beeva-ricardoguerrero/Floydhub_experiments | db008ccb75ca8e7a2ff952440c56076adfe69b2a | 015b59b7d798e6c468d09ff5dead45edb108750c | refs/heads/master | 2021-01-01T04:13:25.298975 | 2017-07-13T15:53:30 | 2017-07-13T15:53:30 | 97,140,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,925 | py | import json
import logging
import os
import time
import numpy as np
import tensorflow as tf
from tensorflow.python.saved_model import builder
from tensorflow.python.saved_model import signature_def_utils
from tensorflow.python.saved_model import signature_constants
from tensorflow.python.saved_model import tag_consta... | [
"ricardo.guerrero@beeva.com"
] | ricardo.guerrero@beeva.com |
d7057217c970f3bd51a646a4638bb77b219d723f | e055c9386652a4b2d271e81493f930e2e66515d1 | /Problems/mixedCase/task.py | 27342d93de5c0fe991cf2aa0069eaf621f70e2d2 | [] | no_license | flo62134/hyperskill_python_tic_tac_toe | 0d8e5bf893f754528bc36443598a58c8feec5872 | 36366860be5ec18835b7702bd26e29e81536de0f | refs/heads/master | 2022-08-02T11:26:56.526051 | 2020-05-21T17:45:32 | 2020-05-21T17:45:32 | 265,679,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | lower = input()
words = lower.split()
upper_words = [word.title() for word in words]
upper_words[0] = upper_words[0].lower()
camel = "".join(upper_words)
print(camel)
| [
"florentbrassart31@gmail.com"
] | florentbrassart31@gmail.com |
4e9df8b1a88f0a2c470ad97f303a25e010fa60f9 | 60a93f1c34617bd08f1862ef076dc77f766d37b2 | /thirdParty/bullet3-2.88/docs/pybullet_quickstart_guide/WordpressPreview/BuildMarkdeepUtility.py | 0738cdafd74b4278ae299b75c2dec90554cca285 | [
"MIT",
"Zlib"
] | permissive | dantros/MonaEngine | 4f4fdbd2344f553f9bfd0189a4872a0581022f40 | e3d0048c2fe2dd282b84686f0e31e5741714222b | refs/heads/master | 2023-07-27T10:51:18.565020 | 2021-09-17T00:11:39 | 2021-09-17T00:11:39 | 395,851,979 | 0 | 1 | MIT | 2021-08-15T03:23:15 | 2021-08-14T01:32:20 | null | UTF-8 | Python | false | false | 2,291 | py | import re
if(__name__=="__main__"):
# Assemble the script which embeds the Markdeep page into the preview blog
PreviewBlogPage=open("PreviewBlogPage.htm","rb").read().decode("utf-8");
HeadMatch=re.search("<head(.*?)>(.*?)</head>",PreviewBlogPage,re.DOTALL);
HeadAttributes=HeadMatch.group(1);
FullDo... | [
"byronaaronb@gmail.com"
] | byronaaronb@gmail.com |
17b48235e0f05f20c63ef835371d9913b5d0a9e1 | 2b7f5c15b0d6b90ffd85cb90f9e3d7f9b7a03a9b | /counting_bunnies.py | e9f365726f85f047068181854ad76a87de179b56 | [] | no_license | dpatel698/Google-Foobar | 67fa5943eed33e1aa81ead11d588069647446930 | 434b2232b292b0b2e3d63ba46b948628e15e3261 | refs/heads/master | 2020-12-22T12:34:24.274893 | 2020-01-28T16:42:32 | 2020-01-28T16:42:32 | 236,782,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | def answer(x, y):
# your code here
vertical_sum = 1 + sum(range(y))
if x > 1:
horizontal_sum = sum(range(y + 1, (y + x)))
else:
horizontal_sum = 0
print(vertical_sum)
print(horizontal_sum)
return str(vertical_sum + horizontal_sum)
| [
"dpatel0698@gmail.com"
] | dpatel0698@gmail.com |
582f4dc70b8e50a416444935ec568175df8bd5e6 | c0f5512aa25f8a3ead1933d1faeaa1593716bc6c | /files/Python/10791756-djcasing-4.py | e73ce7d93b288a3a1f8842b1249da4844164fa98 | [] | no_license | harthur/detect-indent | 89cc56d02257fad57f76c32f57091503932ce7a9 | c5764cc72a32722adc9f3667f6565c8529a19557 | refs/heads/master | 2016-09-05T12:58:59.686824 | 2014-09-08T05:42:39 | 2014-09-08T05:42:39 | 18,378,730 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | import string
from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect
def case_insensitive(func, case='lower', code=301):
"""
Django view function decorator which can enforce the case of a URL path by
redirecting to the properly cased URL. This *allows* for case insensitive
matche... | [
"fayearthur@gmail.com"
] | fayearthur@gmail.com |
8bae87091c7930ff91f08ddc1c7770485a685c56 | cb27eabebe1a0b53ff16909f832780203cff063e | /script/script_template.py | 25902ee4cb47ae732d3c541f10776ffe5c8abeb3 | [
"MIT"
] | permissive | yota-p/kaggle_titanic | e31dfc3196d038c61336d2cbd814c76e14ace352 | 36d2c53711482195f519d9280abadf0d6afa9a15 | refs/heads/master | 2023-03-30T10:30:44.790817 | 2021-03-23T15:06:34 | 2021-03-23T15:06:34 | 343,035,079 | 0 | 0 | MIT | 2021-03-23T15:06:35 | 2021-02-28T06:14:06 | Python | UTF-8 | Python | false | false | 427 | py | import os
import gzip
import base64
from pathlib import Path
from typing import Dict
def main():
# this is base64 encoded source code
file_data: Dict = {file_data}
for path, encoded in file_data.items():
print(path)
path = Path(path)
os.makedirs(str(path.parent), exist_ok=True)
... | [
"930713yh@gmail.com"
] | 930713yh@gmail.com |
4853fa85b7e28aec71a8c26dce4015d65e359101 | 401ad378a3c5cf2faaa692680dba29726c7193d5 | /preprocess_data.py | ba74d189f25e56c88448b036e1f9eb406d51dff5 | [] | no_license | thaophung/ASL-recognition-Hololens- | 75293a214dbf067ec799b5b0852dfcca840714b0 | e90c546a6f27838be29e7f173baf685ef090dc92 | refs/heads/master | 2021-09-14T00:56:06.164850 | 2018-05-06T20:30:52 | 2018-05-06T20:30:52 | 113,247,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,202 | py | import numpy as np
import scipy.misc
import os, cv2, random
import shutil
def combine_list_txt(data_path):
trainlisttxt = 'trainlist.txt'
vallisttxt = 'vallist.txt'
#testlisttxt = 'testlist.txt'
trainlist = []
txt_path = os.path.join(data_path, trainlisttxt)
with open(txt_path) as fo:
... | [
"noreply@github.com"
] | thaophung.noreply@github.com |
598aa5789fc89d20614a949df27117f073692147 | b2c780661aec8076a0b6d00bf8ea0d443a117df6 | /Popularity/DCAFPilot/test/utils_t.py | b5af29934995578af40c4def334385a5c2d302eb | [] | no_license | maitdaoud/DMWMAnalytics | 894fa2afb8d83a5275f0abd61b74f4f839150cb0 | fec7ef3e5240973db96ba53179940950002adbd8 | refs/heads/master | 2020-04-11T03:33:43.164136 | 2017-04-01T14:07:42 | 2017-04-01T14:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | #!/usr/bin/env python
#pylint: disable-msg=C0301,C0103
"""
Unit test for StorageManager class
"""
import os
import re
import time
import unittest
from pymongo import MongoClient
from DCAF.utils.utils import popdb_date, ndays
class testStorageManager(unittest.TestCase):
"""
A test class for the StorageManag... | [
"vkuznet@gmail.com"
] | vkuznet@gmail.com |
ad790c2993b23a15711a5f19aa89999275d6fc8c | 32986e2c8aa585699f810534444c9a3ff1e4f269 | /task4_testing.py | 64f2871585898cfc8150f3430f8545e79e0eb39e | [] | no_license | mingYi-ch/aml_task4 | 5d24a3107a8ca00083c9c4b71a06fdfc7eb5947b | 438050dd3f7e09cc34d34f5db65a5ea9b72e8c6d | refs/heads/master | 2022-03-22T19:45:18.707357 | 2019-12-09T14:02:22 | 2019-12-09T14:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | import numpy as np
import biosppy.signals.eeg as eeg
import pandas as pd
def test_eeg(eeg1, eeg2):
# testing plot
x_sample = np.concatenate((eeg1, eeg2), axis = 0)
# transpose to put the signals into column
x_sample = np.transpose(x_sample)
# print theta
# print(x_sample)
# x_sample = np.... | [
"myi@student.ethz.ch"
] | myi@student.ethz.ch |
1df3e72e11e7eb14e23c5cb608c39717d22fb745 | bacd03dbc158458d3766c94655950b2de553089e | /dappx/migrations/0003_remove_userprofileinfo_city.py | f59a90eda0014ffe6786fa06578bc59de6ca5295 | [] | no_license | abhifindatution/django | bdad14b35da3d55a912b37be1d48cc337d30f5b4 | 7ac66fcbc0a6975c23bda6e8f53d176c2dbcae6d | refs/heads/master | 2023-05-03T21:33:44.124392 | 2019-08-04T11:58:53 | 2019-08-04T11:58:53 | 200,459,562 | 0 | 0 | null | 2023-04-21T20:35:32 | 2019-08-04T06:47:26 | CSS | UTF-8 | Python | false | false | 333 | py | # Generated by Django 2.1.1 on 2019-05-14 06:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dappx', '0002_auto_20190510_1323'),
]
operations = [
migrations.RemoveField(
model_name='userprofileinfo',
name='city',
... | [
"rajjo@findatuton.com"
] | rajjo@findatuton.com |
811e650b58eaf4337be5d070b3152062620dfaa4 | 1d1a21b37e1591c5b825299de338d18917715fec | /Mathematics/Data science/Mathmatics/02/inverse_matrix.py | 5531c0cc7924c0fa9e1eb9313e95e425439086b8 | [] | no_license | brunoleej/study_git | 46279c3521f090ebf63ee0e1852aa0b6bed11b01 | 0c5c9e490140144caf1149e2e1d9fe5f68cf6294 | refs/heads/main | 2023-08-19T01:07:42.236110 | 2021-08-29T16:20:59 | 2021-08-29T16:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | import numpy as np
A = np.array([[1,1,0],[0,1,1],[1,1,1]])
print(A)
'''
[[1 1 0]
[0 1 1]
[1 1 1]]
'''
# 역행렬(inverse_matrix 계산)
Ainv = np.linalg.inv(A)
print(Ainv)
'''
[[ 0. -1. 1.]
[ 1. 1. -1.]
[-1. 0. 1.]]
'''
| [
"jk04059@naver.com"
] | jk04059@naver.com |
7d3a565b843d3a511283b8290b2e3e98f9f02a74 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/soisson.py | 2f90d49960b18e683a39c2e7e75ccc653b9bb91e | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 178 | py | ii = [('WilbRLW4.py', 1), ('CarlTFR.py', 6), ('CookGHP2.py', 1), ('KiddJAE.py', 1), ('ClarGE.py', 2), ('BuckWGM.py', 2), ('WadeJEB.py', 1), ('GodwWLN.py', 1), ('BuckWGM2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
cca9f2e5ed6c7cd9fe744913449f05e61d1ed854 | 8a47ab47a101d4b44dd056c92a1763d5fac94f75 | /力扣/简单练习/300-最长上升子序列.py | edecfbee733ea3c1f051716235583aa67c1a5524 | [] | no_license | Clint-cc/Leecode | d5528aa7550a13a5bcf2f3913be2d5db2b5299f3 | 8befe73ab3eca636944800e0be27c179c45e1dbf | refs/heads/master | 2020-09-14T07:35:41.382377 | 2020-07-01T01:27:18 | 2020-07-01T01:27:18 | 223,066,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | # !D:/Code/python
# -*- coding:utf-8 -*-
# @Author : Clint
# @Question : 给定一个无序的整数数组,找到其中最长上升子序列的长度。
def lengthOfLIS(nums):
'''
思路:遍历数组,当前的下一个元素大于当前,count+1,当不大于时比较count和max_count,
最后输出max_count
这题有坑: 输入[10,9,2,5,3,7,101,18],输出4,解释:最长的上升子序列是 [2,3,7,101],它的长度是 4
:param nums:
:return:
... | [
"clint1801@163.com"
] | clint1801@163.com |
201f20209bdbb0451b07c576336b8ce2de92ec95 | 786de89be635eb21295070a6a3452f3a7fe6712c | /DataSummary/tags/V00-00-05/src/cspad.py | 12f8661db596a4ad88019f31c52e224d8b2a0a18 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | import os
import psana
import numpy
import logging
import event_process
import pylab
from mpi4py import MPI
from common import strtype
class cspad(event_process.event_process):
def __init__(self):
self.logger = logging.getLogger(__name__+'.cspad')
self.output = event_process.ev... | [
"justing@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | justing@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
a1be5212f3088beec374525a35b087342ba34213 | f269ca79b405a05a7a5b715b0fb6a416e78ddbea | /process_SimRNA_results.py | 3b932be33b95ca9350a81644b5876fa245427cbb | [] | no_license | fryzjergda/simrna_scripts | ccccc3aa5811d2925aa29e765a30ec4f4add7f93 | f6f81c586046d12d74ed592c7a5bbe9f3eed8178 | refs/heads/master | 2020-05-25T05:27:26.603044 | 2020-05-16T11:14:57 | 2020-05-16T11:14:57 | 187,649,955 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,882 | py | #!/usr/bin/python
#created, Michal Boniecki, for automatic processing results from SimRNA runs, 2015.12.14
#this script prepares processes output data from SimRNA runs
import sys, os, shutil
from glob import glob
if(len(sys.argv) < 2):
print >>sys.stderr, "usage: process_SimRNA_results.py job_id_name"
print ... | [
"twirecki@genesilico.pl"
] | twirecki@genesilico.pl |
44e327bc73b3bedf3e3fae4de740348f8067cb99 | 671a669cc862f68d736a98b3d95bedf96cd7b09e | /Coreference/PDT/pdt_clusterization.py | b66174d38841135639be5bd2405124be4e692b1d | [] | no_license | Jankus1994/Coreference | e258b68c0a75ee3102614220f27c5d163e745c41 | 41b13ce6422ac6c3d139474641e75e502c446162 | refs/heads/master | 2021-01-23T01:55:56.732336 | 2018-05-03T18:06:40 | 2018-05-03T18:06:40 | 85,945,883 | 0 | 1 | null | 2017-03-23T13:08:14 | 2017-03-23T12:15:12 | Python | UTF-8 | Python | false | false | 2,610 | py | # Jan Faryad
# 23. 3. 2017
#
# pdt module to conversion of the coreferennce information from chains to clusters
class PDT_clusterization:
def __init__( self, list_of_corefs, init_cluster_id):
self.list_of_corefs = list_of_corefs
self.list_of_cluster_tuples = []
self.cluster_id ... | [
"noreply@github.com"
] | Jankus1994.noreply@github.com |
3c699961c03db0286e4b397de0a722d189504754 | 30e2a85fc560165a16813b0486a862317c7a486a | /datastruct_algorithm/jan.py | bb5cbcfb654440320b08cce91cc4251879eb8dfd | [] | no_license | muryliang/python_prac | 2f65b6fdb86c3b3a44f0c6452a154cd497eb2d01 | 0301e8f523a2e31e417fd99a968ad8414e9a1e08 | refs/heads/master | 2021-01-21T11:03:48.397178 | 2017-09-18T04:13:27 | 2017-09-18T04:13:27 | 68,801,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | import time
import sys
def perform(a, b, goal, failset, trueset):
"""a is limaL, b is limbL, failset is a list failseting action"""
# time.sleep(1)
# print(a, b)
global lima
global limb
res = False
if a == goal or b == goal or a + b == goal:
return True
if res is False and a > 0... | [
"muryliang@gmail.com"
] | muryliang@gmail.com |
3724941a22eb118782c4c142d7dc6097e8d37e35 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/integer/Schema+Instance/NISTXML-SV-IV-atomic-integer-fractionDigits-1-3.py | 32add0c922d5342c7b50eaabb85bc7ee39adc0d0 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 297 | py | from output.models.nist_data.atomic.integer.schema_instance.nistschema_sv_iv_atomic_integer_fraction_digits_1_xsd.nistschema_sv_iv_atomic_integer_fraction_digits_1 import NistschemaSvIvAtomicIntegerFractionDigits1
obj = NistschemaSvIvAtomicIntegerFractionDigits1(
value=825606520242485152
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
3fb8bf3f113cfb1319ebe26fea72dc1f8a19c78b | c592c565b4f9259933738e7801e100f64227175a | /questions/migrations/0003_question_title.py | f247190d977f18d7fe37040ec80568f25e20ec86 | [] | no_license | ericak11/questions_app | 1eb5d3dbd886d2fa0aaab7080a689b8f8b575934 | 85fecce9f4113841a36518fd4c5e5916ff68e964 | refs/heads/master | 2016-09-06T01:53:48.477642 | 2015-01-05T15:23:21 | 2015-01-05T15:23:21 | 27,886,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('questions', '0002_auto_20141211_1832'),
]
operations = [
migrations.AddField(
model_name='question',
... | [
"kantor.erica@gmail.com"
] | kantor.erica@gmail.com |
976828ea55563b1986da76957c19a1fc536486b2 | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/userscontacts/azext_userscontacts/vendored_sdks/userscontacts/aio/__init__.py | 03db4e735a0c8c4b412b41f6a92f232c27276d81 | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | 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 may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
d4b3c37168303b568f64ff5fef401bc1cc1264b2 | 3400394303380c2510b17b95839dd4095abc55a4 | /src/py310/lesson02/comments.py | a4dca2ef7c776bd871c81c1adcdd13adb12c2fce | [
"MIT"
] | permissive | IBRAR21/py310_sp2021 | daf53b76decf060d72201a3db66f0f7c697876a7 | 584e37b9d96654c1241fc787d157c292301d5bf7 | refs/heads/master | 2023-05-30T16:43:09.614565 | 2021-06-09T21:41:14 | 2021-06-09T21:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | # --------------------------------------------------------------------------------- #
# AQUABUTTON wxPython IMPLEMENTATION
#
# Andrea Gavana, @ 07 October 2008
# Latest Revision: 24 Nov 2011, 22.00 GMT
#
#
# TODO List
#
# 1) Anything to do?
#
#
# For all kind of problems, requests of enhancements and bug reports, pleas... | [
"akmiles@icloud.com"
] | akmiles@icloud.com |
ccc5024e30b508be56f625b5cc2eb06203b0013e | f39d88e77080198681994a65fb0137523e23895c | /module_00.py | 847c34d9966b7b3fbee3d61c7dd2e52d80ffa7ed | [] | no_license | v-mail-81/Project_0 | 536901b1c8e517daa48982005f71a404f714aa7e | 8fcb01c1c6cb15e6502b918de93a23247ac6627b | refs/heads/master | 2022-11-11T19:01:12.419937 | 2020-07-05T14:21:34 | 2020-07-05T14:21:34 | 277,103,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | #!/usr/bin/env python
# coding: utf-8
# In[79]:
'''Загружаем модуль numpy для работы со случайными числами и массивом из них'''
import numpy as np
'''Определяем функцию game_core_v2 с аргументом number (загаданное число), которая будет угадывать число'''
def game_core_v2(number):
'''Первой попыткой предполагаем ... | [
"noreply@github.com"
] | v-mail-81.noreply@github.com |
119da14a29035eb8a5b1c9ba0c64dc7cb316c170 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /nncf/tensorflow/graph/pattern_operations.py | 23435d263c3de7adf57353e47709a005e220e0df | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 3,416 | py | """
Copyright (c) 2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
e5fef46757ac950b98d7bcd278ede4619963d734 | 11baa71016e83145d00f4b35316c77d40c205b6f | /lib/GA.py | ec1dbb10445469fc91ce3a859b60e4f2f8daefdb | [] | no_license | Syndorik/Genetic-Algorithm | 5b61b5fea39e8042c66f669d7b24fbf3b9c8e43e | bb8899cba83489576ef61da1d5284ddea4a9a2a4 | refs/heads/master | 2020-04-25T16:53:02.096595 | 2019-03-10T19:34:36 | 2019-03-10T19:34:36 | 172,927,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,215 | py | import random
import copy
import os
import time
import math
import csv
from Tree import Tree
from TreePop import TreePop
import copy
from joblib import Parallel, delayed
import joblib
"""
try:
from tkinter import *
from tkinter.ttk import *
except Exception as e:
print("[ERROR]: {0}".format(e))
from T... | [
"alexandre.allani@telecom-bretagne.eu"
] | alexandre.allani@telecom-bretagne.eu |
d081c90ee2be7a970eccc901bbe411b6143cc227 | bb98adfcca0865092761eb3ce95da6d3e016bc42 | /wisdomgate/settings.py | 73b2b8a4fe8ca2927991df9382aeb125f1648ec8 | [] | no_license | iskenderserkan/wisdomgate | e2332afa3786e6440a046e65bdad4d5b48dd5cd9 | 258041aeefac7ae654726271fc1b1bc409fc7ddd | refs/heads/master | 2021-01-25T14:56:45.081826 | 2018-03-04T00:24:59 | 2018-03-04T00:24:59 | 123,740,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | """
Django settings for wisdomgate project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"iskenderserkan@gmail.com"
] | iskenderserkan@gmail.com |
766d894a674bb679015ec516a8fdc1796ea7ebc7 | 46ae325c342957bdeddf9e92b2fbb97f769237f6 | /Galois Counter Mode/Correc_TP1_AES.py | 7a0dc8a2fb088d25a98f3ae96e1a4599db014564 | [] | no_license | DenizSungurtekin/Cryptography-and-security | 557b029bb0a8dabc2b42176916da317478085f6a | 4050d5be02e7186ada87084008f60f515970c073 | refs/heads/main | 2023-03-17T14:56:18.055721 | 2021-03-05T12:10:28 | 2021-03-05T12:10:28 | 344,783,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,154 | py | # Here's the S-boxes as tuples. You can change their form if you prefer to
# work with lists or other structures.
S_box = (
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76,
0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF... | [
"noreply@github.com"
] | DenizSungurtekin.noreply@github.com |
bb8c7aede0462de9cd8180f39a0e1b02e5216735 | d3c4848338fe8a36a307c955e8a96f32fc880019 | /tests/test_selenium_common.py | f430bf2ca7c458bc29d650063b205594ee3e569e | [
"MIT"
] | permissive | panarahc/product-database | d111555f5f801c18a7a46c7fd3a2173149d8acd3 | af48bc3e580e3bd7b499990bb7c51aabed242f71 | refs/heads/master | 2023-04-19T16:09:08.115666 | 2021-01-17T22:23:45 | 2021-01-17T22:23:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,371 | py | """
Test suite for the selenium test cases
"""
import os
import pytest
import time
import re
from django.urls import reverse
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.select import Select
from selenium.webdriver.support import expected_co... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
7334b51d4d6dd97c7c79768d9c96ddcd4c916b09 | 4917860c0be0b281af29ee0f1f92dcddfffb3a6b | /faust_proj/wsgi.py | 7dc2c9726a9acaef51aef894bb4268df2d272b75 | [] | no_license | Dineshs91/faust-example | fdb8238e8464eb971b8d65025efe83dd25151c37 | 99e19260a0ab591d91bb40ebea1b1bfc901ca1fd | refs/heads/master | 2020-04-10T16:08:24.219541 | 2018-12-14T08:58:21 | 2018-12-14T08:58:21 | 161,134,463 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for faust_proj project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"dineshpy07@gmail.com"
] | dineshpy07@gmail.com |
e5514210e89b80409333bef0bf14804be6c84f11 | 4546a96d55a2cc3736dbf668c45677b572735f08 | /get_focused_output.sh | 31c299ae5e1814901c72c08051bb5e66b3f4ee00 | [] | no_license | teunissenstefan/scripts | eea268faee617acd80f8700b47e47e50032a0497 | efab9151f4e93e616ec9846e841629b329be9596 | refs/heads/master | 2022-09-11T17:45:30.285304 | 2022-08-09T07:17:44 | 2022-08-09T07:17:44 | 244,189,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | sh | #!/usr/bin/env python3
import subprocess
import json
try:
outputs = subprocess.check_output(["swaymsg", "-t", "get_outputs"])
outputs = json.loads(outputs.decode('utf-8').replace("'", '"'))
for idx, output in enumerate(outputs):
if output["focused"]:
print(idx + 1)
except:
print(0)
| [
"stefanteunissen1@gmail.com"
] | stefanteunissen1@gmail.com |
ec356e53c4d259f06b48074389ec9b57fb66f575 | 199522cb43b4e2c7e3bf034a0e604794258562b1 | /0x03-python-data_structures/7-add_tuple.py | 96d715528f3d23cdf3d725a9838247a97a8e4635 | [] | no_license | jormao/holbertonschool-higher_level_programming | a0fd92f2332f678e6fe496057c04f2995d24a4ac | 360b3a7294e9e0eadcadb57d4c48c22369c05111 | refs/heads/master | 2020-09-29T01:36:20.094209 | 2020-05-15T03:27:06 | 2020-05-15T03:27:06 | 226,915,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!/usr/bin/python3
def add_tuple(tuple_a=(), tuple_b=()):
if len(tuple_a) != 2:
if len(tuple_a) == 1:
tuple_a = (tuple_a[0], 0)
if len(tuple_a) == 0:
tuple_a = (0, 0)
if len(tuple_b) != 2:
if len(tuple_b) == 1:
tuple_b = (tuple_b[0], 0)
if len(... | [
"jormao@gmail.com"
] | jormao@gmail.com |
c8f2954d5848b31990dc4b5336d0ef62f6f1881e | 1bf03446a30dbc51c0249c41a7b457581725dfed | /client.py | 23473e0b776bb2dc84bf59cf407825c12e3dbbe1 | [] | no_license | ichbinkenny/redefined-destruction-networking | 567ca8ee643be53154d7f1072c95c70ca375b078 | fc92f4957e3734226324dd1678d0c9306c80771c | refs/heads/master | 2023-01-31T12:35:11.238835 | 2020-12-09T21:48:02 | 2020-12-09T21:48:02 | 273,066,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,725 | py | import socket
import threading
import sys
import select
client_socket = None
address = "asimplenerd.com"#"192.168.72.1" # This will be the server's address on the local network. It is imperative that the client is already on the hostapd network!
default_port = 1287
id = -1
end_flag = True
close_message = "PLZCLOSENOW... | [
"kennethdhunter@gmail.com"
] | kennethdhunter@gmail.com |
31a6c319b7c69134890d2911c524ff347b6efc76 | 4109762775f6a465639550b6de36b50450a209ad | /strategy/blackjack/playercheatstrategy.py | 52da55b106d966347e46767a699c600de46c6a4c | [] | no_license | samuelcstewart/oosd | 7f8fb79f6cb5ea7a211d5f0ea6278a1eb475a534 | 5f15cdd34ec3db0a4fcf01be5e2cb00b7f6e221f | refs/heads/master | 2020-04-15T18:37:10.148250 | 2015-05-14T08:51:20 | 2015-05-14T08:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import abc
from strategy import Strategy
class PlayerCheatStrategy(Strategy):
""" Basic cheat strat, show the next card in deck """
def hit(self):
print("Next card: " + str(self.game_state.deck.cards[-1]))
return raw_input("h to hit or s to stand: ") == 'h'
| [
"stewasc3@student.op.ac.nz"
] | stewasc3@student.op.ac.nz |
5e3d18247eb1b3e3f1789add50668361ee4ebffd | f894c0969d30437b27ef4d0d81a99660bab10716 | /learn_python/Day1/assignment1/quickpython.py | ee38744c52832b0503f6d108f472fea9ba41d649 | [] | no_license | AnandSankarR/Data_BootCamp_2018 | 364357e73a47e60990fd43dd37f427823f0b40ab | c5e4f818722864f8f56df5387a9f9cbe849ae3e4 | refs/heads/master | 2021-05-03T13:01:31.131736 | 2018-02-22T00:56:25 | 2018-02-22T00:56:25 | 120,506,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | print("This File Works")
| [
"anandsankar.r@gmail.com"
] | anandsankar.r@gmail.com |
1a8275ca53430b7a7de208eaccbad36efa3e3dac | 23e9b76b5702b364bba2e4565a1ab1b6eb5d1d21 | /4. Project/face_tracking/face_tracker.py | e3316b4b9d8cd1f41be0010e42835409afee7f4c | [
"MIT"
] | permissive | gjustin40/Pytorch-Cookbook | 5b346598019e540b05019e3fa465e9d1132c914a | 52a7f4e8c053c775d8c6c90ab0926540b2e1f7cf | refs/heads/master | 2023-02-27T19:42:49.179167 | 2023-02-14T06:22:13 | 2023-02-14T06:22:13 | 148,883,451 | 0 | 1 | MIT | 2022-12-09T05:49:21 | 2018-09-15T08:20:16 | Jupyter Notebook | UTF-8 | Python | false | false | 2,418 | py | from imutils.video import VideoStream, FPS
from centroidtracker import CentroidTracker
import numpy as np
import argparse
import imutils
import time
import cv2
prototxt = 'deploy.prototxt'
model = 'res10_300x300_ssd_iter_140000.caffemodel'
# model = 'opencv_face_detector.caffemodel'
confidence = 0.8
ct = CentroidTra... | [
"gjustin@naver.com"
] | gjustin@naver.com |
821605a24dc98e2f6d96ac6410769972c52bcdd4 | fa5fb155ba4bc5f4335859b8a93b73be8c1a2abb | /tt.py | 7cb12887e5f30f3d9851b55e6de33ba0bb50c54c | [] | no_license | wujifan/test_allure | c9703a58d344bbb8825186f8c360595a5486506a | bf5cbb71b7a0781cba8d3a0da766592d680e8dc3 | refs/heads/master | 2023-03-31T09:44:10.391654 | 2021-04-07T09:26:44 | 2021-04-07T09:26:44 | 355,466,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from base.init__driver import ini_data
a = ini_data('test_data', ['name', 'exp_value']) | [
"wujifan4811@163.com"
] | wujifan4811@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.