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
456dea49529383b4c35c0539225715c02bbe8529
df81e4dac34a759f028a2e5e8a4db0ba50cc5d3d
/svd_ad_jax.py
2f497942f43b4f77aca3e34e0a77d7f0b3942d27
[]
no_license
Zhouquan-Wan/SVD_autodiff
53c6f7170e6aff2b01b79020f143b24ffa085bd1
d857007071e138b534fc39fd66f1f7ba73031896
refs/heads/master
2021-11-27T03:38:42.105394
2021-11-25T14:03:22
2021-11-25T14:03:22
206,057,293
18
2
null
null
null
null
UTF-8
Python
false
false
2,066
py
import jax import jax.numpy as jnp from jax import custom_jvp, custom_vjp import numpy as np from jax.config import config config.update("jax_enable_x64", True) import sys @custom_vjp def svd(A): return jnp.linalg.svd(A, full_matrices=False) def _safe_reciprocal(x, epsilon=1e-20): return x / (x * x + epsil...
[ "zhouquanwan@zhouquanwandeMacBook-Pro.local" ]
zhouquanwan@zhouquanwandeMacBook-Pro.local
1e08901744fdf8092e9e22bc6ec372b8fd41e733
3d2ff81277a91cde2e3016d5fa48bda5fa5ff72f
/chapter12/select_http.py
fb18fcd7f2460dcdd8c454340886cbcd49191cd7
[]
no_license
MAhaitao999/advanced_python
80e95c7fb195024f364f87169da8921fe52d221e
7d025050b5e0399ee3ab58e3cff70a87ab739dbb
refs/heads/master
2020-11-29T10:48:30.476244
2020-06-24T07:24:14
2020-06-24T07:24:14
230,095,792
0
0
null
null
null
null
UTF-8
Python
false
false
2,661
py
# 1. epoll并不代表一定比select好 # 在高并发的情况下, 连接活跃度并不是很高, epoll比select好.(例如web) # 并发性不高, 同时连接很活跃, select比epoll好.(例如游戏) # 通过非阻塞io实现http请求 # select + 回调 + 事件循环 # 并发性高 # 使用单线程 import socket from urllib.parse import urlparse from selectors import DefaultSelector, EVENT_WRITE, EVENT_READ selector = DefaultSelector() # 使用select完成h...
[ "haitao.ma@transwarp.io" ]
haitao.ma@transwarp.io
b1dd186cca7efcf3a4ce8f5f4e681e7b2cf618ee
1e2fa13e2264958c21023fe8e223809dd125119c
/ssloc/util.py
4e9dbbed1bb08aaec0780628825d41cfe23016d3
[]
no_license
hanwiz/ssloc
ae04543f76b7318b28a36d1556c9a1ebee3fa77f
cefd07b4bb424a69c857b0f1a9cd298e72dbc97d
refs/heads/master
2021-03-26T18:31:56.826556
2019-05-19T15:56:32
2019-05-19T15:56:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
import threading import uuid def run_thread(func): thread = threading.Thread(target=func) thread.setDaemon(True) thread.start() already_imported = list() def on_import(func): global already_imported name = func.__name__ + " " + func.__module__ if not name in already_imported: already...
[ "sayanmndl21@gmail.com" ]
sayanmndl21@gmail.com
6e785160cfd23b23fd62580b0dd68b6ef5ba14f8
212daad1c33e796944fff2ca41788b872f6e6a0e
/plane_shotting/settings.py
522e673cca183d9cda49aedf39e87315251c4015
[]
no_license
walter0909/python_scripts
ecae13b8931f791d241b8902a76629683e2fdccd
19156358ced7b8cc0107d390e74203ca5b320cb5
refs/heads/master
2023-02-25T12:53:53.795302
2021-02-03T06:07:28
2021-02-03T06:07:28
297,516,050
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
class Settings(): """settings """ def __init__(self): #screen self.screen_width = 800 self.screen_height = 600 self.bg_color = (230,230,230) self.ship_speed_factor = 1.5 self.bullet_speed_factor = 1 self.bullet_width = 3 self.bullet_height = 15...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
19a28e229ac3f93ccb8e2a2c3a4f00614a6b9f38
1b45dd36105a3c5c71208c1a6e12441c316164cf
/LearnON/LearnON/courses/migrations/0021_auto_20200825_2149.py
86383d2be1b190d950af93869cd782d927b5bd3b
[]
no_license
VJHARAN/vjharan.github.io
c258490391d33ba4342c1ae6d9154069d2026a5f
762a9c12d662343a713f687a5f97297f39a02258
refs/heads/master
2022-12-25T05:22:12.704585
2020-10-03T07:29:12
2020-10-03T07:29:12
293,269,385
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
# Generated by Django 3.0.7 on 2020-08-25 16:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0020_auto_20200825_1519'), ] operations = [ migrations.AlterField( model_name='subjects', name='image_cas...
[ "haranvj1997@gmail.com" ]
haranvj1997@gmail.com
fc216362a02225b2ff41c9073d1ca8277c088188
37c3b81ad127c9e3cc26fa9168fda82460ca9bda
/Baekjoon/boj_10711_모래성.py
3f23b08f4cb51446ea056e929f61c0ec51f93fab
[]
no_license
potomatoo/TIL
5d85b69fdaed68966db7cfe2a565b7c64ed3e816
395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c
refs/heads/master
2021-07-08T16:19:40.410097
2021-04-19T02:33:40
2021-04-19T02:33:40
238,872,774
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
N, M = map(int,input().split()) castle = [list(map(str,[*input()])) for _ in range(N)] search = [] for y in range(N): for x in range(M): if castle[y][x] != '.' and castle[y][x] != '9': castle[y][x] = int(castle[y][x]) search.append((y, x, 0, 0)) dy = [-1, 1, 0, 0, -1, -1, 1, 1] dx =...
[ "duseh73@gmail.com" ]
duseh73@gmail.com
77d42855c962ea6b45f14f51a42ff725220ace19
8de256d7b8fc614cec0c166f26ddd057eac78af9
/read_copy_number.py
a46e25fc22170b4f723e0d67328a61b046979ce2
[]
no_license
mheskett/tcga_replication_timing
fe24de00da5095ce4190262dae4dc483eda82eed
87af134efc68f5f5b7b834912c35c75f64e281a8
refs/heads/master
2023-04-10T03:18:40.445414
2019-09-04T00:12:53
2019-09-04T00:12:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
762
py
""" read gistic """ import os import csv import numpy as np import pandas as pd import sys import matplotlib.pyplot as plt import pybedtools import re # table = pd.read_table("/Users/mike/replication_tcga/data/copy_number\ # gdac.broadinstitute.org_BRCA-TP.CopyNumber_Gistic2.Level_4.2016012800.0.0/\ # table_amp.conf_...
[ "mike@Mikes-iMac.local" ]
mike@Mikes-iMac.local
d4df6a68cf8b4a3fcd98eebda53d3764910e0f8a
47288e23d0248d7bfbda0cfae5bc138d389cbbb6
/sympy/integrals/rde.py
c0a1c22af21f5d97140e22176bc174fe8dde385f
[]
no_license
cosmosZhou/sympy
d94ce6ad9028d143bb877f46fad4eda1d5dc2173
6160fff63636fd81755bd94e777ba450a09df517
refs/heads/master
2022-07-30T20:51:35.359580
2022-07-11T12:40:50
2022-07-11T12:40:50
199,948,191
3
1
null
2020-08-26T14:13:49
2019-08-01T00:34:25
Python
UTF-8
Python
false
false
26,576
py
""" Algorithms for solving the Risch differential equation. Given a differential field K of characteristic 0 that is a simple monomial extension of a base field k and f, g in K, the Risch Differential Equation problem is to decide if there exist y in K such that Dy + f*y == g and to find one if there are some. If t i...
[ "zhoulizhi@patsnap.com" ]
zhoulizhi@patsnap.com
1de066d6a721852a4773dece49500060056ebe67
ec11d4b4934e53c3c57e944ed0090e0c922a6136
/backend/virtualenv/Lib/site-packages/flask_ext/subdomain.py
923542b58bf8a800bd3da416cc0bf183ab0351bc
[ "MIT" ]
permissive
myang81/Degree_Project
5466cc5c8b9ea4c60304de3164362fbd865bfd30
4535f8a45148e3d6d061d0ddbca9cd94d995d42f
refs/heads/main
2023-04-29T08:22:51.741516
2021-05-22T17:39:51
2021-05-22T17:39:51
348,626,744
1
0
MIT
2021-03-17T08:03:31
2021-03-17T08:03:30
null
UTF-8
Python
false
false
428
py
# -*- coding: utf-8 -*- from flask import g def add_subdomain_to_global(endpoint, values): g.subdomain = values.pop('subdomain', None) def add_subdomain_to_url_params(endpoint, values): if not 'subdomain' in values: values['subdomain'] = g.subdomain def add_subdomain_support(blueprint): bluep...
[ "guiwecgdiu@163.com" ]
guiwecgdiu@163.com
e0eab11c6ffbf9e26b1baf6a03dfd12eb43fb8da
3da64770b2e6743e5239b5b24acf79c46f088e01
/ex_13/test.py
cb58a40ce4309211eb68db3fb22324587b97054e
[]
no_license
hackerjeff705/PY4E
cf5ecf47f378123906ea2d9d29ed087a1f43bbb2
3c10574bd013f8387c915198b95ce35d431a6b2e
refs/heads/master
2020-04-18T11:08:14.669309
2019-02-06T04:51:11
2019-02-06T04:51:11
167,489,639
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
import urllib.request, urllib.parse, urllib.error import xml.etree.ElementTree as ET import ssl ctx = ssl.create_default_context() ctx.check_hostname = False ctx.verify_mode = ssl.CERT_NONE url = input('Enter url: ') html = urllib.request.urlopen(url, context=ctx).read() tree = ET.fromstring(html) counts = tree.find...
[ "noreply@github.com" ]
noreply@github.com
4146e50a8525f3747cb0dca5aef9030f0519f149
295f34f4411d984f0ff6026be6e96fe134dc1550
/home/pi/antes/consulta.py
92d50b55d536b5cbe4a174bb77c1f2614a735a08
[]
no_license
mcashjavier/disco-linux-raspy
1e3fed914b6040fa9972e7cfc7357ecb72070e8c
8c23103cf089059fbdadfad8cfb7059c1580da83
refs/heads/master
2022-12-20T17:06:39.967203
2019-03-12T12:09:22
2019-03-12T20:01:10
175,072,541
0
3
null
2022-12-18T06:59:27
2019-03-11T19:44:12
null
UTF-8
Python
false
false
2,093
py
from tkinter import * import socket import sys def Salir(): ventana.destroy() def MiSaldo(): if tarjeta.get(): # Create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Connect the socket to the port where the server is listening server_address = ('18...
[ "prog2@magneticash.com" ]
prog2@magneticash.com
420ed2198735ba0a0e6c666e901fe92c8737f175
1faddd73aaeebec2f7304933d805a50c18350e45
/3.MayTinhCamTay/caculator.py
c81ee73977e9ca6f9910992724dd91b423a229d2
[]
no_license
KinKute/Tu-Hoc-GUI
ce2f24bf8c9bb46ea4b9d2621fb0045df7f94d89
821581a331458c71adfc73d12cb691e48079de3c
refs/heads/master
2023-06-15T22:42:10.270743
2021-07-06T03:24:25
2021-07-06T03:24:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,576
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'uiMain.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui...
[ "nguyentranquangbao12b5ts19@gmail.com" ]
nguyentranquangbao12b5ts19@gmail.com
484c29402b0398bab595c1097e0b1ca1c9bc79c4
d2bd087f0c1368022a117f490c446bc4de1eb886
/strato/models.py
6bef6ac50caa15c2b4bf1ab48b5be8d3e21805c1
[]
no_license
georgefex/fender
ca0cd2467dfc74d3a2b1d0c28a21bd43057b888a
d8b1f5d6cbdba3da85ab7c33a1b2c8e93d20579b
refs/heads/master
2021-03-13T21:15:06.853303
2017-05-19T10:58:16
2017-05-19T10:58:16
91,483,885
0
0
null
null
null
null
UTF-8
Python
false
false
586
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models # Create your models here. class clients(models.Model): usuario = models.CharField(max_length=100, blank=True, null=True) nombreapp = models.CharField(max_length=100, blank=True, null=True) descripcion = models.CharField(...
[ "GEORGEF3X@GMAIL.COM" ]
GEORGEF3X@GMAIL.COM
9eb39655d54b8ec6cd55f7e99503edb9ed3a8427
2869808c9f4fdb820281a8521a62208766a0aa43
/pythonLeetcode/8-字符串转换整数 (atoi).py
9fb45d37404a283d55ba8be63e84ae030c6837e3
[]
no_license
BaoziSwifter/MyPythonLeetCode
03dcfa0705ad87a1b727fe2f924fabb7184c4ca1
0e8f0d902a379c07c386aedc6d10d7a2aa6d1b4a
refs/heads/master
2023-01-09T08:15:23.154464
2022-12-25T02:35:16
2022-12-25T02:35:16
220,202,819
1
0
null
null
null
null
UTF-8
Python
false
false
2,966
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 请你来实现一个 atoi 函数,使其能将字符串转换成整数。 首先,该函数会根据需要丢弃无用的开头空格字符,直到寻找到第一个非空格的字符为止。 当我们寻找到的第一个非空字符为正或者负号时,则将该符号与之后面尽可能多的连续数字组合起来,作为该整数的正负号;假如第一个非空字符是数字,则直接将其与之后连续的数字字符组合起来,形成整数。 该字符串除了有效的整数部分之后也可能会存在多余的字符,这些字符可以被忽略,它们对于函数不应该造成影响。 注意:假如该字符串中的第一个非空格字符不是一个有效整数字符、字符串为空或字符串仅包含空白字符时...
[ "duanlongfed@126.com" ]
duanlongfed@126.com
4649e400df78acfb837cc554222de7513695212d
ef29c84cdc26f01fd4b578e39c0f3ed4bd8d0d34
/ozpcenter/api/listing/model_access.pyi
db0b16e08eae2be3ca347f81a8b73398b68e7d3b
[ "Apache-2.0" ]
permissive
ozoneplatform/ozp-backend
831863bb1c6ddf8dfaa33283edd9c4ef439e225a
d31d00bb8a28a8d0c999813f616b398f41516244
refs/heads/master
2020-12-14T08:50:11.801877
2019-01-17T13:08:06
2019-01-17T13:08:06
67,625,894
1
7
Apache-2.0
2019-01-17T13:08:07
2016-09-07T16:45:45
Python
UTF-8
Python
false
false
1,322
pyi
from typing import Optional from ozpcenter.django_types import QuerySet from ozpcenter.models import CustomFieldValue from ozpcenter.models import Listing from ozpcenter.models import Profile def get_listing_by_id(username: str, id: int, reraise: bool = False) -> Optional[Listing]: ... def create_listing(author: ...
[ "jeff.harlan@nextcentury.com" ]
jeff.harlan@nextcentury.com
e2323e24f165b1a392b51394b106bb40a63a7087
b858c276db8754f9a88d2ac725a720fc460f3013
/tests/system/pods/__init__.py
09b9ce1efa4541fb7a87a96da77c9d0af36cd837
[ "Apache-2.0" ]
permissive
cglewis/marathon
49a95b9b8aab4e1495678867456c084256603ee8
2e7368e5fbad914f1b35c551dbee5c1b8bd63992
refs/heads/master
2023-04-06T04:03:53.828707
2017-10-31T18:50:31
2017-10-31T18:50:31
109,039,047
0
0
Apache-2.0
2023-04-03T23:17:55
2017-10-31T18:49:17
Scala
UTF-8
Python
false
false
838
py
import os.path import uuid from utils import make_id, get_resource def pods_dir(): return os.path.dirname(os.path.abspath(__file__)) def load_pod(pod_name): pod_path = os.path.join(pods_dir(), "{}.json".format(pod_name)) pod = get_resource(pod_path) pod['id'] = make_id(pod_name) return pod de...
[ "ivan.chernetsky@gmail.com" ]
ivan.chernetsky@gmail.com
99d59a242843579c1ba8b5cc265798415d691def
ae753a24cfc0db4df03cddc215ab808acc40a86c
/ApiLayer/base/connection_base.py
bdbb6f47483f630223819f1f51c5f5178015f4b2
[]
no_license
TsinghuaCloud/TsinghuaMonitor3.0
19912c4052810a4d9b4f9ee8064c81e8e8fc4480
58f287a9b902115773a1038acc5f0c5cd076f8ee
refs/heads/master
2021-01-14T09:10:51.999374
2016-09-11T11:26:44
2016-09-11T11:26:44
49,210,550
1
0
null
null
null
null
UTF-8
Python
false
false
5,574
py
import httplib import json import socket import urllib2 from django.conf import settings from Common import BaseMethods from ApiLayer.base import api_errors as err def openstack_api_connection(base_url, method, header, port, version, tenant_id=None, url_parameters=None, body=None): '...
[ "pwwp@outlook.com" ]
pwwp@outlook.com
732590f7535f493bc8add88cca06fc797937dc05
2874b52c0234d7e71031d4c22dedb3b24e539b2c
/backend/asetbeta_23682/wsgi.py
2ec019498b29468afbec180a22811cd744c8072d
[]
no_license
crowdbotics-apps/asetbeta-23682
d81ed8125b8c2ebb12b43d25d8068ff9ca71e344
128708fff3c98680a239a0f198aed5937950c5bf
refs/heads/master
2023-02-12T09:51:04.507332
2021-01-14T14:38:53
2021-01-14T14:38:53
327,014,116
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for asetbeta_23682 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANG...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
69e7f8cef542458e0352fc39e7a7ba82bf0790ea
4135edad339574c971e5cd072203c5cd073bf9de
/faces-exec/learning_curves.py
e7e0b881cb511988ec1d63069135ed7a946bde3b
[]
no_license
erankfmn/ml_exercises
e525961af06314934ac0b2b745362667bc6cc327
a5c771c45a53358c10e2e56bbdaea20d3b14a894
refs/heads/master
2020-04-09T14:24:01.314518
2019-01-14T08:55:08
2019-01-14T08:55:08
160,396,297
0
0
null
null
null
null
UTF-8
Python
false
false
3,798
py
print(__doc__) import numpy as np import matplotlib.pyplot as plt from sklearn.naive_bayes import GaussianNB from sklearn.svm import SVC from sklearn.datasets import load_digits from sklearn.model_selection import learning_curve from sklearn.model_selection import ShuffleSplit def plot_learning_curve(estimator, titl...
[ "noreply@github.com" ]
noreply@github.com
529f4017618780f8663e90680936300e7bd47b4b
be7949a09fa8526299b42c4c27adbe72d59d2201
/cnns/foolbox/foolbox_2_3_0/v1/attacks/decoupled_direction_norm.py
ba84884374e569e8613766c56669d5399a107841
[ "MIT", "Apache-2.0" ]
permissive
adam-dziedzic/bandlimited-cnns
375b5cccc7ab0f23d2fbdec4dead3bf81019f0b4
81aaa27f1dd9ea3d7d62b661dac40cac6c1ef77a
refs/heads/master
2022-11-25T05:40:55.044920
2020-06-07T16:14:34
2020-06-07T16:14:34
125,884,603
17
5
Apache-2.0
2022-11-21T21:01:46
2018-03-19T16:02:57
Jupyter Notebook
UTF-8
Python
false
false
4,263
py
import math import numpy as np import logging from .base import Attack from .base import call_decorator class DecoupledDirectionNormL2Attack(Attack): """The Decoupled Direction and Norm L2 adversarial attack from [1]_. References ---------- .. [1] Jérôme Rony, Luiz G. Hafemann, Luiz S. Oliveira, Ism...
[ "adam.dziedzi@gmail.com" ]
adam.dziedzi@gmail.com
1337befa8762cb944e8c796bd05699223071ad07
bca0f5f265011235062b437669c0e23cf5f39a2b
/examples/ide/2-hexapod.py
f60597416d71bbdc222a3fa01b095acaac0dc2ee
[ "Apache-2.0" ]
permissive
thingsapart/jupyter-cadquery
e6ce6447961cd4d3a3174e7420f90b05e3dde43a
54bc917ad2cae66a29488e01136b1711aeeb3bec
refs/heads/master
2023-08-11T18:54:34.072512
2021-10-08T08:44:45
2021-10-08T08:44:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,051
py
import numpy as np import cadquery as cq from cadquery_massembly import MAssembly, relocate from jupyter_cadquery import set_defaults from jupyter_cadquery.viewer.client import show from jupyter_cadquery.cad_animation import Animation set_defaults(zoom=3.5) # Parts thickness = 2 height = 40 width = 65 length = 100 ...
[ "bwalter42@gmail.com" ]
bwalter42@gmail.com
78877cbda2c5a58d361f3e532ca13f88cba23545
3be3905c0722ca66d305cbc8d98c3d5fe5ab9c5e
/src/main/hesperian/wiki_crawler/clean_tokens.py
578f055b31a0d2d973bf59d3e8f9c26f0bc995e3
[]
no_license
icsi-berkeley/ecg_hesperian
1bda8996d4c405f939e3efb25b4dac5b45b18172
0f85ec101a1f48b63f80b3a3a748d19f43cf94c7
refs/heads/master
2021-03-27T10:10:29.114593
2018-05-14T21:39:06
2018-05-14T21:39:06
82,219,653
3
0
null
null
null
null
UTF-8
Python
false
false
422
py
import sys import string from collections import Counter infile = sys.argv[1] outfile = sys.argv[2] token_counts = Counter() with open(infile) as f: for line in f: token = line.strip().lower() if not any(c in string.punctuation or c.isdigit() for c in token): token_counts[token] += 1 with open(outfil...
[ "VV9295@YAHOO.COM" ]
VV9295@YAHOO.COM
55a35f079b434c08a95524dea40c0fc2846bb651
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2586/50263/236178.py
bd5fcad9a1a5d3b23ec8f4ae01903de54d954987
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
260
py
a = eval(input()) b = eval(input()) c = eval(input()) s = [] d1 = abs(b-a) d2 = abs(c-b) min_move = 0 max_move = d1+d2-2 if max_move != 0: if min(d1,d2) < 3: min_move = 1 else: min_move = 2 s.append(min_move) s.append(max_move) print(s)
[ "1069583789@qq.com" ]
1069583789@qq.com
c6b743669ce2be007589c8c25e6218373b97c000
74e7d266acdc4314a8b89d071c78123f18185695
/catkin_ws/devel/lib/python2.7/dist-packages/ddynamic_reconfigure/srv/_TutorialParams.py
28c6c5b465c42285310abc4f33a5c377c982043a
[]
no_license
natashasaki/IntelRealsenseSLAM
4c29bf25f7d3bdf1e721c59819dea0e41397680e
7a4f3ef2d9406208ea37f70120ce46857d7787a7
refs/heads/master
2022-12-10T10:20:55.496787
2020-09-10T04:52:54
2020-09-10T04:52:54
294,305,490
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
/home/bosch2/catkin_ws/devel/.private/ddynamic_reconfigure/lib/python2.7/dist-packages/ddynamic_reconfigure/srv/_TutorialParams.py
[ "Saki.Yokoyama@jp.bosch.com" ]
Saki.Yokoyama@jp.bosch.com
6e8aa2a165714a8c9caa84f789691c2d19bb0462
ff8d293ccfadb58dcebb197ef4f1c4b2fa23704b
/ttApi/twitterApi.py
411bb846914e2f4914b4359f3585b8a52a8d984a
[]
no_license
prettyno3/flask-api
b00d150dd6001d7e70d032f72eed33eb2c6b3a36
e6fef930947bd1ca32c9b233f4c9659b17833868
refs/heads/master
2020-03-21T11:40:18.429602
2018-07-07T21:31:18
2018-07-07T21:31:18
138,516,415
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
from twython import Twython twitter = Twython(APP_KEY, access_token=ACCESS_TOKEN) def search(ticker): return twitter.search(q=ticker,result_type='recent', lang='en', count=100)
[ "zhenrongshi@Zhenrongs-MacBook-Pro.local" ]
zhenrongshi@Zhenrongs-MacBook-Pro.local
fb7857b8bbd40d7a47d7dc2d6e267418da21dc6d
61b86adba72c179cf23f56f7be44a572bd2cb70a
/Moveit_Scripts/Old_Scripts/pose_publisher.py
c0ca3ad21752fbcd40e8fc335147d1a778059e36
[]
no_license
dhruvtalwar18/Mobile_Collaborative_Robot
f622a6d761e69ce6caa203469e7578e420791ed7
6bee4489aa1f5ec4df550b6602260c1404308bbf
refs/heads/main
2023-08-14T13:51:52.312626
2021-09-19T13:05:58
2021-09-19T13:05:58
372,278,834
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
#!/usr/bin/env python import rospy from geometry_msgs.msg import * def talker(): pub_pose = rospy.Publisher('publish_pose', Pose, queue_size=10) rospy.init_node('pose_publisher', anonymous=True) rate = rospy.Rate(10) while not rospy.is_shutdown(): pose_object = Pose() pose_object.posi...
[ "" ]
2b64e269bd33472a22611f7e7d228dbd304faaa5
ce2df0ccdf151bedd4ca0f6daa1d97f144845b24
/demo.py
9017348c1efec7cda1287400110c0eb5d8f3e4ac
[]
no_license
gauravdesale/firstNeuralNet
f104a974e8f8ebc7432b8a35acceadadd372b1fd
2fdc0088b944ba4f9ae7d04f8458701816ca56af
refs/heads/master
2021-07-08T16:09:16.095362
2017-10-04T01:41:33
2017-10-04T01:41:33
105,721,664
0
0
null
null
null
null
UTF-8
Python
false
false
3,212
py
from numpy import exp, array, random, dot class NeuralNetwork(): def __init__(self): # Seed the random number generator, so it generates the same numbers # every time the program runs. random.seed(1) # We model a single neuron, with 3 input connections and 1 output connection. ...
[ "desalegaurav60@gmail.com" ]
desalegaurav60@gmail.com
0b112bb5b099f40be9e2e6bdaa122ab85ab5752e
4e14341a1b89dfbe67c81b7a4ea52a458e696132
/mysitedday61/mysitedday61/urls.py
b8883c4bf9f05dfa1c8ea73a53c7da198d7aaa1f
[]
no_license
520wsl/python-django-test
fae13cdb9fb6c3001a08b5f3f6bc3262a637922a
bbd111dd84a65315b727adef26d92aeb416daba0
refs/heads/master
2020-05-26T06:39:12.624462
2019-06-02T02:54:03
2019-06-02T02:54:03
188,138,055
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
"""mysitedday61 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "395548460@qq.com" ]
395548460@qq.com
0a99d4c3e732dfba797afb7b87f336b19d5fa9d6
802c002ecd90be6b489e0250ec4454a11c17ed1d
/src/homework/homework12/converter.py
a0a150b76663e22b8968c182983fc71228c948fd
[ "MIT" ]
permissive
acc-cosc-1336/cosc-1336-spring-2018-EricScotty
3a088285ae853a9ff5d747f2301f755c5e3749b3
80c0249a583dc178cfc7bb95b851d7f3240dc3e9
refs/heads/master
2021-09-14T05:54:02.132705
2018-05-08T23:27:04
2018-05-08T23:27:04
118,071,042
0
0
MIT
2018-04-23T02:51:05
2018-01-19T03:22:13
Python
UTF-8
Python
false
false
103
py
class Converter: def get_miles_from_km(self, km): return float(round(km * 0.6214, 2))
[ "noreply@github.com" ]
noreply@github.com
c7b4ad854db2db79aa2db2da9fe717225e462e2f
92c745e48700354cbcc8feb7c6bcffefe98f9329
/Frequency/ShowResult.py
00d1c4986e23cf9506ad8b92a1dba648fd2c167e
[ "MIT" ]
permissive
guoyii/Emotion-ECG
3d92a1a8fe222697e2c2b393aa7ad6a6db9d056e
ef96d5e3291fd6abd0d2c6a2f3d433d2d7336d2e
refs/heads/master
2020-12-06T03:19:41.322036
2020-01-15T13:01:45
2020-01-15T13:01:45
232,324,440
7
0
null
2020-01-15T13:01:48
2020-01-07T12:54:26
Python
UTF-8
Python
false
false
1,146
py
from sklearn.externals import joblib import matplotlib.pyplot as plt import numpy as np import h5py data_h5_path = "V:/users/gy/MyProject/ECG/result/Data_H5" data_origin = h5py.File(data_h5_path + "/data_src.h5", 'r') X_origin = np.array(data_origin['X'][:]) labels_origin = np.array(data_origin['labels'][:]) data_f...
[ "gy@ct.lab" ]
gy@ct.lab
9ab406e123e85486b10590c5a80006f1db9e5c8f
8ebb3f36058a9155ffd64eb2a970530834ba5712
/setup.py
37045e1000f54a8c3cd69a8e56470eefb7cb1d74
[ "MIT" ]
permissive
cherbie/netsuite
80233d144a7acddbb54a0048e2005154842cc646
379de5b7b97e45b56f00943051824b353afcdab8
refs/heads/master
2023-03-22T14:51:55.996774
2020-05-26T15:30:02
2020-05-26T15:30:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
from setuptools import setup extras_require = { "rest_api": [ "authlib", # NOTE: authlib doesn't work with httpx 0.12.1 So we're locking the httpx # version to one that is compatible. See: # https://github.com/lepture/authlib/issues/210#issuecomment-612311003 # T...
[ "m@jacobian.se" ]
m@jacobian.se
ab215d8337ed675f9ae95d11b6f455ae4ec46baa
fa20df6ec975f9df9f777031cbcc319632543dd0
/classifier.py
8ca4903aaa4692510d1a742522f2b5cc27279160
[]
no_license
erisonliang/Wafer_map_pattern_classification_Hybrid
dab3e983d89d3892084364598756867f6ee1dd33
21eb6c37d2929fd8bda4924d67a3c1c2648c6086
refs/heads/master
2022-11-24T04:13:58.232557
2020-08-05T02:57:34
2020-08-05T02:57:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,720
py
#!/usr/bin/env python # coding: utf-8 # In[1]: from preprocess import import_wm_data, split_data, standard_scale from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau from model import CNN_base, FNN, RF, SVM, JointNN, Ridge from sklearn.model_selection import train_test_split import numpy as np fro...
[ "noreply@github.com" ]
noreply@github.com
555ed448f8df80c33342d9c330438234b1e90948
60aa9635cd6d8870adf1a412e4fd3633a75c8a4b
/myapp/migrations/0001_initial.py
1dd1233d3a69b8d278e370642f05fe83f633564e
[]
no_license
runingcoder/DBMSPROJECT
e008063b180434fb2ff56190f8b9ee99799f47f0
37cae54eb357d267dbb526cb5edf6ba3f8f071e8
refs/heads/main
2023-07-14T06:56:59.035929
2021-08-24T13:10:56
2021-08-24T13:10:56
398,954,275
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
# Generated by Django 3.2.5 on 2021-07-07 11:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Features', fields=[ ('id', models.BigAutoFi...
[ "achyutkayastha5@gmail.com" ]
achyutkayastha5@gmail.com
b8975a789ee3ac0c38420cf73ec16c57a7567d41
7dcdae43cee868ce1d528dc404788525be80cc14
/bin/domain/base_items.py
4e7b55c87ac6c3be406e07b04c5eed57708c2f79
[]
no_license
fanaSiegl/queueApp
fd1e03a4e0dcc62fe4608ffb56cdb0c20496600f
7fb28dce5530899d9e7e3057287f343204955343
refs/heads/master
2021-05-26T09:15:11.251989
2020-04-09T09:35:04
2020-04-09T09:35:04
254,073,415
0
0
null
null
null
null
UTF-8
Python
false
false
30,576
py
#!/usr/bin/python # -*- coding: utf-8 -*- '''Python script for ''' import os import sys import glob import shutil import time import re import logging from string import Template import utils import enum_items as ei from time import mktime # from interfaces import xmlio #============================================...
[ "frantisek.siegl@idiada.cz" ]
frantisek.siegl@idiada.cz
408f7fa276a916c8851f438bfac68263a5e52312
21f4fb686c71dc132c59af787eb42aa5e1051f50
/Python_code/main.py
fc39f408a6fb73e66c0c5b823fbc2a0352923076
[]
no_license
Syntodev/Text2Scene_Fingeruebung_SS21
c86aa300d6a5bd0066fb955a2cab827429de7d0d
85607300c3dcd73df223165bc8a891a9aa7f51f7
refs/heads/main
2023-04-11T08:12:42.167282
2021-04-27T21:17:56
2021-04-27T21:17:56
359,779,967
0
0
null
null
null
null
UTF-8
Python
false
false
13,179
py
import spacy import get_input as gi import csv import os import visualisierung as vi from xml.etree import ElementTree from matplotlib import pyplot as plt from collections import Counter spacy.cli.download("en_core_web_sm") #Die obige Zeile downloaded "en_core_web_sm", nachdem man das gedownloaded hat, kann man es aus...
[ "Syntodev@github.com" ]
Syntodev@github.com
650b81add893feee404cbdbd00fe482ccdaaba41
7bbb8bdabf1cd181d9713f1f9e9616272df002c6
/pyfreshin.py
648216183e2853e6630e34096754dede279b0666
[]
no_license
ElliotPak/pyfreshin
e65619dbf3c9778771a2f06bcee66ad064d3338f
67229614a9de6b70d281bdc8ed22a1c9be19d694
refs/heads/master
2020-07-28T20:28:03.940448
2019-11-12T01:47:32
2019-11-12T01:47:32
209,527,243
0
0
null
null
null
null
UTF-8
Python
false
false
16,674
py
#!/usr/bin/env python3 import argparse import sys import re import platform import json import subprocess import os import os.path from collections import OrderedDict def get_args(): argsetup = argparse.ArgumentParser() argsetup.add_argument("-d", "--distro", help="Specify a different distro", action="store")...
[ "elliot@elliotpak.com" ]
elliot@elliotpak.com
aea905d6c31b128fd982a0190365e856396251a2
12ad24185d71d0fcbcf2f65b122c0b859c43e705
/models/rnn.py
2502f5d15c462be146776ac7bdba6c2eb222ef09
[ "MIT" ]
permissive
ptyshevs/int_seq
ccbc4bce00b8d314927e91bf061b099500a2e1da
645e469ee86d0c807ae57f5bbedbab46c6da3675
refs/heads/master
2020-04-04T20:00:35.661383
2019-10-22T09:38:14
2019-10-22T09:38:14
156,230,031
10
1
MIT
2020-03-31T00:39:09
2018-11-05T14:22:06
Jupyter Notebook
UTF-8
Python
false
false
6,097
py
import numpy as np import pandas as pd from keras.preprocessing.sequence import pad_sequences from keras.models import Sequential from keras.layers import GRU, LSTM, Dense class RNN: def __init__(self, model='big', input_len=69, min_val=0, max_val=2000): weights_file = 'pre_train/rnn_weights.h5' i...
[ "ptyshevs@gmail.com" ]
ptyshevs@gmail.com
af4079d00c939bffe17b5466140fb348b916aa84
467f5141d2b621eb23b41e393de7c3fe04fa666e
/Farbroulet/src/turtletutorial.py
e7688aebf5485216c437ad1b6388c8a717b2970b
[]
no_license
mac1006/complet_roulet
a12332649421f664960e27c728ec3996830a7dcd
1040f4e5cf763807777020c446a56e9a5606bd6f
refs/heads/master
2022-11-19T03:34:38.226611
2020-07-05T15:25:41
2020-07-05T15:25:41
276,463,174
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
import time from Farbroulet.src.view import circle2, circle1, circle3, circle4 circle2(200, 'green') circle4(220, 'red') circle1(250, 'blue') circle3(235) time.sleep(10)
[ "67427704+mac1006@users.noreply.github.com" ]
67427704+mac1006@users.noreply.github.com
e107c4d4e53dbebe28fc64b30be900363b53723f
1dfd83924eff1b60fa496093a602ce4461129cb5
/Queue/implementing queue using stack.py
3efc934cda4b8524b9f1893d79c14710d92ee916
[]
no_license
Sapan-Ravidas/Data-Stucture-And-Algorithms
370b041b82c3da7999bb4d47d386563f682c7aea
8109fce15a30cccdabebbda06ce2bb9fe6f966c6
refs/heads/master
2023-08-22T17:37:17.039583
2021-10-02T15:26:46
2021-10-02T15:26:46
323,563,736
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
'''making deueue operation costly''' class CostlyDequeue: def __init__(self): self.stack1 = [] self.stack2 = [] def enqueue(self, value): self.stack1.append(value) def dequeue(self): if not self.stack2: while self.stack1: self.stack2.append(sel...
[ "sapanravidas@gmail.com" ]
sapanravidas@gmail.com
9043650b3328e4dd5c60a3346cc87ef88d831cb0
3a5ed5cb427d13a6c2ce55ad6b198b4ef99ecc88
/tests/test_iorg.py
cf84bb1bf4ccba0625d4c79f590a6fedc18d9337
[]
no_license
cloudsci/cloudmetrics
5d5c199b79259ea7cc386cbf741552ac7978fa49
957ffa732bd5bc3f7c54eceb14488e8485853bd9
refs/heads/master
2023-09-03T22:28:11.379649
2023-08-23T18:54:20
2023-08-23T18:54:20
279,602,981
13
4
null
2023-09-11T06:57:11
2020-07-14T14:09:09
Python
UTF-8
Python
false
false
2,388
py
import numpy as np import pytest import cloudmetrics from cloudmetrics.utils import create_circular_mask @pytest.mark.parametrize("periodic_domain", [True, False]) @pytest.mark.parametrize("connectivity", [1, 2]) @pytest.mark.parametrize("reference_dist", ["poisson", "inhibition_nn"]) def test_lattice_of_squares(per...
[ "noreply@github.com" ]
noreply@github.com
f2c45ab721726f85a851c49fa2d84a0927b4554c
54200b70709987563611a79babd6dcf2663288a4
/tools/release-notes/manageTests.py
61979bd190cb927bba693f78f2d8e366b368a900
[]
no_license
dhis2/dhis2-releases
08bda77646b76db0a30d584f81e877b4a93365a5
b8ed966bee67f3f99b92f9b8f9e9ab53c7d3fac6
refs/heads/master
2023-09-06T09:50:59.824924
2023-09-05T07:40:47
2023-09-05T07:40:47
138,602,077
9
46
null
2023-09-12T10:26:05
2018-06-25T13:55:54
Shell
UTF-8
Python
false
false
1,874
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ usage: manageTests.py [-h] -u USER -p PASSWORD -l LABEL -z '<ZQL expression>' Find all tests matching a ZQL filter and apply a label. arguments: -h, --help show this help message and exit -u USER, --user USER Jira user -p PASSWORD, --password PASSW...
[ "phil@dhis2.org" ]
phil@dhis2.org
10be064c55b22683607eb30399c4ae9073811bb5
6247f148912aa8f446d24782e4d0022a9a57d747
/17CARGAME.py
b784fc9d03e44079dc77a582578e09a7b404d92b
[]
no_license
stogaja/python-by-mosh
78c5ed93756ac6c8f381486bcd7d54542dd2b4c9
805a5460ba3b4c93419d10eded4b790e96589123
refs/heads/main
2023-06-22T08:35:08.151144
2021-07-21T11:48:08
2021-07-21T11:48:08
388,077,166
1
0
null
null
null
null
UTF-8
Python
false
false
667
py
command = "" started = False while True: command = input("> ").lower() if command == "help": print(''' start - to start the car stop - to stop the car quit - to quit ''') elif command == "start": if started: print("Car already started") else: started ...
[ "ogajasteve76@gmail.com" ]
ogajasteve76@gmail.com
f64de2c8127075974e1ab65913cefb736906b153
7ebc12c326dd918bc96c08167f0457ed2f8f93de
/Trains/16032014/C/gen3.py
6cc73b659afce91e9538249bb551bed6ef337e99
[]
no_license
qwaker00/Olymp
635b61da0e80d1599edfe1bc9244b95f015b3007
c3ab2c559fa09f080a3f02c84739609e1e85075d
refs/heads/master
2021-01-18T16:35:58.452451
2015-08-06T16:45:58
2015-08-06T16:46:25
5,674,825
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
import random n = 3 * 10**5 print n, 1, n - 1 for i in xrange(n - 1): print i + 2, 1
[ "qwaker.00@gmail.com" ]
qwaker.00@gmail.com
5a3af79325cecdb45f242a8ef34e72960f0eab7d
74ba13d19d6adb22149dbb8b17c0f4f1385ecfcb
/src/packet_factory.py
a8cbc3435b4d71956d4707aa482a5b5f794a5f04
[ "MIT" ]
permissive
aenon/Melkweg
2d6e7a2d6cd29c0bc9e246b65c0d042d9c73ad13
d3adcc615ede1fad116c9c50ed0609a6b1a55250
refs/heads/master
2021-05-07T08:20:16.005318
2017-11-02T16:46:34
2017-11-02T16:46:34
108,594,644
0
0
null
2017-10-27T20:53:01
2017-10-27T20:53:01
null
UTF-8
Python
false
false
1,004
py
#coding=utf-8 from packet_pb2 import MPacket from cipher import nonce class PacketFlag(object): DATA = 1 LIV = 2 RST = 3 FIN = 4 KILL = 5 class PacketFactory(object): @classmethod def create_syn_packet(self, iv): packet = MPacket() packet.iv = iv return packet ...
[ "mail.kuuy@gmail.com" ]
mail.kuuy@gmail.com
f7e6931818d660c66d5c7c6a430774fa3917fe76
82e8aa010e3d33595ac5098b403e804cadb5a403
/hangman.py
23c57ed179edf26adb2509ecb4b66d965c9e9cad
[]
no_license
PadraigMou/wisielec
35371e2e54b52e5271c1d01c042aff6e65a93186
bb0453a0bb88612394e1b8d6ceb1fcf06e22abcf
refs/heads/master
2022-09-16T06:33:16.006699
2020-05-30T21:08:42
2020-05-30T21:08:42
267,424,233
0
0
null
null
null
null
UTF-8
Python
false
false
1,442
py
def hangman(): import random wordind = random.randint(0, 10) listofwords = ["fox", "cat", "dog", "fold", "gold", "mold", "sold", "goal", "brz...
[ "mogilnicki.patryk@gmail.com" ]
mogilnicki.patryk@gmail.com
b11d87f75fac838ba16019628037010af0a05b95
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/RFC1253-MIB.py
3d3a8a932440536f5c755452f34497a2a851a3d9
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
50,680
py
# # PySNMP MIB module RFC1253-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RFC1253-MIB # Produced by pysmi-0.3.4 at Wed May 1 11:16:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
746195a4d5f55b5902daaf850f18f2c3b2fcca95
859be69dd940938eb3260353ebe9797cba73229b
/agentpanel/models.py
6630baa4d9ccf9a26797176089327b82d5798b2d
[]
no_license
Egctelecom/egciptv
558e00b6dab5708e270b5bafc8ce77e7440fdcb1
35715df08a82c7e74e8a41c4f6d325ed6365cdf6
refs/heads/master
2022-12-12T16:41:01.381816
2019-11-27T13:42:27
2019-11-27T13:42:27
222,450,679
0
0
null
2022-12-08T03:04:16
2019-11-18T13:03:22
JavaScript
UTF-8
Python
false
false
927
py
from django.contrib.auth.models import User from django.db import models status = ( ('Agent', 'Agent'), ) #----------------------------------------------------------------- Agent add ---------------------------------------------------------- class Agent(models.Model): id = models.AutoField(primary_key=Tr...
[ "ranit.saha@navsoft.in" ]
ranit.saha@navsoft.in
4ef5375f46be6cb5c3ceb6cb0a70c7c7fcbb357c
b08870f8fe7b3cf1bbab3c52a7bacbb36ee1dcc6
/verp/patches/v13_0/update_custom_fields_for_shopify.py
40343f14221e3519c8ebba2228a7bb47f7871451
[]
no_license
vsadminpk18/verpfinalversion
7148a64fe6134e2a6371470aceb1b57cc4b5a559
93d164b370ad9ca0dd5cda0053082dc3abbd20da
refs/heads/master
2023-07-13T04:11:59.211046
2021-08-27T06:26:48
2021-08-27T06:26:48
400,410,611
1
0
null
null
null
null
UTF-8
Python
false
false
362
py
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from verp.verp_integrations.doctype.shopify_settings.shopify_settings import setup_custom_fields def execute(): if frappe.db.get_single_value('Shopify Settings', '...
[ "admin@vespersolutions.tech" ]
admin@vespersolutions.tech
588fa92a046696525fa86c36cb05cf7236df1d87
70278f2108c292db7cbdc04c4044faa2a7e0faa5
/lib/vector.py
83edb1362fffb2b18d55e89b585d123b3a5d5eab
[]
no_license
frapa/dino
d7a0ccfd07845855c52cd80ae39db802097d415c
607702450621a716341a139444a25f7187d0e019
refs/heads/master
2016-08-02T21:25:16.858603
2013-04-12T19:34:08
2013-04-12T19:34:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,042
py
from math import sqrt class Vector(object): def __init__(self, *args, **kwargs): # check if a list or a tuple was passed if isinstance(args[0], tuple) or isinstance(args[0], list): self.coordinates = args[0] else: self.coordinates = args # Tribute to Pytagor...
[ "francescopasa@gmail.com" ]
francescopasa@gmail.com
83b11cac79bcc51fccbaf7872d28e9ad21855b18
3b4ba3e411f41a2e8b5222135dfc8f7c24c45e7a
/main.py
f149798eeb562b93a574da2f4a6af516317388b2
[]
no_license
nite855/planer.py
96fbac50dc4ac2395352391f0cb14d5d188dc035
f349b4cefa843cc96b6f1589613cf10f7288d6f1
refs/heads/main
2023-01-20T05:47:47.754330
2020-11-27T12:57:14
2020-11-27T12:57:14
316,480,572
0
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
import discord from discord.ext import commands import asyncio client = discord.Client() client = commands.Bot(command_prefix='!') maximum=5 mem=1 token = "Nzc2NjQ0MDY2MDI4MDI3OTE0.X634Jg.z0jR8SbclQLyE9r7xI9_h72zxeI" mem=1 @client.event async def on_ready(): print("준비완료됨!") print("다음으로 로그인 됩니다") print(client...
[ "noreply@github.com" ]
noreply@github.com
55e46cda0dd6de6b2889f6a697eaed55932bdb46
70f1c694bea6178c98b134b9c44952ef6693be9f
/Manuscript/figure/Figure_MITE_auto_promoter/Auto_target/scripts/rename_hit-flank-files_by_peps-to-repbase_results.py
dded703f195e797fa3373153c85e0299798aa992
[]
no_license
JinfengChen/Rice_pop
5c19c5837805e51ddb3b2ffba4baffdc59c9bfd3
ef272bf4825b29610c94de55eb53f231fb5febc6
refs/heads/master
2020-04-07T04:55:36.606594
2018-03-02T16:52:53
2018-03-02T16:52:53
33,501,941
1
0
null
null
null
null
UTF-8
Python
false
false
9,659
py
#!/usr/bin/env python import sys import os import os.path import fastaIO import fnmatch from collections import OrderedDict args = sys.argv[1:] arg_len = len(args) print "Argument length:", arg_len def usage(): print """ usage: python rename_hit-flank-files_by_peps-to-repbase_results.py <DNA_TPase_match...
[ "jinfeng7chen@gmail.com" ]
jinfeng7chen@gmail.com
d067b711e0d51d28fc2aa9365889d24643033cdc
4ef7bf98f6bc8e274844195fd856513fbed410dd
/sudoku.py
81b7536bc7591b127a5adf7c6533cd34c11781a6
[]
no_license
qcambrel/sudoku
2444eaba4605ff7c490876ceafce37eb2df49dcc
b66e768ac2f516608e6dbc8826b1c82117c45ab2
refs/heads/master
2021-06-07T11:00:36.076559
2021-01-08T01:47:47
2021-01-08T01:47:47
63,806,657
0
0
null
null
null
null
UTF-8
Python
false
false
1,664
py
## This file describes and controls the Sudoku game logic. from tkinter import Tk, Canvas, Frame, Button, BOTH, TOP, BOTTOM from board_check import check_squares, check_columns, check_rows import numpy as np import csv BOARD_SETTINGS = ['debug', 'easy', 'medium', 'hard', 'insane', 'error'] MARGIN = 20 SIDE = 50 WIDT...
[ "qmcambrel@gmail.com" ]
qmcambrel@gmail.com
22992bc064ed8eb70b4919fbe1d9885884c16001
4b8c3830b96d89b0a626cd3d6c7f248c7030d001
/api1.py
7e2ab472c6c328f7e43d558106c37f8b1a4e9b44
[]
no_license
dixieduke/pythonLearning
47904d563311966e7ddd9b33c028b66641328580
d1186f85f04834f6c3fc2c6acf051f119a1870fd
refs/heads/master
2020-04-02T08:02:46.295965
2019-08-26T18:37:48
2019-08-26T18:37:48
154,226,832
0
0
null
2018-10-22T23:19:01
2018-10-22T22:40:42
null
UTF-8
Python
false
false
399
py
import urllib.request url = 'http://api.open-notify.org/iss-now.json' with urllib.request.urlopen(url) as f: print(f.read()) ''' # Make a get request to get the latest position of the international space station from the opennotify api. response = requests.get("http://api.open-notify.org/iss-now.json"...
[ "noreply@github.com" ]
noreply@github.com
702a016412b75e13d5d29a36ca0710afac3810aa
ac1e944eb288c8b13a0bef0ee7de85ee6d30b4c0
/django/djangotimer/manage.py
6456b5b9262a6ad8e2e7bd9d7cd22862c826d549
[]
no_license
Jayson7/random-projects
05dd175d00e9bd62cb39973c3439846f641675c8
cdbebb896a0ecea0de543f16ecf4661e519ec0bb
refs/heads/master
2023-06-19T01:54:08.339954
2021-07-19T01:40:09
2021-07-19T01:40:09
383,971,840
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangotimer.settings') try: from django.core.management import execute_from_command_line except ...
[ "lexxiijoo70@gmail.com" ]
lexxiijoo70@gmail.com
4f969da5f8b9596f89dff264f865355fc11605fc
8050ce0b7ef80134c16648d4e724ed5ab62e75fb
/sessionstarter.py
2a4c6288c2297f3caccb4bdd2b126de7720bbc73
[]
no_license
SiowCY/r2kit
03cd1afed6014e4d0e8d11b93c0c55ad86307202
5e71f249a0d172d12b0e98409dc7e6dfe91a4ee2
refs/heads/master
2021-01-23T23:53:04.187182
2018-02-15T15:13:04
2018-02-15T15:13:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,392
py
''' Author: Matt Brooks, @cmatthewbrooks DESCRIPTION: The sessionstarter.py script is helpful when starting a new r2 session against a suspected malware target. It will handle auto-analysis as well as naming specific types of functions. ARGS: Use the optional -d flag to point to a directory of zsig files where each...
[ "matt@citizenlab.ca" ]
matt@citizenlab.ca
54da9e55bfbbe04d3771f7e1409ca13728c4a658
10173bd232670a17fc1f8af8bafc852ce28a0a3f
/label_candidates/label_candidates.py
4513c7c07007708ec5169e7127ac040a515c7a1d
[ "BSD-2-Clause-Patent" ]
permissive
greenelab/snorkeling-full-text
18969c907deaa3482c3c6a10b0e01c1204bf514b
5a6b1160f34f58a5b848172ec7f032aab847f70f
refs/heads/main
2023-08-06T12:11:31.228727
2022-04-27T14:44:13
2022-04-27T14:44:13
327,079,033
5
1
NOASSERTION
2022-04-27T14:44:14
2021-01-05T18:02:01
Jupyter Notebook
UTF-8
Python
false
false
6,274
py
# --- # jupyter: # jupytext: # formats: ipynb,py # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.9.1+dev # kernelspec: # display_name: Python [conda env:snorkeling] # language: python # name: conda-env-snorkeling-...
[ "dnicholson329@gmail.com" ]
dnicholson329@gmail.com
bff503f7108529a95335f8cfe9c765b75b6c7af1
e3ca42851a42f616b452af2eec29394f9145e0e5
/mongoengine-example.py
815d32557cc1da25ec1360f90909301096195406
[]
no_license
janeluck/webCrawler
21816974b2ed227a320172fd60bf6a8decb71712
7fe9645549f9c8c2f7a253b6cbf486eb1e51ff68
refs/heads/master
2021-01-22T08:39:39.142182
2018-03-19T15:06:48
2018-03-19T15:06:48
81,917,628
1
0
null
null
null
null
UTF-8
Python
false
false
302
py
from mongoengine import * connect('jike') class People(Document): name = StringField(required=True) age = IntField(required=True) sex = StringField(required=True) salary = IntField() meiji = People('jane', 25, 'female', 9999999) meiji.save() meiji.age = 21 meiji.save() meiji.delete()
[ "janeluck158@gmail.com" ]
janeluck158@gmail.com
8d32bb0aea1fc3094833ee2a9dfeae1d980b4daf
5483eb59f8e0c950b1f2a337f0805da4081b06c1
/twitter_clone/twitter_app/migrations/0005_auto_20200409_1533.py
c03cd83f295169573006f26fc0757ce720d4e6a6
[]
no_license
aust10/django_fun
666957414d7f4f069f2770c55db5cb5c46815817
93f7f9dde6b1b046582d5dd0685d274a7ac30bca
refs/heads/master
2021-09-27T05:19:55.651347
2020-07-22T18:12:36
2020-07-22T18:12:36
250,668,790
0
0
null
2021-09-22T18:55:42
2020-03-27T23:07:26
Python
UTF-8
Python
false
false
428
py
# Generated by Django 3.0.3 on 2020-04-09 22:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('twitter_app', '0004_auto_20200409_1525'), ] operations = [ migrations.AlterField( model_name='twitter', name='my_img...
[ "coteausten@gmail.com" ]
coteausten@gmail.com
f15599b3d6893d939cd842e2812c5f094d83345c
c96ef2b070b95d0a873c3375d991543360d666bf
/Fermi_kpoints.py
afe137bc2615832a877c25c2ba13bd3a8e03e44f
[ "MIT" ]
permissive
MTD-group/Fermi-Surface
3e2b86dde01a4ce9d5427f4e1c721c383b8398e5
2541eee56a4a2d03e29fbb441994af986054ea08
refs/heads/master
2022-10-04T03:35:43.640093
2022-09-15T19:10:21
2022-09-15T19:10:21
103,428,355
34
17
MIT
2023-01-29T22:31:04
2017-09-13T17:11:56
Python
UTF-8
Python
false
false
1,844
py
# -*- coding: utf-8 -*- """ Created on Sat Apr 29 23:07:02 2017 @author: Yongjin How to use: $ python Fermi_kpoints.py KX KY KZ KX, KY, and KZ are number of points along each reciprocal axis # -*- coding: utf-8 -*- """ import numpy as np import sys print ("\n### KPOINTS script: Generates KP...
[ "noreply@github.com" ]
noreply@github.com
228d99282a9465b5c09196ba44b1054f17e430a8
2374c27f3dcc9fa1b188c0aff942208627dbc5ce
/blog/migrations/0003_auto_20210826_1137.py
e3549615f1474eb93ec01aaf8c16243fcea07dc4
[]
no_license
salehghari/first_django
949c6572c430e6d3877bd6bc85347cbc1f2085bc
85ccd71fb48babe64fbfeb53418f1f70ebac3e23
refs/heads/main
2023-07-15T00:00:06.937661
2021-08-26T09:17:55
2021-08-26T09:17:55
379,573,161
1
0
null
null
null
null
UTF-8
Python
false
false
879
py
# Generated by Django 3.2.4 on 2021-08-26 07:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0002_auto_202107...
[ "salehghari8470@gmail.com" ]
salehghari8470@gmail.com
cf1ffb47566079dc86461b8b9aebccea4bf8877a
47d529727318dc592fd92355efbf86406e694bec
/Library_Management/Library_Management/settings.py
f6814fef749978b0c64bb8fa8e382bc995366140
[]
no_license
Arya-NM/Libro-Library_Management
7464b96186b3be751452ac41c2ce1ec78b1ceb58
83e6fe6133d7ab12d30b7b83647d8ebac48dce16
refs/heads/master
2023-06-08T16:18:10.655915
2021-06-20T15:04:25
2021-06-20T15:04:25
378,653,482
0
0
null
null
null
null
UTF-8
Python
false
false
3,374
py
""" Django settings for Library_Management project. Generated by 'django-admin startproject' using Django 3.1.7. 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/ """ f...
[ "aryanm1236@gmail.com" ]
aryanm1236@gmail.com
1742ab20fe35132bf834e203744235ad72061c89
c894493354944bc14e05f0343d04f8d02cfd1aca
/__init__.py
38d5ba4965db2e500b2eecd4d4a3bc24629485dd
[]
no_license
adrianalin/sigrok_mpu6050_decoder
958cd85f33384a6eac2b334321afefe395795feb
f5e1924cff6509e554dc0301edf796af84dcf8fd
refs/heads/master
2021-01-04T07:40:26.004230
2020-02-26T17:29:25
2020-02-26T17:29:25
240,451,444
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
## ## This file is part of the libsigrokdecode project. ## ## Copyright (C) 2013 Matt Ranostay <mranostay@gmail.com> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the...
[ "pop.adrian61@gmail.com" ]
pop.adrian61@gmail.com
d3e652f4b2d1983bd07aeb0c0c6ee75361e41dd0
5fcf09e947725725ce61b68bc6ae5210c8df6f43
/ex9.py
a047854a2d87dc0d4a1a574d317ea3fba4edfb64
[ "MIT" ]
permissive
nerdy-dav/Hardway3
0ac768ea9165783b3070a2d95c963bf61aa0b6ce
a8e2490fef5cb53ca670fe445e4f5a303ff9ee9b
refs/heads/master
2021-06-12T09:06:54.311477
2017-02-05T10:53:02
2017-02-05T10:53:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
#!/usr/bin/env python #Here's some new strange stuff, remember type it exactly. days = "Mon Tue Wed Thu Fri Sat Sun" months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug\nSep\nOct\nNov\nDec" print("Here are the days: ", days) print("Here are the months: ", months) print(""" There's something going on here. With the thr...
[ "linx82@gmail.com" ]
linx82@gmail.com
c263136c8d6dd5fa5252bb5d0bb0423a6277d79c
b4a7412e365ae27585fea35fcbe6b652bca3d3d8
/2020/round_F/Metal_Harvest.py
55819604beed395901ddf5a49c19c3c5548f9857
[]
no_license
Louis-Ratelle/Google_Kick_Start
336b7b4fc0f89f7f7560a8acaa324970cea9dbc4
9b2eddd2ccfe7085c44417d510c2665b5119c4d8
refs/heads/master
2023-02-25T20:57:35.475391
2021-01-30T20:32:44
2021-01-30T20:32:44
281,809,370
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
import math def min_cover(intervals, N, K): if len(intervals) == 0: return 0 end_cover = 0 sol = 0 for [S, E] in intervals: if end_cover < E: left = max(end_cover, S) new_covs = math.ceil((E-left)/K) sol += new_covs end_cover = left + new_...
[ "lfprevilleratelle@gmail.com" ]
lfprevilleratelle@gmail.com
6919e1df37e8f26503b5070112f0b020094b0dbe
9b451c0c4e0c3fa395886663d956f5fe3955c0a1
/test/combine_input.py
794919a87720368ea376268ec742faac0065749c
[]
no_license
rfalke/testing-logstash-configuration
a3bd3ab10dc70fb10cea907acf3157694b1158db
e5e53b6e8ebab26285ac36cd584ee34a108a5afa
refs/heads/master
2021-01-20T21:16:23.959323
2016-06-17T09:07:13
2016-06-17T09:07:13
61,296,149
2
0
null
null
null
null
UTF-8
Python
false
false
204
py
#!/usr/bin/env python import sys COMBINED_NAME = sys.argv[1] IN_NAMES = sys.argv[2:] with open(COMBINED_NAME, "w") as f: for i in IN_NAMES: f.write(open(i).read().replace("\n", "") + "\n")
[ "raimar.falke@codecentric.de" ]
raimar.falke@codecentric.de
8d59e2e101a32272d4fd03fa6caf8e5433c0a4bc
dba3265a619345b89dab85ccaf09e8c8e391d0a3
/MODUL_6/T1.py
3c024a7b1349f374ffa02399582b6a28176a40f0
[]
no_license
L200180020/algostruk
b1c7a4983bfead9017a230e62d20e99b6c18d810
53db204969d94b1b86927c0ea792f3e597ea3405
refs/heads/master
2021-02-07T19:18:00.233048
2020-04-05T07:07:00
2020-04-05T07:07:00
244,066,813
0
0
null
null
null
null
UTF-8
Python
false
false
2,719
py
class Mahasiswa: keadaan = 'lapar' def __init__(self, nama, nim, kota, us): self.nama = nama self.nim = nim self.kotaTinggal = kota self.uangSaku = us def __str__(self): s = self.nama + ', NIM ' + str(self.nim) \ + '. Tinggal di ' + self.kotaTingg...
[ "noreply@github.com" ]
noreply@github.com
8545a83225ba3f64941e139d4f691c37760c9c63
efb0ea5b3da1b5eedb94b0e0fd72ff3ee673f5a6
/Project/ChapterThree/Problem2.py
ba83098c31533e453d5466a16e19e564f5641b24
[]
no_license
Charlesccharris/DiscreteStructures
e56f79bb0e134f0f71a02c9ac70f4f7b6f095a5b
c910239a1144076842ad93170ba61c8d25c7687f
refs/heads/main
2023-04-27T07:30:18.434546
2021-04-23T16:23:59
2021-04-23T16:23:59
331,058,930
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
import random #Game: heads or tails #Write a program that lets the user guess whether #the flip of a coin results in heads or tails. #The program rnadomly generates and integer 0 or 1, #which represents head or tail. #The program prompts the user to enter a guess and #reports whether the guess is correct of incorrect ...
[ "harriscc@student.swosu.edu" ]
harriscc@student.swosu.edu
bfb82987674cb31d3e0f1038aac9b58510915424
fca5e6c96fa92afb7d26d193b71e927d50737072
/gui.py
cc674677f014e29a8e9619310939793f32c4ca53
[]
no_license
CamMcBuckets/helpme
8060c7af811e16747dd87c17ab3952b8602e10bd
07df1e5e9b1a06599cc462339fb2776b500bbeb8
refs/heads/master
2023-02-23T14:08:16.300505
2021-01-29T07:53:02
2021-01-29T07:53:02
262,497,306
0
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
''' You are required to create simple TKinter GUI interface. I will leave the design of this interface to you but it should have a button that will gather input and produce some output into a Label or a extBox. You are required to show the creation of at least three instances of the Circle class. Your GUI interface...
[ "cameronmurillo@gmail.com" ]
cameronmurillo@gmail.com
8ee947a3381a57c428c551203de2c68479f20251
3c2eefd083f9b65ce7900ece4d9670b1130d65de
/bin/jwst_mtvt
f4721bd5bb4a607f58ea2c7fcf3b5246e11c8b8e
[]
no_license
wkerzendorf/jwst_gtvt
ef1896fcee2f292715b36ec1a48c39b000098e48
55ee820d978858cbd6065c275d70680868916f58
refs/heads/master
2021-04-27T18:31:47.858747
2017-12-11T16:13:48
2017-12-11T16:13:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,613
#!/usr/bin/env python import argparse import sys from jwst_gtvt.find_tgt_info import main, get_target_ephemeris if __name__ == '__main__': parser = argparse.ArgumentParser(description='') parser.add_argument('desg', nargs='+', help='Moving target designation.') parser.add_argument('--smallbody', action='s...
[ "msk@astro.umd.edu" ]
msk@astro.umd.edu
051ddee277f4226605bfb88c1d38bf7ddfbc1442
05dad8242087b75f02dee07771144beb081246a9
/test.py
73bcaf855ca0c30fafbe67a83be7612a851ed783
[]
no_license
Rajbram/mdm_staging
e916df0b974b10e2777a174d880116aaacc9dcb4
0a4c5afab44c9fdbe5fcc5624d42059822c02ed7
refs/heads/master
2023-04-28T21:42:25.119121
2021-05-21T06:22:41
2021-05-21T06:22:41
369,258,867
0
0
null
null
null
null
UTF-8
Python
false
false
40
py
print("Hello World") print("I am fine")
[ "raj.bram@gmail.com" ]
raj.bram@gmail.com
668da5cb89ddbe9aaf914cf8c59b635967c6493e
026779d065462babbb5d6a66752544766b089edb
/__init__.py
45c99972872ebfb8dc59eee4e58d79f9768e78cf
[]
no_license
sampersand/pymath2
42be92ea1861c16cf086c9b5a706c04b9727a1da
855562f276141680e5a4dd343a5d4f670142208e
refs/heads/master
2021-06-09T10:20:52.216787
2016-10-27T18:28:07
2016-10-27T18:28:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
# LOGGING_LEVEL = 'INFO' LOGGING_LEVEL = 'DEBUG' LOGGING_FORMAT = '[{asctime}][{levelname:<5}] {funcName:<15} :: {message}' LOGGING_STYLE = '{' import logging logging.basicConfig(level = LOGGING_LEVEL, format = LOGGING_FORMAT, style = LOGGING_STYLE) logger = logging.getLogger(__name__) from .utils import * def warnl...
[ "sam@cwc-0178.dhcp.wustl.edu" ]
sam@cwc-0178.dhcp.wustl.edu
4d79f0211dfc399bc448873258ce8ea3fb9d9bbc
346fb0c14cf262915477994ab5ec92ae8a9a90b0
/mysite/urls.py
35ecedb1637cfe3f9b0337f240afaf59d5603672
[]
no_license
2013104101/ch03_02
5cf9905d9a92dcddce7d0792a236e1ee9614de4e
b1688412c0e417b5acddf9d23d06ef5a5ee8794a
refs/heads/master
2020-03-10T06:20:18.110339
2018-05-03T10:59:04
2018-05-03T10:59:04
129,232,078
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'', include('blog.urls')), ]
[ "yjjason@khu.ac.kr" ]
yjjason@khu.ac.kr
97c28abe11acd2ee39afbfc8886e67448d2642a9
35a94feba93462c3eaab6f574767923ffa143c29
/neural_net.py
f8834eedd6f2520842095bb8e7b5c41b73533fc6
[]
no_license
VietNDuc/CS231n
21f902b8889de3ccdc7ea93818b3691361e09e83
a9a92d4fc1a700d9055358c160fc746a22a7ce92
refs/heads/master
2020-07-05T17:16:02.137370
2019-08-19T12:47:05
2019-08-19T12:47:05
202,710,041
0
0
null
null
null
null
UTF-8
Python
false
false
7,068
py
import numpy as np # import matplotlib.pyplot as plt class TwoLayerNet(object): ''' A two-layer fully connected neural network Inputs: - an input dimension of N - a hidden layer dimension of H - C-classes We train the network with a softmax loss function and L2 regularization...
[ "noreply@github.com" ]
noreply@github.com
3dfac4f4f32df5faeb547044efc0234f126f6963
9a79fda6d26d86a6921a6d978013bceb2f01421d
/exec_remote_cmd.py
5a37343f87123c06883e16576ea4c55652c74110
[]
no_license
JohnSantaguida/CCAutoscale
35eff17cb8419c09a4845296499b454e18416a28
9d6264c86ef672c4d354fc058097928096bf5028
refs/heads/master
2021-01-12T14:09:10.516302
2016-10-25T09:55:40
2016-10-25T09:55:40
69,920,307
0
0
null
null
null
null
UTF-8
Python
false
false
2,690
py
#!/bin/python # # Vanderbilt University Computer Science # Author: Aniruddha Gokhale # Course: CS4287-5287 Principles of Cloud Computing # Created: Fall 2016 # # Purpose: To show to execute a command on a remote host, which you # will need in your assignment because a lot of things will need to be # installed on the re...
[ "john.s.santaguida@vanderbilt.edu" ]
john.s.santaguida@vanderbilt.edu
c8add2de1f25ab13df5942aeef2e1e97114b65ae
6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a
/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/operations/virtual_machines_operations.py
6550e47a4fe00e58b55bed3083b4bbdd298ce2f3
[ "MIT" ]
permissive
ashirey-msft/azure-sdk-for-python
d92381d11c48f194ec9f989f5f803db614fb73f2
e04778e13306dad2e8fb044970215bad6296afb6
refs/heads/master
2020-03-23T06:05:39.283442
2018-09-15T00:18:26
2018-09-15T00:18:26
141,188,192
0
1
MIT
2018-07-16T20:02:52
2018-07-16T20:02:52
null
UTF-8
Python
false
false
70,882
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
4e9094de7c7e09689966fee5520872f2fdd5bac4
b58baba019b59aa927b6d9ab99eef420326e7b56
/kRPC/plane_error.py
f79b75a9bd61c34b2fa111c3abce5887ca4c276b
[ "MIT" ]
permissive
ubik2/PEGAS-kRPC
80e116ea72602f330c42d89f2e88f5fd76726d07
8f6628743a48a2cc700d57e62c0a49c94846f8c8
refs/heads/master
2021-01-23T09:11:56.860756
2017-09-06T05:54:11
2017-09-06T05:54:32
102,566,449
0
1
null
null
null
null
UTF-8
Python
false
false
987
py
import numpy as np def plane_error(results, target): """ Computes angle between target orbital plane and actually achieved plane. :param results: Results struct as output by flight_manager (NOT flight_sim_3d). :param target: Target struct as output by launch_targeting. :return: Angle...
[ "robin.mccollum@gmail.com" ]
robin.mccollum@gmail.com
f5499e431ad5d7963800a0109048b43cb0b95d13
026d2e1bd4f1cac7493c0ce376a58eeef05890d0
/17.14 SmallestK.py
d7c95df6e81068f77a5995d0a39086199617342b
[]
no_license
up824/crackingTheCodingInterview
5666e2b3f6558c9c36e90bd5e75118bc4a52cfe9
82abb84ae047d4bc6cb627ffe31fcf52f12c056d
refs/heads/master
2020-03-08T00:59:51.558483
2018-05-15T00:46:48
2018-05-15T00:46:48
127,818,916
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
#17.14 Smallest K from heapq import * def smallestK(nums, k): n = len(nums) if n == 0 or k == 0: return [] if n <= k: return nums[:] h = [-num for num in nums[:k]] heapify(h) for i in xrange(k, n): num = -nums[i] if num > h[0]: heapreplace(h, num) ...
[ "yuanzhou@qti.qualcomm.com" ]
yuanzhou@qti.qualcomm.com
1b81f9acabb780606484372a963ea237883d76df
d19231447105cdcdd29e73474b3fbf1050e322d0
/Scheduler/hello.py
e0bb3615c814e261a39109fef61c9f35742443de
[]
no_license
pierre-geeraert/MachineManager
ffd8b628194a08cfcf32816039f5127455a51198
b071ca3eb347aadebc06e805effd51e496b04069
refs/heads/master
2022-01-24T15:12:33.588113
2022-01-07T12:46:04
2022-01-07T12:46:04
208,293,037
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
import time time = time.asctime() print(time) print("hello, I'm the script");
[ "pierre.geeraert@viacesi.fr" ]
pierre.geeraert@viacesi.fr
74c272a976169bf7f00bf1948e5ce90610308638
19542506a2bd4594c712064314444e94d1ad48cf
/Deployment/ConsumerServices/SimilarityFaceSearchService.py
08ab8f7dfc0d0132646c449d9fb5ec4f0f24563d
[ "BSD-2-Clause" ]
permissive
sterben25/Savior
39f5da87aa2057cfa7bb215b35fa762f38f307c7
4ed14734158e3083386dc897405c2fc92838fb69
refs/heads/master
2023-05-05T15:19:01.327556
2021-05-28T08:09:08
2021-05-28T08:09:08
366,621,495
0
0
BSD-2-Clause
2021-05-28T08:08:55
2021-05-12T06:55:49
Python
UTF-8
Python
false
false
2,572
py
from Deployment.ConsumerWorker import celery_worker_app from Deployment.server_config import MILVUS_URL, MILVUS_PORT from Utils.ServiceUtils import ServiceTask from Utils.VectorSimilarityHelpers import MilvusHelper # 基于milvus进行特征向量检索 from Utils.VectorSimilarityHelpers.BaseVectorSimilarityHelper import VectorMetricType...
[ "744351893@qq.com" ]
744351893@qq.com
84c3bd29836b8ac6fdf4ebda1036d7f592f7eac6
335feaa2fed94353cad975b3108fc669c4f39102
/app/search/hot_eval/seq_a_boo_hearing_loss_v1.py
1fc0616f2a140c88c57c7abb0affdb1a004d9d10
[ "Apache-2.0" ]
permissive
okriuchykhin/anfisa
461beff3d4657b2895550811b8858ee27390f8de
cda08e649c5a313c7d52f9b4426558c7388a73b0
refs/heads/master
2020-07-30T11:10:47.503800
2019-09-27T04:33:52
2019-09-27T04:33:52
210,208,650
0
0
Apache-2.0
2019-09-22T20:18:27
2019-09-22T20:18:27
null
UTF-8
Python
false
false
1,706
py
def evalRec(env, rec): """SEQaBOO Rule for Hearing Loss Genes""" # standard part of evaluation if ("Quality-PASS" not in rec.Rules): return False # 1. Present in HGMD as "DM" or "DM?" hdmd_clinically_significant = len(set(rec.HGMD_Tags) & {"DM", "DM?"}) > 0 if hdmd_clinically_significa...
[ "michael.bouzinier@kvitneset.com" ]
michael.bouzinier@kvitneset.com
4ee7c2fcc3d9102524755214a8958ae2061e2dc2
2788f81293ac8e42ab0502f2b5f629dacadc54a8
/july 7/Python assingment 1.py
32a161a53ae3d634604ab7634f11f4ced4ad99e4
[]
no_license
Pramilakhadka/BasicPython
5907fdf5e4e511da666964ac640b49efe399b320
9ee80ee1659998f8299c45637696cd3a647faa9d
refs/heads/master
2020-03-23T02:48:25.718013
2018-08-04T14:49:48
2018-08-04T14:49:48
140,993,208
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
#Question 1 v=25 u=0 t=10 a=(v-u)/t print("Acceleration=",a) #question no 2 a=str(input("Enter your first name")) b=str(input("Enter your last name")) Name= a+b print ("your name is:",Name) #Question no 3 y=input("Enter a string") a=y*10 print(a) #Question n0.4 print(type(4)) print(str(45))...
[ "noreply@github.com" ]
noreply@github.com
88a00046ace519236d9ccca6062bf761c31f94fc
ede93c632292805d2c49134aeb6af188e1bcd21e
/endpoints/api_config.py
59256a084fa04558c3f13ed406272469b08a2e56
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
lookuptable/endpoints-python
26cc1ea5ac888b7193cf6984baa3de8427b7f84d
02ffbdad481e9fdfcb06245b49c6d377249fc588
refs/heads/master
2021-01-19T21:24:41.710415
2016-08-31T21:21:11
2016-08-31T21:21:11
67,246,403
0
0
null
2016-09-02T18:38:57
2016-09-02T18:38:57
null
UTF-8
Python
false
false
74,291
py
# Copyright 2016 Google Inc. 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 law or a...
[ "temiola@google.com" ]
temiola@google.com
42c5b5a88f2c57c1f1222dbbd811de66036f9c1f
00d0c3196855bed33d57f49adc0e3ab26ed44c9c
/homework/assignment2/EmAndKmeans/emMain.py
a0307488f90fa45bb27eea291c4f73303b049ee4
[]
no_license
onedayguo/python-star
8ff12fa9a88124070af05bc4443c1e28cda8e936
3fc41974d38afa7435352e96a11bcdaf3191d331
refs/heads/master
2021-06-23T20:15:37.510034
2021-04-01T16:20:10
2021-04-01T16:20:10
208,395,521
1
0
null
null
null
null
UTF-8
Python
false
false
8,137
py
import math import copy import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # 生成随机数据,4个高斯模型 def init_data_model(N, K, mix, sigma, mu0, mu1, mu2, mu3): global data # 可观测数据集 data = np.zeros((N, 2)) # 初始化X,N行2列。2维数据,N个样本 data ...
[ "zh_guomail@163.com" ]
zh_guomail@163.com
d9022485349874f162d90c1b1788e844cbba1f82
fbe8ecefbac9e1eedaf6bc73c7488e428197f190
/python_for_everyone/02C-turtle2.py
25dac16366cf77a74570ae6ca9c21746561a8af5
[]
no_license
Daehyun-Bigbread/Bigbread-Python
74cebf63232f7d3afa4c0f2c0d8ed479dea33fe2
b1c07889c1be77deb41f2e189c93a2e4d8b397bd
refs/heads/main
2023-03-29T17:35:02.904083
2021-03-26T11:01:58
2021-03-26T11:01:58
341,889,039
2
0
null
null
null
null
UTF-8
Python
false
false
350
py
import turtle as t t.color("red") t.forward(100) t.left(120) t.forward(100) t.left(120) t.forward(100) t.left(120) t.color("green") t.pensize(3) t.forward(100) t.left(90) t.forward(100) t.left(90) t.forward(100) t.left(90) t.forward(100) t.left(90) t.color("blue") t.pens...
[ "noreply@github.com" ]
noreply@github.com
cd55647b285ca7965de5110cbc40dc33b0db4ead
4d7cd34054f597e3614c74ecedf8415bf7edb560
/terminations/rank_convergence.py
e68febedbce9266325510730490300f48aeecbdc
[]
no_license
TuDo1403/EA-Framework
dacc8d0acd46f6eb3ecd05c4e7589a85c86fe1f9
51ba44824f2fc550bf058337616165e36ca22bde
refs/heads/master
2023-03-28T18:24:47.683490
2021-03-30T09:57:28
2021-03-30T09:57:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
from numpy import unique from model.termination import Termination class RankConvergence(Termination): def __init__(self): super().__init__() def _criteria_met(self, ga): return len(unique(ga.rank)) == 1
[ "tu.dominh2k@gmail.com" ]
tu.dominh2k@gmail.com
a7f586a87525f9432338b791544453c1a8faade9
a91460eedfbb899c576e49edc9c3fc331828b582
/DjangoTicTacToe/env/Scripts/rst2html5.py
a29850c4ab23b51e16f22b7be71f1e06616ea08e
[]
no_license
crossphd/TicTacToe
531e634a5c191d4a613aef36bfc1712d5ef90526
027f1737b7bd642755e88ed810fde3736d0607d4
refs/heads/master
2020-06-16T21:03:41.040490
2019-07-09T18:24:36
2019-07-09T18:24:36
195,703,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
#!C:\Users\chris\Dropbox\01Code\Visual Studio 2017\DjangoTicTacToe\DjangoTicTacToe\env\Scripts\python.exe # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, #...
[ "cross25@uis.edu" ]
cross25@uis.edu
6ed61346ea413f4d7b7dedc7167da9490426426c
0e228befa78296aac073a90ed3e7fee69f3892dc
/ex4-Neural Networks Learning/ex4-Neural Networks Learning(pycharm).py
3a7d806cb851634a4076be0fd012afafdee9d2fe
[ "MIT" ]
permissive
Pokoai/Andrew-NG-Machine-Learning
270d63d846dbb2bbca51b48d475e90a34204a7a4
5475942611272da800bc5b62b987b35b3abfc7ec
refs/heads/main
2023-02-23T21:35:14.544929
2021-01-27T05:05:46
2021-01-27T05:05:46
318,327,272
2
0
null
null
null
null
UTF-8
Python
false
false
5,148
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib from scipy.io import loadmat from scipy import optimize as opt from sklearn.metrics import classification_report # 读取文件 def load_mat(path): data = loadmat(path) X = data['X'] y = data['y'] return X, y # 标签重编码 d...
[ "huminme@outlook.com" ]
huminme@outlook.com
27632c429c09e7507adca81648cd4b7a25fa0ecf
9ee7cf1684a350fd0062b235874ff8d91e788dac
/weather/views.py
e2feb5d98a0898a8281de6300ade6783aae2e323
[]
no_license
amyleena95/simpleweatherapp
e83a04fb0af4d90a3126b0d9cfbf0e0480d6e829
7b830d5058a667511631e8127984b83649afe5c7
refs/heads/master
2021-12-14T02:00:34.671124
2021-12-12T12:26:41
2021-12-12T12:26:41
224,716,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
from django.shortcuts import render import requests from .models import City from .forms import CityForm def index(request): cities = City.objects.all() #return all the cities in the database if request.method == 'POST': # only true if form is submitted form = CityForm(request.POST) # add actual r...
[ "amyleena.uitmps@gmail.com" ]
amyleena.uitmps@gmail.com
b4d2b444b5df8f4145c1988f40a94af4842b1109
d02c92f1fc6910b1a9c5e6823e689b32567e41a6
/practica_2/polls_proj/polls_app/serializers.py
42363486667c10bb144a77c72a2eafa87cddeed8
[]
no_license
eflipe/Django-REST
6c1050bf9f46e88a7639d103a629f96d59a797bf
110072f282e8fe9852e8bf6ae6e5660aa0e80d64
refs/heads/master
2023-08-05T11:58:41.691221
2020-08-05T23:23:34
2020-08-05T23:23:34
282,772,802
0
0
null
2023-07-24T00:26:28
2020-07-27T02:15:06
Python
UTF-8
Python
false
false
1,152
py
from rest_framework import serializers from django.contrib.auth.models import User from .models import Poll, Choice, Vote from rest_framework.authtoken.models import Token class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ('username', 'email', 'password') ...
[ "felipecabaleiro@gmail.com" ]
felipecabaleiro@gmail.com
a7e26eb070aabf9ed4368bb2f71555c7c6c8c183
1e55fc7a69494c33800b0dfe677f661c90540fe5
/python/popen2.py
572acf6082464e997d77df17a9fc771d43b6c86e
[]
no_license
phulei/chirico
2386ea3e41e1ac1a7d0363b0aa7abda607afb005
c81dec291b600d6de1f94a13a1951640e50cde75
refs/heads/master
2020-04-27T14:08:29.043480
2015-07-08T23:21:53
2015-07-08T23:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
#!/usr/bin/env python import os,sys if __name__ == '__main__': r=os.popen2('cat /proc/uptime','t') k=r[1].readlines()[0].split() print k
[ "mchirico@gmail.com" ]
mchirico@gmail.com
2f117015ed374ec25ad5c0ea947314b5389c77f3
2ca5bd796dd020a0265359b2ce2b61da31221757
/files/033 - digit cancelling fractions.py
146a14e46b93e7f009e9f69736c64eb8a1bb2806
[ "MIT" ]
permissive
farukara/Project-Euler-problems
3f61c9375268b33a8fed091d908d92ef14ba79ae
806fdbd797edd9929728b43cc428a55df50e1c01
refs/heads/master
2023-08-12T16:04:03.748722
2021-09-26T12:16:21
2021-09-26T12:16:21
286,820,976
0
0
null
null
null
null
UTF-8
Python
false
false
1,729
py
#!python3 # coding: utf-8 # The fraction 49/98 is a curious fraction, as an inexperienced mathematician in attempting to simplify it may incorrectly believe that 49/98 = 4/8, which is correct, is obtained by cancelling the 9s. # We shall consider fractions like, 30/50 = 3/5, to be trivial examples. # There are exactly ...
[ "69348522+farukara@users.noreply.github.com" ]
69348522+farukara@users.noreply.github.com
f48052f3bb429f1a169b04e1265a67617a9113ca
239d0a45d5ef919b3e83197f5cab705a63f7de3b
/DataCompute/python/service/__init__.py
d6f748dda5e84c4b16ce6865c149997aab67bafe
[]
no_license
356108814/GodEye
19f0b23b312bd299ae7e448938f5e8e3b8ca18c2
8cc5753473137247cafb8dc8200ff83f94de4e16
refs/heads/master
2021-01-12T08:04:54.798564
2016-12-22T06:47:23
2016-12-22T06:47:23
77,118,096
1
0
null
null
null
null
UTF-8
Python
false
false
71
py
# encoding: utf-8 """ @author Yuriseus @create 16-10-21 下午4:45 """
[ "769435570@qq.com" ]
769435570@qq.com
8aed450e4e6f02279c5d292284b64b8938cf2015
98a57491e7f43979ca4ca26404685e01cf5643ec
/final_web.py
76cd6deba2fbf697b5a0d5f4e639067bbb26c1a0
[]
no_license
lozeki/final-project
d96c8ae65db4566e20bf44e1fc290300d4a420f8
37391545550d147d3c27dfc55e04b86ed6c51cdb
refs/heads/master
2021-01-20T14:42:29.888726
2017-05-15T01:14:30
2017-05-15T01:14:30
90,649,405
0
0
null
2017-05-15T01:14:30
2017-05-08T16:26:51
HTML
UTF-8
Python
false
false
561
py
from flask import Flask, render_template import prometheus_metrics app = Flask(__name__) from prometheus_metrics import setup_metrics setup_metrics(app) @app.route('/') def home(): return render_template('main.html') @app.route('/practice') def practice(): return render_template('practice.html') @app.ro...
[ "minhtri.ng@gmail.com" ]
minhtri.ng@gmail.com
b86e26709a777ad8427a4e131ab353956c1a0a60
16ac44bf8858d76c6e9dec6e4c3ac3d995ad92c8
/venv/bin/keyring
319c2c0fa9cb277c3b545899494c87c3b5d738a1
[]
no_license
dkovalsikoski/atividades
a79ef73356a0448c4a4f1181dda45b87a24094cd
b0b3dd1b817a49fce01a7efd3b921f67c72b077e
refs/heads/master
2022-12-23T02:07:44.442190
2020-03-11T00:39:30
2020-03-11T00:39:30
244,495,634
0
1
null
2022-12-12T03:29:37
2020-03-02T23:13:26
Python
UTF-8
Python
false
false
250
#!/home/superaluno/projetos/atividades/venv/bin/python # -*- coding: utf-8 -*- import re import sys from keyring.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "dkovalsikoski@hotmail.com" ]
dkovalsikoski@hotmail.com
225c849693024c6c74fab734a1cf7ab65191db3b
719f8452746d0bca508e4543be09674829a0325d
/gtfs_grading_app/migrations/0012_auto_20210112_1233.py
bb425fd0226fe3ab74158e132dff94f3fd46cacf
[ "MIT" ]
permissive
IanWesleyDev/gtfs_grading_application
308263b2ef67528774365cb4a6fa5d209706d911
aa960330053ca15b931832fb5c22f9d0cd786341
refs/heads/master
2023-03-11T11:41:32.881835
2021-02-10T19:10:01
2021-02-10T19:10:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
# Generated by Django 3.1.3 on 2021-01-12 20:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gtfs_grading_app', '0011_auto_20210108_0903'), ] operations = [ migrations.AlterField( model_name='results_capture_widget', ...
[ "wesleyi@wsdot.wa.gov" ]
wesleyi@wsdot.wa.gov
715eabef2226a38af1b531b79d335eb47e27ce97
43eb9383a9e21aa0fdbb43435d32155db8d1ce4b
/model_benchmark.py
4e75a0dc773be8a6accbedd23b8dc27a3508ffe8
[]
no_license
shihao1007/nlp-user-tagging
5c7422149e32f57e23a92bdcd668e115d29ec4ac
e47a02436c7b7153085d3cc7392ef8b6d6a5638a
refs/heads/master
2020-06-01T12:24:35.416864
2019-06-07T16:59:41
2019-06-07T16:59:41
190,778,626
0
0
null
null
null
null
UTF-8
Python
false
false
4,260
py
# -*- coding: utf-8 -*- """ Created on Tue Jun 4 11:44:27 2019 loop through the predefined model pool to find the best model (with all default hyperparameters) Author: Shihao Ran shihao1007@gmail.com STIM Laboratory """ # import packages import logging import pandas as pd import matplotlib.pyplot as plt ...
[ "shihao1007@gmail.com" ]
shihao1007@gmail.com
d99fbd0e0c780f7153dc8969e5a595bbba1ebd92
4cc8ff26504b226212889d288ade7c53a9bbaa2d
/allpar_checker.py
2df6b4994ed77159ba1a84f90cca30290fb3be47
[]
no_license
ataulmaola/PyAlgos
450abf3d29d72561fcc8387492b5144d2e61c652
44742063125054398cdeef24a95af3c84ecf43ff
refs/heads/master
2020-04-28T03:24:12.473152
2019-03-11T16:39:39
2019-03-11T16:39:39
174,935,804
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
from stacks import Stack def par_checker(string): st=Stack() flag=True i=0 while i<len(string) and flag: ch=string[i] if(ch in "([{"): st.push(ch) else: if st.is_empty(): flag=False else: top=st.pop() if not equal(top,ch): flag=False i=i+1 if flag and st.is_empty(): return True...
[ "ataulanas65@gmail.com" ]
ataulanas65@gmail.com
f31d0805e14ae0328b6a2290956e2db3611af515
67836ea3795f289d6ddf5cf738f2485545c7b841
/build_hand.py
07cd676ba4816604a3cad1e07abe2fbab4ef3c99
[]
no_license
bartlebythecoder/projectalexander
0813b642239996809dfe8e81f0db19a4fbffad66
a86a4966b080fbb5f4cce4e22376b6e7d9303c6a
refs/heads/master
2020-04-25T19:19:53.568002
2019-03-16T22:40:45
2019-03-16T22:40:45
173,016,145
0
0
null
null
null
null
UTF-8
Python
false
false
5,454
py
def get_low_tot_from_string(low_string): sub_string = low_string.split(':') return sub_string[0] def get_low_first_from_string(low_string): a_sub_string = low_string.split(':') b_sub_string = a_sub_string[1].split('-') c_sub_string = b_sub_string[0].split('.') return c_sub_string[1] def g...
[ "snelson@sympatico.ca" ]
snelson@sympatico.ca
de49a8cae403f1e289d899e3da45af290adceea0
c07809a332d8e805550f502da069137d9f5d94d7
/testing/connect.py
9cdd14c69a5f8805226f2e603fc415a1213315eb
[]
no_license
thestupendous/share-thoughts-app
0f3c527335629fc47ed72ccff54bd2952e331855
bdafd2d57c38f9d1cc15b78c291e5d52b0b8bb9e
refs/heads/master
2020-08-31T16:53:15.825661
2019-11-07T12:15:35
2019-11-07T12:15:35
218,737,158
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
from pymongo import MongoClient client = MongoClient('192.168.99.100:31001') print('connected',client) dbs = client.newdb coll = dbs.newcoll coll.insert_one({"a":"b"}) p = coll.find() print('find ',p) for i in p: print(i)
[ "abcnotreal@gmail.com" ]
abcnotreal@gmail.com
95c0226e3f29a6fd7317200273f0e0fb0a7695ca
f642c054451aa3c87bb18fa63037eea0e6358bda
/algo/longestStringInArray_CanBeMadeFromotherStrings.py
33d9cb3ae354d688e4da4d8c1b61436bc258fc5d
[]
no_license
devendraprasad1984/python
30f3a539e92be13d893246ad28a42907457a38d5
0f1badabba07fbe7f5f792b7e543c0748eecd6c7
refs/heads/master
2023-07-21T08:22:45.193077
2021-08-27T15:09:28
2021-08-27T15:09:28
254,812,552
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
""" """ arr=["geeks","for","geeksgeeks","geeksfor","geeksforgeeks"] maxStr=sorted(arr,key=lambda x:-len(x))[0] print(arr,maxStr) found=False for x in arr: for y in arr: if maxStr!=x and maxStr!=y: # print(x+y) if x+y==maxStr: found=True print("max st...
[ "devendraprasad1984@gmail.com" ]
devendraprasad1984@gmail.com