blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
176d31a4c77d9a9650c5c3e08607b1e8d08aefbe
4f792275d800f90501615de3432768fbc0f88839
/catkin_ws/build/catkin_generated/stamps/Project/_setup_util.py.stamp
c61717a79d66a52a300918a90a7f61a3d092de17
[]
no_license
poolec4/rbe500_team2_pa3
dbc80646f2f6227523be5e7e1653b1a9e941aec4
22c5cde68416ab8d87497ad868cec29eb01d7299
refs/heads/master
2023-06-26T23:13:03.096721
2021-07-28T00:10:22
2021-07-28T00:10:22
380,965,222
0
0
null
null
null
null
UTF-8
Python
false
false
13,357
stamp
#!/usr/bin/python2 # -*- coding: utf-8 -*- # Software License Agreement (BSD License) # # Copyright (c) 2012, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistri...
[ "poolec4@gmail.com" ]
poolec4@gmail.com
73829092e2f3d7817b1fb45bfadc46dc178673f0
b3943565e361393488764718d72c1e480ad1afdd
/algorithms/Problem_Solving_Algorithms_Data Structures/sorting_and_search/bubble_sort.py
ec2b110441127d45296bb6055f4ae7d9277f6679
[]
no_license
DerevenetsArtyom/pure-python
1f48f83c7475dfbbc28b71c97b81126246d8ffc8
186b9ed52962158d8c9f2c4dddeff5a7e7c5369c
refs/heads/master
2021-04-09T13:47:55.743862
2018-04-01T17:05:49
2018-04-01T17:05:49
125,518,923
1
0
null
null
null
null
UTF-8
Python
false
false
2,334
py
def bubble_sort(arr): """ Вне зависимости от первоначального порядка элементов, для списка из n элементов будет сделан n−1 проход """ # reduce number of elements in every next iteration with shifting # right bound, but that doesn't reduce complexity ((( for right_bound in range(len(arr) - 1,...
[ "artem@comvoy.be" ]
artem@comvoy.be
992b3eeeeb12af1c4f87a8ebc9d1a998c7f36590
3d4cdbca777ad6c2b86ab0e463090484a184455a
/geoload1.py
546bb52de2b0fcd9bb5dcfd841ed1cf3cf70971f
[]
no_license
samironta/pythonplay
388900b9c31a99afcee23fd4e16ff5b78e75fd88
4e29c7e18daf149ed0da219a3cb3f4d673a1e0c5
refs/heads/main
2023-04-22T21:00:03.609072
2021-05-12T10:28:40
2021-05-12T10:28:40
366,677,753
0
0
null
null
null
null
UTF-8
Python
false
false
2,201
py
import urllib.request, urllib.parse, urllib.error import http import sqlite3 import json import time import ssl import sys api_key = False # If you have a Google Places API key, enter it here # api_key = 'AIzaSy___IDByT70' if api_key is False: api_key = 42 serviceurl = "http://py4e-data.dr-chuck.net/json?" el...
[ "83291846+samironta@users.noreply.github.com" ]
83291846+samironta@users.noreply.github.com
72274c90e2fd879e0b7587929824304189aaf536
a89c67e57352448941f14e4441ca09bc75d819f9
/Support Vector Regression (SVR)/suvecreg.py
5af8e4c98759e01ee85403d3af0b4b763b52af99
[]
no_license
SaiSiddhanthGujjari/Regression-Models
1345e1f86440f34a137594fe340b1ab73357831c
5f043dfadd42f8c08b8c213a73cb9e3f1fdf84ae
refs/heads/master
2020-12-18T09:43:29.349213
2020-01-21T12:31:32
2020-01-21T12:41:47
235,333,211
0
0
null
null
null
null
UTF-8
Python
false
false
1,143
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 18 22:08:42 2018 @author: Sai Siddhanth """ #Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd #Importing the dataset dataset = pd.read_csv('Position_Salaries.csv') #Creating matrix of features and an dependent vector X = da...
[ "saisiddhanth10@gmail.com" ]
saisiddhanth10@gmail.com
0b34c179615c5c47fadc78c555343f10233332c6
0baa5beb0ca5044b006b3b1aa67fd5042334720d
/webserver/serverapp/migrations/0006_auto_20170319_2206.py
e0c0fbf8d4cac3480bded23d47ab9ef86a7206a9
[]
no_license
meddeb9989/tntwebserver
20791d29ba45705234ae3679e139ca6126e0233b
6526a36994288b53290d0149c2c97e9d67b8b3cb
refs/heads/master
2021-01-20T10:21:27.527155
2017-12-04T16:05:06
2017-12-04T16:05:06
83,928,109
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-19 22:06 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('serverapp', '0005_transaction_confirmed'), ] operations = [ migrations.Alte...
[ "meddebmohamedfakher@MacBook-Pro-de-Meddeb-Mohamed-Fakher.local" ]
meddebmohamedfakher@MacBook-Pro-de-Meddeb-Mohamed-Fakher.local
1f126186de13c9e59d1d5342af2047ea667277f9
009594f6a84c9fc66e4be6a60d59c8d2c7c5aed8
/PythonThings/ElseWithLoops.py
136a35c6bb3baf7713c2f7cb688a4743307d61ef
[]
no_license
cyperh17/python
c8c04877a6007656d3a19b471c17a9720e68cc91
2279c630e02cf6a4eaef2a8f65a665ce246bd8a2
refs/heads/master
2021-01-24T09:31:17.241324
2016-09-28T15:28:44
2016-09-28T15:28:44
68,818,718
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
l = range(0, 10) #for for i in l: print(i, end=' ') if(i == 3): break #causes loop to break so then else not get called else: #also called 'no break'. Else is called when break didnt called in the loop print('\nHit the for/else statetement!') print('\n') #while i = 0 while i < (len(l) - 1): p...
[ "cyperh17@gmail.com" ]
cyperh17@gmail.com
96bd79305b964700660216a7aff3846297cd700f
055e3b34d8f288d354c6a09e75f14bc1584bf2eb
/text (laba 4,5,6)/laba5.py
669de58713ebe210092b14aa0153fe18127b2469
[]
no_license
jmaynard-n/oavi
c55f2e897305bf41e1222d4e725cf9055bfa35ec
042b2eb31f3fac964fb0017a036ee3389a71a815
refs/heads/master
2021-01-04T18:04:45.371911
2020-04-19T23:47:31
2020-04-19T23:47:31
240,701,100
0
0
null
null
null
null
UTF-8
Python
false
false
2,275
py
import csv from bin import Thresholding_Otsu as otsu from semi import semitone from PIL import Image import numpy as np from profile import profiles, prof_axis from croping import crop from segmentation import segment from generator import str_gen import os import shutil def imprt(file): img = Image.open(file, 'r'...
[ "andreyeva1902@yandex.ru" ]
andreyeva1902@yandex.ru
5f967271f6f88bdf986b54e47f62f5bcfbb94893
e8421a737d596d757e617087ae549505cacafa52
/tests/api_utils.py
13956f212fcc22af4b0060daad3f17be59a3667d
[]
no_license
webclinic017/valkyrie-2
e6e533aedb39bbf98833e0ebea55446e1088f795
76e7c1ba31387fdf1982e2ad0ff579c8c41f061e
refs/heads/master
2023-04-03T03:14:59.941236
2021-04-18T16:38:51
2021-04-18T16:38:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
import os from datetime import datetime from typing import List from uuid import uuid4 from backtrader import TimeFrame from valkyrie.api import api from valkyrie.configs import BrokerConfig, MarketConfig def use_api( graph: List[dict], task_id: str = str(uuid4()), broker_config: BrokerConfig = BrokerCon...
[ "eprice122@gmail.com" ]
eprice122@gmail.com
86e3c088412f6fbe1a0e19035adc5ccd92678946
8bb4a472344fda15985ac322d14e8f4ad79c7553
/Python3-Core/src/main/prompto/expression/IteratorExpression.py
b971b1ee518405148002356368f86332f182ab37
[]
no_license
prompto/prompto-python3
c6b356f5af30c6826730ba7f2ad869f341983a2d
64bd3d97d4702cc912097d41d961f7ab3fd82bee
refs/heads/master
2022-12-24T12:33:16.251468
2022-11-27T17:37:56
2022-11-27T17:37:56
32,623,633
4
0
null
2019-05-04T11:06:05
2015-03-21T07:17:25
Python
UTF-8
Python
false
false
3,006
py
from prompto.expression.IExpression import IExpression from prompto.expression.ParenthesisExpression import ParenthesisExpression from prompto.runtime.Variable import Variable from prompto.error.InternalError import InternalError from prompto.statement.UnresolvedCall import UnresolvedCall from prompto.type.IteratorType...
[ "eric.vergnaud@wanadoo.fr" ]
eric.vergnaud@wanadoo.fr
091522fb133d1992f60b8ce09069a41aacd45df5
98fd03020731a52b2880c49494514ede718eeaf4
/week1/DeBrujinGraph.py
0de0c341ccf7cb986aef5a05861bce58b56b2a01
[]
no_license
JoaoHenriqueOliveira/Bioinformatics-2
6e77eff53d49bcbda4686c92a852f34b5dbe45fe
18ab53201a3e2057b60ff0fcfaf76242ae96d27e
refs/heads/master
2022-12-16T04:40:51.129763
2020-10-01T15:05:26
2020-10-01T15:05:26
272,672,379
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
import unittest def DeBrujinGraph(k, text): k, n, dic = k - 1, len(text), {} res = [text[i:i + k] for i in range(n - k + 1)] res.sort() for elem in res: dic[elem] = [] for j in range(n - k): dic[text[j:j + k]].append(text[j + 1: j + k + 1]) for key in dic...
[ "joaojhro@gmail.com" ]
joaojhro@gmail.com
2b03f14f9c80f1dfdc0bae01a6cc959c1db39ca5
d84933816d3c9b05003198ccc6c8bcdd876a0690
/pie_examples/old/game_proto1.py
5a58cf76d960bc75aac7f2e395c0625d9ef2ef4d
[]
no_license
adoc/pieEngine
ae6cc8828c1217a226735fec3c995e06cf7b7baa
f799555ff5a6d86232e9b15408916b60079cd19f
refs/heads/master
2020-05-20T18:49:13.449808
2015-05-11T08:39:05
2015-05-11T08:39:05
34,555,334
0
0
null
null
null
null
UTF-8
Python
false
false
2,919
py
# TODO: Broken! import time import pygame from pygame.locals import * from lanchester.model.side import Battalion from pie_examples.ameiosis.sprite import Army from pie_examples.ameiosis.game import Ameiosis as AmeosisBase class Ameosis(AmeosisBase): def __init__(self,*args, **kwa): super(Ameosis, self...
[ "adoc@code.webmob.net" ]
adoc@code.webmob.net
c45b2fb0ebebf62d046dfced155b98f95eed5dc9
dc1b7ffbb86b12213ee37cbd64b27865055fe52f
/django/composeexample/settings.py
fbfdfd13a31470332f09a46529c8b04a35f51b37
[ "MIT" ]
permissive
rsskga/lambdata-rsskga
cac3dbbd594d3a1057748abebac458c3eb33f5b3
fe8898fd2574cad66c6e317221ea33e4d5b9e8f7
refs/heads/master
2022-12-11T09:56:07.876931
2019-10-30T23:00:57
2019-10-30T23:00:57
218,158,540
0
0
MIT
2022-12-08T06:48:49
2019-10-28T22:41:10
Python
UTF-8
Python
false
false
3,161
py
""" Django settings for composeexample project. Generated by 'django-admin startproject' using Django 2.2.6. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
[ "85403+rsskga@users.noreply.github.com" ]
85403+rsskga@users.noreply.github.com
81bda47956fbfa77abceafabf1ba04f77f849ac0
58412bd1c5364cd88205030de06cbbdc246b677c
/jupyter_file/hierarchical_helper.py
827896481959b986e4b7f3f478195e75782344fc
[ "Apache-2.0" ]
permissive
caserwin/daily-learning-python
764c7430a8fe5dbd2a8884a6a56d075d56203070
da66c1c0309dc1052d00104b005e8dd11550613b
refs/heads/master
2022-07-29T02:29:15.860159
2022-06-21T21:23:46
2022-06-21T21:23:46
119,244,311
2
1
null
null
null
null
UTF-8
Python
false
false
4,901
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-05-15 11:14 # @Author : erwin from collections import deque import operator class TreeNode(object): def __init__(self, idx=-1, data=None, parrent_node=None): self.idx = idx self.parrent_node = parrent_node self.data = data ...
[ "zustxueyiding@163.com" ]
zustxueyiding@163.com
bd194fe30d0af9dac7e04d16d366e2ec158b15a3
a738e9ea0012bf4303d3ada815d188cab7b9ce2a
/Day4/while_loop2.py
d62cd0c7fa5044c81e12e18f461d631b4f79f677
[]
no_license
AzizUddin05/pythonBasic
a8efbe934286faedc6da763ca79744a326ecdb43
cc1464422a9c4402d28ea4b1b43f0cdcf0c1cac2
refs/heads/main
2023-07-12T09:45:48.176180
2021-07-31T15:39:15
2021-07-31T15:39:15
391,391,754
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
i = 1 while i <= 100: print(i, end="\t") i = i + 1
[ "noreply@github.com" ]
noreply@github.com
fe47bf42475c493e72dca25cccc333b60767f7e2
b50bb55a909e726f9547677a72b74a3f3582730c
/qa_tools/__init__.py
e129a0a2ff502051ec372e24b613d769c3292744
[ "MIT" ]
permissive
keithgroup/qa-atoms-dimers
d3fe81bed1d76265dde73f8857fd309bc1946559
fff24f5658b45618de8f2dcb35b3b0b7e87898d0
refs/heads/main
2023-04-18T02:55:39.252076
2022-01-21T19:46:21
2022-01-21T19:46:21
421,457,242
0
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
# MIT License # # Copyright (c) 2021, Alex M. Maldonado # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify...
[ "aalexmmaldonado@gmail.com" ]
aalexmmaldonado@gmail.com
75e7b104f4a5d12e2b43805f5b4e15811699bd54
ae8c1de8eea8e16f9f3b3b7d491fe242e7514e2e
/build/dynamixel-workbench-msgs/dynamixel_workbench_msgs/catkin_generated/pkg.installspace.context.pc.py
b83504a3c2f16a8f195b4851b97484b094bf68fd
[]
no_license
sjlazza/t3_mav_flight
5209c3de198413366106ce10afc4943b44d4c5a1
b2140d97c2ed6510d643c47fb47a365c29851859
refs/heads/master
2023-06-10T07:30:06.059231
2021-06-14T09:16:00
2021-06-14T09:16:00
374,551,237
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "std_msgs;message_runtime".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" els...
[ "sjlazza@snu.ac.kr" ]
sjlazza@snu.ac.kr
94450c5327da7d416b41a53d69aac0436e893583
9536f2b718f489bc89c49381b77d3d05a1da3b4b
/image_anncs/urls.py
13568b0308e8d8633dd35c7d65d3afaf79f81cde
[]
no_license
Billy4195/DigitalSignage
d1b7e7e97052470d23e916135766ba6d76edd4e2
f516144f3a84f80f8260b11eb63089d2e96af5b1
refs/heads/master
2020-09-11T02:01:47.050513
2020-05-07T09:38:52
2020-05-07T09:38:52
221,904,249
1
0
null
null
null
null
UTF-8
Python
false
false
293
py
from django.contrib import admin from django.urls import path, include from django.contrib.auth.decorators import login_required from . import views urlpatterns = [ path('upload/', views.upload, name='upload'), path('delete/<int:img_id>', views.delete, name='img_delete'), ]
[ "g4691821@gmail.com" ]
g4691821@gmail.com
ce9a83b4eb122405b35d1dc0d1fedc11545b9972
6da19be45ff986768eb820f11691977cb3c84772
/Python/6_Advance_Python_development/606_Collection_module/Exercise_1.py
fe41fc148353319418877cf6d25a2e7196edf421
[]
no_license
alexp01/trainings
9e72f3a571292b79d2b1518f564d2dc0a774ef41
9d8daee16f15e0d7851fab12ab3d2505386a686c
refs/heads/master
2023-05-04T23:37:13.243691
2023-05-02T08:02:53
2023-05-02T08:02:53
272,425,687
0
0
null
null
null
null
UTF-8
Python
false
false
961
py
# https://www.udemy.com/course/the-complete-python-course/learn/quiz/4427862#questions from collections import defaultdict, OrderedDict, namedtuple, deque def task1(username: str, userlocation : str) -> defaultdict: """ - create a `defaultdict` object, and its default value would be set to the string `Unknow...
[ "34630182+alexp01@users.noreply.github.com" ]
34630182+alexp01@users.noreply.github.com
9405a8fbdc0c36536291aa6381e95ba5066ed969
2ac4951d0a8c2dc8398a4718146bf57f7a336727
/chapter2/odd_list1.py
2c3eb8b75f5e089d5c3d94c55e58ba3004e35b17
[]
no_license
OldJohn86/Langtangen
5e37a469828415f7aa5ccfc17f9390af999e328a
aaa34a1779d3732c8fa84c0bb3c860f00468178c
refs/heads/master
2020-08-25T06:21:54.335805
2014-10-04T20:38:10
2014-10-04T20:38:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
# odd.py prints odd numbers from 1 to n n = 20 i = 1 list = [] while i <= n: list.append(i) i = i + 2 for j in list: print j ''' python odd_list1.py 1 3 5 7 9 11 13 15 17 19 '''
[ "nruderman.s@gmail.com" ]
nruderman.s@gmail.com
582a1b621e09ebb78b94bcb5d50e555ba68e402e
dc39430cc2dd99c63efbfab9d15f190ae5c93b92
/xnb_parse/type_readers/xTile/__init__.py
7921e907added554f64aa53acc57eaae7df6613f
[ "MIT" ]
permissive
parhelia512/xnb_parse
f0cd9280c034d12d3e4ae31eef8a8e4a2f48a053
923cdce34203317c1e081dd56a171ae84d754b7c
refs/heads/master
2020-05-29T11:50:36.466784
2017-03-27T11:07:25
2017-03-27T11:07:25
29,853,018
0
1
null
2017-03-27T11:07:26
2015-01-26T08:58:19
Python
UTF-8
Python
false
false
155
py
""" xTile type readers! """ from __future__ import print_function from xnb_parse.type_readers.xTile import xTile_graphics __all__ = ['xTile_graphics']
[ "LavrovAS@gmail.com" ]
LavrovAS@gmail.com
0d9d0cb061a679f2682422a87b81894348f4e3a8
61347b3363a6818ca6b19b323aee041f6c68da55
/ecommerce/shop/migrations/0006_auto_20210228_1035.py
4d900e033c5f59c717c48f705db0750e6d203454
[]
no_license
gianniskokkosis/django_ecommerce
a53885119f609ac599aeae0fc830e902e491e50c
b0719a19225c4f44c290d92f21e4109a57599405
refs/heads/main
2023-03-18T22:36:43.406078
2021-03-11T16:09:29
2021-03-11T16:09:29
303,303,860
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
# Generated by Django 3.1.6 on 2021-02-28 08:35 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('shop', '0005_remove_cart_status'), ] operations = [ migrations.CreateModel( name='Wishlist', ...
[ "t8160190@aueb.gr" ]
t8160190@aueb.gr
db1a882960a19c51a5976829f37073ea7d82c24c
e41d8daac285e37551e17778fa1d31698d707311
/Project3/etl.py
28d9b6cd4d800d5bcddb569a5d07071bfd69d1ed
[]
no_license
Johannes-Handloser/Data-Engineer-Nanodegree
d0224011b28ce1fdd9d9cc9b037032216cffc39a
5da2123c5b0eff436ff570281be6ed3161d95c2a
refs/heads/master
2022-11-26T19:47:31.795613
2020-08-08T10:34:53
2020-08-08T10:34:53
271,854,680
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
import configparser import psycopg2 from sql_queries import copy_table_queries, insert_table_queries def load_staging_tables(cur, conn): """ Load data from S3 to the previously created staging tables using the queries in the copy_table_queries array """ print("inside load staging tables") for quer...
[ "johannes.handloser@bmw.de" ]
johannes.handloser@bmw.de
7f687d32f8e6e619adc652e3a374840a15d548fc
720ec1a86771c996b7ed7bb2720f44b90789b599
/draw.py
72cafabcdb8e5d951c824549ffc1b5b647db8f1d
[]
no_license
wangqiaoli/DynamicalEnvs
6abfc821237034ff9a4eca50b0789d8d2ff7eaa4
c522cbee1096ddfa8473b358781c2fde4ae1cbd1
refs/heads/master
2022-12-09T09:23:40.360941
2020-09-21T02:22:26
2020-09-21T02:22:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,111
py
#!/usr/bin/env python # -*-coding:utf-8 -*- ''' @author: daishilong @contact: daishilong1236@gmail.com ''' import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.animation as anim from rigid import RectObs, RectRobot, CircleRobot def plot_arrow(ax, x, y, yaw, length=0...
[ "daishilong1236@gmail.com" ]
daishilong1236@gmail.com
c359c8d6b63998a8228d8333a383d55100661cfa
6a81b9bc6c4a1b3296b5b7535f12ceb30c461604
/phasing/attachAB.py
7d8903478abcf68e1b2fa4bd7400fc7c87d3e38e
[]
no_license
ac812/mega-analysis
71a0744ba72596eac210d3abdbb014904839f608
a155c655d1f4af64233729d822e8debba7eaf954
refs/heads/master
2021-01-17T08:29:54.718241
2011-12-15T20:54:44
2011-12-15T20:54:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
import sys for l in sys.stdin: toksA = l.rstrip().split("\t") toksB = l.rstrip().split("\t") toksA[0] += "_A" toksA[1] += "_A" toksB[0] += "_B" toksB[1] += "_B" print "\t".join(toksA) print "\t".join(toksB)
[ "tr353@elephant.bio.cam.ac.uk" ]
tr353@elephant.bio.cam.ac.uk
cb60e16707f3be241ffe2d78c697d1dd43a6d1a9
1892bf56c2eda7d340c841235081a4ec928fd62e
/748. Shortest Completing Word.py
a73dc307b40b69cfc7da6fab5187fcaa9b06dcbe
[]
no_license
WindChimeRan/leetcode-codewars
bd736156b53201b0219a36ea35bcb81b599d0486
9f2fca7fc3926a5c18c95bb49dcecfc7900b681c
refs/heads/master
2021-07-07T11:11:19.988988
2020-07-28T03:32:22
2020-07-28T03:32:22
163,526,082
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
# 1 class Solution: def shortestCompletingWord(self, licensePlate, words): """ :type licensePlate: str :type words: List[str] :rtype: str """ plate = sorted(map(str.lower, filter(lambda x: str.isalpha(x), licensePlate))) result = None length =...
[ "noreply@github.com" ]
noreply@github.com
a5f25257cbca5020bcd61522aa7920ae66fee4a8
0fcc2db432b667872a85a80d77e1e71925f4b441
/autonpa/autotests/actions.py
9310f1d1394ef80febffbd8945670e350404cb82
[ "Apache-2.0" ]
permissive
Jockero1991/Autonpa
e830b85160ffc251108f8ce310bfe629982390f9
dd90baf2b6b5c66535672973b98b0c90d0d65d51
refs/heads/master
2022-12-17T13:02:57.635702
2021-03-30T06:37:28
2021-03-30T06:37:28
124,958,867
0
1
Apache-2.0
2022-12-08T00:57:36
2018-03-12T22:22:38
Python
UTF-8
Python
false
false
908
py
import postgresql as ps from selenium import webdriver as wd from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.desired_c...
[ "black_jack.1991@mail.ru" ]
black_jack.1991@mail.ru
69203dd0d18666e3761e7f7baee12259aa9dd614
40bfe140480d42750aa4a28fa07c2d25c6c51891
/apps/api/views.py
6edf3a613b0fc6504611d79efb3d2c74622b8bcf
[]
no_license
kuzentio/mitra
bed5750a1f34bbfeab48aaaa1ca6907b0a04abd8
f1da84ca5657c8741141cff145487fa6e29b5cfe
refs/heads/master
2023-04-11T07:16:11.978486
2019-03-19T16:22:57
2019-03-19T16:22:57
135,567,211
0
1
null
2021-03-01T15:49:57
2018-05-31T10:09:35
Python
UTF-8
Python
false
false
6,965
py
from datetime import datetime from django.contrib.auth.decorators import login_required from django.http import JsonResponse from rest_framework import generics, status from rest_framework.decorators import api_view from rest_framework.generics import get_object_or_404 from rest_framework.permissions import IsAuthenti...
[ "0585ec@gmail.com" ]
0585ec@gmail.com
2d5e1ef3de847984b2241c0129fbfc933c8e72fd
e5f04e20a7c9a01f6cf9a9827203de62e4c4b66e
/mnmt/trainer/trainer.py
047f9c1b3d12c3126e03717d7675d250e33efc59
[ "MIT" ]
permissive
syizhao/Multi-task-NMTransliteration
e2284a1212d68ac894ac4f78848b11fc1ec85b1d
d8e6a957f3d6e870172f6aa92e9871769d863244
refs/heads/master
2023-02-14T01:21:42.790144
2021-01-09T22:16:24
2021-01-09T22:16:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,080
py
from mnmt.inputter import ArgsFeeder from mnmt.inputter import generate_batch_iterators from mnmt.translator import Seq2SeqTranslator from mnmt.alternating_character_table import AlternatingCharacterTable from mnmt.alternating_character_table import dict_act_path from mnmt.trainer.utils import * import torch imp...
[ "lawhy0729@gmail.com" ]
lawhy0729@gmail.com
c05d8a4e840ef2afbca731b3bbb2dbae8e93ca87
d0e74db58ce3ec48cd165070157022767f7d14f9
/exercise-3.py
b5e2d889c65ed3f72c12f257833d0cbff5c980db
[]
no_license
KelseyRocco/control-flow-lab
7cb85e1f2aeb45f8c589899e672b37917e02620c
f300f0d3bbd60dfc2cb7005742bfc0c54f7fcd06
refs/heads/main
2023-06-02T11:34:33.182219
2021-06-15T18:00:27
2021-06-15T18:00:27
377,251,502
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
# exercise-03 Calculate Dog Years # Write the code that: # 1. Prompts the user to enter a dog's age in human years like this: # Input a dog's age in human years: # 2. Calculates the equivalent dog years, where: # - The first two years count as 10 years each # - Any remaining years count as 7 years each...
[ "kelseyroccoh@gmail.com" ]
kelseyroccoh@gmail.com
9773ec360833e6176698d87d660d3c5844e46edb
81663c7e0f7d2ebd8dd0f46766e9d9a55d2ee046
/course/my_practice/Blog_site/migrations/versions/75f97fe6d6aa_first_migration.py
7db0eaf6eacfbd47374c3d8609230544af424bb6
[]
no_license
VladyslavPodrazhanskyi/flask_blog
49f695947f3da91f73c7e7cd7d7a75d4dc59c744
5f3fb73ef70ffe4648a99bf471c3fee5dbdb21c4
refs/heads/master
2022-12-15T06:45:37.538683
2020-05-17T14:07:46
2020-05-17T14:07:46
232,903,749
0
0
null
2022-12-08T01:06:07
2020-01-09T20:53:18
Python
UTF-8
Python
false
false
1,650
py
"""first migration Revision ID: 75f97fe6d6aa Revises: Create Date: 2020-05-16 18:10:54.256179 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '75f97fe6d6aa' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto ge...
[ "https://VladyslavPodrazhanskyi@github.com" ]
https://VladyslavPodrazhanskyi@github.com
c24108115824846270de2c3fb788e3860aee965a
0750ac688e156932ce004aa40fac7388878ac647
/monitor/monitor.py
ce82ae3df0d4e044b09907243562d81c0f7f934f
[]
no_license
alexandalee/pymonitor
5126b877d258418edba47dca8e716965b4ff80e3
a81acad1e67d49085564a48860a36472d3c439bb
refs/heads/master
2021-01-01T19:15:56.935462
2015-05-08T10:33:04
2015-05-08T10:33:04
35,099,945
0
0
null
null
null
null
UTF-8
Python
false
false
3,656
py
#-*- coding:utf-8 -*- __author__ = 'likun' import os import sys import time import inspect import logging import traceback import rrtdb.normal as rrtdb import rrtnet import rrtcfg class Monitor(): def __init__(self): self.config = None self.isAlive = True self.logger = self._getLogger...
[ "alexandalee@gmail.com" ]
alexandalee@gmail.com
7e1494da693f73f9ed9861d391c4d70b3a547db3
eddba20dfd883e6ac710fd7c7035a9da1a06ff96
/analysis/NewClassifierBasedCategoryFiller.py
4a5c468a6ffecefb7d6ecaca7a6a97254aca1d84
[]
no_license
philippwindischhofer/HiggsPivoting
cc64ea6f75919c78a88ae4a182e30eb6f2669767
c103de67d4c8358aba698ecf4b1491c05b8f6494
refs/heads/paper
2022-11-27T18:03:17.491300
2020-04-15T14:39:43
2020-04-15T14:39:43
193,477,990
3
0
null
2022-11-21T21:31:39
2019-06-24T09:46:32
Python
UTF-8
Python
false
false
3,572
py
import numpy as np import pandas as pd from analysis.Category import Category from base.Configs import TrainingConfig from plotting.ModelEvaluator import ModelEvaluator from training.DataFormatters import TrainingSample class ClassifierBasedCategoryFiller: @staticmethod def _sigeff_range_to_score_range(all_si...
[ "philipp.windischhofer@cern.ch" ]
philipp.windischhofer@cern.ch
450ff43113d7b2a34ff264bb64c3258a1dc48f6b
1c9afb2311f1e5cf8d1358569f26a81e71f89c42
/finaltest.py
199e4d6f0dea97f32345f738aa6ed98271f564c9
[]
no_license
pbsandjay/Glassdoor_Scraping_Example
fb051af4d3a3933aec41bcd9817f5795c740412e
c1482e7ab4a25372a7cc8fb55960eba3cae6d495
refs/heads/master
2022-05-17T00:33:19.479014
2020-04-21T23:24:10
2020-04-21T23:24:10
257,739,118
0
0
null
null
null
null
UTF-8
Python
false
false
11,203
py
import urllib2, sys from bs4 import BeautifulSoup import requests from urllib2 import urlopen #Oh boy, I can't wait for this code to collapse on itself and cause a python singularity f = open('reviews.txt','r+') companyname = raw_input("Please enter company name: ") companyname = companyname .strip("...
[ "noreply@github.com" ]
noreply@github.com
5d8eeb2647ece22b5b27583eec69d257f7248cb3
e8a3c31a3fb4159878a9848677055008e1a174a7
/preparedata4cnn.py
d295f3956823d7bc65d2bf9643ce02d49d8352f8
[]
no_license
giahy2507/ws
7dc1f9a75a550cc7fe67cc203837af09de62a50e
aee3316a0976e8cae8da9020d198f69e662e0b0f
refs/heads/master
2021-01-10T11:21:45.300750
2016-04-02T07:22:48
2016-04-02T07:22:48
53,932,985
0
0
null
null
null
null
UTF-8
Python
false
false
10,711
py
import os import numpy as np import pickle from sys import stdout import time import sys class Vocabulary(object): def __init__(self, word_index, word_freq, alphabet, min_count): self.word_index = word_index self.embed_matrix = None self.word_freq = word_freq self.vocab_size = len(w...
[ "giahy2507@gmail.com" ]
giahy2507@gmail.com
a6e55ce9f4a94bf7fe3b40c358854577daabf543
82f1e4eb6c1579f8d780e2b904586f6006fd1c11
/spider/spiders/proxy_spider.py
5541e6b431bbfe2805ddc458190ad593a0c62740
[]
no_license
zhenjunMa/MusicSpider
d7756075deea1e1ed7e7606eccb033c3bfa9bb50
b55fa08805767d9d7af19b287a27ecc57fc00385
refs/heads/master
2021-08-19T12:30:43.605227
2017-11-26T08:36:05
2017-11-26T08:36:05
111,176,566
3
0
null
null
null
null
UTF-8
Python
false
false
3,762
py
# -*- coding: utf-8 -*- import scrapy import urllib2 import requests from bs4 import BeautifulSoup def parse_proxy(response): print response # 获取西刺代理的高匿http代理,并验证 class ProxySpider(scrapy.Spider): name = "proxy" proxies = [] start_urls = [ "http://www.xicidaili.com/nn/1" ] def st...
[ "mzj911101@yahoo.com" ]
mzj911101@yahoo.com
60f6598ba438e4ebb1d8210d5ebf7a0a9557a2f5
f3baf8b850c896231b4c254a22567fd5d7a5035c
/Aula 15/Ex 1 .py
304e9d38f14bc2eb168f7ea770a7789ea0e364df
[ "MIT" ]
permissive
Katakhan/TrabalhosPython2
e1c23119ef582038ceea0004c872c00778fd326e
ab47af0ff3c00922857578e58a1a149d9e65e229
refs/heads/master
2020-09-21T02:15:04.505791
2020-03-19T13:23:41
2020-03-19T13:23:41
224,650,620
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
marca = input('Informe a marca da cerveja') teor = float(input('informe o teor alcoolico da cerveja')) tipo = input('Informe o tipo da cervaja(Alcoolico(1) e não alcoolico (0))') cerva_dicionario = {'marca':marca, 'teor':teor, 'tipo':tipo} def salvar_cerva(cerva_dicionario): arquivo = open ('Banco de cerva.txt',...
[ "antoniorafaelgastaldi@hotmail.com" ]
antoniorafaelgastaldi@hotmail.com
daf14cf7c7b03f03f1f1b401e88dd73d582756f7
e5f1f90c62255b4b16907e8036575ca3bf2612bc
/char.py
22f08890fa6eee0ddad64a9aae14dee3a0611a35
[]
no_license
engineern2019/Python
7719e1defe40161f7a53f8307d6970c27fdc088e
23b171c8190c8711329cc4f0957c4bff1ab873d5
refs/heads/master
2020-05-26T22:00:44.559494
2019-05-31T09:38:21
2019-05-31T09:38:21
188,390,440
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
word=0 msg=input("enter any message ") i=0 while i<len(msg): if msg[i]==" ": word=word+1 i=i+1 print("There are ",(word+1), "words")
[ "alidawood15@gmail.com" ]
alidawood15@gmail.com
c4a8948659302be35ffd7f343130d4c6c4209acb
a6bdf72944765b6f57ef84005194d4918b2eca20
/actions/create_matrix.py
0f306dfc5013ee405a37ecb94444881ac816115b
[]
no_license
PrimalCat-Real/MatrixCalcConsole
b53000b196f62d9e8b02f9ecf6b89e7a839de23c
ed1d5c42d99ae07220103ba2a8206e0d50d0a5ec
refs/heads/main
2023-08-02T12:37:17.157922
2021-09-27T18:48:17
2021-09-27T18:48:17
410,194,564
0
0
null
null
null
null
UTF-8
Python
false
false
1,731
py
from colorama import * import sys import numpy as np sys.path.append(".") from actions import input_checkers as check # Создание нулевой матрицы за параметрами от пользователя def create_zero_matrix(): corect = False while not corect: try: count_lines = int(input("How many lines in matrix...
[ "romanenko.denis2003@gmail.com" ]
romanenko.denis2003@gmail.com
4f44abc4467e44e07199edfa36da5089b6d4126b
edf15fa536202317ab394de6a243f44a7152c6f4
/result_code.py
9bb7af8e365d6763a98a5513811c1401afba7c2f
[]
no_license
deepankchauhan/translator
94e11587fa3ef7d66de6cae17b64c0107397249d
efa51aa58f76c87ac461aadf460645c1cce1b499
refs/heads/master
2020-04-17T05:37:01.349300
2019-02-23T18:43:21
2019-02-23T18:43:21
166,288,544
1
0
null
null
null
null
UTF-8
Python
false
false
15
py
print ("hey!")
[ "noreply@github.com" ]
noreply@github.com
b64af1d72b18f34d381cce1cc10749c45cd8231f
3d4e4c25a87bc58613207d5751a1a56042890379
/test_async_scrape.py
2c8875a5a59aa62c45e778b3d54069930ab6479e
[]
no_license
ansonnn07/covid19-malaysia
7ef27491136ebed9f6bbe17e34187db2067e3e2d
1ab8fbae17582f4e757002d2831e34f00a61a77c
refs/heads/main
2023-06-16T08:00:09.544743
2021-06-28T14:17:23
2021-06-28T14:17:23
362,746,762
0
0
null
null
null
null
UTF-8
Python
false
false
3,785
py
import asyncio import os import time from datetime import datetime, timedelta import pandas as pd import requests from aiohttp import ClientSession from bs4 import BeautifulSoup # translate the months from English to Malay month_translation = {"January": "januari", "February": "februari", ...
[ "roxastan@hotmail.com" ]
roxastan@hotmail.com
c87637ee942e77a3ef3bfe68a33bda7071da689d
2d191eb46ed804c9029801832ff4016aeaf8d31c
/configs/ocrnet/ocrnet_r50-d8_512x512_40k_voc12aug.py
f15f514031eca94e146f3bebecf2fca04bdcd130
[ "Apache-2.0" ]
permissive
openseg-group/mmsegmentation
df99ac2c3510b7f2dff92405aae25026d1023d98
23939f09d2b0bd30fc26eb7f8af974f1f5441210
refs/heads/master
2023-03-02T07:49:23.652558
2021-02-15T04:16:28
2021-02-15T04:16:28
278,537,243
2
2
null
2020-07-10T04:24:16
2020-07-10T04:24:15
null
UTF-8
Python
false
false
945
py
_base_ = [ '../_base_/models/ocrnet_r50-d8.py', '../_base_/datasets/pascal_voc12_aug.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_40k.py' ] norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict(decode_head=[ dict( type='FCNHead', in_channels=1024, in_i...
[ "yhyuan@pku.edu.cn" ]
yhyuan@pku.edu.cn
1661c0c892781faebf53a6250a84d0ea3848ed67
a9eb7535df8f92e54ddd13ff1e2d33cc37ab2c9e
/tf.matmul.py
3a9abd388278608eeda96a70cd7aa200395efdf3
[]
no_license
KennCoder7/Kenn-TEST
075c552a1a1d56e0f6679bf5210194dcf65a2bf0
b8dddff74591bdd25c3842ec0ec96862f37a5f88
refs/heads/master
2020-04-07T01:49:48.448703
2018-12-08T05:50:20
2018-12-08T05:50:20
157,953,826
1
0
null
null
null
null
UTF-8
Python
false
false
4,563
py
import tensorflow as tf # a_2d = tf.constant([1]*6, shape=[2, 3]) # b_2d = tf.constant([2]*12, shape=[3, 4]) # c_2d = tf.matmul(a_2d, b_2d) # a_3d = tf.constant([1]*12, shape=[2, 2, 3]) # b_3d = tf.constant([2]*24, shape=[2, 3, 4]) # c_3d = tf.matmul(a_3d, b_3d) # a_4d = tf.constant([1]*24, shape=[2, 2, 2, 3]) # b_4d ...
[ "iskenn7@gmail.com" ]
iskenn7@gmail.com
e08e72c85ee8c4b4b56053b4e2a2624dd50a38d1
8cd091ae2a579675f32b5c022fb263b9ce2d6324
/base_sift.py
151857a510044ee5371924e373e33c90af5034d0
[]
no_license
yanglinGEM/yl-code
70e80aad8d8c92e28f3c7ae581f2061e646ecc9c
99cdcbc03796b1dd88296fad830863318b25f83f
refs/heads/master
2023-02-03T15:25:53.715770
2020-12-22T13:30:54
2020-12-22T13:30:54
318,364,978
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
import cv2 import numpy as np img_orign = cv2.imread('3.jpg') img=cv2.imread('target.jpg') rows,cols = img.shape[:2] gray_orign= cv2.cvtColor(img_orign,cv2.COLOR_BGR2GRAY) gray= cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) # 这个库需要将opencv版本倒回 sift=cv2.xfeatures2d.SIFT_create() kp1, des1 = sift.detectAndCompute(gray_orign, Non...
[ "68836138+yanglinGEM@users.noreply.github.com" ]
68836138+yanglinGEM@users.noreply.github.com
f5aa640d645d04cb491d5d5ff4dc186e33ed4a44
0cbb0df8fb8761c91643058e9a09bb8303268224
/utilities/config_reader.py
29a6fa7252eafa6be3056b2599fd60ab0ba339d3
[]
no_license
nareshrasamalla/python
75b34f6c3f50606e9bc259a9317093cbb249a97d
6eaca20de9055dc45c6bb19d41381e7c5456b583
refs/heads/master
2020-07-02T08:31:24.249611
2019-08-12T09:22:20
2019-08-12T09:22:20
201,473,887
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
# -*- coding: utf-8 -*- """ This file is intended to read the System config file and fetch values out of it based on the section queried. """ import configparser import os #Intialize the Config Parser. config = configparser.RawConfigParser() os.chdir("..\config") #Load the Config File. config.read('nmi.config') #...
[ "NRasamalla@ad.prolifics.com" ]
NRasamalla@ad.prolifics.com
3f026d9eabf7526bb158dcdbb53c98d0f8daaeb9
ec7cd0f098c4e354fd80c385e1b6600758aa2dda
/tests/test_cobertura_diff.py
6fe83721be67ade280ccdc94e8cfc2a065aceef9
[ "MIT" ]
permissive
rndrr/pycobertura
aba5c0d202b2318ecc950a22ce4a9714b3c15819
d090ff7c93c5bf07e07676cfa3c12ca376135be1
refs/heads/master
2021-05-30T22:37:41.023079
2015-09-28T17:47:58
2015-09-28T17:47:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,238
py
from .utils import make_cobertura def test_diff_class_source(): from pycobertura.cobertura import CoberturaDiff from pycobertura.cobertura import Line cobertura1 = make_cobertura('tests/dummy.source1/coverage.xml') cobertura2 = make_cobertura('tests/dummy.source2/coverage.xml') differ = Cobertura...
[ "alexandre@surveymonkey.com" ]
alexandre@surveymonkey.com
0e1e424dd25965b3ba42e4afeeeb389beece8303
13561108c0c2866ed6dd09cff1c2c738f1b9fa29
/evalml/pipelines/components/estimators/classifiers/lightgbm_classifier.py
679acc55265a94e7e3c8a97d62f0a8fd9ae0946a
[ "BSD-3-Clause" ]
permissive
SarahCharlotte/evalml
ee94ad8c602d65e7870cc777014ec0bc306bac81
a4148e65e2ec6745c0dc7ed5a0d65401adcfdfae
refs/heads/main
2023-09-05T21:39:06.792121
2021-11-16T05:42:21
2021-11-16T05:42:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,308
py
"""LightGBM Classifier.""" import copy import numpy as np import pandas as pd from pandas.api.types import is_integer_dtype from sklearn.preprocessing import LabelEncoder, OrdinalEncoder from skopt.space import Integer, Real from evalml.model_family import ModelFamily from evalml.pipelines.components.estimators impor...
[ "noreply@github.com" ]
noreply@github.com
036edbdcac4e99c218d6e3166e64c1c348592b2c
3d41d1f41277dba3ef7875be3d49d2a22823a17b
/Virago/assembly/pipeline/3_test-provisioning/testProvision.py
8a362099ed9fe3beca1deea81b4e7a617faa8b5f
[]
no_license
AgnihotriShivam/Automation-lambda
e6f7a6cfc16026776240042c79d3e5c9ea845ffb
45885485096f9468958b07e659ab1f52423104bb
refs/heads/master
2022-11-17T06:47:21.409726
2020-07-18T07:44:01
2020-07-18T07:44:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,354
py
import json import boto3 import traceback payload = { "accountemail": "gabor.hasenfrasz@t-systems", "accountid": "787043465971", "securityemail": "gabor.hasenfrasz@t-systems.com", "username": "A11336167", "accountname": "baseline", "accountcreate": { "CreateAccountStatus": { "AccountI...
[ "root@ip-172-31-34-42.ap-south-1.compute.internal" ]
root@ip-172-31-34-42.ap-south-1.compute.internal
6021f99450da92349ed6322671a065a456b44615
6dfc2281e1afad370cc30ca103fed6f3a32ac9f0
/arp_spoof.py
f39efa2815f0e54982199ba45dcb504a400086ea
[]
no_license
iw4p/arp-spoof
a6fa2de1208ce35f6415d2e6db17b005c7c54d8f
b437cb3498166fd2f07739200df81072ed7422dd
refs/heads/master
2020-06-21T22:48:15.899138
2019-07-18T13:45:04
2019-07-18T13:45:04
197,570,428
0
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
#!/usr/bin/env python import scapy.all as scapy import time import sys def get_mac(ip): arp_request = scapy.ARP(pdst=ip) broadcast = scapy.Ether(dst="ff:ff:ff:ff:ff:ff") arp_request_broadcast = broadcast/arp_request answered_list = scapy.srp(arp_request_broadcast, timeout=1, verbose=False)[0] re...
[ "nimakbarzade@yahoo.com" ]
nimakbarzade@yahoo.com
9dd25c3a195a803e69626ee77d0394f1d40fc0a5
ff41e6f4559344143306b564f620aa0b3e96e85e
/venv/Scripts/pip3-script.py
fddcf460b92e381a0c46452f3b396f02aef6b5a0
[]
no_license
xiongjianguo12138/23_designMode
5c3ed42c75f0662014a8be084af31df2b58d0871
b05188328e418cf30dd9f3d5ebd71880ed52f0cf
refs/heads/master
2022-10-11T09:24:36.224052
2020-06-09T09:31:12
2020-06-09T09:31:12
270,936,974
0
0
null
null
null
null
GB18030
Python
false
false
414
py
#!C:\NLP\23种设计模式python版本\venv\Scripts\python.exe -x # 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]) sys.e...
[ "xiongjianguo@wondersgroup.com" ]
xiongjianguo@wondersgroup.com
9d9cc136d3e694df1c96895abfb88c968265ad96
d7a4701e18be0f38820f5c15d80099fda6385f9f
/ABC103/C.py
a6bbebcf304df245df79b6b1970d55da63b3c38c
[]
no_license
shiki7/Atcoder
979a6f0eeb65f3704ea20a949940a0d5e3434579
c215c02d3bfe1e9d68846095b1bd706bd4557dd0
refs/heads/master
2022-05-21T16:59:01.529489
2022-04-29T11:26:42
2022-04-29T11:26:42
201,536,692
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
import fractions N = int(input()) a = list(map(int, input().split())) # 最小公倍数 lcm = a[0] for i in range(1, N): lcm = lcm * a[i] // fractions.gcd(lcm, a[i]) total = 0 for i in range(N): total += (lcm - 1) % a[i] print(total)
[ "noreply@github.com" ]
noreply@github.com
29d7ffdf4a998f64def4b939c701236cfe7f594e
14ed14241eb5baba1f4702a4f79f3ff37c9ee86d
/ppa/editorial/migrations/0001_initial.py
02cf0d4f0c16a04245f1f18f14cdb7111da373a8
[ "Apache-2.0" ]
permissive
vineetbansal/ppa-django
491ac7916a4060558c2f4d6d7ecafc0079d8091a
67469f63195981609aed8ca5247e7c04b23a5236
refs/heads/master
2020-05-25T06:52:31.859162
2019-05-09T15:44:39
2019-05-09T15:44:39
187,672,561
1
0
null
2019-05-20T15:59:44
2019-05-20T15:59:44
null
UTF-8
Python
false
false
1,661
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-11-01 19:15 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): in...
[ "benjamin.w.hicks@gmail.com" ]
benjamin.w.hicks@gmail.com
cfbb5ed150549c9c2ccea6f9d1dd5a710af86a7e
def900e7c5cfd534a19aff3411fe350e3e783e48
/manage.py
76baf737338721c8745c91abe4e6000e40d864be
[]
no_license
mishi1605/Ps_Project
add0cf2dc5ba66a5c313d3f24253098b5091fce7
40f9cd7c5d3838380e1bd8894d78f4292212f9b1
refs/heads/master
2022-12-22T07:15:50.858507
2020-09-29T09:35:42
2020-09-29T09:35:42
298,335,687
0
4
null
2020-09-29T09:35:43
2020-09-24T16:32:10
Python
UTF-8
Python
false
false
806
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "linux_Ps.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the...
[ "mansi.jain.1605@gmail.com" ]
mansi.jain.1605@gmail.com
2d49765703150d90fa46324333407915d716c47a
487ed703bdfa86218de81490ac2829618627df8c
/CPUCode/example_time.py
40fb5abe6d7cbb3f479e66ad086c6099dcd8dd92
[]
no_license
thesps/MaxBDT
9b10cbc334db49794e5fdab7cb14e8bd20101a8e
ea2e459009fb2ec59cf49876e004eff8e225368e
refs/heads/master
2021-01-20T07:37:58.146267
2017-06-15T11:29:58
2017-06-15T11:29:58
90,022,434
3
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
import timeit setup=''' from sklearn.datasets import make_moons from sklearn.externals import joblib from sklearn.ensemble import GradientBoostingClassifier from sklearn.model_selection import train_test_split import bitstring as bs import numpy as np from DFEBDTGalava import DFEBDTGalava import matplotlib.pyplot as p...
[ "sioni.summers10@imperial.ac.uk" ]
sioni.summers10@imperial.ac.uk
10df5d952139b06e5b3632ceab4ce66129d476a5
fdcd1058df2e42ce9a6c7a38b76757997f53cb2a
/mute/widget/window.py
7fd3d172be4eabe8ee46965a1f4eb52aefaebca4
[ "MIT" ]
permissive
LZJ861124/mute
afb12d516ae1a4106079b51999dd0aa484618b07
f278d9cd2e9c1a4551d5ecdffde919d22ab2f6bb
refs/heads/master
2020-05-26T09:41:57.238217
2019-05-23T08:19:16
2019-05-23T08:19:16
188,191,427
0
0
null
null
null
null
UTF-8
Python
false
false
2,515
py
from __future__ import annotations from const.color import Color from container.container import Container from event.event import Event from viewport.viewport import Viewport from logcat.logcat import LogCat class Window(Container): @LogCat.log_func def __init__( self, x: int, y:int, width: int, he...
[ "ywchiao@gmail.com" ]
ywchiao@gmail.com
228ccebb01f96ce3f3a82bbfb49168f6ae0a1d89
592498a0e22897dcc460c165b4c330b94808b714
/1000번/1931_회의실 배정(list index).py
306276f60d04bd7a71fc07003a9d4cca7c1c092d
[]
no_license
atom015/py_boj
abb3850469b39d0004f996e04aa7aa449b71b1d6
42b737c7c9d7ec59d8abedf2918e4ab4c86cb01d
refs/heads/master
2022-12-18T08:14:51.277802
2020-09-24T15:44:52
2020-09-24T15:44:52
179,933,927
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
n = int(input()) arr = [] for i in range(n): arr.append(list(map(int,input().split()))) arr.sort(key=lambda x:(x[1],x[0])) cnt = 1 e = arr[0][1] for i in range(1,n): if e <= arr[i][0]: e = arr[i][1] cnt += 1 print(cnt)
[ "zeezlelove@gmail.com" ]
zeezlelove@gmail.com
917631a72394423d02550f505bf79edf580b3671
919b0ed2859ae07766d8858f29e2d1a28de5156e
/Master/IoT/IoT_Project/collector/coap_show_data.py
06aedfee9ba1b98a967395ee153dd32d5912a0ab
[]
no_license
ImBadnick/University
0b94f370e5a24e35b2c428d80e94684eea5141ce
a2da8900be57a63abfa2ab7b1ef83d5da674e225
refs/heads/main
2023-06-26T18:04:47.057041
2023-06-19T10:40:20
2023-06-19T10:40:20
322,025,101
18
0
null
null
null
null
UTF-8
Python
false
false
829
py
from database import Database import tabulate import time def show_coap_data(): db = Database() connection = db.connect_db() while(1): try: with connection.cursor() as new_cursor: sql = "SELECT * FROM `coap`" new_cursor.execute(sql) res...
[ "fuma2@hotmail.it" ]
fuma2@hotmail.it
e1f219988d543635c72c5833f63c6c07c035bffe
b0fa6339bc422c1fcf84d9bfff054d56c793ef4a
/core/migrations/0005_auto_20210716_1638.py
6f41171e0fccf878a130376d50b10fe4659723fd
[]
no_license
Hasmandeep/Ecommerce_Website
f9079df7e9560816a7779794360f5723b7c6f610
d30e4b722b6ac8c0f6a18886f298401a8478fbf3
refs/heads/main
2023-06-17T06:12:41.134463
2021-07-17T08:21:26
2021-07-17T08:21:26
378,190,329
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# Generated by Django 3.1 on 2021-07-16 11:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0004_auto_20210716_1628'), ] operations = [ migrations.AlterField( model_name='item', name='image', ...
[ "hasmandeepk@gmail.com" ]
hasmandeepk@gmail.com
2cf0f4a3cf555d0409849d7937cf0bf4e4155f09
91d2e84b7f569e7338ade987e241fc0b0ae62776
/App_Order/urls.py
41c6ba0f8abc36a0a9651b4f1800a8030f389d33
[]
no_license
Zahed75/Ecommerce_Project
1965d61b0a84ebbd6d23ccdd0d557c1cc9416195
a9adcf9458c48f769507ac22f8e20d24c64ea244
refs/heads/main
2023-04-17T10:03:45.528529
2021-05-06T13:24:25
2021-05-06T13:24:25
364,914,248
1
0
null
null
null
null
UTF-8
Python
false
false
398
py
from django.urls import path from App_Order import views app_name='App_Order' urlpatterns = [ path('add/<pk>/', views.add_to_cart, name="add"), path('remove/<pk>/', views.remove_from_cart, name="remove"), path('cart/', views.cart_view, name="cart"), path('increase/<pk>/', views.increase_cart, name="in...
[ "zahedhasan.cs@gmail.com" ]
zahedhasan.cs@gmail.com
9cf1e1dd38cfbb716cd9050a494f1b58d3d05316
4d84947c6bdbf94e4f50b5da6e232bbd02ae8fc3
/rmaker_admin_lib/exceptions.py
62bbe4595b465fa61e6f7e63ec31224e169d26b4
[]
no_license
isabella232/esp-rainmaker-admin-cli
c7921fe4bbc2f47ec8aee25b54c10b2e54e200a4
818eb68f269c73db9b687ca7b7027a076ea62997
refs/heads/master
2023-08-20T12:27:34.439293
2021-10-28T06:26:28
2021-10-28T06:26:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,315
py
# Copyright 2020 Espressif Systems (Shanghai) PTE LTD # # 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 ...
[ "shivani@espressif.com" ]
shivani@espressif.com
8e2fda0d178cdd1a43694f501f42772972bc6262
ff950f6c75d763d0b5a2af21dbac0e4c48daaec9
/server/mediastream/migrations/0011_auto_20170428_1736.py
34d6b34b2889258f5a738ce3f5ad406ce3d56540
[ "BSD-3-Clause" ]
permissive
rogerbassons/media-stream
24f860e264c6bbbc0dec8c4100feea7216c780c7
6ef4811d04a681015834d6e8d302fab1a76752cc
refs/heads/master
2021-09-13T18:20:20.848428
2018-05-02T21:51:46
2018-05-02T21:51:46
86,855,638
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-28 17:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mediastream', '0010_auto_20170421_1938'), ] operations = [ migrations.AddFi...
[ "rogerbassons@gmail.com" ]
rogerbassons@gmail.com
12de3c32d1859fe9166894147a5851c47025412f
e2ffd61970da024cbb4e6fceb6588f75adfe030c
/authapp/models.py
7e5a48cab23e9d580b9aa2db846cea1013af26ab
[]
no_license
MariaAfanaseva/Django
20a46a2dc574d008b7033ecc66bcd4e276f193d8
81fb0b89dcec723c23f26f14927fc845f7d29dc0
refs/heads/master
2022-12-15T11:35:12.609063
2021-02-05T10:01:17
2021-02-05T10:01:17
177,652,266
0
1
null
2022-12-08T05:35:10
2019-03-25T19:36:58
JavaScript
UTF-8
Python
false
false
1,923
py
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.timezone import now from datetime import timedelta from django.db.models.signals import post_save from django.dispatch import receiver from shop.storage_backends import MediaStorage def get_activation_key_time(): r...
[ "mashenkachukina@gmail.com" ]
mashenkachukina@gmail.com
e815820b5d7c7a3f4883a3e197d90a96fb251308
c9b2336619951fbf560c19d50797ac28dd223a7c
/curiosity/curiosity/wsgi.py
e757b3d8d7227071c822101ae69ce47d7457e907
[]
no_license
rizplate/intuity
13be80168e1cd70a6585d11d4b03b0c5353a9534
daf033e48856f762c4e72912d9c96bdcc1239af1
refs/heads/master
2020-03-27T20:19:37.778175
2018-08-29T07:08:51
2018-08-29T07:08:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for curiosity 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/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
[ "marius@appix.io" ]
marius@appix.io
1015efbebeea9f7d4049a8bd14345475165128cd
1bb53eaa0a04cdd2c6488fad91abcc856d76b6e4
/test/part2_test.py
99ff02a1e24195103a48f48a8b5a7941fbefd763
[]
no_license
Apurva-Rachala/Bright-Network-Googletask
df05f5be6744b4c445af094d0f4fd3a75f0c74ca
bdfea068ec3d652e48f635d174619cf5a2ab2bfd
refs/heads/main
2023-06-05T15:51:26.301300
2021-07-01T09:22:03
2021-07-01T09:22:03
381,894,539
6
0
null
null
null
null
UTF-8
Python
false
false
9,524
py
from src.video_player import VideoPlayer def test_create_playlist(capfd): player = VideoPlayer() player.create_playlist("my_PLAYlist") out, err = capfd.readouterr() lines = out.splitlines() assert len(lines) == 1 assert "Successfully created new playlist: my_PLAYlist" in lines[0] def test_cr...
[ "apurvarachala@gmail.com" ]
apurvarachala@gmail.com
e9daf124f0d89650306918eeb692c4acb3851954
99e61f9f6ac04475178d7a8fd6e10c7f05a775c5
/cadccutout/cadccutout/tests/test_core.py
6c2f3f232814e3d858935e5259aca08fbf136e4d
[]
no_license
ijiraq/cadctools
96a6bd30195a5d18da698e6cd80dc0088e1cdd55
6dbea10fc540a6f701c97f6c39bf751fe9c0a205
refs/heads/master
2021-06-20T06:21:01.572774
2020-11-22T03:03:03
2020-11-22T03:03:03
184,329,528
0
0
null
2021-02-25T01:15:07
2019-04-30T20:48:02
Python
UTF-8
Python
false
false
7,102
py
# -*- coding: utf-8 -*- # *********************************************************************** # ****************** CANADIAN ASTRONOMY DATA CENTRE ******************* # ************* CENTRE CANADIEN DE DONNÉES ASTRONOMIQUES ************** # # (c) 2018. (c) 2018. # Government of Canad...
[ "adrian.damian@nrc.ca" ]
adrian.damian@nrc.ca
223c74d91cb5f952d691d5651a076036d79b9123
b0b43e25501240086cad821b34fd0917581d8ca0
/covid/jhu.py
ab6bf79a4b198cebef7c4a17f44510affc885981
[ "MIT" ]
permissive
mysterefrank/covid-test
648212e608d2dce83ae50f2c6f5127107450c23b
8651d9515376ca88e25b309c710c256bb22804d9
refs/heads/master
2022-12-18T19:16:45.940111
2020-09-25T15:20:55
2020-09-25T15:20:55
298,607,436
1
0
null
null
null
null
UTF-8
Python
false
false
5,530
py
import pandas as pd import cachetools.func import warnings from . import states @cachetools.func.ttl_cache(ttl=600) def load_and_massage(url): df = pd.read_csv(url) df = df.drop(columns=['Lat', 'Long']) df = df.rename(columns={'Province/State' : 'province', 'Country/Region' : 'country'}) df.provin...
[ "sheldon@cs.umass.edu" ]
sheldon@cs.umass.edu
e40c7ed10e2b7d22d766e593e829ebe54b749b93
07e429888e0e564b2d6a8b55180fd117038bc268
/Probability-Basics-/code.py
0360c0140c70d0bdf03640be5260ccfed050a9d2
[ "MIT" ]
permissive
Varun0801/ga-learner-dsb-repo
21803c331c886f060edc803be9e33e88d236bd86
45ce5ae273ca66a2443d4b9417e74ef0f872d8ec
refs/heads/master
2023-02-04T09:58:18.310189
2020-12-25T12:02:55
2020-12-25T12:02:55
255,108,538
1
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
# -------------- import numpy as np import pandas as pd import matplotlib.pyplot as plt # code starts here df = pd.read_csv(path) #print(df.info()) p_a = ((df['fico'] > 700).sum())/len(df) print(p_a) p_b = ((df['purpose'] == 'debt_consolidation').sum())/len(df) print(p_b) df1 = df[df['purpose']== 'debt_consolidation']...
[ "54551996+Varun0801@users.noreply.github.com" ]
54551996+Varun0801@users.noreply.github.com
607cbcb23dfd9977fb1af1f2f5a04824532bcfd8
0f33bea55f5d1c4276d851c3697f7257fb9c5d60
/Python/binary-sort.py
770554c775ceea7b2c05ac5bafea0c719e2bfab4
[]
no_license
Ankita909/fullstackDevelopment
193a3efe72faf36f8e0ecd71efa4c858e0b432c2
e5c1c216e6fa4381fc28f76ce661ec418fa72083
refs/heads/main
2023-08-27T12:11:30.392642
2021-10-01T13:38:50
2021-10-01T13:38:50
412,479,587
1
0
null
2021-10-01T13:35:34
2021-10-01T13:35:34
null
UTF-8
Python
false
false
810
py
# Python recursive binary search. # Returns index of x in arr if present, else -1 def binarySearch (arr, l, r, x): # Check base case if r >= l: mid = l + (r - l) // 2 # If element is present at the middle itself if arr[mid] == x: return mid # If element is smaller than mid, then it # can only be p...
[ "noreply@github.com" ]
noreply@github.com
32d8cc7336a534b7aa3d304be09170c44366afc1
0d492125e092f1fafb00e1ba24c0c50c5bd5e379
/modle/dataGenerator.py
adde198810577582ba1f38def9db429f62af3529
[]
no_license
ammarhamdy/DES
13902bd7cb0647f0e0d05d3d1d95121c777895e8
447a0e9132de5c146a0215fc697ca71a86dcd55a
refs/heads/master
2020-04-09T14:21:25.583452
2018-12-25T08:18:48
2018-12-25T08:18:48
160,394,985
1
0
null
null
null
null
UTF-8
Python
false
false
3,976
py
import csv import os def xor(a: str, b: str): a_xor_b = str() for i in range(len(a)): a_xor_b += str(int(a[i]) ^ int(b[i])) return a_xor_b class DataGenerator: def __init__(self, e_path: str, s_box_dir_path: str, p_path: str): # load bit selection matrix(8X6). s...
[ "ammarhamdy010@gmail.com" ]
ammarhamdy010@gmail.com
63fd2099a3ee63f20feb648b8aece53e9b92a953
6a0bdd7339aa8184b5b3938dd8746ef09f65ee7a
/hw1/matmult.py
d9bfdd98fa59026cba68233a8690b9e66132250e
[]
no_license
hiqbal97/CS314
e375b16f644a6d5322a02447149fad5f41c1ceb4
e34b77bbde92675157e5e3c9a5273889392dea79
refs/heads/master
2020-04-27T08:46:43.154693
2019-05-13T20:14:29
2019-05-13T20:14:29
174,185,325
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
#!/usr/bin/env python3 def main(): dim1 = input() size1 = [int(x) for x in dim1.split() if x.isdigit()] mat1 = [] for i in range(size1[0]): rows = input() row = [] for num in rows.split(): row.append(float(num)) mat1.append(row) dim2 = input() size2 = [int(x) for x in dim2.split() if x.isdigit()] mat...
[ "hiqbal97@hotmail.com" ]
hiqbal97@hotmail.com
8ab1edb2538a42d648a941c4c748eb675a5a3761
78c4a0b029ef1af4ac9ef90305eef85ef866ad35
/gfx/processing/bresenham/bresenham.pyde
8a899712315e147dc3d2a28dc23bf64a333e9908
[ "MIT" ]
permissive
qeedquan/misc_utilities
7727e33e01a9f45275e3efdd165c90053d8ba10a
e8319e6572dd92efceebb5a2d52a00cb993492b2
refs/heads/master
2023-08-08T13:24:18.213741
2023-08-07T00:26:03
2023-08-07T00:26:03
46,625,839
10
3
null
null
null
null
UTF-8
Python
false
false
8,792
pyde
# http://members.chello.at/~easyfilter/bresenham.html from math import * class Grid: def __init__(self): self.size = 32 self.x0, self.y0 = -1, -1 self.x1, self.y1 = -1, -1 def pix2cell(self, x, y): return x/self.size, y/self.size def point(self, x, y, err = No...
[ "qeed.quan@gmail.com" ]
qeed.quan@gmail.com
eadb8151a5ab098a99a1a02b85799e34647561b3
8e34e03fc53fbc465e3de0758e98b5b7c0145b85
/Listas y tuplas/Ejercicio3.py
3c89bd326f0a3774e50e9ee15dfe186747f7e7cb
[]
no_license
gonrodri18/Python
44ed944def671bdc44298f65f9dce0e8ff013b5d
b9653bd6357871ac1682a4eefdf6e36ace0b4ee5
refs/heads/master
2020-04-30T02:54:43.610378
2019-05-17T16:07:36
2019-05-17T16:07:36
176,573,384
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
# Escribir un programa que almacene las asignaturas de un curso (por ejemplo Matemáticas, Física, Química, Historia y Lengua) en una lista, pregunte al usuario la nota que ha sacado en cada asignatura, y después las muestre por pantalla con el mensaje En <asignatura> has sacado <nota> donde <asignatura> es cada una des...
[ "gonrodri11@yahoo.es" ]
gonrodri11@yahoo.es
8b5ad6ffa898b3ca103c34c25ef37affb51f8bc6
7400c30135003160794856a745addd17cec8a58e
/Keyence2020B/test_pasted_from_page.py
7feb8b44afdb7cc83be6097799003b0525613220
[ "MIT" ]
permissive
staguchi0703/ant_book_2-2_greedy2
4b9587335610df7cccaefd069e8effbe13b89e0f
c5fc527874768bf5ea0c584b3f9f52a85eed87e2
refs/heads/master
2022-10-26T17:54:48.988597
2020-06-16T15:03:57
2020-06-16T15:03:57
271,589,306
0
0
null
null
null
null
UTF-8
Python
false
false
1,099
py
# from resolve import resolve #################################### #################################### # 以下にプラグインの内容をペーストする # import sys from io import StringIO import unittest class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdou...
[ "s.taguchi0703@gmail.com" ]
s.taguchi0703@gmail.com
ce4071b0a9e5f5c6e00ed63d6a9ac21489fc0c60
65f8211fc33eb5f9ac1ff0d68902226ca9a58692
/sorting_algorithms/bucket_sort.py
d43e2eb31d9e0de39477a48b9806faaa210e89fe
[]
no_license
szarbartosz/asd-python
46869f5699a1ef661e2df02e523af0adcddbbbda
0130cc3dcbba6ad62e1516c98b5cbab85848d619
refs/heads/master
2022-12-13T19:02:53.699381
2020-09-11T13:29:31
2020-09-11T13:29:31
242,975,318
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
def insertion_sort(arr): for i in range(1, len(arr)): key = arr[i] j = i - 1 while j >= 0 and arr[j] > key: arr[j + 1] = arr[j] j -= 1 arr[j + 1] = key def bucket_sort(arr): sections = len(arr) buckets = [] for i in range(sections): bucke...
[ "szarbartosz@gmail.com" ]
szarbartosz@gmail.com
84742225c61ab01770a4bce455aa015a98af5633
1f593a82f731a7aa500bfb3a6b02f6785edac345
/simi_w2v.py
2733096d2dfd307ba1375198cd3a9f76328c1604
[]
no_license
DanVane/Dtm_demo
6b4aa0ae3ba5f0526452b252bf4bf4a3aeb1190d
b19a99ea30bd4c74845c8707705fe2c77d96f553
refs/heads/master
2021-01-01T15:43:36.426314
2017-07-19T07:32:11
2017-07-19T07:32:11
97,686,860
1
0
null
null
null
null
UTF-8
Python
false
false
2,147
py
#coding=utf-8 from gensim.models import Word2Vec import json import re import string def load_data(): f=open("E:\\NetBeans\\dianziyisuo\\python\\data\\jichengdianlu1.txt",'rb') lines = f.readlines() # lines = re.sub(string.punctuation,"",lines) # lines = re.sub(r'[0-9]+', ' ', lines) all_lines=[] ...
[ "1285673346@qq.com" ]
1285673346@qq.com
2768ad34eabf9481540d2cdf79355f927c4a4b28
7f25234970f7a95d05c0266b03d9bb8eca9ab7c8
/dockerwithgitlabsecrets/tests/test_wrapper.py
2ed595f5f284269da686857f932b25e2298924a8
[ "MIT" ]
permissive
wtsi-hgi/docker-with-gitlab-secrets
ae96f68be75e5e6bc5b241845373994f2bdb85c1
53ed8be52e201b80f9c92cad72213dadf0bd63e6
refs/heads/master
2021-01-20T17:39:51.607908
2019-01-29T15:47:56
2019-01-29T15:47:56
90,881,192
0
0
null
null
null
null
UTF-8
Python
false
false
3,558
py
import unittest from tempfile import NamedTemporaryFile from dockerwithgitlabsecrets.tests._common import EXAMPLE_VALUE, EXAMPLE_PARAMETER, EXAMPLE_VARIABLES from dockerwithgitlabsecrets.wrapper import run_wrapped, SAFE_LINE_BREAK class TestWrapper(unittest.TestCase): """ Tests for `run_wrapped`. """ ...
[ "colin.nolan@sanger.ac.uk" ]
colin.nolan@sanger.ac.uk
388846af9812028de504500008b6aa55a3f30332
e499a4388879e1db773b122cf4c0cecea6beecee
/jupyter-notebooks/scripts/parse_kml.py
e36b0f4e7cc4a733755e0b9774916c2d9f6ffd82
[]
no_license
randobucci/gccom-grids
4ecccca0076fef0a1582fda316cf309a7ae2633e
ab9e232eb467523fdb9bf1a0b09ccacc75700d0a
refs/heads/master
2020-03-07T11:32:34.485835
2018-03-30T18:11:24
2018-03-30T18:11:24
127,458,430
0
0
null
null
null
null
UTF-8
Python
false
false
1,300
py
#-------------------------------------------------------- #- File: parse_kml.py #- Description: Extract coordinates from Google Earth KML #- and convert to UTM, saving results. #- Author: Randy Bucciarelli #- Date: June 15, 2017 #-------------------------------------------------------- import sys from xml....
[ "randy@cdip.ucsd.edu" ]
randy@cdip.ucsd.edu
266c7b9e2dd74454d2706479f7a79fc447b95cd3
0cf8c6d0da99141f1247aae3be88e80af9d611b9
/_02/a03_lambda.py
b683a11596fa561035e4ea9866d8b923ac76dc6f
[]
no_license
Xava2011/PythonWyklad
6c3676fa43df34ffc4eb8b7aa9b2529e99f680a6
643b1f351d1d486a720607a9f5e9d163d252c487
refs/heads/master
2021-01-17T08:45:37.673787
2017-03-05T10:20:44
2017-03-05T10:20:44
83,961,729
1
0
null
2017-03-05T10:23:23
2017-03-05T10:23:23
null
UTF-8
Python
false
false
1,837
py
# a03_lambda # # przyklady lambda wyrazen ############################ # proste przyklady f = (lambda x: x + 1) print f(1), (lambda x: x + 1)(3) # dziala jak def f(x): return x + 1 # Jakie sa roznice pomiedzy powyzszymi funkcjami? ############################ # niestety lambda wyrazenia w Pythonie nie sa w pal...
[ "t.borzyszkowski@gmail.com" ]
t.borzyszkowski@gmail.com
023b871f8cdc5f16eb7f227fcbbd8a4f8aafa20c
77be4484580e1fafb429a73afd029520751c6012
/venv/lib/python3.8/site-packages/apache_beam/portability/api/beam_interactive_api_pb2.py
7da77f4054b53551025b7da2c93eafa7ce2e889d
[]
no_license
antoniofernandeslf/bankpoints
38f713cb23ef1cca209880af0e023b3d7331aa44
1f91c531ce96919755f0122a77b32d5b12b414d8
refs/heads/main
2023-03-03T11:40:57.897869
2021-02-15T18:47:25
2021-02-15T18:47:25
339,166,399
0
0
null
null
null
null
UTF-8
Python
false
true
4,459
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: beam_interactive_api.proto from __future__ import absolute_import from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from...
[ "antonio.fernandes.lf@hotmail.com" ]
antonio.fernandes.lf@hotmail.com
d9249c8d210376bf26efed82210d8658a73b81d0
1df71aa9f94733d27069d22d8b2235495446ece1
/MacApp/PSDownloaderGUI.app/Contents/Resources/PSDownloaderGUI.py
37ae4dbb6588fab04ed4ef749d7b4c18ed1e6dac
[]
no_license
yemyat/PythonLeo
cd6f3b4f59d7bea079f107f608cb68d2a9160d53
fdb9558e92ee0f76a236d88679c47ca55dfa6f6c
refs/heads/master
2020-06-02T09:19:38.577756
2014-04-22T19:11:36
2014-04-22T19:11:36
1,104,736
0
3
null
2015-02-27T12:01:17
2010-11-23T06:17:59
Tcl
UTF-8
Python
false
false
2,827
py
import re import os import PythonLeo from Tkinter import * import threading import zipfile,shutil URL_LIST = {"current_module":"http://leo.rp.edu.sg/workspace/studentModule.asp?site=3", #to get project_id , group_id "current_problem":"http://leo3.rp.edu.sg//projectweb/project_menu.asp?", #to get topic_id, year2,3=...
[ "91212@.rp.edu.sg" ]
91212@.rp.edu.sg
481ee7906a744a489a5047dc23bddcf717f292f6
60d8335b0017fd2747efd14e50a446f9b61c1cf2
/en-US/extras/Usage-Example-9.py
2f0920d459dae949672009696bb0cf5611f5bd6a
[]
no_license
libvirt/libvirt-appdev-guide-python
7bfd9ca3ca27cbf2244b241a10d49ea3a133ae04
f652d7b8cf86ee4f61b2720a3a3d6b45042c7779
refs/heads/master
2023-08-22T01:30:57.157556
2023-07-03T10:22:31
2023-07-03T10:26:34
249,973,267
1
1
null
null
null
null
UTF-8
Python
false
false
66
py
stream = conn.newStream() imageType = domain.screenshot(stream,0)
[ "berrange@redhat.com" ]
berrange@redhat.com
b0eec7ecd9782b591815a35655ccffd969db10fc
010c5fc504e64d9d855daff1cbce44394bdfb263
/playfunction/playfunction/doctype/item_icon/test_item_icon.py
9bedf2a3b56808d0870ebe1b164a5e8b13d152d2
[ "MIT" ]
permissive
patilsangram/playfunction
05c30f0db23cf0edb87d0378294ebb6b4d0d95c0
e8cb03ef0091547bee8da65d5ce1cce7d68cace0
refs/heads/master
2023-05-27T17:59:42.255480
2020-07-28T14:06:54
2020-07-28T14:06:54
375,303,756
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, Indictrans and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestItemIcon(unittest.TestCase): pass
[ "yugandhara.b@indictranstech.com" ]
yugandhara.b@indictranstech.com
ef4a01640e6d0ad4d796f424868a53ae7c91b2fc
153370f455850fd5d3da284e0d7053b9dee3b5d6
/tests/test_auth.py
5ed89cdf41eab07789ebb2e3985102cf205f8445
[]
no_license
baldarn/raspi_gate
58742073406fdcb4698a2b1c1deaf7b6c0e26bd9
c71bbf07e1feab518a97dac5aa27e0c7836f734c
refs/heads/master
2021-01-18T19:44:08.634193
2019-12-28T11:33:20
2019-12-28T11:33:20
86,909,161
0
0
null
null
null
null
UTF-8
Python
false
false
2,070
py
import pytest from flask import g, session from raspi_gate.db import get_db def test_register(client, app): # test that viewing the page renders without template errors assert client.get('/auth/register').status_code == 200 # test that successful registration redirects to the login page response = cl...
[ "lorenzo.farnararo@gmail.com" ]
lorenzo.farnararo@gmail.com
adcee245a95e9425a32e6b7427a416933d334339
48cf478689daa5c7558ccb6689b98cfaeb64ea0f
/Compilation/neural_network.py
24eddd9d47f6de3b2b29b106e3916c69cdf6d093
[]
no_license
demetriushrowland/machine_learning
d31454038719ccd61b6fb12db3d41da60a46ac59
d72db242700f1378181910ebdc2a82991647b422
refs/heads/master
2020-06-04T04:24:05.628961
2020-05-29T03:50:52
2020-05-29T03:50:52
191,871,729
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
import numpy as np class Net: def __init__ (self, weights, activations): self.weights = weights self.num_input = weights[0].shape[1] self.num_hidden_layers = len(weights)-1 self.num_hidden = [weights[i].shape[1] for i in range(1, len(weights))] self.num_output = weights[-1]....
[ "demetriushrowland@gmail.com" ]
demetriushrowland@gmail.com
d1d4911cc165e12b0c2b73a44e9fca1d654e75f1
936a0943b862cfbbd935adb7e2bf5ac6ec012375
/examples/basics.py
e04afd25e7c89cbfec558b18ce2ea9d2a79043bd
[ "MIT" ]
permissive
bgheneti/rai-python
b23c65f938acd2656a925c5a4adb7858d333992c
2956004853525795dfde210266d9bbf3292d27ee
refs/heads/master
2020-04-10T10:59:24.439509
2018-12-08T11:41:18
2018-12-08T11:41:18
160,981,304
0
0
MIT
2018-12-08T21:45:56
2018-12-08T21:45:56
null
UTF-8
Python
false
false
683
py
#!/usr/bin/python3 import sys sys.path.append('../ry') from libry import * K = Config() D = K.view() K.addFile('../rai-robotModels/pr2/pr2.g'); K.addFile('../test/kitchen.g'); print("joint names: ", K.getJointNames()) print("frame names: ", K.getFrameNames()) q = K.getJointState() print('joint state: ', q) q[2] = q...
[ "marc.toussaint@informatik.uni-stuttgart.de" ]
marc.toussaint@informatik.uni-stuttgart.de
b402ed27715c8cdf48833fe2f9f37f17572776b9
80f316c1bf2f705e82e98f485c3498b0044ff76d
/images/migrations/0002_auto_20160323_1424.py
2059faca9563d18ce83b0eaa9554796a37d1f8ad
[]
no_license
lfalvarez/django-images
789933ce0d522644471e2d678c613ae13a6eb40b
f30e995da644101ee21b6a667e4400de3d5fff12
refs/heads/master
2020-12-11T07:59:39.015651
2016-03-24T11:02:51
2016-03-24T11:06:34
57,898,112
0
0
null
2016-05-02T15:00:28
2016-05-02T15:00:28
null
UTF-8
Python
false
false
455
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import sorl.thumbnail.fields class Migration(migrations.Migration): dependencies = [ ('images', '0001_initial'), ] operations = [ migrations.AlterField( model_name='image...
[ "mhl@pobox.com" ]
mhl@pobox.com
4e3abde77ccd1556174380fea5d10c4c9f3c49b9
377bc20bb72234f0095eedba83ddbfaad79c50bb
/djangoTest/djangoTest/settings.py
35a217a1c587772eb74bf7e55e6eda3b1be1b868
[]
no_license
choicoding1026/Django
56fcf9932095829b26037ab5c506882ea31f7f33
4bbdf0e0f79175e10f8f75a29c2bc8f0ebd5328c
refs/heads/master
2022-12-19T20:07:22.904082
2020-09-28T08:46:58
2020-09-28T08:46:58
298,218,997
0
0
null
null
null
null
UTF-8
Python
false
false
3,074
py
""" Django settings for djangoTest project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from path...
[ "justin6130@gmail.com" ]
justin6130@gmail.com
3d1e5f29bcb35d357062cc9fc390560ac7aff133
9cef1e851750e9ab31909eae57415c00c7f2428b
/scrapers/beef_supply_chain_para/middlewares.py
35d64f08fb9421314217476361bf18fca78b96ec
[ "MIT" ]
permissive
StellaCarneiro/beef-supply-chain
9fb39c4beaf55b9ae9a9204b22a569533fb7c7c6
bd2f994e1515a5c8fc3e3794e936c4d3e246453e
refs/heads/main
2023-01-21T10:17:03.915123
2020-12-02T18:30:12
2020-12-02T18:30:12
342,729,078
1
0
null
2021-02-26T23:45:55
2021-02-26T23:45:55
null
UTF-8
Python
false
false
3,623
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class BeefSupplyChainParaSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, ...
[ "louisgoddard@gmail.com" ]
louisgoddard@gmail.com
60f3142dd05ea30e240de63fe4ee9b0fda5999cf
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_395/ch32_2019_03_26_16_46_20_229168.py
53939c1ffa07971a583c887f865be3d4e5c189df
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
a = str(input('Você tem dúvidas?')) while a != 'não': if a == 'nao': print ('Até a próxima') elif a != 'não': print ('Pratique mais') a = str(input('Você tem dúvidas?')) break
[ "you@example.com" ]
you@example.com
54d82f06835c62981d7b87da84e06bc382fa3711
a9d96371f00c25e8b4ec73aebae3bf093f1fbcab
/src/crawl_web_maxpages.py
00d4aad0e39c088c0fea3f2ac14bc87868358a27
[]
no_license
joskid/SearchEngine
9c06a3da9d0b97e33519637c5379ff7036411a42
9ba8b11e48c6614b2f59e7f2b9b50483022ac4a2
refs/heads/master
2021-01-18T05:39:22.119963
2012-03-27T07:27:09
2012-03-27T07:27:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,549
py
# crawling the web starting from seed page with max_pages parameter # get_page() procedure for getting the contents os webpage as a string import urllib def get_page(url): try: return urllib.urlopen(url).read() except: return "" # procedure for finding and returning the next url from the pas...
[ "nikhiltejlv@gmail.com" ]
nikhiltejlv@gmail.com
d274a8a644daff6fd4c2f4db5f2fb2745f1e937a
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/PhysicsAnalysis/D3PDMaker/JetTagD3PDMaker/share/JetTagD3PD_makeTrackJets.py
49e467360ee52960c521a147637e239d6091e488
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
3,779
py
from JetRecTools.JetRecToolsConf import JetTrackZClusterTool from JetRec.JetRecConf import JetFastJetFinderTool from JetRec.JetRecFlags import jetFlags from JetRec.JetGetters import * #------------------------------------------------------------------------ # Setup tool so that it can be used #--------------------...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
4b084dd7ab6265d719d52f462ded8f95839f050b
2d5c00af71c58e02bbf7089c9cdeea42a5e1475a
/train_phase2_classifier.py
b1a3108a24d0b27131b0b839648b1bdbc1f60c08
[ "MIT" ]
permissive
sohag-mbstu-ict/robust_frcnn
87fc446fac7b137b183db2b0dfb64d043dbab174
707ea9a3063d40fbfd9894bf4561025357fcb0ef
refs/heads/master
2023-03-16T11:31:52.214790
2020-07-19T19:47:18
2020-07-19T19:47:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,792
py
from __future__ import division import random import pprint import sys import time import numpy as np from keras.layers import Dense, GlobalAveragePooling2D, Dropout, Input from keras.models import Model, model_from_json from keras.applications.inception_v3 import InceptionV3 from keras import backend as K from keras.o...
[ "gabriel.macias@teranalytics.com" ]
gabriel.macias@teranalytics.com
2df13f8960a8c0c01b41d33c85d81572f3b29fd3
228ca0372abc0d46b4667208049b1264429d63c0
/src/weather.py
ef8a919bc4fc4e0aaa0cee235341344a15fe95b1
[]
no_license
showmurai/tenki
eaea50ef1ab7ffbacdb8418d30e0601b70db1336
b1cdf94bf1d3f6d6d0244a3d43e150cf0af934b8
refs/heads/master
2020-04-06T06:40:45.442280
2014-06-05T06:17:58
2014-06-05T06:17:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
# -*- coding:utf-8 -*- import requests import json r = requests.get('http://api.openweathermap.org/data/2.5/weather?q=Tokyo,jp', ) print r.status_code print r.headers['content-type'] print r.json() encode_json = json.dumps(r.json()) print encode_json
[ "show.murai@gmail.com" ]
show.murai@gmail.com
55c4d1d2f2cd01306eadfd5c6b8b1f255b2d2838
499329b1a7c5691c8a20a24dccd04b5685cd566a
/bambu/blog/helpers.py
dad9bd81c11d66a2f049b62c8e566d160fb38eb6
[]
no_license
flamingtarball/bambu-tools
dd00d382d04457d988a33022b97ef54b3f3023dc
ca0e8e7f3cbbb946e39f8df794ec82baf34795de
refs/heads/master
2016-09-05T23:37:35.906125
2012-08-14T10:16:31
2012-08-14T10:16:31
5,181,076
1
0
null
null
null
null
UTF-8
Python
false
false
2,143
py
from django.contrib.auth.models import User from django.utils.timezone import utc from taggit.models import Tag from datetime import datetime def view_filter(**kwargs): from bambu.blog.models import Post, Category posts = Post.objects.live() if 'year' in kwargs: posts = posts.filter( date__year = int(kwargs[...
[ "marksteadman@me.com" ]
marksteadman@me.com
b2f2b0710c0640c57e4a6973c8d53859dfa230dc
f3c332093a573e5e407102f28126c97ec0bb94ce
/Math work trial 4.py
33d4d7dc24f5660b1edc869411ddf005876fa1c6
[]
no_license
AlexisMergan/Math
8decc9925c6b400b5962d34750a763f4a5a29ce3
2f4c4c458b1ac845e15fd3de673e7371c0bc736b
refs/heads/master
2021-03-08T00:46:40.093499
2020-03-18T19:55:40
2020-03-18T19:55:40
246,307,282
0
2
null
null
null
null
UTF-8
Python
false
false
1,133
py
import numpy as np import math #Parameter Values sigma=1.5 beta=0.95 alpha=0.3 delta=0.1 epsilon=10**(-3) K= np.linspace(0.01,5,1000) V= np.linspace(0,0,1000) def u(c): utility=((c**(1-sigma))-1)/(1-sigma) if c<=0:return -math.exp(200) else: return utility def ct(i, j, K): kt1 = K[i] ...
[ "56893434+AlexisMergan@users.noreply.github.com" ]
56893434+AlexisMergan@users.noreply.github.com
e87450c7a8365fbcc7052eb6fab30bacef49d0a0
9fb9133e179a02e110b32513cd193903f4cb05cb
/T10 Graphs, Paths and Search/box_world.py
e5178cf8de73d6302373a88901e1d5c26a96de15
[]
no_license
DPerrySvendsen/COS30002
be7807d84cb252a78e781994b46a8794a11e81e3
27f60dff622cd6621c20cba5eeb8d01b246291f1
refs/heads/master
2021-01-23T16:29:59.103086
2017-06-04T08:41:24
2017-06-05T06:40:20
93,300,179
4
5
null
null
null
null
UTF-8
Python
false
false
15,157
py
''' Basic square grid based world (BoxWorld) to test/demo path planning. Created for HIT3046 AI for Games by Clinton Woodward cwoodward@swin.edu.au See readme.txt for details. Look for ### comment lines. Note that the box world "boxes" (tiles) are created and assigned an index (idx) value, starting from the origin i...
[ "dperrysvendsen@gmail.com" ]
dperrysvendsen@gmail.com
feeaa15cae7e0454a3ad30921c8a3a80199f4399
910be469257538bcbbd15e894679856a1d311252
/server/service/trade/migrations/0006_auto_20161219_0232.py
f61cdfb26a888fc0d4d146d69de0dfe9c9a9cfb8
[]
no_license
bopo/bankeys2
ece7e7faa93aab48bf5a336721bfa69b33a870d8
5a81f5f4cd6442aade444444ba768b9ffa9dcbd4
refs/heads/master
2023-08-19T04:16:12.063961
2023-08-04T09:09:00
2023-08-04T09:09:00
119,646,417
1
0
null
null
null
null
UTF-8
Python
false
false
588
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-19 02:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trade', '0005_auto_20161219_0230'), ] operations = [ migrations.AlterField(...
[ "ibopo@126.com" ]
ibopo@126.com
52b3f97fc61218cd38c7bea2e300e88231fcb7d5
25a4e5a76b06e6e677a2e08973e7d03f9b31300d
/Orile_tensoflow/first.py
f7c16104969646bc34b979a1260acf6d351665ca
[]
no_license
ducksfrogs/machine_learning_lessons
f4da81c7eb40fd1288a3e5614e111d0b5f780e06
5fe0ecffd45206cfd81e0a13069033f90317371e
refs/heads/master
2022-12-12T02:24:28.769446
2020-08-03T02:13:10
2020-08-03T02:13:10
281,533,511
0
0
null
null
null
null
UTF-8
Python
false
false
89
py
import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd
[ "ma_yamaki@yahoo.com" ]
ma_yamaki@yahoo.com
a2e966e841bf6ddb259d95be44428c8325a429fc
0bb36716a1edcdd38979201baf75230e769ba8b7
/examples/trajectory.py
32f20ca2eb0f2fb02bdb890c44f00c3dc388cca7
[ "Unlicense" ]
permissive
NOAA-ORR-ERD/gridded
6759df63af86e606bba9722132619a464aae4715
e89345cc5a5889d20c182e2c194a44bb45dfc575
refs/heads/master
2023-08-16T16:28:56.838870
2023-08-14T18:28:38
2023-08-14T18:28:38
79,688,194
60
17
Unlicense
2023-04-04T17:55:55
2017-01-22T02:38:59
Python
UTF-8
Python
false
false
1,308
py
# coding: utf-8 # # Trajectory Test # In[1]: get_ipython().magic('matplotlib inline') import matplotlib.pyplot as plt import numpy.ma as ma import numpy as np import netCDF4 import gridded # In[2]: url = 'http://geoport.whoi.edu/thredds/dodsC/examples/bora_feb.nc' # In[3]: nc = netCDF4.Dataset(url) lon = n...
[ "rsignell@usgs.gov" ]
rsignell@usgs.gov
c99f0e732f3e0dd93828549b9b6022010efa53d7
2ffdfe188859d5be1a427ce1c4457d41331b541c
/message/Count(Motifs) +Consensus(Motifs).py
e152c4cf7f124a1bd34f2be65e7e0181a8a61b2a
[]
no_license
Hydebutterfy/learn-python
18504b0c7281c2b0f94dbc73e77da87c8ac3ff38
883614deaf0a3cdf46d8305197fe5659fd609d60
refs/heads/master
2021-01-24T11:59:44.883949
2016-12-02T07:48:40
2016-12-02T07:48:40
59,213,755
1
0
null
null
null
null
UTF-8
Python
false
false
862
py
def Count(Motifs): count = {} k = len(Motifs[0]) for symbol in "ACGT": count[symbol] = [] for j in range(k): count[symbol].append(0) t=len(Motifs) for i in range(t): for j in range(k): symbol=Motifs[i][j] count[symbol][j] += 1 return...
[ "chenhyde628@gmail.com" ]
chenhyde628@gmail.com
f356bab78b052e54ab2b39f5b35a6e23804fa954
372128141eb3bbbcd40585aa42de63fb9c9f474a
/CS333/lab12.py
c6f9fce906e9deb6d2dd7a8345a06e7f6275fc86
[]
no_license
CharlesGe129/DailyScripts
6120b9a6937331106466f631953fe5e7890a5173
ed71e476a312a4ca0b98da4b5eec76cb80624661
refs/heads/master
2021-08-07T00:01:03.126998
2018-11-28T17:51:42
2018-11-28T17:51:42
104,777,361
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
def iterate(times, tax, funcs): (a, b, c) = (1, 1, 1) fac = 1 - tax for i in range(times): a1 = fac*funcs[0](a, b, c) + tax b1 = fac*funcs[1](a, b, c) + tax c1 = fac*funcs[2](a, b, c) + tax (a, b, c) = (a1, b1, c1) print(f"#{i+1}: a={a}, b={b}, c={c}") def s1(a, b, ...
[ "char1209ge@gmail.com" ]
char1209ge@gmail.com