blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8d61d262ed2d32d78b76380c88292faa89d7ea96 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_0859_test.py | e3bbec9126ee000bf0fd91d4a9fcfd15bf56912b | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 1,291 | py | #coding:utf-8
"""
ID: issue-1249
ISSUE: 1249
TITLE: Sorting is allowed for blobs and arrays
DESCRIPTION:
NOTES:
For now we test that such operations raise an exception, as we restored the legacy
behavior until we're able to implement DISTINCT for blobs properly,
JIRA: CORE-859
FBTEST: ... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
5d1b818b61648ef3d51856d0d9fcc4c3ae29414c | 1274ef8843cae5488c2a1ea98293f5467b90963a | /examples/developer/switch.py | 95dec183c9275106cf524ee1ebd5643109038621 | [
"BSD-2-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | carrilloec12/tulip-control | a9854758f78bd4b008fe8358733a4f8bebb42ffb | 8955f63d1d1bbd3a96f469718dde49454b275fd5 | refs/heads/master | 2021-01-12T12:22:48.115000 | 2016-09-18T06:37:33 | 2016-09-18T06:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | """
Simple example with uncontrolled switching, for debugging
6 cell robot example.
+---+---+---+
| 3 | 4 | 5 |
+---+---+---+
| 0 | 1 | 2 |
+---+---+---+
"""
from tulip import spec, synth, transys
import numpy as np
from scipy import sparse as sp
sys_swe = transys.FTS()
sys_swe.env_actions.a... | [
"jfilippidis@gmail.com"
] | jfilippidis@gmail.com |
eef1da102ec3c444d29d4f92f426ecbc184f2898 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/core/2015/12/hue.py | 77672c9aaf56db21fbbfaa6f7afeb2d80e53470e | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 7,899 | py | """
homeassistant.components.light.hue
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Support for Hue lights.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/light.hue/
"""
import json
import logging
import os
import socket
import random
from datetime import timedelt... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
2479ad9224634b64ffc8affb35faf265ee886621 | 69ba30d3ad71a03f4d7ed9316a626e8c665fda9f | /getStatuses.py | aad86562a72d728594812b7d7cbe3459c273ed3e | [] | no_license | roryg/babbot | 82c3b1294346a867e64282452cb350271954ae45 | 9e9ea40bc3aa6011e6721b5435d87f0127c9aa72 | refs/heads/master | 2020-12-26T04:56:28.481169 | 2016-08-09T22:02:16 | 2016-08-09T22:02:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | #https://gist.github.com/yanofsky/5436496
import tweepy, config, chainer, redis, ast, random, time, compose_tweet,config
r = config.r
api = config.api
def getAllUserTwits(user_name):
twitlist = []
print user_name
for status in tweepy.Cursor(api.user_timeline, screen_name=user_name).items():
twitlist.append(statu... | [
"jkerxhallik@yec.co"
] | jkerxhallik@yec.co |
056a5a7fd69c9b3926985847bd9c38c278137345 | c885e1ca19bb24f167f5284c020673246a0fc260 | /synthesis/experiments/cnf_batch.py | f60be95380335a8023939af372da650722d5b95b | [] | no_license | suomela/counting | 6c800a2c9c56c44d0b8aac8117c79c78e6b92d8b | 5a9f96f6cabdbb54d2cd24da014aff31f4baf05d | refs/heads/master | 2022-02-25T23:07:03.078165 | 2022-01-27T19:08:49 | 2022-01-27T19:08:49 | 9,413,189 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #! /usr/bin/env python
import os.path
import sys
PATH = sys.argv[1]
SOLVER = sys.argv[5]
SEED = int(sys.argv[4])
RANDOM_SEEDS = int(sys.argv[3])
PREFIX_PATH = sys.argv[2]
from batch import *
def cmd_out(**params):
prefix = "{path}/n{nodes}-s{states}-f{faulty}-t{time}-{cyclicity}-{id}-seed{seed}".format(path=PRE... | [
"jukka.suomela@iki.fi"
] | jukka.suomela@iki.fi |
e5b3b507e9fa57753b9a2e6d8e08d05cc8cbe038 | ce20062fedae07a1f0ea00a7e5ab0b86e05ebe69 | /pytests_stale/cbas/cbas_sql++_composability.py | 0c58a774b01ed031c02d263c49c8a3c878c82beb | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | AnithaKuberan/TAF | 256f9ee850275be5461e4d19a671c9dd19edb9f5 | 9824c6a4f1680c320ab065e23c720ffa92d530d9 | refs/heads/master | 2022-03-18T16:17:08.876692 | 2022-03-03T09:57:52 | 2022-03-03T09:57:52 | 206,016,123 | 0 | 0 | Apache-2.0 | 2019-09-03T07:30:18 | 2019-09-03T07:30:18 | null | UTF-8 | Python | false | false | 3,323 | py | '''
Created on Mar 8, 2018
@author: riteshagarwal
'''
'''
Created on Jan 4, 2018
@author: riteshagarwal
'''
import json
import os
import time
from cbas_base import CBASBaseTest, TestInputSingleton
from lib.memcached.helper.data_helper import MemcachedClientHelper
from membase.api.rest_client import RestConnection
... | [
"ritesh.agarwal@couchbase.com"
] | ritesh.agarwal@couchbase.com |
fdef4554b0cee947efb58bf541ec62fdb5d4ef16 | 4915930902e48f8e008495b18625c4b40ef5d826 | /UCG/Docker/data/node_modules/websocket/build/config.gypi | f2827ce74fd97a84c7bd55aeb9425fefbcf542a9 | [
"Apache-2.0"
] | permissive | koernigo/UCG-Repo | 63d0cdb32797f6be3855cdabc1bb8e4cb3af897a | 9612fbccaa73d42b3ae3306ec405e106f8440085 | refs/heads/master | 2021-01-21T11:50:07.067914 | 2017-08-22T15:54:25 | 2017-08-22T15:54:25 | 102,026,072 | 0 | 1 | null | 2017-08-31T17:22:16 | 2017-08-31T17:22:16 | null | UTF-8 | Python | false | false | 4,237 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"dennisnoto@densmac.local"
] | dennisnoto@densmac.local |
d6a628d30cd50796fad7346cedd8050cae518409 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW03_20210706185704.py | 4de89390673cdc7ea96c6258834fddd35d0d6aae | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,061 | py | """
Georgia Institute of Technology - CS1301
HW03 - Strings and Lists
Collaboration Statement:
"""
#########################################
"""
Function Name: movieNight()
Parameters: subtitle (str)
Returns: fixed subtitle (str)
"""
#########################################
########## WRITE FUNCTIO... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
d210ff2c5d3812548fbcc936dfff6bce4bf710c4 | 9b1dba698816570227c71ee41551f8ad7d753078 | /getdatfit.py | 39e8bb675f057041cb3b3c813a4724775e2c2dfe | [] | no_license | zyjdxtc/handy | 41d28be0e33eefffc1e77a8b81da107245ef61ee | c722846e615256d2daf879f9f5631061adb44e65 | refs/heads/master | 2021-01-23T17:43:56.564769 | 2017-09-07T19:32:00 | 2017-09-07T19:32:00 | 102,777,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | #get data from different folders and output data and fit and plot
import numpy as np
import string,sys,re
import matplotlib.pyplot as pl
fname =[]
c=[]
E=[]
if fname==[]: # read from log file
logname=sys.argv[1]
f=open(logname,'r')
lines=f.readlines()
else: logname= 'cafm+1coarse'
if string.find(logname,'log... | [
"zyjdxtc@hotmail.com"
] | zyjdxtc@hotmail.com |
56e9cd2ef098d6c75627bc1db7f0067c18b5fae2 | 812aaee8f30b4303d3ee99a9fea4b34db91195c4 | /lights_out/odd_numbers.py | afa8ff7bc114dd0ed80bb58740e7075119c4d675 | [] | no_license | OndrejZapletal/CodeEval | 4754b5a4af35d61ffc70682fdeb62d4291fb4512 | 174f9a82f6269b48cb4477d9d1572d1129e185e8 | refs/heads/master | 2021-01-17T08:12:05.298218 | 2017-01-03T04:23:44 | 2017-01-03T04:23:44 | 63,171,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | for i in range(100):
if i % 2:
print(str(i))
| [
"Ondrej.Zapletal@honeywell.com"
] | Ondrej.Zapletal@honeywell.com |
3ecf76dc590fa4d71e44167e7e5a8394f6b1dfca | 879e448954035ebad671cffe0ec999b6942fc227 | /model/model.py | d40661a34fc7a2a81f42f32ab522b7cfba15c89e | [] | no_license | namkhanhtran/dycer | 2456523f9f3adfebf3dd517926596fb0c07316dc | 35b719542c27f9015c643290e84a288f658ddf81 | refs/heads/master | 2021-01-10T06:52:49.169474 | 2016-12-21T16:06:30 | 2016-12-21T16:06:30 | 44,737,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Context(object):
"""
This class contains tuple (text,date) representing
for context part in the query
"""
def __init__(self, text=None, date=None):
self.text = text
self.date = date
class Query(object):
"""
The implementa... | [
"khanhtn09@gmail.com"
] | khanhtn09@gmail.com |
6ffb5a7913c10d585f3deb2048cc818c0cfc1870 | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/117c19ce-1596.py | c48b541558f6dace7b69689c04f13acc0ba485e2 | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
# FE5.5
# http://www.wooyun.org/bugs/wooyun-2010-086697
def assign(service, arg):
if service == "yongyou_fe":
return True, arg
def audit(arg):
url = arg + '/common/treeXml.jsp?type=sort&lx=3&code=1%27'
_, head, body, _, _ = curl.curl(url)... | [
"yudekui@wsmtec.com"
] | yudekui@wsmtec.com |
ccd3c5730df4c2b86354fd83cb872c41896d41c4 | 9ec3f01304e4cc2e07c9fdda6cb3089954579315 | /1_crate_files_from_table/generate_folders.py | a0284396841dcae28579112daa7d60b07dbda76a | [
"MIT"
] | permissive | andreipit/ds_petprojects | a9209c061adc0ad0dba02d7c32ceab8088e5c9a4 | 6d5d50fcbb08dc8a2345084da8c4fdff4a71f922 | refs/heads/master | 2020-04-20T19:01:44.531960 | 2019-02-04T08:14:24 | 2019-02-04T08:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import pandas as pd
import re
import os
ROOT_FOLDER = 'folders'
FOLDER_LIST = 'folders_list.txt' # first row must be "name"
def clean_symbols(df, column):
df[column] = df[column].str.replace(' ', '_')
df[column] = df[column].str.replace('\\', '_ibackslash_')
df[column] = df[column].str.replace... | [
"andrei.pit@icloud.com"
] | andrei.pit@icloud.com |
34d2fc4a840a02f8646dcc1a23a0e36187588c06 | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /longest_common_subsequence.py | aa5fed409ca1f399f6f93be3e79b73ae04292dfd | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | #longest common subsequence kata
#https://www.codewars.com/kata/52756e5ad454534f220001ef
def lcs(x, y):
x = list(filter(lambda x1: x1 in y,x))
y = list(filter(lambda x1: x1 in x,y))
if [] in (x,y):
return ''
elif x == y:
return ''.join(x)
else:
both = [x, y]
lens = [... | [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
db797ca06a1ba5f4a1debd93038ccf70dffd3483 | cbd2db1d4812ec17ae89b1e7f9109060758cb608 | /python_exercises/4_stringFun.py | 904971f484b2f6e58c8622a476dc272bf1342f76 | [] | no_license | lokeshV89/pythonPrac | 6f3e15ad2e5cbb48d3f0edb0e476eb9a0e7ace6d | d31ce1eb078f6d5d10409ee13aaed4c3b25c6b40 | refs/heads/master | 2023-03-10T17:51:08.475782 | 2021-02-28T19:30:29 | 2021-02-28T19:30:29 | 343,191,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #Question 4: Given a string and an int n, remove characters from a string starting from zero up to n and return a new string
def steFun(a,b):
print(a[b:])
a = input('Enter the string\n :')
b = int(input('enter the number after which char are required\n :'))
if(len(a)<b):
print('digit value is greater then to... | [
"lokesh930404@gmail.com"
] | lokesh930404@gmail.com |
fda1e8e1d40a7e3ed27062167cabed12d78af0c5 | 9c364469b025ded627d2ed04da3107be184dbb98 | /video_call/consumers.py | 5fc3733b4d0fa17d4d8ce2313430d35224e0bd36 | [] | no_license | diya-gupta29/Microsoft-Teams-Clone | 09f960bf76cc31f0d19e452e0592e0df2d1bd0ed | 916e149bcf1ab35e3642ed5a2a456f7bb1fa8ace | refs/heads/master | 2023-06-12T02:44:36.631742 | 2021-07-13T15:02:32 | 2021-07-13T15:02:32 | 384,244,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | from channels.generic.websocket import AsyncWebsocketConsumer
import json
from channels.db import database_sync_to_async
from createTeams.models import Team_Messages, Organization
from django.contrib.auth import get_user_model
User = get_user_model()
class ChatConsumer(AsyncWebsocketConsumer):
# used to fetch pre... | [
"goyaldiya55@gmail.com"
] | goyaldiya55@gmail.com |
4442650d2b0ac9876cbe16dfefbd8da9b62c12e5 | 089c1795b0ea346e644289113e6d645f929649de | /extraResources/electron-backend/utils/toc/get_toc_page_number.py | 3754ba9c6f50b2570b465043401ddeb7234dc2f8 | [
"MIT"
] | permissive | vilaj46/ad1-ad2-briefs | 954054c5a212fd3bc541e78a2f60b1b36138a6d7 | 8bd5de28315a0525b28adb4cf8f1a7d22eefef25 | refs/heads/master | 2023-07-20T02:10:53.864916 | 2021-08-31T15:45:28 | 2021-08-31T15:45:28 | 297,172,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from classes.Table_Of_Contents import get_my_toc
from classes.Brief import get_my_brief
def get_toc_page_number():
BRIEF = get_my_brief()
original_text = BRIEF.data['originalText']
page_number = False
tables = ['TABLE OF CONTENTS', 'Table of Contents', 'TABLES OF CONTENT',
'Tables of Con... | [
"vilaj46@gmail.com"
] | vilaj46@gmail.com |
486d36e356dd99a8e56fcbb96d04a611f43c5a64 | dfe4e85d147d4b2b4a20690a7005c3643f722d42 | /accounts/views.py | 84cf77d7137880d4df8b4c5000af8ecc34e07464 | [] | no_license | shouvik0013/django_blog | 227c737a0c224b4957d97b0b7114757a3d44425f | dee3a5ebe3b5b98847755224f592ac65bfe68153 | refs/heads/master | 2023-03-10T09:59:24.028038 | 2021-02-26T16:25:48 | 2021-02-26T16:25:48 | 342,628,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
class SignUpView(generic.CreateView):
form_class = UserCreationForm
success_url = reverse_lazy('login')
template_name = 'signup.html'
| [
"shouvik0013@gmail.com"
] | shouvik0013@gmail.com |
17070778c54bd5d2641573679ef5ab4417c63cc2 | 91d528f9ff1fc16823fa79992accb38b4e0e0820 | /Assignments/beautifulSoupTuts/bs_app/bs_xml_tut1.py | ca6413f502dc20b1ef270b40143ce6a556c74cf6 | [] | no_license | Naba-Jeet/Python_Tutorials | 3fdae11607d8b0556b3c328c0392ce17bdfa9d37 | 69b864a8ebc35cae75ef0e93eedd79b8f550ccc4 | refs/heads/master | 2020-03-09T02:35:57.063918 | 2018-06-30T13:53:50 | 2018-06-30T13:53:50 | 128,543,599 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | import bs4 as bs
import urllib.request
source = urllib.request.urlopen('https://pythonprogramming.net/sitemap.xml').read()
soup = bs.BeautifulSoup(source,'xml')
for url in soup.find_all('loc'):
print(url.text)
| [
"nabajeet.dhar@parisdatasense.com"
] | nabajeet.dhar@parisdatasense.com |
64d523584db28759581532d7ae93564893bf16c0 | 33e6817c2c3be441f2ebb9e8c32ccffddb39d2b8 | /drive/drivechanges.py | 30f504f6a271f2c5e65d5d1b9c60345b06b5f470 | [] | no_license | valerinistor/gdrive | a4ea56016fb3bb48e234e2f2c18fe69ff1816d80 | 505af32fb15c4c4866d4bbea07ac1c0b9fb9b455 | refs/heads/master | 2021-01-19T05:28:57.816068 | 2014-07-09T07:31:03 | 2014-07-09T07:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | from apiclient import errors
import drive
import logging
import threading
import time
import sys
import traceback
import os
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
class DriveChanges (threading.Thread):
def __init__(self, drive):
threading.Thread.__init__(self)
... | [
"nistor.valeri@gmail.com"
] | nistor.valeri@gmail.com |
e6d62563ce6406d80fb575cd4e0f9c6c639a414d | ff74f03290c628955abd4720305b1005249f9369 | /lib/bin/flask | 3b4dfdcf6deea6a16551baf7833ad4f45e01863f | [] | no_license | bopopescu/facerec-1 | a7ea6912bfaf01da437cee890dc1553edcbd7f47 | 14a847aac29396d4f03d350f686c6e290c59f255 | refs/heads/master | 2021-09-22T09:23:50.060200 | 2018-09-06T22:22:16 | 2018-09-06T22:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/Users/Clemsut/Desktop/facerec/facerec/env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"clemsut@umich.edu"
] | clemsut@umich.edu | |
81d69f7bd726f121d762c3abeac1eff78604ae43 | 02880f889c9f12a50c8282ff31bc26794102c15c | /LAB07/phonelab/phonestrings.py | 6248849703d0a2df7d45922ab930ea33810360ae | [] | no_license | kai-ca/Kai-Python-works | 7972ecfb5532c1d08d9725268439694daa4b23d1 | 1e8a8605aca8f645f59fe6571440e3e91b3b796a | refs/heads/master | 2016-09-05T23:12:51.085748 | 2015-04-08T03:31:54 | 2015-04-08T03:31:54 | 33,576,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """ We convert dotted phone numbers like 415.123.4567 or
YOU.GOT.MILK to phone numbers in standard format.
>>> phone('YOU.GOT.M1LK')
'(968) 468-6155'
See the test files for detailed examples.
"""
from phoneletters import letter2digit, string2digits
DOT = '.'
def phone2string(s):
"""
>>> phone... | [
"kaica05@gmail.com"
] | kaica05@gmail.com |
6216bc193c79624f39dd031605b1011adaf3f9d8 | 3303c5be3c53cab6117156c5ff74d2cb4e93f2ec | /double_robot_project/build/aubo_melodic/aubo_i10_moveit_config/catkin_generated/pkg.develspace.context.pc.py | 6a742c4746e483a4f543bb03b48f54a53abc65fd | [
"Apache-2.0"
] | permissive | Xray0302/dual_arm_project | 5e76a5b627cffbd5b25767d1e76b0c94be288516 | 34fed790f5b00411f4f5125c3197655eebce2db5 | refs/heads/master | 2023-04-15T08:05:04.739617 | 2021-12-06T17:10:15 | 2021-12-06T17:10:15 | 431,094,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "aubo_i10_moveit_config"
PROJECT_SPACE... | [
"xurui32@163.com"
] | xurui32@163.com |
09684d74130fbd8df5875c37f09b9616157bc2d3 | 180306a3f33fa8781027a0a749b10623f8f3257b | /settingWinXPConsoleCodec.py | 36b8645003add968337cf85db39fbbfe1625d7fe | [] | no_license | ClarkOh/MyWork | a28f8eee0427d22df2e1cc533b6c6399f0499fa2 | 830fe9be94d611e870e1164711cfbacecdbb361f | refs/heads/master | 2021-01-10T20:56:22.424958 | 2012-10-24T10:18:18 | 2012-10-24T10:18:18 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,078 | py | # -*- coding: UTF-8 -*-
import codecs, sys, win32console
reload(sys)
sys.setdefaultencoding('utf-8')
print sys.getdefaultencoding()
if sys.platform == 'win32':
try:
import win32console
except:
print "Python Win32 Extensions module is required.\n You can download it from https://sourceforge.... | [
"jinwon.clark.oh@gmail.com"
] | jinwon.clark.oh@gmail.com |
1cdd33dbe3aad9a248601971fe1b17cb520dacc5 | 184bcebffe284a567ee9d43f734c228b94a7744a | /day8/day8_2.py | 6e1109f1bf315e19221b14a8a5210489a628e639 | [] | no_license | MaChimal/AdventOfCode2020 | c82bee65201b0973226fba71f75715e3a9ea01dc | 884710b41d4388dfdd20cdc7bd09c0747dc1d8bf | refs/heads/main | 2023-01-24T07:52:09.599218 | 2020-12-10T06:37:26 | 2020-12-10T06:37:26 | 317,967,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | ### Day 8: Handheld Halting ###
## Part 2
instructions = []
for x in open('day8.txt'):
ins, val = x.split()
val = int(val)
instructions.append((ins, val))
def acc(instructions):
repeat = False
i = 0
accumulator = i
ran = set()
while i < len(instructions):
... | [
"mariochimal00aa@gmail.com"
] | mariochimal00aa@gmail.com |
dd8416e66412c051ed2556fe3b09af4ceeb4f53f | 7be3a604e29736cd61a2f3512a1686e4e59d3ad8 | /Pysense/main.py | 0a22568d345d299205bf65a91e197879ca7ab567 | [] | no_license | loidurand/Beia | aa06b615dff5ccd1096c09f3924b9d79d504af2f | 04d914fe2feca979e097200759bdf54069ec68fc | refs/heads/master | 2020-03-25T20:40:03.827344 | 2018-08-17T10:45:54 | 2018-08-17T10:45:54 | 144,140,411 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | from network import WLAN
from mqtt import MQTTClient
import machine
# from machine import Pin, Timer
import ujson
import time
# import gc
import ubinascii
# from deepsleep import DeepSleep
# import deepsleep
from pysense import Pysense
from LIS2HH12 import LIS2HH12
from SI7006A20 import SI7006A20
from LTR3... | [
"noreply@github.com"
] | noreply@github.com |
8afa6dac6217b14b054fc45173c15ab3db916056 | 038ab87e58aaa8fe73cdfabb36fd6189955b324b | /scraping/pdf2txt.py | a8ef077000e58a961d9b628c1557ffe4783afbb4 | [] | no_license | Oleg-295/InfluencingCogSci | b83ed09b2db58b152249f213bc32b45c6c5fd075 | f955090f4863584dc3ec5750af5fbc1bebcc1edf | refs/heads/master | 2022-09-22T01:39:58.795033 | 2020-05-30T21:43:20 | 2020-05-30T21:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,600 | py | import sys
# if there are no conflicting packages in the default Python Libs =>
sys.path.append("/Users/loey/Desktop/Research/InfluencingCogSci/pdfminer.six/pdfminer")
"""A command line tool for extracting text and images from PDF and output it to plain text, html, xml or tags."""
import argparse
import logging
import ... | [
"loey@ucsd.edu"
] | loey@ucsd.edu |
ed530119e7417142f6eadadd59dea9e964ffb5dd | 535f6b7a0635233dead58a4d8ef203b32c43ff2a | /实验/AI2019_SA19225404_吴语港_Lab4_TF1.x/量化个人教学/假量化/generate.py | 0d79b3a5b26dbcb9fe2aa08daee608ec403dafc4 | [] | no_license | jessenmeng/USTC_SSE_AI | 6cff7c6a1671a4e503727eea4ef9b455d41b166d | fa7891d69edfa719b509d1af894f7b6aa23e0b7e | refs/heads/master | 2022-12-25T19:32:39.320723 | 2020-10-10T06:08:19 | 2020-10-10T06:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,053 | py | from captcha.image import ImageCaptcha # pip install captcha
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import random
import cv2
#生成字符对应的验证码
class generateCaptcha():
alphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
... | [
"321699849@qq.com"
] | 321699849@qq.com |
253405fae39c21a64aacf4a9451678e96a7f1e5f | 4a89a81e726a01919360191d3b5b59c75e4e4d2b | /client2.py | f40d3a2cb56dd0ae5b549831d8865dd6c5ca539c | [] | no_license | machanit/Chat-Room-In-python | bd25037a02ee31e6ce224a384a8fb6974d6b136c | cd37e35ef25bfc0be51319fe44529f04a96b47b5 | refs/heads/master | 2020-03-11T18:00:57.616977 | 2018-04-19T05:40:34 | 2018-04-19T05:40:34 | 130,164,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | from socket import AF_INET, socket, SOCK_STREAM
from threading import Thread
import tkinter
def receive():
"""Handles receiving of messages."""
while True:
try:
msg = client_socket.recv(BUFSIZ)
msg_list.insert(tkinter.END, msg)
except OSError: # Possibly client has lef... | [
"noreply@github.com"
] | noreply@github.com |
56f4aa1fac68ae607b647d5e6fbc8b7e2273b221 | 393a393bb593ec5813aa16a96384a62128eed643 | /ocr/src/processor/utility/common.py | a2e4d435f20872df95db8efa7de86379206bf01a | [] | no_license | normanyahq/kejinyan | 4b0d40559b0f6b715107aa38fe800539ba485f27 | 486403fcf393077fefb441cb64c217a2289aaf3e | refs/heads/master | 2023-06-24T13:43:52.740419 | 2017-10-09T04:29:50 | 2017-10-09T04:29:50 | 84,788,246 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import random
import datetime
import string
import time
def getSquareDist(p1, p2):
return (int(p1[0])-int(p2[0])) ** 2 + (int(p1[1])-int(p2[1]))**2
def generateFileName():
return getToken() + ".png"
def getToken():
return datetime.datetime.now().strftime("%Y%m%d%H%M%S") \
+ "".join([random.choi... | [
"normanyahq@gmail.com"
] | normanyahq@gmail.com |
bedf6a995ce380b68574e58456303a19c7f19dcc | 5af7898c50fc471f2e17c08f11369bb6b32460b9 | /scanner.py | 933b9345a98b2b772f5bf84f0c6b226e1cc60990 | [] | no_license | iceyokuna/RegexScanner-acceptable-string-checker | e4cb9972afd93892513fef07f5318ef958a797df | 9db7ce1c322b6c5bac09b3d467861e019e000522 | refs/heads/master | 2020-04-25T04:32:17.449070 | 2019-02-28T11:20:13 | 2019-02-28T11:20:13 | 172,513,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,877 | py | from FA import *
class FA:
def __init__(self, Q = {0}, Sigma = set(), delta = {}, q0 = 0, F = {0}):
self.Q = Q
self.Sigma = Sigma
self.delta = delta
self.q0 = q0
self.F = F
def copy(self):
return FA(self.Q.copy(), self.Sigma.copy(), self.delta.copy(), self.q0, s... | [
"iceyokuna@hotmail.com"
] | iceyokuna@hotmail.com |
d80dee91ae6b015bf9b5c2a4d50b0ffbc1ac61ca | 9b639ff2497e87e9282dff385561ef2b055f1f9c | /admin/gameadmin/urls.py | 9cb2d6fd527a8e1248c0eea4dd8b917cab8808be | [] | no_license | chekwind/gSoccer | 4f4964a7087f713bfbd94ad956140dd5cab458d8 | 1f60b6b993c7e918f37140bdd1d81d939f3a1703 | refs/heads/master | 2021-01-19T21:48:28.324899 | 2014-06-13T02:45:45 | 2014-06-13T02:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | from django.conf.urls import patterns, include, url
from adminuser.views import login,main,loginout
from ginterface.views import recharge,opearPlayer,getserverlist,landed,buyProps
from serverinfo.views import serverlist,GetDayRecored
# Uncomment the next two lines to enable the admin:
from django.contrib import ad... | [
"chekwind@sina.com"
] | chekwind@sina.com |
9ef32f41e288f78f8eefa1bcd5476bf3e3bf3c7b | ba369c74500540a367d9c3c1034afd183c4e1bcb | /tbtaf/databridge/Databridge.py | 347a55f70730bd116e492e48b4872c541c489a9e | [
"Apache-2.0"
] | permissive | S41nz/TBTAF | 955ce8231e809013ad273c3b716f474ce086165c | c9a33110baef20fd945e115f56d2e3626220416b | refs/heads/master | 2023-06-09T20:58:26.667517 | 2023-05-25T19:33:55 | 2023-05-25T19:33:55 | 44,349,447 | 0 | 2 | Apache-2.0 | 2023-05-23T05:46:25 | 2015-10-15T22:37:47 | Python | UTF-8 | Python | false | false | 813 | py | from __future__ import absolute_import
import os
from common.suite import TBTestSuite
from common.metadata import TBMetadata
from common.result import TBTAFResult
from common.printable_test import TBTAFPrintableTest
from publisher.TBTAFPublisher import TBTAFPublisher
from common.enums.metadata_type import TBTAFMetadata... | [
"zafir3@gmail.com"
] | zafir3@gmail.com |
f8e2e346cd01efd7a14368b2d4a5bc75a52f6f86 | 955bd17586b2fafa87e1198a0e11895527c64bd6 | /scrapingArticles/lib/trial.py | a004695c04afdaebad89b67e75ffbddf01494eff | [] | no_license | Ranakhamis/NewsScraper | 68904cbcf9bc42ebcc130b3d9b52bacf57ced56d | b9cfe7ba970ea88f51dd8975c45bc79cf8f7eac1 | refs/heads/main | 2023-01-15T00:40:18.016057 | 2020-11-17T23:24:07 | 2020-11-17T23:24:07 | 309,432,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | import newspaper
from newspaper import fulltext
import newspaper
from newspaper import article
import nltk
# The punkt of nltk library is used to tokenize the sentences in order to be used for NLP. So we need to download punkt sentence tokenizer.
#nltk.download('punkt')
class scrap:
def __init__(self):
... | [
"ranakhms@gmail.com"
] | ranakhms@gmail.com |
1b73266fec9ad8adc485a161f7ef19f92c9e3161 | 536bce6ca78a9a151247b51acb8c375c9db7445f | /chapter2/2.33-fact.py | f39322d3d7ba4b95c64460e082de81bd82d43e19 | [] | no_license | clicianaldoni/aprimeronpython | 57de34313f4fd2a0c69637fefd60b0fb5861f859 | a917b62bec669765a238c4b310cc52b79c7df0c9 | refs/heads/master | 2023-01-28T18:02:31.175511 | 2023-01-23T08:14:57 | 2023-01-23T08:14:57 | 112,872,454 | 0 | 0 | null | 2017-12-02T19:55:40 | 2017-12-02T19:55:40 | null | UTF-8 | Python | false | false | 189 | py | """
Implement the factorial function
"""
def fact(n):
if n == 1 or n == 0:
return n
sum = 1
while n > 1:
sum *= n
n -= 1
return sum
print fact(4)
| [
"martin@rodvand.net"
] | martin@rodvand.net |
e8cf67c09fb258bd353cc7b292eed3a62a996069 | 218a6e416daad2f3c2f10f4d4cb29d59050af80e | /preprocess.py | 4edfea83e13eff161a857194b8401b506953281d | [] | no_license | greatlog/nodule_segmentation | 07890b4a62202807ce36434c3d06d0422506f5ec | 04eaa59166adc63bd9169499541b21d50e1ab200 | refs/heads/master | 2020-03-21T08:59:41.005400 | 2018-06-23T06:54:22 | 2018-06-23T06:54:22 | 138,378,006 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,010 | py | from multiprocessing import Pool, cpu_count,freeze_support
import numpy as np
import SimpleITK as sitk
from skimage.morphology import disk, binary_erosion, binary_closing
from skimage.measure import label, regionprops
from skimage.filters import roberts
from skimage import measure
from skimage.segmentation import clear... | [
"1582552392@qq.com"
] | 1582552392@qq.com |
c9db772b6f838af96b240891f81741b5a3b42d15 | 71f4c98dd1c86ca6c347b0c8163819ce771801e8 | /docs/examples/python/smessage_ssocket.py | 008eadf7b132081df4b6f2d3c26fee4ef5cc6338 | [
"Apache-2.0"
] | permissive | cybernetics/themis | 5a879d5f592aea59dc4a5cd00fac134cf9e9111f | 661c98666d72e95528f3aaaaf92a685138a52ccd | refs/heads/master | 2021-01-11T17:54:09.237880 | 2017-01-09T19:18:19 | 2017-01-09T19:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | #
# Copyright (c) 2015 Cossack Labs Limited
#
# 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... | [
"andrey@cossacklabs.com"
] | andrey@cossacklabs.com |
eb3fc4058efee853d8bc2aa246422e6bdbc51da6 | d2b81eacad849b66066b3b5d244b59f0144e8a0e | /python_do_sth/cv_3.py | aeda29e7cdd4d57cd02874d675fcffcae122bafc | [] | no_license | Kaiping23/Automatic_operation_and_maintenance | ba88d7c2590fb6a23c20167d7273e06b037dfc52 | 4a659c91c44a0ef7c4701199f1ee49072bad98dd | refs/heads/master | 2021-07-13T23:28:20.890603 | 2020-12-01T07:23:47 | 2020-12-01T07:23:47 | 222,401,688 | 0 | 2 | null | 2020-09-14T03:18:31 | 2019-11-18T08:42:26 | Shell | UTF-8 | Python | false | false | 860 | py | #!/usr/bin/python3
# _*_coding=utf-8 _*_
# @author lkp
# @date 2020/3/31 17:50
from PIL import Image, ImageDraw, ImageFont
import cv2
import os
def draw(pic):
img = cv2.imread('pic/' + pic)
img = img[:, :, (2, 1, 0)]
blank = Image.new("RGB", [len(img[0]), len(img), "white"])
drawObj = ImageDraw.Draw(... | [
"admin@example.com"
] | admin@example.com |
f9f3b4e9ec54097a3c5c5636f4d1e0303adf3559 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/recoveryservices/v20210210/replication_policy.py | 35cc2c0021962454d10fce98f1f070dafc5a861b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,838 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
ff5c7cda4c5b4ad385fae36a1ea551f6efcd3d48 | 053424bd5b9f52ba672202966ecf05e2e45ad590 | /Chapter 10 - find seed/transpositionTest_find_seed-test random produced seed_step 2.py | 582bef085a40ac8d903203156aee7bcb0eecbf28 | [] | no_license | gaoyaoxin/HSCP | 1c2f34ec4cacab24e5a3ee214e2e8ae5b6c340e5 | e4c37b7a1ce3c125668773b550c7a1d80a460942 | refs/heads/master | 2021-04-09T11:50:42.231001 | 2018-03-31T13:29:11 | 2018-03-31T13:29:11 | 125,535,828 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | # Transposition Cipher Test
# http://inventwithpython.com/hacking (BSD Licensed)
#numpy.arange(1, 5, .5)
import numpy, time, random, sys, transpositionEncrypt, transpositionDecrypt
#startTime = time.time()
#print(startTime)
def main():
#for whatIsTheSeed in range(100):
# 1 day == 3600 * 24 = 86,400 seconds
# 1... | [
"gaoyaoxin@bfsu.edu.cn"
] | gaoyaoxin@bfsu.edu.cn |
1b8b4f1d0c7788dcf223ed788dcc7fb47dd882ec | a515f1f667fb733a50f8a05b5e3912ede151d25a | /students/migrations/0001_initial.py | b5ac2a702a009868e9a10dcdfaed42ab04a7cce7 | [] | no_license | MarmaghanM/myproject | cccca5dbc8c6c90965565607f3c8f0bca4771a99 | 48900f77db89b31f6e591ace45e972431c7e1d9d | refs/heads/master | 2022-04-16T02:25:47.939296 | 2020-04-18T07:57:10 | 2020-04-18T07:57:10 | 256,699,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # Generated by Django 3.0.5 on 2020-04-17 21:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"armaghanmajeed29@gmail.com"
] | armaghanmajeed29@gmail.com |
adf37d1531b177bc6ce8837c664e498dea6383fb | 34edea6c7e6c0841f42211a6c2919ee6cf56567a | /catkin_ws/build/catkin_generated/generate_cached_setup.py | 4bfc9d11cfeee982cee2ca36c0a110882e914a5b | [] | no_license | rondell/Cognitive-Robotics-Project | ab2fc50d53a49f017daea30ac4069c2bcd51a622 | c0591bbd9d20f39cb856e664288e2398fc10d990 | refs/heads/master | 2021-01-01T18:06:58.073436 | 2015-07-22T12:25:21 | 2015-07-22T12:25:21 | 34,892,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/indigo/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, os.path.jo... | [
"diego.rondelli@mail.polimi.it"
] | diego.rondelli@mail.polimi.it |
3f0c7959d534f8efc49eb6743460fabfe8798985 | 01e1fd9f34b0a0fc93ec0ef17c3c2ab0669cd71e | /1.14_courses/practise/image_recognize.py | 4cf22528cf84f368f4f340756b1adf8acd29efee | [] | no_license | robin521111/machinelearning | bc36c0da4008f68c88644d92bdff9ca9ac0e6781 | fa708476821cd2c5490202341fc13e4266108cc5 | refs/heads/master | 2021-04-24T21:12:43.391381 | 2018-05-07T05:13:36 | 2018-05-07T05:13:36 | 116,975,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
import numpy as np
mnist = input_data.read_data_sets(
"/Users/robin/Documents/MachineLearning/machinelearning/1.14 courses/data/", one_hot=True)
X=tf.placeholder(tf.float32,[None,784])
Y=tf.placeholder(tf.float32,[None,10])
W=tf.... | [
"Robin,Lu@sonymobile.com"
] | Robin,Lu@sonymobile.com |
f5beb8c7f2fe29d2b3875d2c777fa120da672849 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0095_Unique_Binary_Search_Trees_II/__init__.py | 9d3b0685feaf5e1088c97cabc9af771655025d5e | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 1,040 | py | ID = '95'
TITLE = 'Unique Binary Search Trees II'
DIFFICULTY = 'Medium'
URL = 'https://oj.leetcode.com/problems/unique-binary-search-trees-ii/'
BOOK = False
PROBLEM = r"""Given _n_, generate all structurally unique **BST's** (binary search trees)
that store values 1..._n_.
For example,
Given _n_ = 3, your program sh... | [
"romain_li@163.com"
] | romain_li@163.com |
b0b3f0dbcdb5f3398cb9d799cf00fb967cd0f87f | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider2/migrate/domain_2_beian.py | 85b21c4c99d1c2c7c4d92cd71141911c01a78701 | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # -*- coding: utf-8 -*-
import os, sys
from pymongo import MongoClient
import pymongo
reload(sys)
sys.setdefaultencoding("utf-8")
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../util'))
import loghelper, config
import db
import name_helper
#logger
loghelper.init_logger("domain_2_beia... | [
"hush_guo@163.com"
] | hush_guo@163.com |
383d7a4ec52c2853b77bfe31e940ffda2d8eb356 | 82b50cebff69927d4394378522ae96524950fff4 | /pointnet_ops/python/ops/interpolate_ops_test.py | f6a478248088b8f9c2a5e4775093df4d606239aa | [
"MIT"
] | permissive | jackd/pointnet_ops | 1b8a44bccbb2d9d3d5763b725f8972ad096a8a14 | 26d9b85ce4b503fac7547b965e233442aa243430 | refs/heads/master | 2020-04-29T01:35:10.644187 | 2019-11-07T00:08:01 | 2019-11-07T00:08:01 | 175,735,495 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,836 | py | # Copyright 2018 The Sonnet Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
06fc825653fce2fdc255ac881a3b1887e49ae5ed | 65e37a94c37a191f9794e445e4cc5e5581af2fc7 | /Assignment4_5.py | 7de7f7b3f1db038f429e99ba7a9a3b9344557003 | [] | no_license | PallaviGandalwad/Python_Assignment_4 | b0afe4f5bed9092c28315ee2562f8035e8753182 | 72c373f0c88d364f60c83127301bb08552456ddb | refs/heads/master | 2020-05-01T14:24:35.315612 | 2019-03-25T05:23:12 | 2019-03-25T05:23:12 | 177,519,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | #Write a program which contains filter(), map() and reduce() in it.
#Python application which contains one list of numbers.
#List contains the numbers which are accepted from user.
#Filter should filter out all prime numbers.
#Map function will multiply each number by 2.
#Reduce will return Maximum number fro... | [
"noreply@github.com"
] | noreply@github.com |
861bf2746f2974be7be2169d1ec2de2b4bb930d1 | 356360f13c0eca2b22ced8cf6958e737913ebcd4 | /text_mining/association_rule/read_txt.py | 4e9a50d09dcd0919fe681ce1e27081243409ac75 | [] | no_license | Baron1014/SCU-Big-Data | e4f4a8fe361bec3e693899a937bc62f1180cee31 | 5cbbc36b23649a297f6e97ce157ace0c24983e33 | refs/heads/master | 2023-03-20T07:54:01.350018 | 2020-06-15T09:08:07 | 2020-06-15T09:08:07 | 270,942,790 | 0 | 0 | null | 2021-03-06T07:51:33 | 2020-06-09T08:15:08 | Jupyter Notebook | UTF-8 | Python | false | false | 256 | py | f = open("test.txt", encoding='utf-8')
files = f.read()
file_list2 = files.encode('utf-8').decode('utf-8-sig').split("split")
f_list = list()
#target_list = [int(x) for x in lines.split('],[')]
for i in file_list2:
f_list.append(i)
print(file_list2)
| [
"baron1996.tw@gmail.com"
] | baron1996.tw@gmail.com |
4f3531b17413d2c11b2694369cdd454a4b240a16 | cf91b4cc42a146c23487937018d926366638bd7a | /AttentionTransformer/LanguageModelDataset.py | 97035363e75b3e73a2ba04f1da2017e7bb822aec | [] | no_license | vatsalsaglani/AttentionTransformerPackage | 64e8781b20a411e055cb1511a91e3240bd4d3478 | 2f90443f37cdc0eb270027bb6f6630e299722c42 | refs/heads/main | 2023-04-09T00:15:52.006495 | 2021-03-30T09:06:46 | 2021-03-30T09:06:46 | 352,936,980 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import torch
import torch.nn as nn
from torch.utils.data import Dataset
class LanguageModelDataset(Dataset):
def __init__(self, data_array, seq_length):
self.data_array = data_array
self.seq_length = seq_length
self.total_words = len(self.data_array)
self.req_size = self.total_w... | [
"vatsals@quinnox.com"
] | vatsals@quinnox.com |
297ae241311c252894e9f40bc3fc802bc2faf2df | 57f0685e4d2dee92e57b9a7b948ad40d4f88cff6 | /modules/Marcas/views.py | c6ec5fad261603f8c55897cf677090391a3ef7af | [] | no_license | richard020797/CARSapi | 37ff75234f2bb1b8b73f77e19dfeb63f4ec36f62 | cd116f2828710670a9e94058517fed6af4f12f74 | refs/heads/master | 2021-01-12T13:52:31.100950 | 2016-09-27T00:58:12 | 2016-09-27T00:58:12 | 69,070,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .models import Marca
from .serializers import MarcaSerializer
from django.http import Http404
class ListMarcas(APIView):
def get(self,request):
marcas = Ma... | [
"richard020797@gmail.com"
] | richard020797@gmail.com |
13fb5991f4fa454911405e717db9bab8918d589a | a93af4524c52df3e44d043d503accb903f2ec5d1 | /mysite/crackit/views.py | 37b11d0e068a454343e07f4fd92c124477b09115 | [] | no_license | avengerskentstate/Crackitfinal | e3cad40ded380245ca21688d34090f2d40efbe07 | 3ddabc7333fb27e798025a4dfd05e9acf1d75236 | refs/heads/master | 2020-03-16T04:58:54.890969 | 2018-05-08T02:02:00 | 2018-05-08T02:02:00 | 132,523,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,734 | py | from django.shortcuts import render
from django.http import HttpResponse
import random
# Create your views here.
def index(request):
return render(request, 'index.html')
def help(request):
return render(request, 'help.html')
def end(request):
return render(request, 'end.html')
def start(request):
p = []
i... | [
"35577119+hemanthpaluru@users.noreply.github.com"
] | 35577119+hemanthpaluru@users.noreply.github.com |
274d97a41930b485884225a410ffc761c904177b | 254ef44b90485767a3aea8cbe77dc6bf77dddaeb | /605种花问题.py | d57acf9ac517c69f15cf6872c969cf4d6f949943 | [] | no_license | XinZhaoFu/leetcode_moyu | fae00d52a52c090901021717df87b78d78192bdb | e80489923c60ed716d54c1bdeaaf52133d4e1209 | refs/heads/main | 2023-06-19T02:50:05.256149 | 2021-07-09T00:50:41 | 2021-07-09T00:50:41 | 331,243,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
假设有一个很长的花坛,一部分地块种植了花,另一部分却没有。可是,花不能种植在相邻的地块上,它们会争夺水源,两者都会死去。
给你一个整数数组 flowerbed 表示花坛,由若干 0 和 1 组成,其中 0 表示没种植花,1 表示种植了花。另有一个数 n ,能否在不打破种植规则的情况下种入 n 朵花?能则返回 true ,不能则返回 false。
示例 1:
输入:flowerbed = [1,0,0,0,1], n = 1
输出:true
"""
class Solution(object):
def canPlaceFlowers(self, flowerbed, n):
"""
... | [
"948244817@qq.com"
] | 948244817@qq.com |
9cd285e4922f39ce885756d2e78eb508da6c2bbb | b6394974b8e2ac229a0c917736bd7e083e7527d2 | /hdp_api/routes/exports.py | 70ff0f4c93c0ae791add20f89ef799e85801b306 | [] | no_license | clementhc/HyperAPI | 4cac20d237aa13f627fff79f6f3343dcbe193ca1 | a8be02358475332c9d62dedd0ff1ab898892dd6e | refs/heads/master | 2020-03-25T02:31:32.865582 | 2018-08-02T09:30:37 | 2018-08-02T09:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from hypercube_api.hdp_api.routes import Resource, Route
class Exports(Resource):
name = "Exports"
class _export(Route):
name = "export"
httpMethod = Route.GET
path = "/exports/{file_name}"
_path_keys = {
'file_name': Route.VALIDATOR_ANY,
}
| [
"jerome.maslowski@hypercube-research.com"
] | jerome.maslowski@hypercube-research.com |
5c4812a03764cfc5ff1a3c11562ed8dcf38acd0b | d0f3903c31d04ad906dae0cbde21876cd87f2ef7 | /contrib/bitrpc/bitrpc.py | b7c43b11d105eb7ecb45a55609cb9de8e15d9dde | [
"MIT"
] | permissive | ranubis1966/cafecoin | 3aed336b29bffaca4c88f1f0aacc13d09e57e616 | df1611891ccd8f2323144f373055050b0ea31bb9 | refs/heads/master | 2020-03-27T04:15:35.811369 | 2018-08-24T01:58:56 | 2018-08-24T01:58:56 | 145,925,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,838 | py | from jsonrpc import ServiceProxy
import sys
import string
# ===== BEGIN USER SETTINGS =====
# if you do not set these you will be prompted for a password for every command
rpcuser = ""
rpcpass = ""
# ====== END USER SETTINGS ======
if rpcpass == "":
access = ServiceProxy("http://127.0.0.1:2332")
else:
access = Ser... | [
"ranubis1966@gmail.com"
] | ranubis1966@gmail.com |
fcbd139fd749ca3f7d328cd214d16435756b00da | a8138a273aec92a3310229a190ad506aac181eb2 | /ex_5.py | ec8562f95637c1c38eb3c6f6b4caa1fcb9e622e8 | [] | no_license | namdang-exe/lambda_excercise | 4b98adecf1aa9c090ad4a1968afe5760cd952502 | 257c93b6b51c77fb3f9ac0a434e03566a6b5adf4 | refs/heads/master | 2023-04-29T00:06:54.493339 | 2021-05-24T04:15:08 | 2021-05-24T04:15:08 | 366,930,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # Write a Python program to filter a list of integers using Lambda.
my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
even_num_list = list(filter(lambda x: x % 2 == 0, my_list))
print(f"even numbers: {even_num_list}")
odd_num_list = list(filter(lambda x: x % 2 != 0, my_list))
print(f"odd numbers: {odd_num_list}")
| [
"dangquangnam75@gmail.com"
] | dangquangnam75@gmail.com |
f9e56da2e6260cf5095bb824487edc63654639a4 | 8dbbcb4775dc930d56ba46963c106eb0e801ad41 | /venv/Scripts/pip3-script.py | 4d3d09e7d661ce7a6d8bfbf6f5adb8bf7a9d4cb1 | [] | no_license | harmansehmbi/Project29 | 345d88d122eae636c28910db80beb8f67b8eaf7a | 3150c0590eb5c8abe44301747b9e2643cc8d8d16 | refs/heads/master | 2022-01-21T00:05:28.300590 | 2019-07-21T08:29:50 | 2019-07-21T08:29:50 | 198,032,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!C:\Users\HARMANPREET\PycharmProjects\Project29\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"51370954+harmansehmbi@users.noreply.github.com"
] | 51370954+harmansehmbi@users.noreply.github.com |
db6e1c72e9c883b51feed8c57739d14bc3814219 | e20c3fa34f789994a4d65b3bf7c560eb7eb3aec1 | /raspberry_server.py | 79467b2e9848fc6cd6b77486ae961177cfefc719 | [] | no_license | roshra/raspberry_client_server_code | 456a9024a3912a60ba25b8e70e2bcf6e713591ce | e9018653be14c532ff1bcf15478630fe8dff553e | refs/heads/master | 2023-04-16T00:43:17.683181 | 2021-04-22T17:21:31 | 2021-04-22T17:21:31 | 360,633,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import socket
'''Create a socket object'''
socket_obj = socket.socket()
'''accept connection from any host'''
host = ""
'''Print host'''
print("Hostname is {}".format(host))
'''port to bind'''
port = 12345
'''Bind a port'''
socket_obj.bind((host,port))
'''wait for client connection'''
socket_obj.listen(5)
'''Est... | [
"roshmohanr@gmail.com"
] | roshmohanr@gmail.com |
f3e463f50ffd428f5abf8410876d76e726848bb1 | 4b0a987db4b67902e53eb433137d29a7b0e21320 | /other/image-captioning/train.py | 5c99bfa0407a3459205955a564e09590aeb3792a | [] | no_license | neuralml/ccDNI | 8f61b37dd4f56bc1ee489ae19a978de8f3256722 | 0404e966f8bc919e028638c2b6579a7a3cec2270 | refs/heads/main | 2023-04-10T01:48:53.847325 | 2023-01-05T09:58:50 | 2023-01-05T09:58:50 | 420,140,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,628 | py | import nltk
import argparse
import torch
import torch.nn as nn
import numpy as np
import os, sys
import pickle
from data_loader import get_loader, get_lengthsmat
from build_vocab import Vocabulary
from torch.nn.utils.rnn import pack_padded_sequence
from torchvision import transforms
import dni
from dni_model import _... | [
"joepemberton1995@gmail.com"
] | joepemberton1995@gmail.com |
2947a5ac98b7f57b37246e99a038978fb1f662ba | f624a2111e49dc1b9bafb02511f1b3092636e4f8 | /my first game.py | d3acd2b5e83a3453904c56672aec2d3fe1381c49 | [] | no_license | FlameZ115/my-first-game-made-in-python- | d65f2bbc9e8a7e898216419c2786a068cf4e96cb | 77ff873fb5cdd1477f63e6f7693f9918aac82e73 | refs/heads/master | 2021-01-23T01:41:12.616411 | 2017-05-31T11:04:23 | 2017-05-31T11:04:23 | 92,884,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | import pygame
import time
import random
pygame.init()
display_width = 800
display_height = 600
black = (0,0,0)
white = (255,255,255)
red = (255,0,0)
block_color = (red)
car_width = 73
gameDisplay = pygame.display.set_mode((display_width,display_height))
pygame.display.set_caption('A bit Racey')
clock = pygame.tim... | [
"noreply@github.com"
] | noreply@github.com |
e91ad43fd4ba6156400ee4119096b60060b647fc | 4a80cb0dd79022ee43ad3b0f02a2511ab70638d6 | /Software/Python/SimpleLRPExperiments/models/TrianglesAndSquares/log_train_nn.py_for_nn_Linear_1024_2_Rect_Linear_2_2_SoftMax_(batchsize_10_number_iterations_10000)_second_attempt_.py | e92f0f56c9e0609fce1ce6b51384194830258111 | [] | no_license | NLeSC/XAI | 385d4c94f7166936beeb3131b82eb06282f5367c | dd78834b539f67a86687614e1ff9676ed5f31a77 | refs/heads/master | 2023-01-10T03:00:36.133939 | 2022-06-02T07:31:34 | 2022-06-02T07:31:34 | 122,990,250 | 26 | 3 | null | 2023-01-05T12:58:44 | 2018-02-26T15:36:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,314 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 30 18:18:41 2018
Author: Joost Berkhout (CWI, email: j.berkhout@cwi.nl)
Description: In this script neural networks can be trained.
"""
import tools.data_loader
import tools.model_io
import modules
import shutil
import settings
# user init
batchsize = 10
numbIters = 10... | [
"j.berkhout@cwi.nl"
] | j.berkhout@cwi.nl |
1bc65433c162da913b092d7c9fdf5baab419a75a | 8853462a79608b7e5b7af94dbfa6c0a63c1f6b6a | /2. Crawlers/CASNET_policy/Generated_data/temp.py | f77dd43e3977f455dd80c26bb735b579e07b95d0 | [] | no_license | Ashish017/CASNET | eaae2552f8d56413f756c7d3839cd6f548a6e1ef | 73ec542c4c3fa1f97686796f0c385c71cad3e8d5 | refs/heads/master | 2023-02-06T06:53:27.362356 | 2020-12-27T04:43:34 | 2020-12-27T04:43:34 | 270,657,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import pandas as pd
import matplotlib.pyplot as plt
t1 = pd.read_csv("test_1.csv")
t2 = pd.read_csv("test_2.csv")
t3 = pd.read_csv("test_3.csv")
files = [t1,t2,t3]
di = {}
for i, file in enumerate(files):
for col in file.columns:
if col[0] != "U":
name = col + "_seed_{}".format(i+1)
di[name] = file[col]
f... | [
"ashishmalik7017@gmail.com"
] | ashishmalik7017@gmail.com |
0ec6a987fdc177a87ec8039cf63a4fa85fadcd9c | ac654b1cd9ace9bad53da9960ae8cf752cb5ba81 | /alphabet.py | 35e2130ef02362d644ada255343a9d15bd29b22b | [] | no_license | snekasriramar/nega | 3bfafce5f499033fd6b0e9480a567987f30abfa5 | 093ef7dd97a0b2dadc3b2880306c16e6bd234343 | refs/heads/master | 2020-04-11T11:35:50.621125 | 2019-02-25T08:44:23 | 2019-02-25T08:44:23 | 161,753,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | # Python Program - Check Alphabet or Not
print("Enter '0' for exit.");
ch = input("Enter any character: ");
if ch == '0':
exit();
else:
if((ch>='a' and ch<='z') or (ch>='A' and ch<='Z')):
print(ch, "is an alphabet.");
else:
print(ch, "is not an alphabet.");
| [
"noreply@github.com"
] | noreply@github.com |
ee99a53462712b0f5b31016cc9d7f65c447d8f3a | d92048aaa548abe489d956153662ee1a61f32157 | /naboj_zona/struct_wiki/urls.py | 9263e9b562ea8592550af1858c3c475fb0ae760e | [] | no_license | syslo/naboj-zona | 686ac9998cc8534399a6dca16793c3a56b35b4bf | d96a73b45d5cd4849f3aafec89a0806f1dc16cf5 | refs/heads/master | 2020-05-21T17:52:18.885342 | 2016-10-09T14:02:41 | 2016-10-09T14:02:41 | 65,387,965 | 0 | 0 | null | 2016-10-07T16:47:37 | 2016-08-10T14:11:09 | Python | UTF-8 | Python | false | false | 1,554 | py | from django.conf.urls import url
from wiki.urls import WikiURLPatterns
from . import views
class StructWikiURLPatterns(WikiURLPatterns):
from . import hack_resolve # noqa
from . import hack_attachments # noqa
article_settings_view_class = views.ArticleSettings
def get_urls(self):
urlpatte... | [
"marian.sysel.hornak@gmail.com"
] | marian.sysel.hornak@gmail.com |
7fd7d2d3435692240151409412192953b899d325 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /cherrypy/test/test_wsgi_vhost.py | a7cbc1e110cbfd03a130821cba176cd2cc2bc53c | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #Embedded file name: cherrypy/test\test_wsgi_vhost.py
import cherrypy
from cherrypy.test import helper
class WSGI_VirtualHost_Test(helper.CPWebCase):
def setup_server():
class ClassOfRoot(object):
def __init__(self, name):
self.name = name
def index(self):
... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
1e204576e3677ebd169fcaa21b9a7a940d3a5019 | 1ac82cf573df9acb86838d2015420dac4aa7d9b8 | /tornado_project/whoosh_search/config.py | bcb7872028c54b4de4967e6a13eabdadc8114d36 | [] | no_license | Mr-NB/whoosh_search | 8f3cced81b1560a85d7dc6746ea1266f9f23763c | a3e07338facfa5869033393c9fd058ad05d795c0 | refs/heads/master | 2020-03-27T08:19:27.549228 | 2018-08-27T06:13:36 | 2018-08-27T06:13:36 | 146,244,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | import os
db_path = os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))+'/cloudmusic.db'
indexdir_path = os.path.abspath(os.path.join(os.path.dirname(__file__),'..'))+'/indexdir' | [
"15565532751@163.com"
] | 15565532751@163.com |
b6a087e0d229fb6391b74723e24a9b35736bafa5 | ff038251b5100d0e5883022b8ac19f987926dddf | /easy problems/sum-of-all-odd-length-subarrays.py | 1d07f0c388e736e4dde772a7693eb941a7102303 | [] | no_license | fluidbubbles/leetcodeProblems | 05ede7a8ac4dca255f434e004d24fd885dd3dfbe | 672de968630d3712d7d4cf71b5d2204d95e008af | refs/heads/master | 2023-01-25T04:56:57.394619 | 2020-12-12T10:30:18 | 2020-12-12T10:30:18 | 312,602,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from typing import List
class Solution:
def sumOddLengthSubarrays(self, arr: List[int]) -> int:
length = 1
i, j, x = 0, 0, True
sum_all = 0
while length <= len(arr):
if length == 1 or x:
x = False
sum_arr = sum(arr[j:length+j])
... | [
"39565100+fluidbubbles@users.noreply.github.com"
] | 39565100+fluidbubbles@users.noreply.github.com |
d7f8127681b7485ec6e79e90de2be2b3cb6c79eb | 663305e4fc1cc44ce032cfbff001d7beb21d6e92 | /QuantEconpy_quantitative economic modeling/quantecon/game_theory/vertex_enumeration.py | 7e573f1d8fd8824cd15f0be8cdccbbb18bf44eab | [
"BSD-3-Clause"
] | permissive | yangkedc1984/Source_Codes_Collected | 19e1c5887c6d5654bc76bae364a304964433a59c | 668467e74301a42eebf3085add344a5ac1323120 | refs/heads/master | 2023-01-09T15:14:43.355589 | 2020-11-08T10:12:31 | 2020-11-08T10:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,587 | py | """
Compute all mixed Nash equilibria of a 2-player normal form game by
vertex enumeration.
References
----------
B. von Stengel, "Equilibrium Computation for Two-Player Games in
Strategic and Extensive Form," Chapter 3, N. Nisan, T. Roughgarden, E.
Tardos, and V. Vazirani eds., Algorithmic Game Theory, 2007.
"""
imp... | [
"pmiori@gmail.com"
] | pmiori@gmail.com |
12d524b0c3be40cfe8c7280cdf150f9712f2cacc | 1b5802806cdf2c3b6f57a7b826c3e064aac51d98 | /tensorrt-basic-1.10-3rd-plugin/TensorRT-main/demo/HuggingFace/GPT2/frameworks.py | 2baca65d15581a13288d52200aa0c29f2ea38e53 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"ISC",
"BSD-2-Clause"
] | permissive | jinmin527/learning-cuda-trt | def70b3b1b23b421ab7844237ce39ca1f176b297 | 81438d602344c977ef3cab71bd04995c1834e51c | refs/heads/main | 2023-05-23T08:56:09.205628 | 2022-07-24T02:48:24 | 2022-07-24T02:48:24 | 517,213,903 | 36 | 18 | null | 2022-07-24T03:05:05 | 2022-07-24T03:05:05 | null | UTF-8 | Python | false | false | 9,165 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"dujw@deepblueai.com"
] | dujw@deepblueai.com |
c14247fa25230f66221e1a9db2b33ad70978aa7e | f44926184e106c60eb80bd12939725091c897e55 | /experiments/bench3v.py | 23e9ba9018bdf7d3e5466535bc47e90daa401aad | [] | no_license | yixin-09/NPTaylor | e11ad84d6930332438c32d8e3f9d1c3f0bdbd5cb | 0a8fe8b5a4fa596fda4f0db2c15191ccae667478 | refs/heads/master | 2022-11-14T03:25:21.891007 | 2020-07-13T10:42:37 | 2020-07-13T10:42:37 | 274,424,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | from pygsl.testing import sf
from mpmath import *
import numpy as np
mp.dps = 40
#f1
gf1 = lambda x,y,z: sf.ellint_P(x,y,z,0)
rf1 = lambda x,y,z: ellippi(-z,x,y*y)
#f2
gf2 = lambda x,y,z: sf.ellint_RD(x,y,z,0)
rf2 = lambda x,y,z: elliprd(x,y,z)
#f3
gf3 = lambda x,y,z: sf.ellint_RF(x,y,z,0)
rf3 = lambda x,y,z: ellipr... | [
"yixinzyy@gmail.com"
] | yixinzyy@gmail.com |
8431f44d69ce1bef0eb7d32fd3e2c03d23438023 | 199dbeb3fdf280f40016d054494cb131f040eb88 | /test/test_update_contact.py | d6efc56797a3cff7999e6f3de34be38b4170a8bd | [
"Apache-2.0"
] | permissive | nataliamaslova/python_training | 97495723ede1c52357b12f4398f5c537558f7bc3 | 9e831457291cfb1b25a4f8436ce13ad3314ab5b5 | refs/heads/master | 2021-05-07T04:08:09.811463 | 2018-01-09T12:37:38 | 2018-01-09T12:37:38 | 111,091,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | from model.contact import Contact
from random import randrange
def test_update_contact(app, db, check_ui):
if app.contact.count() == 0:
app.contact.create(Contact(firstname="Peter", lastname="Pyatochkin", company="System Group", address="Ukraine, Kiev, Vatslava Gavela blvd., 4",
... | [
"maslova.nd@gmail.com"
] | maslova.nd@gmail.com |
21c7f2c5d24a58948f17e7fad09a58e052764cd1 | bdc5ba304debcac0564a0f307c446a74a93fcdb5 | /surround/experiment/web/experiment_explorer.py | 59d1ed676eb59a6efb0e92a2e1fd75b364c4e45e | [
"BSD-3-Clause"
] | permissive | ScottyB/surround | 2c2764ff76918027f7dce1897257bcdd7804ce7a | f9a86f5b5677de7bd5763d26de4a6f18c36f2a4d | refs/heads/master | 2021-06-21T23:02:58.710216 | 2020-11-26T00:43:59 | 2020-11-26T00:45:32 | 176,862,237 | 0 | 0 | BSD-3-Clause | 2019-03-21T03:23:40 | 2019-03-21T03:23:33 | Python | UTF-8 | Python | false | false | 1,404 | py | import os
import math
import tornado.web
class ExperimentExplorer(tornado.web.RequestHandler):
def initialize(self, experiment_reader):
self.experiment_reader = experiment_reader
def get(self):
project_name = self.get_argument("project_name", default=None)
page = self.get_argument("pag... | [
"101668878@student.swin.edu.au"
] | 101668878@student.swin.edu.au |
75f4ebcb13a4e90f149b593c0fd91725a3698c42 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL18_mMed-1800_mDark-6_kappa-0p95_aligned-down_cff.py | 9529dca572a022c1535c9eb4f19ce9b052141394 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,961 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
cb78becd038f627025a771d40b4ea8936281dd15 | 1cce6cbc142c0fa9ad1aa88773328e437347ab25 | /non-production/Version 0.9/ControlExperiments/AverageRewardSarsa/AlphaExperiments/plotAvgReward.py | c22e2fee2020439d2ec2ed8cbbd48a7a58475b2e | [] | no_license | clickok/iRobotInterface | 6fd2f419cc0a684a8ed7858647060ddf704f50f5 | a7902a736712fe2aecffe5ebad521da77ce4a06d | refs/heads/master | 2021-01-02T23:06:32.349554 | 2014-03-17T08:06:37 | 2014-03-17T08:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,493 | py | import os
import sys
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import numpy as np
import re
import math
testPath = "/AlphaExperiments\ (Saskatoon)"
# Walk through subdirectories, getting all files with
# the "logSarsa" form
def getAllLogs(parentDir):
lst = []
logRegex = re.compile("logSarsa.... | [
"babennet+github@ualberta.ca"
] | babennet+github@ualberta.ca |
c351e42f66de0a1f8b405648c4552f27960b36c7 | 50bf35910a05c555c730de31834c6ee9ea00d0f1 | /piffVisualizer/compactPIF no collagen.py | 278c61da2bca5d2e396aebdbf828a650dd72c517 | [] | no_license | RoySchieven/Modellen-Practicum-2021 | 55e0a9be9f3940070ac9fbaaf271967a5dafc61a | 1df1db7c3214c50387b18769be5c3c48f8bda5c0 | refs/heads/main | 2023-06-19T21:29:43.484389 | 2021-07-16T14:44:09 | 2021-07-16T14:44:09 | 385,603,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | import numpy as np
import os
files = sorted([f for f in os.listdir('.//') if f.endswith(".piff")])
print(files)
#Gotta check that size and types
size = np.array([1,1,1])
lines = open(files[0],"r").readlines()
for line in lines:
split_line = line.split('\t')
size[0] = np.max([size[0], int(split_line[2])+1])
... | [
"noreply@github.com"
] | noreply@github.com |
1078a3e96f4e417c331ae0afb5d909853238fdac | e0da943224a9438305ac3fedbb34565f3c39473b | /Assignment3/u6028474.py | 6ce2407037fb1cc83850110cf1f072a5dc972294 | [] | no_license | syedalihussain/COMP6331-Computer-Networks | c135ae5cd9b9e5e8e30c01c1ce3af6da0524f6f6 | 6bc73c735c431fd288f2bdf2b807aa5ecf2ef4e5 | refs/heads/master | 2020-03-21T21:53:06.053686 | 2018-06-29T02:26:17 | 2018-06-29T02:26:17 | 139,090,682 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,852 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 19 15:56:47 2018
@author: Syed Ali Hussain
"""
import paho.mqtt.client as mqtt
import logging
import time
import numpy as np
import matplotlib.pyplot as plt
def on_log(client, userdata, level, buf):
'''The callback function that is called when client receives an on_... | [
"u6028474@anu.edu.au"
] | u6028474@anu.edu.au |
cdcd888bd2a4da7d912f0c13c47d6267ba1e5a97 | 183b134845cb6c7ad1acd257a22eda11c97e799d | /Project 1/Code/design_matrix.py | 9287e0988a578bcf328f9f5d86e65394138a7994 | [] | no_license | KariEriksen/Machine-Learning | 5b20b278701efc985630d1b94a93dda43b9b525e | cc92aefa5a6550435df741641d5e54e5600947c7 | refs/heads/master | 2020-03-29T16:44:04.809082 | 2018-11-02T18:07:03 | 2018-11-02T18:07:03 | 150,126,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,717 | py | import numpy as np
class Design_Matrix:
def __init__(self, X, Y, d, N):
self.X = X
self.Y = Y
self.d = d
self.N = N
def fit_matrix(self):
x = self.X
y = self.Y
n = self.N
if self.d == 1:
X_fit = np.c_[np.ones((n*n,1)), x, y, x*y]
elif self.d == 2:
X_fit = np.c_[np.ones((n*n,1)), x, y,... | [
"eriksen_kari@hotmail.com"
] | eriksen_kari@hotmail.com |
1831554a99074006029e176d9ada9f8ea8a4eff1 | 55d5aa004059b4d974f78de369654020fcc18262 | /venv/bin/pip3 | 161f3f7eee215de23f1b368bf14ecff6a32c0b2b | [] | no_license | yh9468/VGG-Net | d59fb3e80de5b97ac60b6d024a77c983c77489d5 | 95ade30493b3a55a74bec38308529fb867ee5a17 | refs/heads/master | 2020-03-31T17:23:55.157116 | 2018-10-16T08:59:55 | 2018-10-16T08:59:55 | 152,421,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | #!/home/younho/PycharmProjects/VGG-Net/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sy... | [
"younho9468@naver.com"
] | younho9468@naver.com | |
1278478f1e40f5357bc58ac0949409e318c8679f | 8364e4d23191ee535c163debffafa8418d705843 | /aiokubernetes/models/v1beta2_replica_set.py | d891f61f5234e0fbcff0c24e5b8bd28d2e713e6d | [
"Apache-2.0"
] | permissive | olitheolix/aiokubernetes | 2bb6499030e2e6e9b7ca0db63c4441293d70a09b | 266718b210dff2a9b2212183261ea89adf89115e | refs/heads/master | 2020-03-21T23:02:30.484410 | 2018-10-20T19:33:01 | 2018-10-22T05:52:42 | 139,162,905 | 28 | 3 | Apache-2.0 | 2018-10-22T05:52:51 | 2018-06-29T15:02:59 | Python | UTF-8 | Python | false | false | 8,595 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
from aio... | [
"olitheolix@gmail.com"
] | olitheolix@gmail.com |
c82a823e456f3c72a13185baabca85056e1368b2 | 5b52dcf6f1ace79f48bfb39a2e795652c2b13da8 | /scripts/create-deny-all-sg.py | e15bdecda3a5567126872801b11d0def73402cb2 | [
"Apache-2.0"
] | permissive | daniel-prince/xsoar-hackathon | 31e93d783e8f66d1070c5cac379dadf9b82f646f | f0a22844ad138c7f5b635db9e8b23b2b1ccebece | refs/heads/master | 2022-12-24T06:34:27.026504 | 2020-09-23T20:36:03 | 2020-09-23T20:52:10 | 298,088,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | import json
import boto3
def lambda_handler(event, context):
if isinstance(event, str):
event = json.loads(event)
client = assume_role(f"arn:aws:iam::{event['account_id']}:role/aws-controltower-AdministratorExecutionRole",
"demisto", 'ec2', event['region'])
response = cl... | [
"dprince87@gmail.com"
] | dprince87@gmail.com |
7c65fce73de8f799ff325bdc0bc34efeaca7410a | 7fd5ebc75e7093a84edb0cbf3e2b1f3623bdc2fa | /customauth/views.py | 0b5e0ecbcf11ac96d1c874bb39c8d60cec69c3e7 | [
"BSD-2-Clause"
] | permissive | asifcoer/django-easy-custom-auth | c7eed0c129ae54fb1b5889ae41770fb91a91346c | c9fc894c0ba13d4fd1cde4993483d897933f0bc5 | refs/heads/master | 2020-08-13T20:25:51.862238 | 2019-10-14T12:06:11 | 2019-10-14T12:06:11 | 215,033,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | from django.shortcuts import render
from django.contrib.auth import views as auth_views
from django.contrib import messages
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.views.generic.edit import FormView,CreateView
from django.views.generic import View
f... | [
"mohd.asif@infoxen.com"
] | mohd.asif@infoxen.com |
ae6c9c5200ba9589189a014e1abe98901d2d5910 | fb80baa54e479a4056aeb027c1cb89adc1a568d2 | /hackbu2018/driver.py | 967abd1f31157cdd2038ab0d586f68f8d585a0e5 | [] | no_license | brandondonato/HackBU2018 | 276f1e98d72714797ef540c2c2514cca1b2d3dc1 | 2519170a6702592ba2972cd9ccb78fb4ece130f0 | refs/heads/master | 2021-05-01T06:41:23.459067 | 2018-02-15T05:43:53 | 2018-02-15T05:43:53 | 121,149,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 11 10:22:35 2018
@author: Daniel Lee
"""
from tkinter import *
from GUI import MyGUI
import predictor
from Graph import Graph
def main():
graph = Graph()
graph.saveGraph()
root = Tk()
probabilityIncrease, probabilityDecrease = predictor.pre... | [
"noreply@github.com"
] | noreply@github.com |
5519668779f50034e4331b23f653df34886d253a | f2ad477f075baf65e99ca846d73b239cbebec531 | /tests/sshelve_test.py | f75a916fa6675d1c53b90c3a1541b665839bf78f | [
"Apache-2.0"
] | permissive | aragagnin/sqlite3db-py3 | e61e87fa5daabe4998f242c1cbde39037c8b2567 | 4a1cf9992d1e636db6c1405a6a0e65ca1f91f422 | refs/heads/master | 2022-12-14T23:21:24.167805 | 2020-09-09T20:35:05 | 2020-09-09T20:35:05 | 293,635,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,967 | py | # -*- coding: utf-8 -*-
# Copyright 2011 Yelp
#
# 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 ... | [
"jfennell@yelp.com"
] | jfennell@yelp.com |
fbe5b3bc53d4ca5e5279b5e32b1207f84aea771a | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210714191430.py | 04f5745a8803874ada846022a476fba426fada70 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
a6acab5a9589eab68c63ca66240a678eb6f28351 | 70dfdab9a59ddb71fa7b7e0e670d0d30318d9968 | /newmovies/apps.py | 51f43083b78c9fa5bcb1565d777ce3c918eaf975 | [] | no_license | Ruchibora59/IMDB-CLONE | a89aaaa4a9d5be6379961d4328ce686a6fdc8c23 | a122060a82d4060421aec2915ac2f47a9563497c | refs/heads/main | 2023-02-21T17:40:36.076772 | 2021-01-23T15:35:04 | 2021-01-23T15:35:04 | 329,946,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class NewmoviesConfig(AppConfig):
name = 'newmovies'
| [
"ruchibora1997@gmail.com"
] | ruchibora1997@gmail.com |
658eeb72fe2dc0b71718c72b0adb38917734fe09 | 62f64eb86facac614ebe1c015bcf72baa3b28af4 | /solver.py | d37e3be3b0f0c0051d43b7e9bb030d7ce201b021 | [] | no_license | LeeSooHyung/opencv_1 | 440cbafd957e1f4dab4d706f33d47abd72d4bd93 | c49cd089ce0a18e8742bd81d68eee34e0a96d97d | refs/heads/master | 2021-05-24T16:51:29.387788 | 2020-06-22T05:55:02 | 2020-06-22T05:55:02 | 253,663,643 | 0 | 1 | null | 2020-06-17T04:47:42 | 2020-04-07T02:10:44 | null | UTF-8 | Python | false | false | 3,282 | py |
def cross(A, B):
return [a+b for a in A for b in B]
rows = 'ABCDEFGHI'
cols = '123456789'
digits = cols
squares = cross(rows, cols)
unitlist = ([cross(rows, c) for c in cols] +
[cross(r, cols) for r in rows] +
[cross(rs, cs) for rs in ('ABC', 'DEF', 'GHI') for cs in ('123','456','789')]
... | [
"noreply@github.com"
] | noreply@github.com |
d0be47c428fd0196db9d564f13c56828ca3f69c9 | 0aa4961e3fece32ea7885485773ee1b7d249fada | /parse areas of old data.py | 1c49f44f188320cfceec8b62e17b5ef39c22b4bf | [] | no_license | dshopin/RE-Listings-Scraper | 82cab848aa12b7401dd598075ef827c325a52c76 | 1cbf90cd970f5767ceb8cb71d88f049b6c981492 | refs/heads/master | 2020-04-11T15:49:00.664670 | 2019-10-01T18:17:48 | 2019-10-01T18:17:48 | 161,846,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 17 16:11:30 2018
@author: e6on6gv
"""
import pandas as pd
from sqlalchemy import create_engine
from scraper import area_to_sqft
from scraper import mysql_url
engine = create_engine(mysql_url)
df = pd.read_sql_table('listings', engine)
df = df.drop('index', axis=1)
df[... | [
"dmitry.shopin@gmail.com"
] | dmitry.shopin@gmail.com |
bdb16e24121fd3f3951c57b0e6625dd829249700 | daf4fb47ff48538ce58e57c006301efc422d0c8e | /pdd/tools.py | 724de5b41468f949273d51e7a3289878aeeed2fe | [] | no_license | Lodek/pdd | 4883aad3e0b8439bae854a9dd74aa428dcffbbc9 | 5f48e289da6bbaecb64b23dc786bf18f8e0f3296 | refs/heads/master | 2020-04-30T12:25:27.917631 | 2019-04-30T03:14:09 | 2019-04-30T03:14:09 | 176,826,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,144 | py | from pdd.dl import Bus
import unittest, re
class TruthTable:
"""
Simple abstraction for a truthtable. Truth table is modelled as a list of
dictionaries, each row in the table correspond to a dictionary.
Equality of the given list ignores order, checks whether each element is
in the other list. If b... | [
"23224552+Lodek@users.noreply.github.com"
] | 23224552+Lodek@users.noreply.github.com |
b4f92799ab006a2aa6650644de3753b7e311452b | f3e102be47e0ca8b0efd748814c9b2ef613d80ad | /Ex_Files_Programming_Foundations_Fundamentals/Exercise Files/Chap05/05_01_begin.py | 12fc31a35345ce731c4dff0d21afd2e7b40c1fae | [] | no_license | John-d-great/Dell-Repo | a7f9ac3125c08eeaebfe39e327d72997a800b9b8 | feb66916fbfc6788ca0aa96b1435126a53896cf9 | refs/heads/master | 2023-06-24T18:13:35.934289 | 2020-09-05T12:49:27 | 2020-09-05T12:49:27 | 291,220,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | print("~~~ The Shimmy ~~~")
def shimmy():
print("Take one step to the right and stomp.")
print("Take one step to the left and stomp.")
print("Shake those hips!")
shimmy() | [
"Raphaeljunior@hotmail.fr"
] | Raphaeljunior@hotmail.fr |
4a93e4f5e71d1b98a804e59f7e02820ebb8cde41 | 94a96c9c0f8b3a215243876a98f35b8eeb7cbd8b | /vit_jax/models_mixer_ct_cat_tc.py | dc5dac5066afa8404a8dfbccf28cb2e4309a003e | [
"Apache-2.0"
] | permissive | Yutong-Zhou-cv/MLP-Mixer-ZHOU | aec8e20216405aef3ae47203667ccd46c8766db7 | fbd511954986bc35757b4e14d7f2fa345e39865f | refs/heads/main | 2023-04-30T02:15:22.604947 | 2021-05-15T07:05:38 | 2021-05-15T07:05:38 | 367,254,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | # Copyright 2021 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | noreply@github.com |
f63c70755244d87ce04c8b4117a8954ae31c767d | b973e87631f9a6c274c534aac5175c73a670f349 | /pyquizz/quizz/admin.py | 6dd86906b515959856f15f2025b8d779151a23ec | [
"BSD-3-Clause"
] | permissive | vpoulailleau/pyquizz | f70e8df03f39e08c5ec56aa92e378c1d2a822c29 | 08320f402d4453a7d5366e5cd2f36962eebc01ca | refs/heads/master | 2023-02-04T16:36:15.804808 | 2023-01-27T16:58:24 | 2023-01-27T16:58:24 | 153,910,665 | 4 | 0 | BSD-3-Clause | 2021-04-30T08:34:42 | 2018-10-20T13:53:26 | Python | UTF-8 | Python | false | false | 3,141 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
from django.utils.html import format_html, format_html_join
from .models import Answer, Group, Profile, Question, Quizz, QuizzSending, ReviewAnswer
def user_display(user: User... | [
"vpoulailleau@gmail.com"
] | vpoulailleau@gmail.com |
ca4c61c2697d703228476c9771a0fe275f028016 | abc5ea78e46546159d6ebe5c49834b369109bd0c | /DataMunging/setup.py | 754d45ac07960ae355cf3683ad4ec1865d98eb44 | [] | no_license | fnandosilva/DataMungingWinService | 2fe098fcf5ca2dac50c604c74f0de05fe0b8b5af | 80684adefd04cf1d344efea62f5d1674f2ee3379 | refs/heads/master | 2023-06-19T21:06:00.939894 | 2020-10-21T20:08:11 | 2020-10-21T20:08:11 | 305,823,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | import sys
import cx_Freeze
import os
import matplotlib
# Dependencies are automatically detected, but it might need fine tuning.
os.environ['TCL_LIBRARY'] = "C:\\LOCAL_TO_PYTHON\\PYTHON37-64\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\LOCAL_TO_PYTHON\\PYTHON37-64\\tcl\\tk8.6"
# GUI applications require a differe... | [
"fnando2-silva@yahoo.com.br"
] | fnando2-silva@yahoo.com.br |
776d7391929cdfad611d90faf6123d9f4f811f93 | ca812435e8a054c94821dad2fa413f24111def58 | /store/migrations/0002_auto_20170704_1031.py | 03e8b704446fe04fe1318aad49e6990500a54acb | [] | no_license | thsshz/mysite | 830e704cc17d3d1dcb44460ae70818ed00d6e6dc | e1e7803cda0638732d12c0793e2fa4c08e8e1505 | refs/heads/master | 2020-12-03T00:23:57.751323 | 2017-07-07T09:01:36 | 2017-07-07T09:01:36 | 96,025,637 | 0 | 0 | null | 2017-07-02T13:38:05 | 2017-07-02T13:38:05 | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-04 02:31
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migr... | [
"thss15_huz@163.com"
] | thss15_huz@163.com |
f70841f32526f182b53afaa4a5e000554cecce9c | e42dd7b257cb447c62b6c130cc66112d4bd0e712 | /Programming-101/incrementExercise.py | 28855bde46c2a3cdf17bbdb6829034eafdf52b29 | [] | no_license | wesleyhedrick/Digital-Crafts-Classes | db66ec5add2f87eed0ae513029212ee472a6694c | dcd2a96126caf930641e2143cc637604044d6b65 | refs/heads/master | 2023-01-06T06:29:26.264373 | 2020-11-03T13:32:38 | 2020-11-03T13:32:38 | 303,483,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | my_number = 0
increment_by = 1
for number in range(3):
my_number += increment_by
print(my_number)
for number in range(3):
print('Number is: ', number)
#Testing interpolation
a = 'One'
b = 'Two'
c = 'Three'
print('Hi %s %s %s' %(a,b,c))
| [
"wesley.hedrick@gmail.com"
] | wesley.hedrick@gmail.com |
344e59c82179984a3b83cc3a808abee6d080f458 | 9c1ebbe76c525f1f63481232ebfb61cde37994e3 | /second/main (1).py | effb9dbc42da8b3ad7671faddfea0490a28c4044 | [] | no_license | georgeiniesta/Python-Tests-2 | f279f59046fcdf3a33d9320b05d12de7d6a12f97 | 54544888069edda0f42c8277f5e1a20fd4c4f82c | refs/heads/main | 2023-08-03T10:42:00.056297 | 2021-09-13T19:42:10 | 2021-09-13T19:42:10 | 406,106,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | print ('I\'m Monty \"Python\"') | [
"noreply@github.com"
] | noreply@github.com |
5834ecdcd85f57c990102d62a19a43d629d254c7 | d51c6affa8949a340b33a7e263dc44eb5014f2f3 | /caps/Scripts/nltk-script.py | f59fcc00246e3e7b977ed1e393d031ed7b3d5dd2 | [
"BSD-2-Clause"
] | permissive | Ruzick/company_explore_data | 989c7f213fe892a3cc20d57c1fa24aa3fa58d645 | 54c069fa00c26e337c6a1b4b23f6ccccd3d3784a | refs/heads/main | 2023-03-07T21:04:34.461051 | 2021-02-27T12:57:47 | 2021-02-27T12:57:47 | 340,731,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!c:\users\kikik\capstone\caps\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'nltk==3.5','console_scripts','nltk'
__requires__ = 'nltk==3.5'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"Ruzick@users.noreply.github.com"
] | Ruzick@users.noreply.github.com |
e57a7a57959617c4915505c6f1aa99cc251af4ae | bf8f717939feb2b5e202efdc50ee26032fd3263f | /sound.py | 3c20730d1da7b8e89b2242e612c808d166204fe5 | [] | no_license | jbd0101/LELEC1101 | b09b7510f6cd31491750b06e18156b4f47dfc39b | 88ba78d06b6e0f34c6104cf3887e2a0ea61f58e3 | refs/heads/master | 2023-04-22T22:48:12.109143 | 2021-05-10T17:36:32 | 2021-05-10T17:36:32 | 336,230,605 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import matplotlib.pyplot as plt
import numpy as np
from random import randint as rd
F = 1.5e3
main = lambda x: np.sin(2*np.pi*F*x)
table = np.linspace(0,2,1000)
plt.plot(main(table))
plt.show()
| [
"maildejc@hotmail.be"
] | maildejc@hotmail.be |
e709b2acef37c1f59764d6cb79de8b5b3176e6b7 | cb95e58567300344f0458d207327bad92419e2ba | /c4_v2.1.py | 04ac7a2fe2ac56870afb47d82ec57de9ead7a892 | [] | no_license | UnforeseenOcean/c4 | 0d1d5b7b131022939de632ab1cc477090abe98dd | d0d316fe702de2ae89c7c159a868b98f956de8ea | refs/heads/master | 2021-01-17T23:25:01.041609 | 2016-04-16T01:03:50 | 2016-04-16T01:03:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,839 | py | #! python2
# Made by cr4sh3r
# c4_rat - v2.1
import Tkinter, urllib2, ctypes, ftplib, wget, time, os
# These Variables are set by the host
# Feel free to change their values
art = """
___ _ _ _
/ | | | | | | |
___ / ... | [
"gingont@gmail.com"
] | gingont@gmail.com |
5c8bec34b3455da38460275936f45236a1356b09 | 921aa4d0dddc868b61fe1ea3805cf15c36853bc0 | /client/k8s_client/models/v1beta1_ingress_list.py | 597dd9d514517fbd656459a07921c530ef9f056d | [] | no_license | mbohlool/k8s-python-client | 56d569071326820ebb5e11319ca230a272282a56 | e083a1991e03f05d69a39f43b02b9bd5ede0a2b7 | refs/heads/master | 2021-01-09T20:29:17.339112 | 2016-08-18T23:16:49 | 2016-08-18T23:16:49 | 65,772,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,235 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | [
"mehdy@google.com"
] | mehdy@google.com |
a65e513b2a58d300144f7c80b24d882cad985edc | a0ca6e78f0500e6bfc874cdb4ad79869c0fc4e81 | /plot_admitted.py | 027c0de8432efea3e6c2e5c09fc897a98567b1f0 | [] | no_license | kshedden/micovid | e25fc834e4fe9f55fdd80a40d68c134a9912bc3c | 1f85d84645707d4bb5e6bc913e667d666ce10a85 | refs/heads/master | 2022-11-23T23:46:09.794802 | 2020-07-20T02:57:57 | 2020-07-20T02:57:57 | 275,910,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.dates as mdates
import json
import gzip
months = mdates.MonthLocator()
months_fmt = mdates.DateFormatter("%b")
with gzip.open("/nfs/kshedden/Daniel_Keyes/ratio_results.json.gz"... | [
"kshedden@umich.edu"
] | kshedden@umich.edu |
68728cd4eddd6883cd76d31294f0643bfe8568e6 | 97755d9c978d5165c1ddc0208aae575c27bc9a62 | /verification_plotter.py | e1bfee8a83eb88f1d798aacace90a6ee906448f3 | [] | no_license | tmldeponti/AE4441-Group-2-VRP-Project | 9a393bbad2783ca20f56099f549b37805dc87ac2 | cc425ffcbc4642f594022ff9cfbb37d0eeea07dd | refs/heads/main | 2023-01-16T05:56:11.060270 | 2020-11-27T11:00:53 | 2020-11-27T11:00:53 | 347,480,039 | 1 | 0 | null | 2021-03-13T21:13:42 | 2021-03-13T21:13:41 | null | UTF-8 | Python | false | false | 2,593 | py | """
author: tmldeponti
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os
def simpleplot():
# Get path to current folder
cwd = os.getcwd()
print(cwd)
# Get all instances
full_list = os.listdir(cwd)
####-----MAC---------####
instance_name = '/database/varia... | [
"tomasodp@gmail.com"
] | tomasodp@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.