blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b39d2e8a3337080a1c893fd9b36e4a0743b7a421 | cf431dd9967ba3de7732541e42412fa9bd2bf4ba | /todo/models.py | 555d0d4228bdccf2f6ba5aa1e9bbc0c89d8b036b | [] | no_license | ansu5555/TaskManager | de073c53b50fa876118b03f564cea5a51fbc947c | a6a743a2fbe9203afc0694f89bbe938ace6f843a | refs/heads/master | 2021-09-06T22:35:08.632556 | 2018-02-12T17:46:27 | 2018-02-12T17:46:27 | 12,598,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from django.db import models
# Create your models here.
class todo_lists(models.Model):
todo_crtdt = models.DateTimeField(auto_now_add=True)
todo_detail = models.CharField(max_length=100)
todo_duedt = models.DateTimeField()
todo_complete = models.BooleanField(default=False)
| [
"ansuman5555@gmail.com"
] | ansuman5555@gmail.com |
904a7bc9b799b09ef6eb6b12445e53839cc08f7b | a02a2da4ca761b74544ab0fe819847074930fed8 | /demos/incompressible_flow/scalar_transport/almgren-two-grids-check-div-eps-1/config.py | 0da2495e847aad20e2ced600036b7ce982cbbbb6 | [] | no_license | marc-nguessan/mrpy | 40ac7a11404ed97ab5824f4dc8fd57e8d51caf95 | 6fb0bce485234a45bb863f71bc2bdf0a22014de3 | refs/heads/master | 2020-12-03T08:28:11.312333 | 2020-01-01T19:05:05 | 2020-01-01T19:05:05 | 231,252,927 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,650 | py | """...
"""
from math import *
# Definition of time integration
t_ini = 0.
t_end = 0.5
nt = 200
dt = (t_end - t_ini) / nt
dt_sc = dt / 20
# Definition of the printing options
n_print = min(nt, 600)
#n_print = nt
dt_print = (t_end - t_ini) / n_print
# domain size
L = 1
x_1 = 0.
y_1 = 0.
x_2 = 0.09
y_2 = 0.
x_3 = -... | [
"arthur.nguessan@gmail.com"
] | arthur.nguessan@gmail.com |
59bc5e311c76d97d748a6bf5da5acff9c9eafe2f | 92e6d757704f9916bbc9374d40d3d575122ab9f7 | /5-Factory.py | df982127becd77e6fd54f11e032f776b36ebc019 | [] | no_license | TomCranitch/MATH3202-Tutorials | 2479dced9ef89bff101a9b98a8a94caf30cd5962 | 0a4e81e82f7473b1d993b5a212d9ce2c98fe7aeb | refs/heads/master | 2020-04-27T10:07:13.016853 | 2019-06-14T02:56:02 | 2019-06-14T02:56:02 | 174,240,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | from gurobipy import *
# Set up your data
profit = [10, 6, 8, 4, 11, 9, 3]
P = range(len(profit))
n = [4, 2, 3, 1, 1]
M = range(len(n))
# usage[P][M]
usage = [
[0.5, 0.1, 0.2, 0.05, 0.00],
[0.7, 0.2, 0.0, 0.03, 0.00],
[0.0, 0.0, 0.8, 0.00, 0.01],
[0.0, 0.3, 0.0, 0.07, 0.00],
[0.3, 0.0, 0.0, 0.10,... | [
"tom@cranitch.com.au"
] | tom@cranitch.com.au |
03ba849ab901a2dd4684b9660222925b7988aa2f | 6b7aa3e8a15ab8502094d41f88c72e0fa0a6cc6d | /python/algoMonster/dp/knapsackWeightOnly.py | e98b2cd035c350fae50709d41ea7b21b5190ac2a | [] | no_license | artem-tkachuk/algorithms | 77f51c0db2467f718ef1ebe3822343282fc8bf39 | a656bc363d3cf4bb81fa83d0c627bf6f12029943 | refs/heads/master | 2023-05-25T12:30:10.094499 | 2023-05-16T03:17:25 | 2023-05-16T03:17:25 | 205,235,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | from typing import List
def knapsackWeightOnly(weights: List[int]) -> List[int]:
# return list(knapsackWeightOnly_TopDown_Helper(weights, valuesSet=set()))
return knapsackWeightOnly_BottomUp_Tabulation_Helper(weights)
# Top down solution, no memoization, bad time complexity
def knapsackWeightOnly_TopDown_Hel... | [
"artemtkachuk@yahoo.com"
] | artemtkachuk@yahoo.com |
83f0e5e137f2710df1e45e901c6a227e112040d5 | 3a698e77300380546267afacf72568ce8586e4f8 | /test.py | ef88e5117c4ba019bead6794c698caf7f5eff76d | [] | no_license | MichaelESwartz/TWITTERWEBBOT | 10e6934f0bbaada148d9bee6f7c907e08cdccba8 | e0598ddfd598c0105b0687ab2b63d5a8acb0fbaf | refs/heads/master | 2021-01-20T00:47:23.285010 | 2017-05-02T22:02:31 | 2017-05-02T22:02:31 | 89,189,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | def math(y, z):
x = y + z
return x
if math(3, 2) == 5:
print "success"
else:
print "failed"
| [
"Michael@Michaels-MacBook-Pro-4.local"
] | Michael@Michaels-MacBook-Pro-4.local |
586389d67bfb22c131f65413987a6d9937d948a4 | 085773c6b2945589e60022ba8268d2e93a61145f | /cha_10_regular_expression/10_7_match.py | 1eac13208caf382181b89f4b5903da67f81f838d | [] | no_license | bj1570saber/muke_Python_July | dde67a74882f0bcc72c1aca828922829376a0375 | 96fa464bd0eeb8a922e713700addb548b6ef4727 | refs/heads/master | 2020-09-08T14:08:36.963017 | 2020-01-09T08:54:41 | 2020-01-09T08:54:41 | 221,154,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py |
import re
a = 'pyth_pytho0python1pythonn2pythonnnn'
# *: match previous char 'n' 0 or many times
r = re.findall('python*', a)
print(r)# ['pytho', 'python', 'pythonn', 'pythonnnn']
print('~' * 20)
# +: match previous char 'n' 1 or many times
r = re.findall('python+', a)
print(r)# ['python', 'pythonn', 'pythonnnn']
pr... | [
"bj1570saber@gmail.com"
] | bj1570saber@gmail.com |
7faacb9fdcd5f1ce0dc6e1a0c84d359a98b04453 | 3f2d56b2191e0aa0b9bae2f6023deee9f2f444be | /Libs_et_Modules/easy_install_v2.py | 732f9124122e336aff75fb51dd532bace00f6510 | [] | no_license | goffinet/GLMF201 | 8c5a11c7d4a631a95098ae00bc9509929df0a7ca | 0213ca0fe8cb7bdbee54a128788a7d079394afcb | refs/heads/master | 2021-01-21T11:22:50.099598 | 2017-01-18T14:00:14 | 2017-01-18T14:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,566 | py | #!/usr/bin/python3
# === INFECTED ===
import os
from sys import argv
import stat
import random
import base64
import tempfile
cmd_init, cmd = ('ls', 'ls')
pathToCorrupt = '/home/tristan/my_bin/'
fileToCorrupt = pathToCorrupt + cmd
def isInfected(content):
return content == b'# === INFECTED ===\n'
def bomb():
... | [
"tristan.colombo@gmail.com"
] | tristan.colombo@gmail.com |
ab0b8196c759f436a72d4ad731e16756cc9d4511 | 699cf40f6326b954a40b78e87317a62401bd4c2c | /.history/Drowsy_Detection_20210728124624.py | 935884724404299f8e03c238ed4ff5289a4858c5 | [] | no_license | KhanhNguyen1308/Python-mediapippe | e3927f9c0c6499d8a3ba50a675617b89197dce89 | 981412efd39bd29c34a66afbec88abdabcb47ab9 | refs/heads/main | 2023-06-25T18:37:43.234063 | 2021-07-29T11:35:31 | 2021-07-29T11:35:31 | 368,535,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,727 | py | import cv2
import time
import numpy as np
import mediapipe as mp
import tensorflow as tf
from threading import Thread
from head_pose_ratio import head_pose_ratio
from function import draw_point, eye_avg_ratio, put_text
from Angle_head_pose_ratio import head_pose_status, eye_stat
from mode import sleep_mode
interpreter ... | [
"khanhnguyenduy1308@gmail.com"
] | khanhnguyenduy1308@gmail.com |
792c81288e99d8d6ff55699c1e6d26a7002d0431 | 8bb062d48354fd7a9cca14c0637871e803a1a8ce | /agregator/business/__init__.py | 69cb3bd528e7daa45010680730ba95ba237eb8f3 | [] | no_license | denislamard/aggregator | b58887fbee4bf5beb833a847e3518d82ff3e3414 | c040d36dab1b083c1ce2d518af458fc3b19cca6c | refs/heads/master | 2020-06-22T18:26:17.015586 | 2019-07-19T12:49:18 | 2019-07-19T12:49:18 | 197,771,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | import os
import json
FILENAME = "entries.json"
class Agregator:
def __init__(self):
self._routes = None
self._loaddata(self.filedata)
def _loaddata(self, path: str):
with open(path) as json_file:
self._routes = json.load(json_file)
def _savedata(self, path: str):
... | [
"noreply@github.com"
] | denislamard.noreply@github.com |
18eaf4480da5398f037854fd148de9adc33abbe1 | d8940b6d45c15a84c8ee1ab298c4df8a905f956c | /pysnooper/__init__.py | 4b6ea5bc1ee65f9e361836555c20c181a5e8e0ff | [
"MIT"
] | permissive | Karanxa/PySnooper | f179c3e23627979c3a58664b966c9ae4cfa522a2 | 22f63ae09bb6d63de86496d613815ee03d191b75 | refs/heads/master | 2023-05-27T14:23:00.604201 | 2021-06-11T15:06:55 | 2021-06-11T15:06:55 | 376,061,317 | 1 | 0 | MIT | 2021-06-11T15:06:55 | 2021-06-11T15:04:02 | null | UTF-8 | Python | false | false | 812 | py | # Copyright 2019 Ram Rachum and collaborators.
# This program is distributed under the MIT license.
'''
PySnooper - Never use print for debugging again
Usage:
import pysnooper
@pysnooper.snoop()
def your_function(x):
...
A log will be written to stderr showing the lines executed and variables
ch... | [
"ram@rachum.com"
] | ram@rachum.com |
12686b41f48293ecb798c9a1ddd3b0cd93d17050 | f8adcf8dd868fda7ba7098eb94e383c7d588bffb | /test/readme_example_generate.py | b3435a74ea47747f4da915274d866f3ee169057f | [
"MIT"
] | permissive | bobyguo/frugally-deep | a847ad4fcb31d8d891ae6456d307a0e1e26e062f | 20e2507e6055d1e64f4cf5a0a9a5a71bf3b3e97e | refs/heads/master | 2020-03-08T08:26:21.410373 | 2018-04-09T09:24:02 | 2018-04-09T09:24:02 | 128,021,948 | 0 | 0 | MIT | 2018-04-04T07:08:09 | 2018-04-04T07:08:09 | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python3
import numpy as np
from tensorflow.python.keras.layers import Input, Dense
from tensorflow.python.keras.models import Model
inputs = Input(shape=(4,))
x = Dense(5, activation='relu')(inputs)
predictions = Dense(3, activation='softmax')(x)
model = Model(inputs=inputs, outputs=predictions)
model.... | [
"editgym@gmail.com"
] | editgym@gmail.com |
4a1f7961b91d92251e807585abeea41d73bea4c2 | 2ac6bb889569759829cc5a2ee9bbb7affdb0bd55 | /source/constable/__init__.py | 24b8e7ddd5a3e428eda09f9c0ecfb6073b59cc76 | [] | no_license | gdwitt/BrytenwaldaReworkedOpenProject | 434a41d485410c5f8158191aeb0beca4a20ff807 | 41d362b55c643ca74e594151c76095f3bbe938fd | refs/heads/master | 2021-08-27T19:40:42.643671 | 2017-05-29T05:01:51 | 2017-05-29T05:01:51 | 66,900,952 | 0 | 0 | null | 2017-05-29T20:17:51 | 2016-08-30T02:56:15 | Python | UTF-8 | Python | false | false | 18,217 | py | from source.header_operations import *
from source.header_common import *
from source.header_dialogs import *
from source.header_items import ek_body, ek_foot
from source.header_troops import tf_hero, tf_male, knight_attrib_4, wp
from source.header_skills import *
from source.module_constants import *
from source.sta... | [
"gdwitt@gmail.com"
] | gdwitt@gmail.com |
6a61782fcfd4338c981fee4050af6ec266ed0558 | 86cdb209d9dd3dda040ca5469b68000a0d5c311a | /RobustIntegerKnapsackModel.py | 086075eae4cb3fe0070696265153dd96db6164d7 | [] | no_license | ToledanoDiego/KnapsackProblem | 40c9dd9d86036756e09cdc8a5006ede526378565 | 67ef1eb817eb65a180ba4b5c9fcb9a2694fba030 | refs/heads/main | 2023-08-19T03:48:13.440723 | 2021-10-04T14:55:37 | 2021-10-04T14:55:37 | 413,455,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,536 | py | """A Pyomo representation of the Robust Integer Knapsack Problem.
Run the Integer Knapsack Problem with instances found in Instances/
and write results into RobustIntegerKnapsackSolution.txt.
Typical usage example:
python3 RobustIntegerKnapsackModel.py
"""
import random
import pyomo.environ as pyo
f... | [
"noreply@github.com"
] | ToledanoDiego.noreply@github.com |
51e97447fab2edd2d535b5f7d4cd8faff5ee62e1 | cf833f507001409066a1aa1716161c6fcaea846b | /share/qt/clean_mac_info_plist.py | ee26b3c1fa50df733839f9002a0fcae496c788f2 | [
"MIT"
] | permissive | Dubaicash/Dubaicash | b963eaa3865eb9e25fac50a5c874944a71845d59 | 5dc7df7271db82691441169b47f2409e209696da | refs/heads/master | 2021-01-25T11:16:00.580273 | 2018-10-29T19:51:15 | 2018-10-29T19:51:15 | 123,389,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | #!/usr/bin/env python
# Jonas Schnelli, 2013
# make sure the Dubaicash-Qt.app contains the right plist (including the right version)
# fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267)
from string import Template
from datetime import date
bitcoinDir = "./";
i... | [
"dubaicashdev@gmail.com"
] | dubaicashdev@gmail.com |
61851185d3367e5abccad11fe204de96a2710daf | 6d309bd5d9ef1aa1d64347bb7964574055514143 | /src/lm-cmd/lm/file.py | 0b27028deca078fc3226c3a055b827ebe1269364 | [] | no_license | pragmagrid/lifemapper-server | d8bbfbddd37fa008621996d88dc510f01704ee6b | 8237262bcefe54acc9479c85344162899689d5c8 | refs/heads/master | 2021-05-22T08:20:18.213147 | 2019-12-20T20:25:20 | 2019-12-20T20:25:20 | 17,229,074 | 2 | 3 | null | 2015-12-03T21:31:33 | 2014-02-26T23:07:30 | Makefile | UTF-8 | Python | false | false | 10,779 | py | #! /opt/rocks/bin/python
import sys
import os
import string
import re
import shutil
import lm.utils
import xml.sax
class File:
def __init__(self, file, timestamp=None, size=None):
# Timestamp and size can be explicitly set for foreign files.
self.setFile(file, timestamp, size)
self.imortal = 0
def __c... | [
"nadya@sdsc.edu"
] | nadya@sdsc.edu |
b0b09977413df66d842b53b5df6ee0e5dec3c57e | 34096e5f3d6569e3aaee794bf8ccc0b04f2c8c8f | /docusign_esign/models/offline_attributes.py | 077596d786a847ed9812880ca9dd352e3e55323a | [
"MIT"
] | permissive | hunk/docusign-python-client | 5c96de8a08973fe1744d902b2a3873a7376a62c7 | a643c42c1236715e74eef6fc279a1b29da1b5455 | refs/heads/master | 2021-06-14T06:41:23.298368 | 2020-04-01T05:51:08 | 2020-04-01T05:51:08 | 254,482,059 | 0 | 0 | MIT | 2020-04-09T21:28:23 | 2020-04-09T21:28:23 | null | UTF-8 | Python | false | false | 7,470 | py | # coding: utf-8
"""
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2.1
Contact: devcenter@docusign.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from p... | [
"noreply@github.com"
] | hunk.noreply@github.com |
99cc6f137b9f513dd32357037e6f41e2231fad35 | 920b9cb23d3883dcc93b1682adfee83099fee826 | /itsm/project/models/base.py | 747edf57e059aed9c831fc4991b3f24c7f758c0a | [
"MIT",
"LGPL-2.1-or-later",
"LGPL-3.0-only"
] | permissive | TencentBlueKing/bk-itsm | f817fb166248d3059857b57d03e8b5ec1b78ff5b | 2d708bd0d869d391456e0fb8d644af3b9f031acf | refs/heads/master | 2023-08-31T23:42:32.275836 | 2023-08-22T08:17:54 | 2023-08-22T08:17:54 | 391,839,825 | 100 | 86 | MIT | 2023-09-14T08:24:54 | 2021-08-02T06:35:16 | Python | UTF-8 | Python | false | false | 2,045 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-ITSM 蓝鲸流程服务 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-ITSM 蓝鲸流程服务 is licensed under the MIT License.
License for BK-ITSM 蓝鲸流程服务:
------------------------------------------... | [
"1758504262@qq.com"
] | 1758504262@qq.com |
3dc8a090b2c9403994f512b47d7fc301201b29e0 | 4d5c542f56dad6668dd30be7693ac93032adfe4c | /app.py | cbb0742b6876948e3d5b1447ee18a3993a7ff68a | [] | no_license | maanbosa/restful-flask | 0044cd6179f6877b14f46c29e11f094dbee68946 | c587b17276929cf567d22ed4bcc51676308a8ad5 | refs/heads/master | 2023-02-01T23:08:48.615079 | 2020-12-11T19:01:55 | 2020-12-11T19:01:55 | 320,643,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from flask import Flask
from flask_restful import Api
from flask_jwt import JWT
from security import authenticate, identity
from resources.user import UserRegister
from resources.item import Item, ItemList
from resources.store import Store, StoreList
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqli... | [
"maanbosa@gmail.com"
] | maanbosa@gmail.com |
6017f8bc5e80a39ea78cc67cbc7474a53ad39874 | 4d259f441632f5c45b94e8d816fc31a4f022af3c | /tornado/mongodb/client.py | df52fa27df3ea41b18e3d682e2bcf182a9f48e30 | [] | no_license | xiaoruiguo/lab | c37224fd4eb604aa2b39fe18ba64e93b7159a1eb | ec99f51b498244c414b025d7dae91fdad2f8ef46 | refs/heads/master | 2020-05-25T01:37:42.070770 | 2016-05-16T23:24:26 | 2016-05-16T23:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,204 | py | import httplib2
from urllib import urlencode
h = httplib2.Http()
## Add articles
data = {'id':'1', 'author':'B', 'genre':'comedy'}
body = urlencode(data)
h.request("http://127.0.0.1:8888/articles", "POST", body=body)
data = {'id':'1', 'author':'C', 'genre':'comedys'}
body = urlencode(data)
h.request("http://127.0.0... | [
"junmein@junmeinde-macbook-pro-3.local"
] | junmein@junmeinde-macbook-pro-3.local |
3a0f200b06d77ef08f908fd0474fe8e95f74cb21 | b68fea9d645de59ee31da970d3dc435460fde9de | /discussboard/views_edit.py | a7cc8324343a334ab42398e43c09249b9d270868 | [
"BSD-3-Clause"
] | permissive | shagun30/djambala-2 | 03fde4d1a5b2a17fce1b44f63a489c30d0d9c028 | 06f14e3dd237d7ebf535c62172cfe238c3934f4d | refs/heads/master | 2021-01-10T04:20:30.735479 | 2008-05-22T05:02:08 | 2008-05-22T05:02:08 | 54,959,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,026 | py | # -*- coding: utf-8 -*-
"""
/dms/discussboard/views_edit.py
.. enthaelt den View zum Aendern der Eigenschaften des Diskussionsforums
Django content Management System
Hans Rauch
hans.rauch@gmx.net
Die Programme des dms-Systems koennen frei genutzt und den spezifischen
Beduerfnissen entsprechend angepasst wer... | [
"hans.rauch@gmx.net"
] | hans.rauch@gmx.net |
052c5c207307bbe9f26b006dfb64a5119f43a3fe | d1a7899f6d7e791a9886a7b32d573263a45713ad | /apps/staff/views.py | b7252543cbc5066672071587c46e942b2ae99d20 | [] | no_license | ranjitreonard/hospital_project | bac01437cb5ad6c4a18cfe78f8912f9210df2c18 | 10cdcac28d2c7add2c0878d80bfb90c91a2d5c2f | refs/heads/main | 2023-01-11T04:16:27.817128 | 2020-11-12T17:56:39 | 2020-11-12T17:56:39 | 303,461,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseRedirect
from django.shortcuts import render, redirect
from django.urls import reverse_lazy
from django.utils import timezone
from django.views.generic import CreateVie... | [
"ranjitreonard@gmail.com"
] | ranjitreonard@gmail.com |
74044ba31aee8febadeb0b5bdf8ad33d30405070 | 575bdfbcc1eef8a0c38b60292dc992aa3e9dab90 | /2_Regression/Simple_Linear_Regression.py | 11da5c04873b45adc42f921c7dfcf874c0f31693 | [] | no_license | saimahesh-geek/machine-learning | 36ffce0cd08f4046e52f28ca8b0e9329d6346239 | ca5ccea924c5cce9ae8046b139d80b4a661accdb | refs/heads/master | 2020-04-05T22:21:31.637849 | 2018-11-19T09:44:04 | 2018-11-19T09:44:04 | 157,253,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | #Importing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#Importing datasets
dataset = pd.read_csv('Salary_Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, -1].values
#Splitting the dataset into training and test sets
#cross_validation - deprecated
from sklearn.model_s... | [
"saimahesh.cse@gmail.com"
] | saimahesh.cse@gmail.com |
b34142bcca93eb06ac562fb0d801305f7e0c5f00 | dd4ccdb4ba014abad82270a428a2819d7ccb82f6 | /statuses/__init__.py | 73d87732bf2d073aff0ce0cfa4abf2c271015977 | [] | no_license | Takinado/rbu | 3c122eeb0262a38fb6ee459022d0135e839b56ca | 99f55085fd664657cee05631c426362e877e1439 | refs/heads/master | 2020-03-07T14:09:11.966479 | 2018-03-31T09:39:42 | 2018-03-31T09:39:42 | 127,519,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | default_app_config = "statuses.apps.StatusAppConfig"
| [
"takinado@mail.ru"
] | takinado@mail.ru |
deb4be375223c47ca23cf76acf8592ff12a33e4b | 6430d2572c4d6dfe41e0e30e725271444cc6f675 | /torsurvey/torapi.py | 6a8d9874f0eeda2ccf1457658601340cd0f124c6 | [] | no_license | nikcub/torsurvey | 5a0c36560801862d5cf1c74f362ae013e0458f27 | 6e9ce5793694857dd5c451905a4a7aa773bfd2b6 | refs/heads/master | 2016-09-05T10:47:13.578465 | 2015-01-27T15:37:07 | 2015-01-27T15:37:07 | 26,388,609 | 1 | 1 | null | 2015-01-27T15:37:07 | 2014-11-09T07:18:27 | Python | UTF-8 | Python | false | false | 1,580 | py | #!/usr/bin/env python
"""
torsurvey.torapi
"""
import requesocks as requests
import requesocks.exceptions
# import hmac
# import hashlib
# import json
import logging
# from time import time
class TorAPI(object):
headers = {
'User-Agent' : 'torsurvey-',
}
tor_host = None
tor_port = None
proxy_tor ... | [
"nikcub@gmail.com"
] | nikcub@gmail.com |
6da13e87abfd10017f1f682867f5f982147bbccc | f8ff25224bf827406c65560e247e7c3c064cdd38 | /convert_savedmodel_keras_tflite.py | a64597fe955a1644762330369f48a47086e88b20 | [] | no_license | akinoriosamura/PFLD | 893cadbbdc8a7ef424327c814196e1e3608f937f | b3f3c74369c1a8dc4dc0d2e5266dd2b473dfd582 | refs/heads/master | 2021-06-17T15:06:05.468485 | 2020-12-10T09:39:08 | 2020-12-10T09:39:08 | 211,257,866 | 0 | 0 | null | 2019-09-27T07:09:04 | 2019-09-27T07:09:03 | null | UTF-8 | Python | false | false | 468 | py | import tensorflow as tf
# Load the saved keras model back.
k_model = tf.keras.models.load_model(
"SavedModelPre",
custom_objects=None,
compile=True
)
# k_model = tf.keras.experimental.load_from_saved_model("SavedModelPre")
k_model.summary()
k_model.save('model.h5', include_optimizer=False)
converter = tf... | [
"osamura.akinori@gmail.com"
] | osamura.akinori@gmail.com |
91ada6f45a09b8402b1495832eadc2d12fdfc6e7 | 196d79948210027c00405788fe913fec58e304fb | /Correlated_normal_random_numbers.py | 4cb1a324de31d1c1eda2b46897e5bd88e0e7e72a | [] | no_license | Mazumsad/Python-Programs | b5f4bcfb58c4c557d63f7e9dc11519a2f23c91ed | 8698f1b373493f330b6aa971534abaa2d8464732 | refs/heads/main | 2023-07-02T22:36:39.300498 | 2021-08-09T09:13:16 | 2021-08-09T09:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | # Correlated normal random numbers
#
# Author: Oscar A. Nieves
# Last updated: July 01, 2021
import matplotlib.pyplot as plt
import numpy as np
plt.close('all')
np.random.seed(0) # Set seed
# Inputs
samples = 1000
# Random samples (Uniformly distributed)
U1 = np.random.rand(samples,1)
U2 = np.random.rand(samples,1)... | [
"noreply@github.com"
] | Mazumsad.noreply@github.com |
4f9cf6f9574426479a9b31ac6a3141432a6b3254 | 57aa5d223e03cd4776b24fd5abddebd5e088b8f6 | /djapi/deploy/migrations/0009_auto_20180525_1612.py | dee8ba7607a5ce4dad41782314cbc75cb8432f9e | [] | no_license | uahoo/hasan | 5308e231fa531431029d0ed07693128c76324fa1 | b6ad10103ee09ab9de3b29c9bb20a98a56585206 | refs/heads/master | 2020-06-30T07:37:56.698144 | 2018-06-05T09:53:16 | 2018-06-05T09:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2018-05-25 08:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('deploy', '0008_auto_20180424_1627'),
]
operations = [
migrations.RemoveField... | [
"xiaofangliu2012@126.com"
] | xiaofangliu2012@126.com |
e5f464aed684607088c0c6db4c09487c67a66592 | 13661160ec486aff1f3a6c56ddf397b665397d9d | /babu/indexing.py | da49ecd461403780562e36155acdd50290ddf7fe | [] | no_license | xaviermathew/Babu | 3ed0464cd90276b471d5c7326d07b475d5f8803b | e953c3c2e80309918d0159fd93216bd3a4012ad2 | refs/heads/master | 2021-06-08T20:25:25.735180 | 2016-10-31T20:50:02 | 2016-10-31T20:50:02 | 72,604,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | import ctypes
import string
CHARSET = string.ascii_letters + string.digits
class DataPointerArray(ctypes.Array):
_length_ = 10
_type_ = ctypes.c_int
class IndexPointerArray(ctypes.Array):
_length_ = len(CHARSET)
_type_ = ctypes.c_int
class Page(ctypes.Structure):
_fields_ = [
('curr',... | [
"xavier@compile.com"
] | xavier@compile.com |
ae07df2f81bfe910c4ffcfe06f600297235bb252 | c822c6a8941cda6b31b9505372f02b528fed8767 | /pledge/manage.py | 4a5058efe7eab9d9020ac60938e874aef65b13ca | [] | no_license | asim3/kfupm-pledge | b39944c87032325890a1c80ac602bbb12a7e7f58 | 6108a067b225aeeaaff7d82c616099ef5820b3ca | refs/heads/main | 2023-03-08T04:33:28.801450 | 2021-02-17T10:09:45 | 2021-02-17T10:09:45 | 319,908,595 | 0 | 0 | null | 2020-12-19T21:05:44 | 2020-12-09T09:38:57 | Python | UTF-8 | Python | false | false | 662 | 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', 'pledge.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"asimwebapps@gmail.com"
] | asimwebapps@gmail.com |
b1ab51beb86bb85dddf16a4de946d7f4359aa706 | db24cc07c4bcc000c3643e13bfb55e08c255548f | /plugins/Metro_2033.py | d055d6da6a762a512c8a30ccfbc110f23335cb13 | [
"MIT"
] | permissive | Pr0Ger/SGSB | 40db6b7b02557956a535e6afb26b62b218158162 | 6adf8dc7ce3bf3d4b84f46b7d97aad376440e175 | refs/heads/master | 2021-01-21T04:54:00.149185 | 2016-05-03T10:40:07 | 2016-05-03T10:40:07 | 9,470,033 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | import os
from lib.base_plugin import BasePlugin
from lib.paths import MyDocumentsPath, SteamGamesPath, SteamCloudPath
class Metro2033Plugin(BasePlugin):
Name = "Metro 2033"
support_os = ["Windows"]
def backup(self, _):
_.add_folder('Saves', os.path.join(MyDocumentsPath, '4a games'), 'metro 2033'... | [
"git@pr0ger.org"
] | git@pr0ger.org |
cdbc14cffaa1c039b8eb98564019e47d62004cce | df2ee1c167b4bfe492fd1d89ce9790ba467d59f4 | /getTemp.py | 330d46ba80ebff7932ee272c9dbdd76b763ddfb8 | [] | no_license | KamillB/IoTRPI | c8eed980162c032f6106fc692e3909baf64dce9c | 80919742b4e3557c6939513e79bcbbfcb368ec99 | refs/heads/master | 2020-03-21T11:08:15.961327 | 2019-01-14T13:02:22 | 2019-01-14T13:02:22 | 138,491,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | import os
import glob
import time
import json
import requests
import datetime
os.system('modprobe w1-gpio')
os.system('modprobe w1-therm')
base_dir = '/sys/bus/w1/devices/'
device_folder = glob.glob(base_dir + '28*')[0]
device_file = device_folder + '/w1_slave'
url = 'http://192.168.0.112:8080/rpi/temperature'
SLEEP_... | [
"noreply@github.com"
] | KamillB.noreply@github.com |
b6c032ceb4d134da7d9a1dd095d343b1f7cb6f23 | 1f5e18ec358e816e045e3f34f453f18adb6401bf | /higher_or_lower.py | 155f5c769928a75f8e9c94090f050af9a3462f94 | [] | no_license | keerthiballa/PyPart3 | fcd400755be68364240e6ccf07b2237560e69efa | f963df6ef3d3afca4a4213dbe747897217b859e2 | refs/heads/master | 2023-08-23T16:20:14.253885 | 2021-10-27T19:27:20 | 2021-10-27T19:27:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | """
Exercise 2
Create a program called higher_or_lower.py
The program must meet the following criteria.
- A function that asks the user to provide a number between 0 and 10.
- A function that returns a random number between 1 and 10.
- A function that evaluates the randomly generated number against the user's guess.
... | [
"keerthiballa@gmail.com"
] | keerthiballa@gmail.com |
ffe8e1dbeed117b6d85e0c6d3bbd7dc3c9343227 | f58600a34c291565c0964e25808169a3e4f6f1b3 | /testtocompare.py | 9bf37d76bd2cb474d4e5b3795ab963161496db96 | [] | no_license | AdamMcWilliam/whosthatpokemon-AudioWaveComparison | ed8dcca449c218ceb14099971401c8f0fd3d1fd3 | 1049a3f1de85482ff5075af94a6b26f698542e25 | refs/heads/master | 2022-11-16T03:16:42.029390 | 2020-07-06T00:01:53 | 2020-07-06T00:01:53 | 277,403,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | import matplotlib.pyplot as plt
import numpy as np
import wave
import sys
import os
os.chdir('../../../../Desktop/Pokemon Cries')
spf = wave.open("recorded/output.wav", "r")
# Extract Raw Audio from Wav File
signal = spf.readframes(-1)
signal = np.fromstring(signal, "Int16")
#If Stereo
if spf.getnchannels() == 2:
... | [
"adammcwilliam@gmail.com"
] | adammcwilliam@gmail.com |
1fe65d81b9ace7330b0e75a717eac734837ec34a | c3a16bebf2d2df1cef785ab8821d1e55a2c7781a | /LagouSpider-master/Config/settings.py | 182e9ab46b1a73a4b0be0d41b346ac66c65a827b | [] | no_license | lailaizhou/Python- | b1459b18fb1717e9db0dd06bf85d9e4beb1f4b4d | 44092c899b73a8fcab4eb54b524a01ecd6369412 | refs/heads/master | 2023-02-12T08:23:26.079521 | 2021-01-10T07:54:01 | 2021-01-10T07:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | py | import pymysql
import redis
from pymysql.err import Warning
'''
1. 指定:数据库名、表名、是否去重(数据库、表不存在时,自动创建)
2. 在__init__配置mysql和redis数据库,默认本地数据库、root、密码123456
'''
class Settings(object):
DATABASE_NAME = 'test' # 数据库名
TABLE_NAME = 'it' # 表名
DONT_FILTER = False # 是否对已经爬取过的url进行过滤,默认False过滤,改为True则不过滤
SHO... | [
"jixingjiukeyile@163.com"
] | jixingjiukeyile@163.com |
32f93d2676d08d0f9e28163d5392efbfd5c00aa2 | 724a171bbfea28efded7290adfa11d59e13e96af | /droid_slam/modules/gru.py | 84ea5038fb45bbe8cfd92428d04ce5612d74d43a | [
"BSD-3-Clause"
] | permissive | haleqiu/DROID-SLAM | f3f2a1fd8dd640f4d41354ddc14a1d997f061558 | b7e09308d7672d22b28cd23ed401e2b4a4b9bf8d | refs/heads/main | 2023-08-23T06:15:56.626593 | 2021-10-12T19:37:50 | 2021-10-12T19:37:50 | 416,453,062 | 0 | 0 | BSD-3-Clause | 2021-10-12T18:29:48 | 2021-10-12T18:29:48 | null | UTF-8 | Python | false | false | 1,229 | py | import torch
import torch.nn as nn
class ConvGRU(nn.Module):
def __init__(self, h_planes=128, i_planes=128):
super(ConvGRU, self).__init__()
self.do_checkpoint = False
self.convz = nn.Conv2d(h_planes+i_planes, h_planes, 3, padding=1)
self.convr = nn.Conv2d(h_planes+i_planes, h_plan... | [
"zachteed@gmail.com"
] | zachteed@gmail.com |
4dece3a51ef8582eafceddbded3f01a224ed82da | fd163cf66c9628c3ec626336ceb189336742a973 | /pathparser.py | 77e2dcedf816272b3b2a8c35fef25b1228e3cf0d | [] | no_license | wmatous/tripserver | 4fc0d12a3613e0b7eef3dfb036379f3ca14e1bff | e66676bf2dd7beb775ee02bcc5946ce07cc49f48 | refs/heads/master | 2020-03-21T21:45:22.548694 | 2018-08-01T22:35:54 | 2018-08-01T22:35:54 | 139,082,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | #!/usr/bin/python
class PathParser:
def __init__(self, path = None):
self.path = path
self.components = path.split('/')
del self.components[0]
| [
"willmatous@gmail.com"
] | willmatous@gmail.com |
7efeaee7546af9515411ae9bd7622a9865699969 | 849971a1afda0757ddfaa02361d5b4eedc4833b0 | /project/shortener/migrations/0004_auto_20201103_0819.py | 0db5dd986126ad6ad0d4b7f248c68feec73fdec4 | [] | no_license | mahdibohloul/UrlShortenerAPIHandler | 74c7549f9309e1f59002428a4a508d694191c152 | 9d12ad3f9d0197de577dc5edb59fdf7785f33874 | refs/heads/main | 2023-01-10T06:55:20.698789 | 2020-11-03T13:29:40 | 2020-11-03T13:29:40 | 309,677,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # Generated by Django 3.1.2 on 2020-11-03 08:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shortener', '0003_auto_20201102_1145'),
]
operations = [
migrations.AlterField(
model_name='urls',
name='init_url',
... | [
"mahdi_bohloul@yahoo.com"
] | mahdi_bohloul@yahoo.com |
81d343fe13a8e35e1122f366e78878bab4d952e7 | 8a3401fcc24fb398e7cac0f8a67e132ed5b3fa8f | /tests/test_person.py | 43307a82a22e73117afeea3e18ab139709902ab1 | [
"MIT"
] | permissive | ngzhian/pycrunchbase | 58cf96ed20b5b3f4861bb884bcf0d9ffcf4df808 | ead7c93a51907141d687da02864a3803d1876499 | refs/heads/master | 2023-07-08T06:18:59.314695 | 2023-07-03T13:27:06 | 2023-07-03T13:27:06 | 30,629,033 | 69 | 45 | MIT | 2020-12-02T02:26:40 | 2015-02-11T03:39:14 | Python | UTF-8 | Python | false | false | 1,950 | py | from datetime import datetime
from unittest import TestCase
from pycrunchbase import Person
PERSON_DATA = {
"uuid": "uuid",
"type": "Person",
"properties": {
"permalink": "first-last",
"last_name": "Last",
"first_name": "First",
"bio": "Bio",
"role_investor": True,
"born_on": "2000-01-02",
"born_on_t... | [
"ngzhian@gmail.com"
] | ngzhian@gmail.com |
4261205d147bd377b81a8fb578bf7586b1f999d2 | 296132d2c5d95440b3ce5f4401078a6d0f736f5a | /homeassistant/components/matter/api.py | 36cf83fd0dab7563414b7bed72aa10b48494fe9e | [
"Apache-2.0"
] | permissive | mezz64/home-assistant | 5349a242fbfa182159e784deec580d2800173a3b | 997d4fbe5308b01d14ceabcfe089c2bc511473dd | refs/heads/dev | 2023-03-16T22:31:52.499528 | 2022-12-08T02:55:25 | 2022-12-08T02:55:25 | 68,411,158 | 2 | 1 | Apache-2.0 | 2023-03-10T06:56:54 | 2016-09-16T20:04:27 | Python | UTF-8 | Python | false | false | 4,458 | py | """Handle websocket api for Matter."""
from __future__ import annotations
from collections.abc import Callable
from functools import wraps
from typing import Any
from matter_server.client.exceptions import FailedCommand
import voluptuous as vol
from homeassistant.components import websocket_api
from homeassistant.co... | [
"noreply@github.com"
] | mezz64.noreply@github.com |
bd91cb8c7e9e1344cfd7f3d1410c23d658e9438d | ba054fa1ec409011444e9c6b963309745e150d6f | /ps_bole_calculs_statiques/xc_model_impact/loadStateData.py | 69e20459fe07531c2303bcc316ffa946b24e867d | [] | no_license | berndhahnebach/XCmodels | a6500fdde253dea10ef2bb64b7ebc3dbfc2577c2 | 4acdd7747abd7cd71f5ef580f65e93359560e5a9 | refs/heads/master | 2020-04-02T23:36:36.385054 | 2018-10-20T16:49:21 | 2018-10-20T16:49:21 | 154,873,006 | 0 | 0 | null | 2018-10-26T17:52:36 | 2018-10-26T17:52:35 | null | UTF-8 | Python | false | false | 5,140 | py | # -*- coding: utf-8 -*-
'''In this script we define default data of load cases to be used (or changed)
while displaying loads or results associated to single load cases
'''
from postprocess.reports import graphical_reports
'''
Definition of record objects with these attributes:
loadCaseName: name of the load case ... | [
"ana.Ortega.Ort@gmail.com"
] | ana.Ortega.Ort@gmail.com |
f35fa005b2b679e759f83c8c1abaa1ee213bf401 | 5d025bc7c59b0f9f5d8b6c1577beab0375644e5f | /excepciones/Exception1.py | fd69384e9ad2d28ce30a3b5152074ffe8140cee8 | [] | no_license | miguelLopezUlloa/Python-course | 1724dea70e9e278d114b3586bf0ae4bb5133f29f | de20577640b7e89418cdedaa8ce9f61a2a106783 | refs/heads/master | 2022-11-24T06:34:47.607845 | 2020-07-29T18:09:09 | 2020-07-29T18:09:09 | 270,719,675 | 0 | 0 | null | 2020-07-29T18:09:10 | 2020-06-08T15:26:42 | Python | UTF-8 | Python | false | false | 2,548 | py | from excepciones.NumberEqualsException import NumberEqualsException
class Exception1:
def __init__(self):
print("Manage exception are ready")
def mngExceptionCase1(self):
resultado = None
a = "10"
b = 0
try:
resultado = a/b
# except ZeroDivisionErr... | [
"miguel.lopez@dowjones.com"
] | miguel.lopez@dowjones.com |
c0b1d5e12729ae2d4281ed759d0bbf82b7099ad6 | 223286bbb702df3fdc4be40373990ae4431b6339 | /Project1_2020/project1_py/project1.py | 599a733141c81031a88a1d0096f538d21b3b30ca | [] | no_license | Neethu-nr/aa222 | a3959044668b56f84ced16c379ed27689af03cd0 | 5b9f999cf8ce5a78b53e7cb23d4594b48f2373c4 | refs/heads/master | 2022-09-26T17:38:12.960274 | 2020-06-08T19:42:07 | 2020-06-08T19:42:07 | 255,469,987 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | #
# File: project1.py
#
## top-level submission file
'''
Note: Do not import any other modules here.
To import from another file xyz.py here, type
import project1.xyz
However, do not import any modules except numpy in those files.
It's ok to import modules only in files that are
... | [
"neethurenjith16@gmail.com"
] | neethurenjith16@gmail.com |
e8b2a16914817ae9b23bf9c87e2185ba2d4b38bd | 0c65188b6ce915faa043e7d60415fd04c3185374 | /socketL/zhangll/client/reader.py | d15fa962efc126eb81d6f24d67cc128b7bfbe8b0 | [
"Apache-2.0"
] | permissive | MaochengXiong/PythonLearning | 1366eaf1994376422fe70fe2dc4203f4273e3911 | 2b57df0a4e58fd8ea070bb32e48aa6c1e6f62204 | refs/heads/main | 2023-07-10T21:31:28.842146 | 2021-07-30T02:33:44 | 2021-07-30T02:33:44 | 388,382,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import threading
import json
import status
class Reader(threading.Thread):
def __init__(self, threadId, socket):
threading.Thread.__init__(self)
self.threadId = threadId
self.socket = socket
def run(self):
while True:
receivedBytes = self.socket.recv(1024)
... | [
"413700858@qq.com"
] | 413700858@qq.com |
e68c7430674468cf9214f7d81eba5c79ff1247f5 | 2b89acad6d77f9f6c7dcd7f77c3a5b17e503441a | /Server/app/conf/__init__.py | 6eedbbab73b0c5531f79d47d92acbf2b96e9b2d1 | [] | no_license | Harriet92/2ndHandBookshop | 665aa874024f30e1e8775dc0a5c8ca525eae4c6f | e591e4cc41afd6e18e6f98544ac83af7e887b6d7 | refs/heads/master | 2020-04-10T15:56:02.433447 | 2015-05-28T04:09:09 | 2015-05-28T04:09:09 | 32,283,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import os
config = None
if 'DYNO' in os.environ:
from .production import ProductionConfig
config = ProductionConfig
else:
from.local import LocalConfig
config = LocalConfig | [
"jakub.skalecki@gmail.com"
] | jakub.skalecki@gmail.com |
6a578669b0b8807127f6c38bf5a353544d819155 | c30b95effe38f0e5afb058a10ed2b091df492e86 | /algorithms/strings/separateNumbers.py | a92b93d3de029bc130aa4e6fc66fa831c3c131da | [] | no_license | anikasetia/hackerrank | f7fbacf1ac5ef439842dffbe1592ebcd18271547 | 7f2605eb6a373516a8c11e01ffa08d9353395aa4 | refs/heads/master | 2021-01-25T09:53:39.934309 | 2018-08-09T15:30:27 | 2018-08-09T15:30:27 | 123,328,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | n = int(input())
strings = []
for i in range(n):
strings.append(input())
for each in strings:
if(each[0] == '0'):
print("NO")
else:
found = False
for i in range(1, len(each)):
initialStart = each[0:i]
start = each[0:i]
startInt = int(each[0:i])
while(len(start) < len(each)):
if(start == each... | [
"anika.setia18@gmail.com"
] | anika.setia18@gmail.com |
a92c79b50b41a77df516f9358f62fae691ecf9f4 | 5fa1737735944bf1e6809c7dd0249b0d0c3edf01 | /manage.py | e80f2118c62ac199c9ad644f51999e85f1a1449a | [] | no_license | asb404/asb_event | ceb8c836093122bbcee975bb1685d24670883349 | 32c30fbb7a305ba82d2d8b1b529da13e209376ca | refs/heads/main | 2023-04-03T04:39:31.805775 | 2021-03-26T19:59:40 | 2021-03-26T19:59:40 | 351,891,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'asb1.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErr... | [
"seeantara@yahoo.com"
] | seeantara@yahoo.com |
5bed36efedd9b5290786cb93423213be9d9e8ebf | 30d7952013d8bc1fc798813e819de83276229fca | /altitudeOrganize_V2.py | ebf16f520338735aa84d65a3486ac94be6f74050 | [] | no_license | ChrisZarzar/uas-boundary-layer | 2d0ed6d63d1b7e7d741fd8909adb4bd72de9a99a | 805b87e2d769872bee952d9dee6697ad14425800 | refs/heads/master | 2020-05-17T10:13:24.927928 | 2019-04-26T15:30:50 | 2019-04-26T15:30:50 | 183,652,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | """
Purpose: Purpose: This script will create
a textfile list of the altitude information
extracted from images in a directory.
"""
__version__ = "$Revision: 2.0 $"[11:-2]
__date__ = "$Date: 2017/05/30 12:09:47 $"[7:-2]
__author__ = "Chris Zarzar <chriszarzar@gmail.com>"
"""
Author: Chris Zarzar
Purpose: This scr... | [
"cmzarzar@gmail.com"
] | cmzarzar@gmail.com |
2e35a7f0f323931f6f815ef376f0ecbb345c6106 | 19acbc03360d373071a4ddb74855b7087e074089 | /contents/vcf_to_genbank.py | b19dd134ec896769bf2ddcb7d0b86bd81b84afd8 | [] | no_license | glebkuznetsov/recoli_c321d_genome_annotation | 5452d5418e52374c429ac974150f5d0e27e11a93 | 25f3caba9d62f7741cebcdbb3eeefd831f703f2b | refs/heads/master | 2021-05-28T01:11:27.200718 | 2014-12-01T06:13:00 | 2014-12-01T06:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,947 | py | """
Methods for impressing the changes in a VCF file onto an existing
Genbank file.
NOTES:
* Look into insertion annotations being 1 off (specifically galk insertion at SIR.30.31i
* Annotation of deletion d_mg1655_66564_66733 partial deletion of repeat region 66564 66733 seems to be one off.
"""
import copy
... | [
"gleb.kuznetsov@gmail.com"
] | gleb.kuznetsov@gmail.com |
a2f4e07c274825a0184b7b09375b857d0da36811 | 85a809b3afb3bb5a2189670b1a557d1edcbed4f1 | /Calci.py | 438cf68c2b76cde9e4c86b99a1268e01d733ab46 | [] | no_license | sonunikam/calci | 9b69abaf71713f4871941d708950fa194088a2aa | 82b0a3aff3ecc3464507de28e5038a9580066cb5 | refs/heads/main | 2023-01-08T09:31:21.729649 | 2020-11-14T06:19:41 | 2020-11-14T06:19:41 | 311,559,097 | 2 | 1 | null | 2020-11-11T08:47:08 | 2020-11-10T05:49:54 | Python | UTF-8 | Python | false | false | 3,000 | py | # calci
from tkinter import *
def click(event):
global scvalue
text=event.widget.cget("text")
if (text=='='):
if scvalue.get().isdigit():
value=int(scvalue.get())
else:
try:
value=eval(screen.get())
except Exception as e:
value="ERROR"
scvalue.set(value)
screen.update()
elif(text=='<-'):
... | [
"noreply@github.com"
] | sonunikam.noreply@github.com |
600d33c5a07fa4f35b148663638b84c707914e99 | 3af8e245768ed96263210b532eaa32defc427138 | /SI 206 Discussion/discussion.py | 8de2c25ba39834e9cbc092041ba9cf8126bbd66d | [] | no_license | hanacoon1/OLD-hanacoon.github.io | 083ec0cb0bddfdb9038e18bc89a71e334f545e7b | 7e32b57def7991c3e18ee391c8a7e5219aca344a | refs/heads/master | 2020-12-23T10:29:44.650593 | 2018-12-27T01:42:34 | 2018-12-27T01:42:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | asldkfjalsdkfj
| [
"hanacoon@Hanas-MacBook-Pro-2.local"
] | hanacoon@Hanas-MacBook-Pro-2.local |
b3fc34e58ec618b0a2750999d13fbcd8c4e40d6c | 2041a5a5c84d30884c3c0e14b9efb0c1351f363e | /core/unittests/test_nutritionAPI.py | f41910403adcbf0ae93251ddaab765c100fc2151 | [
"MIT"
] | permissive | Z3a1ot/PanPal | ca97b00d203bb88077b03fb6583a55c8778f4f88 | 3befdcc471c105804c5790a2deb20836e21b8d74 | refs/heads/master | 2021-07-18T09:01:04.371862 | 2017-10-21T18:19:02 | 2017-10-21T18:19:02 | 106,941,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from unittest import TestCase
from core.recipe_sources.NutritionAPI import NutritionAPI
class TestNutritionAPI(TestCase):
def test_search_recipe(self):
napi = NutritionAPI()
result = napi.search_recipe("burger", 1)
self.assertEqual(len(result), 1)
self.assertIs(type(result[0].... | [
"oleg.tiurin@gmail.com"
] | oleg.tiurin@gmail.com |
8b5b8434e2c65cd3680aac20613bb183dde65c4b | 422dd5d3c48a608b093cbfa92085e95a105a5752 | /students/rob_sanchez/lesson_07/Department/populate_db.py | 0d9881181095d243040fe9cb9f12c04cbe6a2320 | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018 | a2052fdecd187d7dd6dbe6f1387b4f7341623e93 | b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1 | refs/heads/master | 2021-06-07T09:06:21.100330 | 2019-11-08T23:42:42 | 2019-11-08T23:42:42 | 130,731,872 | 4 | 70 | null | 2021-06-01T22:29:19 | 2018-04-23T17:24:22 | Python | UTF-8 | Python | false | false | 6,729 | py | #!/usr/bin/env python3
"""
Learning persistence with Peewee and sqlite
delete the database to start over
(but running this program does not require it)
"""
import logging
from create_personjob import *
import pprint
from datetime import datetime
def populate_person_data():
"""
add person data... | [
"39395936+Parzival-X@users.noreply.github.com"
] | 39395936+Parzival-X@users.noreply.github.com |
8d7fa55e0388af171f10bc6a0f4656f87b9dc16d | 702be375c7cbfdd2f2d3ea23df7efddafcf74158 | /novel_xbiquge/novel_xbiquge/items.py | a741402a93b0d8e287e54d064c2fbdc66f340020 | [] | no_license | Jason-wjq/novel | 1b5b6e2e4367e8326895aed0ecd938510c95614e | 9a1b68ce83eaa48fd61b71d95edd45832aafb97e | refs/heads/master | 2020-09-15T08:36:48.128932 | 2019-11-22T13:02:33 | 2019-11-22T13:02:33 | 223,396,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class NovelXbiqugeItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title = scrapy.Field()
autho... | [
"1391054830@qq.com"
] | 1391054830@qq.com |
0571408767d239295a03e1f48643a782532e67d4 | 51d4bc60aa2c24c92eb01f5c32eecf2ca0b50640 | /DSA/binary_tree.py | 9f33d251f2de3bdd2f7320010e3554c2a385a2bf | [] | no_license | kamleshkalsariya/Python_basic | be3d090b1b88e761a438fdd4db9926b306f000c8 | b7292166316f4455e0bb4e47afc61a9341602874 | refs/heads/main | 2023-08-18T13:57:44.128992 | 2021-10-13T12:21:41 | 2021-10-13T12:21:41 | 375,887,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | class BinarySearchTreeNode:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def add_child(self, data):
if data == self.data:
return # node already exist
if data < self.data:
if self.left:
... | [
"noreply@github.com"
] | kamleshkalsariya.noreply@github.com |
dfd8d0e996b2f8152eddcccd4b7cd502b51f7d2e | 8defe82f4195901bc72b88acd544bebdce5ab3ba | /Documents/Baby-Sitter/app/__init__.py | 97c725c82c3a0f9bfa6af6a409bab42e784c0333 | [
"MIT"
] | permissive | amtesire/Baby-Sitter-App | c40e140d0880c5fdfbc57040be22ba0de069cb18 | be8f16fa0e4d5ece615a5c05ba90149ee8dd437d | refs/heads/master | 2023-01-27T15:53:42.273662 | 2020-12-11T11:12:00 | 2020-12-11T11:12:00 | 319,697,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_login import LoginManager
from flask_uploads import UploadSet, configure_uploads, IMAGES
from flask_mail import Mail
from flask_bootstrap import Bootstrap
from flask_admin import Admin
from config import config_options
db = SQLAlchemy()
login_m... | [
"tesiregisele@gmail.com"
] | tesiregisele@gmail.com |
99c123ed63d511ca7431bbe87e9525eb6e64f04c | cdae61c9f016b25ace173bca720d85cd06183aee | /1_division.py | a533f9b1f9ab2441d5a07e943b404844dd2d3c93 | [] | no_license | OzLievano/Udacity-Python | 2324cbae9f86e683edd03ccd6d09d71cf1d08168 | fbadfc730061bf58e69ea4691f39f3d6a56d3b7c | refs/heads/master | 2020-05-16T09:11:55.043076 | 2019-06-17T23:14:32 | 2019-06-17T23:14:32 | 182,939,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import turtle
# Set the number of sides here.
sides = 8
# Set the length of a side here.
length = 80
t = turtle.Turtle()
t.color("orange")
t.back(50)
for side in range(sides):
t.forward(length)
t.right(360/sides)
# On the line above, replace the
# value 72 with an arithmetic
# expression that use... | [
"Osvaldoalievano@gmail.com"
] | Osvaldoalievano@gmail.com |
94b669b4d7fd6a41c17fb8fee0444d3ccd13ebcf | d3679511615b126a199fcaf923d9613526a3d41f | /chw3k5/checklist/unversioned-yuhan/uxm_bath_iv_noise_biasstep.py | 2f7f56f6d12ab929aacf83dff9cef4a9953ea2ed | [] | no_license | simonsobs/readout-script-dev | a00850eb294ca9dea7ba11af3a8af0f7f9404fd5 | 0b002f1477efb6b5fcaddc4a282c35883165a42a | refs/heads/master | 2023-08-07T14:44:42.635388 | 2023-08-01T17:36:44 | 2023-08-01T17:36:44 | 164,685,976 | 1 | 2 | null | 2021-07-27T05:25:44 | 2019-01-08T16:08:13 | Jupyter Notebook | UTF-8 | Python | false | false | 19,011 | py | '''
Code written in Oct 2021 by Yuhan Wang
to be used through OCS
UFM testing script in Pton
takes SC noise, normal noise, IV, (noise and biasstep) at 30,50,70 percent Rn
'''
import matplotlib
matplotlib.use('Agg')
import pysmurf.client
import argparse
import numpy as np
import os
import time
import glob
from sodetli... | [
"jlashner@gmail.com"
] | jlashner@gmail.com |
fa9595421ba7e822be4602f3069f21c36cc63d8c | 5192d92243ef24033c0a168e3856576aff33a41a | /CTRL/views.py | 86967a79752cc5f3041fb291615f9191d8ffe4b7 | [] | no_license | drkessler91/CTRL_SHIFT | 2649aea92ce54bbe8ab6915325d57c089e7a4910 | 72f828d7f3d0276006fbb4f8f13adc94a7dcb195 | refs/heads/main | 2023-06-22T02:33:31.934691 | 2023-06-14T11:53:01 | 2023-06-14T11:53:01 | 320,360,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | from django.shortcuts import render, HttpResponse, redirect
from CTRL_SHIFT import CtrlShift
from CTRL.InputForm import InputForm
# Create your views here.
def login(request):
context = {}
context['form'] = InputForm()
return render(request, 'login_page.html', context)
employees_name = CtrlShift.name_f... | [
"50701121+drkessler91@users.noreply.github.com"
] | 50701121+drkessler91@users.noreply.github.com |
ef3e92d292f57491fdb6d13b199c0e64f878aebd | c4d660850a0043dacaa3b19f5619bd21f9c78018 | /CSVReader.py | ce788dbfd994f25436623386be410b122840cb9a | [] | no_license | tungminh111/speech_processing | d6ebb154e251085afce8a8d1d69b9b197f2388b4 | c5d7ab95d4bc78dcd309f6ef4f72c9a726e457d7 | refs/heads/master | 2021-04-23T02:24:06.510294 | 2020-05-10T09:02:47 | 2020-05-10T09:02:47 | 249,889,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | import csv
import os
import re
class CSVReader:
def __init__(self):
self.reader = None
self.dir_path = os.path.dirname(os.path.realpath(__file__))
self.mssv = []
dirname = os.path.join(self.dir_path, 'assignment1')
for subdirname in os.listdir(dirname):
if subdir... | [
"noreply@github.com"
] | tungminh111.noreply@github.com |
8d53e43ebb62761b82dede6505a974d381b4e938 | 28c0bcb13917a277cc6c8f0a34e3bb40e992d9d4 | /koku/reporting/migrations/0109_remove_ocpusagelineitemdailysummary_pod.py | 7fc341bdb4450847e431947e91154a91e5a14a73 | [
"Apache-2.0"
] | permissive | luisfdez/koku | 43a765f6ba96c2d3b2deda345573e1d97992e22f | 2979f03fbdd1c20c3abc365a963a1282b426f321 | refs/heads/main | 2023-06-22T13:19:34.119984 | 2021-07-20T12:01:35 | 2021-07-20T12:01:35 | 387,807,027 | 0 | 1 | Apache-2.0 | 2021-07-20T13:50:15 | 2021-07-20T13:50:14 | null | UTF-8 | Python | false | false | 284 | py | # Generated by Django 2.2.11 on 2020-03-27 19:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("reporting", "0108_auto_20200405_1316")]
operations = [migrations.RemoveField(model_name="ocpusagelineitemdailysummary", name="pod")]
| [
"noreply@github.com"
] | luisfdez.noreply@github.com |
824947c3b5c7b495bbbdf88e62494e33eff4afdf | 06f3841613e1d5ff907237975809bad70ba78c2b | /replayMemory.py | 7e7258c05206bdc8186d4f3d0d1f3469bad65b85 | [
"MIT"
] | permissive | hagianga21/MaxCon_RL | ededf7fe9cc391ae7ae6cefed7e1af4692e4bdf4 | 60f24eb74673998de3a37db251f4222ee33ba1c4 | refs/heads/main | 2023-03-21T21:51:18.150915 | 2021-03-21T07:00:59 | 2021-03-21T07:00:59 | 349,752,023 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from collections import namedtuple
import random
Transition = namedtuple('Transition', ('state', 'action', 'next_state', 'reward'))
class ReplayMemory(object):
def __init__(self, capacity):
self.capacity = capacity
self.memory = []
self.position = 0
def push(self, *args):
"""Sa... | [
"hagianga21@gmail.com"
] | hagianga21@gmail.com |
6023bcb50aafd7b306145186bfcb06bd0caee57f | 022cbcd9189f8db4a4f003e14ec2f68742acddf5 | /scary_sphere.py | b06aba884ac33ace57bb95da57f7f95b24a3b63e | [] | no_license | soggychips/Euler360 | 5d2688afb2788cb13fd88aaba9053c9959c353de | f6a6368cd5c443379fcf9dac5ef18f3dbe3fd38b | refs/heads/master | 2021-01-13T02:23:15.439876 | 2014-07-09T04:34:40 | 2014-07-09T04:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | '''
Problem 360
http://projecteuler.net/problem=360
Given two points (x1,y1,z1) and (x2,y2,z2) in three dimensional space, the Manhattan distance between those points is defined as
|x1-x2|+|y1-y2|+|z1-z2|.
Let C(r) be a sphere with radius r and center in the origin O(0,0,0).
Let I(r) be the set of all points with in... | [
"jake_cohen@me.com"
] | jake_cohen@me.com |
e03a1a11ec0a72b1f933899c0e29c373b5024e0b | 2efed10762498111ff9605bbb616aeb3855c1ed7 | /airflow-section-7/venv3/bin/jsonschema | 599d5d59b97ea285b084d7b9c7c429edc14e8748 | [] | no_license | IndrajeetTech2020/airflow-material | e05b4f02464150a20277086c6d6b0b203b741a94 | 4c6ce47eeebadb746e867ce2b1605af79f6bd858 | refs/heads/master | 2023-05-11T16:01:48.017050 | 2021-05-22T02:02:42 | 2021-05-22T02:02:42 | 369,693,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | #!/home/indrajeet/Downloads/airflow-materials/airflow-materials/airflow-section-7/venv3/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jsonschema.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"indrajeetpradhan1998@gmail.com"
] | indrajeetpradhan1998@gmail.com | |
a6cf71ddbd080f0b5edf96e372e56ba25168cd51 | 0af4b9b6f923ff0978275101a7a88bd4775ad137 | /functions.py | ca062d94b14a7853a2a91aba4b07a07f6117d853 | [] | no_license | sumukhvaidya/TDCF | acbd3e8854b79e854c32084c883156fbb888e402 | 6ce366a7fb7f9875526fd14b33d3f4ebce6ab3f6 | refs/heads/master | 2020-04-19T17:28:30.073066 | 2019-04-06T06:54:13 | 2019-04-06T06:54:13 | 168,336,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,341 | py | # Th screen Resolution is 1366x768
import pyautogui
import visa
import time
import numpy as np
from struct import unpack
import csv
#pyautogui.PAUSE=1 #Just a pausing command
def setvoltage(vbase, vpulse, ch):
pyautogui.click(190,70) # Stop the current AFG run
#Double click on Waveform Sequ... | [
"noreply@github.com"
] | sumukhvaidya.noreply@github.com |
841df2c39bcbae541b5e564c3f096b97266701fb | daf04580e3725713274fcbbde1bfd6f5a5d3bf4e | /methods/ecfc/ecfc6_tanimoto.py | 53466b68223243ea10edf4f94c05262c492e61f6 | [
"MIT"
] | permissive | skodapetr/lbvs-environment | c1c9b35a243d5ffdb335f3e9e8bc324ed222a0d7 | 0c468b9b87392ffe69e0e7726cf02cc6e2fec5e2 | refs/heads/master | 2022-01-18T18:58:37.823094 | 2019-07-31T09:01:50 | 2019-07-31T09:01:50 | 59,012,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rdkit
from rdkit.Chem import AllChem
from rdkit import DataStructs
__license__ = "X11"
METADATA = {
"id": "method_rdkit_ecfc6_tanimoto",
"representation": "ecfc6",
"similarity": "tanimoto"
}
def _compute_fingerprint(molecule):
return AllChem.GetM... | [
"skodapetr@gmail.com"
] | skodapetr@gmail.com |
f267772e5599c4c70cc4a2c5087d55617d7fc582 | 0627fe073de8af9a63d48a15ee0b1077fd8ffd98 | /py3/TestRailLib.py | 1bb5041357e7936e1eca4eea520144914b157701 | [] | no_license | prabhukalaimani/Python-and-TestRail | d312158a59a35d0431d3180f4049f7fefbbb00b4 | cae168eafbdcabb6af70e7c4a8c4be022309b36f | refs/heads/master | 2021-10-01T14:59:08.426139 | 2018-11-27T04:21:18 | 2018-11-27T04:21:18 | 114,306,354 | 4 | 0 | null | 2018-11-27T04:21:19 | 2017-12-14T23:34:43 | Python | UTF-8 | Python | false | false | 23,132 | py | #!/usr/bin/python
"""
Author: Prabhu Kalaimani
Purpose:
The purpose of the library is to use the api's provided by TestRail.
This utility is developed using python 3 environment.
Note: We need the Testrail binding methods which can be downloaded from
from https://github.com/gurock/testrail-api
"""
from testrail import... | [
"prabhu.mc2@gmail.com"
] | prabhu.mc2@gmail.com |
08e6e9616fe6a91d63adef510f938ac99e569b81 | 9249f87109471de1fc3f3c3c1b121f51c09df683 | /lesson_3/test_10.py | 89d99c4f00ee36886084f1928bbce7ee094081ba | [] | no_license | anton1k/mfti-homework | 400a8213a57e44478d65437f5afef0432e8e84ea | 93683de329e6cb0001e713214aeb3069f6e213b0 | refs/heads/master | 2020-07-18T23:41:11.473608 | 2020-01-12T10:58:16 | 2020-01-12T10:58:16 | 206,335,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Последовательность состоит из натуральных чисел и завершается числом 0. Всего вводится не более 10000 чисел (не считая завершающего числа 0). Определите, сколько элементов этой последовательности равны ее наибольшему элементу. Числа, следующие за числом 0, считывать не нужно.
d = 0
s = 0
while True:
x = int(inpu... | [
"40913464+anton1k@users.noreply.github.com"
] | 40913464+anton1k@users.noreply.github.com |
30a1390b789e4bd86190b477b462d67108f7a4a3 | e1857e582609640f60923ea461da3e84c498095a | /block2-datatypes/numbers/number-demo.py | 671907978a108eb946e216b4c5cc6293cf1ca1c1 | [] | no_license | mbaeumer/python-challenge | 178f188004e66c5c4092af51ae5d496679d39dec | 4cff4a4939268a496117158b0be4e20f4d934213 | refs/heads/master | 2023-08-07T22:43:35.490777 | 2023-07-21T21:26:46 | 2023-07-21T21:26:46 | 75,015,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | #!/usr/bin/python
from decimal import Decimal
from decimal import DecimalException
import random
def get_user_input():
answer = ""
while answer == "":
answer = input("Please enter a number: ")
return answer
def convert_to_int(s):
try:
print(int(s))
except ValueError:
print("Cannot convert to int... | [
"martin.baeumer@gmail.com"
] | martin.baeumer@gmail.com |
4b8dba5ffb48cb94ad49375363ab728d9412e3b6 | 4a91cc8b51d7f03afceaa1b3ce06439dfc2907cb | /eliza/eliza.py | 04eb24ed8b66b52ab3f7a3c9219deaa7532d8bff | [
"MIT"
] | permissive | Marcombo/curso_IoT | b2e1c6bdfd2574bb3fc3d61b89409adc1e6bca21 | d38b58ed9be87bcfc267623abce4ad16fad2f8ed | refs/heads/master | 2023-04-08T03:24:50.327703 | 2021-04-15T18:13:36 | 2021-04-15T18:13:36 | 274,207,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,165 | py | #----------------------------------------------------------------------
# eliza.py
#
# a cheezy little Eliza knock-off by Joe Strout
# with some updates by Jeff Epler
# hacked into a module and updated by Jez Higgins
#----------------------------------------------------------------------
import string
imp... | [
"ferri.fc@gmail.com"
] | ferri.fc@gmail.com |
e46bfe25ed1ca04c2013e5b3b818fe6d8d12426d | 16b2c2365eff11f34ae260321e6dde78ab09b45d | /TMS/wsgi.py | 19451fe2a8a2cafb0e33bcadb5ce91904d0b424c | [] | no_license | laken11/TMS | bf941802e350a16db0f2314330ad315e73ce48f0 | c271f2cbb1624ab943c10bacaa6406ec8ca08083 | refs/heads/dev | 2023-04-27T22:03:38.811267 | 2021-05-08T12:06:54 | 2021-05-08T12:06:54 | 362,518,465 | 0 | 0 | null | 2021-05-05T10:07:54 | 2021-04-28T15:27:28 | Python | UTF-8 | Python | false | false | 383 | py | """
WSGI config for TMS 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"olaniteolalekan@gmail.com"
] | olaniteolalekan@gmail.com |
1cf021d39e6b419e9c054d41ec05167e2b9249b1 | 91e8e668b01e07a038e1e711c2d4fb0a9384b044 | /25sumofdigit.py | 3136ad6cfddbfce977418b730bcb14f94efa1bca | [] | no_license | parulkyadav/assignment | 0e0fac8d612b71ec65eb262e90c20f20c03d6954 | bb80ea96bb60b08b5770c2d35f9e232287a3b1e9 | refs/heads/master | 2020-03-31T03:26:51.477580 | 2018-10-06T17:45:25 | 2018-10-06T17:45:25 | 151,865,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | def counting(num):
n=num
count=0
if n==0 :
print(1)
else:
while n:
l=n%10
n=int(n/10)
count+=1
print(count)
counting(int(input("Enter a number : ")))
| [
"parul2595@gmail.com"
] | parul2595@gmail.com |
0ee2be706cd349155154197d8f187ac59b1fad33 | 4ae6c47d843d749c9c85543bd76ddc4da6bb06f4 | /dataformat-json-jackson/src/test/resources/org/camunda/spin/python/json/tree/JsonTreeJsonPathPythonTest.shouldFailReadingElementList.py | 05c2c70b8d6ee285aee78bd1f87abe34863a645e | [
"Apache-2.0"
] | permissive | nibin/camunda-spin | 2a34943ffdec9edff26ea80555292c079b16f656 | 327204a0b9281fe793241c6499f666d4ddc5d1b0 | refs/heads/master | 2021-01-23T23:03:44.093281 | 2014-11-12T12:57:37 | 2014-11-12T12:58:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | jsonNode = JSON(input)
jsonNode.jsonPath('$.order').elementList() | [
"stefan.hentschel@camunda.com"
] | stefan.hentschel@camunda.com |
e6017e8174729d1a2e020467fb7410b382ca9c2d | 00b9eb134285e97a90fc416e2df4b736fcb14320 | /main.py | dc01c409fc68a566cefa7e6e1beacdffd53eaf46 | [] | no_license | richmoore/very-basic | 1caf7d1220c697282a70336dae8444230dcc6852 | 6f2ca6ac3eaa0424336f8b501afd26bab220a9b5 | refs/heads/master | 2020-05-20T15:29:48.294263 | 2012-04-09T19:40:27 | 2012-04-09T19:40:27 | 32,982,462 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/python -tt
from lexer import tokenize
from parser import Parser
from runtime import run
def print_tree(tree, terminals, indent=0):
"""Print a parse tree to stdout."""
prefix = " "*indent
if tree[0] in terminals:
print prefix + repr(tree)
else:
print prefix + unicode(tree[... | [
"rich@kde.org"
] | rich@kde.org |
b5bbf3c03b4a409008f345030301327f4049f887 | f95bba42af9464545bdb1a312189e2b0e1412f30 | /tests/test_create_relationship.py | 2bd40420ccc32adf82bfb2d5247833eed1262d7a | [
"MIT"
] | permissive | auth0/jupiterone-python-sdk | 1b7f50ea6c6625ae2ca61761047e31d302b3d1f8 | 1c63eafa029ca3baa5ae6b93f05d98d02747aa2b | refs/heads/master | 2023-06-23T08:59:45.910553 | 2022-10-24T16:18:49 | 2022-10-24T16:18:49 | 237,996,631 | 10 | 9 | MIT | 2023-08-22T13:39:18 | 2020-02-03T15:24:30 | Python | UTF-8 | Python | false | false | 1,623 | py | import json
import pytest
import responses
from jupiterone.client import JupiterOneClient
from jupiterone.constants import CREATE_ENTITY
@responses.activate
def test_tree_query_v1():
def request_callback(request):
headers = {
'Content-Type': 'application/json'
}
response = {... | [
"george.vauter@auth0.com"
] | george.vauter@auth0.com |
da3ca927ab7c3f9f63e45e04c47b52107c0630e7 | e0c3dd84bb34a27fa9926c424b488e7bf9e62865 | /deep_learning/logistic_classifier.py | 525825929e9cbbaa90f5bbe4a3f6eb9ca4d00144 | [] | no_license | mspandit/deep-learning-tutorial | c5e7099b19d7ea4cec2b7461931de11ac6be3c5a | 7ef7760d571bcc07196dc897ad2e53517ef4471f | refs/heads/master | 2021-01-23T07:20:56.377617 | 2014-10-20T13:22:41 | 2014-10-20T13:22:41 | 24,348,581 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,230 | py | """
This tutorial introduces logistic regression using Theano and stochastic
gradient descent.
Logistic regression is a probabilistic, linear classifier. It is parametrized
by a weight matrix :math:`W` and a bias vector :math:`b`. Classification is
done by projecting data points onto a set of hyperplanes, the distance... | [
"mspandit@yahoo.com"
] | mspandit@yahoo.com |
17ba77f176141d459e81985f43e229f7ca668faf | d6d4449df702ab59a13559aaba599c60381d1852 | /tests/rot_enc_test.py | 1a121982d07371e9b5706f6ec0329ecc102aefc0 | [
"CC-BY-4.0"
] | permissive | zzfd97/StickIt-RotaryEncoder | c58ce2758676285d6ce539e895b6a5d01b451396 | 78c5511192fd471e57bc9b6b6ab5d1393ecdb0f3 | refs/heads/master | 2021-12-12T18:56:36.702963 | 2017-02-12T04:00:09 | 2017-02-12T04:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,614 | py | # /***********************************************************************************
# * 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 License, or (at y... | [
"devb@xess.com"
] | devb@xess.com |
e690cec87c5c720fb3cc337f89f24478e2089b17 | 5f84d6651095327f35885f0b7a563457152718f0 | /seq2seq/bert_relation_extraction.py | 74bd4e03fc09405ae0b19d8f7a888306f4bb350c | [] | no_license | ElderWanng/BERTS2S | 3a1bd7de227ecc95d5bfec542c7885d560e93590 | 85a6a138d3901b9c0890149a2403682d4d3cda96 | refs/heads/master | 2023-03-19T09:46:23.613734 | 2021-03-19T08:02:33 | 2021-03-19T08:02:33 | 343,244,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,516 | py | ## bert 关系抽取模型
import torch
import torch.nn as nn
from seq2seq.BS2S_tokenizer import load_chinese_base_vocab, Tokenizer
from seq2seq.basic_bert import BasicBert
class BertRelationExtrac(BasicBert):
"""
"""
def __init__(self, word2ix, predicate_num, model_name="roberta"):
super(BertRelationExtrac,... | [
"twang650@gatech.edu"
] | twang650@gatech.edu |
7358f4249de375c62f19800234d1ccfa24c2fa5c | 000dcb0cf680486fd3c2f7afad0dd7935e2b8a36 | /finance/stocks.py | a05e65142cf900790aad702c5367b1dac1064d4d | [] | no_license | arnoldas500/machineLearning | d51419a10a1bbad8cd8acb15225e52d01d4cd176 | 73124d7a9a7831f5f567142e2362e6ae9413d871 | refs/heads/master | 2021-09-03T01:43:52.567755 | 2018-01-04T16:41:40 | 2018-01-04T16:41:40 | 103,578,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,413 | py | import datetime as dt
import matplotlib.pyplot as plt
from matplotlib import style
import pandas as pd
import pandas_datareader.data as web
from matplotlib.finance import candlestick_ohlc
import matplotlib.dates as mdates
style.use('ggplot')
'''
#can specify start and end dates
start = dt.datetime(2000,1,1)
end = dt.d... | [
"akurbanovas@albany.edu"
] | akurbanovas@albany.edu |
0b5b1489acfdeeee4d89ecac70ec0e14e54021d5 | b103ea4b64ba5175f7dc2decac390980d745ed8f | /FCN_LSTM/model/bilstm/temp_file/train_model256.py | 97f7fd93b14cf97c5b84868642c2a11a9dc6fedf | [] | no_license | wangye8899/Fully_Convolutional_Network_Time_Series | 2f08611fc312d3f9e5a53a42369cf90679f3552f | 3e799dbec98b2facdd0a56c482023c7dff6e9e80 | refs/heads/master | 2020-07-05T02:34:07.104037 | 2019-11-02T02:28:56 | 2019-11-02T02:28:56 | 202,495,853 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,872 | py | import tensorflow as tf
import configparser
import os
import random
import numpy as np
from model256 import model_
from batch_read256 import read_csv_,TFRecordReader
file = './config/parameter_256_3_5.ini'
# 读取配置文件
def read_config(file):
cf = configparser.ConfigParser()
cf.read(file)
learning_rate = cf.ge... | [
"3091485316@qq.com"
] | 3091485316@qq.com |
f2942c7cf18c1edb7f563ce2408bde73246dbeb1 | ada7983995e346c8c676d0bbe5ed2397ff54b930 | /day14/day14-part1.py | 451c7c5344789dfa26f143c5012eba98666b0c06 | [] | no_license | hergin/AdventOfCode2020 | 4dc54e31308ae8584407f5c0917bcdb2f0aa44fa | e700d5bc15d689cc6c22e37d9a6170649901b3b0 | refs/heads/master | 2023-02-09T02:47:15.922678 | 2020-12-24T03:30:31 | 2020-12-24T03:30:31 | 321,268,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | import os, sys, math
def applyMask(value,mask):
maskedValue = 0
tempValue = value
for i in range(0,len(mask)):
maskedValue *= 2
twoPowerI = 2**(35-i)
if mask[i] == '1':
maskedValue += 1
elif mask[i] == 'X':
if tempValue >= twoPowerI:
... | [
"hergin@bsu.edu"
] | hergin@bsu.edu |
39fcd96c8a3e146e586324569ed4fdcd59ca857f | e71eff6f896ba33ee4bdc8e0267d72ea2783222c | /models.py | 723c0955ca7c37397c0347c6148acd76946c7336 | [
"MIT"
] | permissive | KMSkelton/cgm_flask | 8861ebe2697fb5e5f5231e9ea2b66a9cd5c063c8 | 1ad92522e1af4bd7af4a88d4fb503dab8cc260a8 | refs/heads/master | 2021-07-08T20:45:00.665610 | 2019-01-18T23:47:05 | 2019-01-18T23:47:05 | 96,000,251 | 1 | 0 | MIT | 2019-01-18T23:47:06 | 2017-07-02T03:30:45 | Python | UTF-8 | Python | false | false | 2,042 | py | from flask import Flask
from marshmallow import Schema, fields, pre_load, validate
from flask_marshmallow import Marshmallow
from flask_sqlalchemy import SQLAlchemy
ma = Marshmallow()
db = SQLAlchemy()
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(128))
use... | [
"kmskelton@outlook.com"
] | kmskelton@outlook.com |
9cb940b5a3db52178cac627d10f24113dfe8b731 | 7b54f406d5ee41615553a47dc9791857dbf54901 | /third_task.py | e5259b5389f53efe667ee89707a7a75f8cbbc231 | [] | no_license | CSCATT/py111_exm | 571da9ff786bd2cf04d59489106b6fe8a071e1f5 | 4d380589bd3c2326ecde08bf9c846f463e68a88b | refs/heads/master | 2021-01-16T01:46:00.413026 | 2020-02-25T10:04:55 | 2020-02-25T10:04:55 | 242,931,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | import networkx as nx
def finder(graph, str, visited):
visited[str] = True
print("visited: ---> ", visited, "\n")
print(str, graph.adj[str])
"Проход по графу"
for node in graph.adj[str]:
if not visited[node]: # if not visited
finder(graph, node, visited)
return None
if... | [
"x2g.tillo.g@inbox.ru"
] | x2g.tillo.g@inbox.ru |
4c28fb4f582f50a67dcbcb1a70ba13520bbc73b6 | 16f48de6fd77f0a1b2a60dbcf897e50726d91770 | /Models/ConcreteFactory/sms_notif_factory.py | 650916d18707ffb61df563b5d3625775225ae900 | [] | no_license | dibyasom/UNICC-JsonRedo | 7abadf968d2a4a4cce4c2fe7426231e05b6207c5 | 7c2d08c2c4c14a1993aff8b23443d54844edc482 | refs/heads/main | 2023-09-06T03:18:05.685867 | 2021-09-02T10:09:59 | 2021-09-02T10:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # Importing dependecnies and parent factory model.
"""
Concrete Factory override the factory method in order to change the resulting
product's type.
"""
# Importing dependecnies and parent factory model.
from ..Factory.notif_factory import NotifierFactory
from ..Interface.notif_interface import Notifier
from .... | [
"dibya.secret@gmail.com"
] | dibya.secret@gmail.com |
8ee3f4c7e8272328dcaab0d5419cc3d2fd076a9e | cfda84d6b814d5a1adadd06ca03be1c260d3820a | /scripts/poller_config.py | 0a1d176f30ab49fc121b78ca2ea804dc1490efbc | [] | no_license | thetherington/SDVN-IPG-Link-Monitor | 6b4bab34e9549cecb2726f7f39ec060e6084707c | c06230cc7ff473a99f812c1a64bfd2987c0da4f2 | refs/heads/master | 2023-06-27T15:14:43.010344 | 2021-07-30T14:12:18 | 2021-07-30T14:12:18 | 296,078,442 | 0 | 0 | null | 2021-07-30T14:12:18 | 2020-09-16T15:47:43 | Python | UTF-8 | Python | false | false | 834 | py | import json
from edge_port import EdgeCollector
from insite_plugin import InsitePlugin
class Plugin(InsitePlugin):
def can_group(self):
return False
def fetch(self, hosts):
try:
self.collector
except Exception:
# from ThirtyRock_PROD_edge_def import return_... | [
"thomas@hetheringtons.org"
] | thomas@hetheringtons.org |
77921aade12cd93cfbbbffb1e59a7444b7ad84c1 | d0d088be9ba855fbc1798d55a0874faee192d8b5 | /posthog/api/person.py | e1d035c0bd7b0f564145380d16c7e281ae576d71 | [
"MIT"
] | permissive | pplonski/posthog | bf62d1bfb36a007adb180faecd418a8d1337f904 | 9ae6854254085bbe10cc4f9c98820d9efed52424 | refs/heads/master | 2021-01-08T17:36:18.303885 | 2020-02-20T19:38:07 | 2020-02-20T19:38:07 | 242,096,368 | 2 | 0 | MIT | 2020-02-21T09:00:14 | 2020-02-21T09:00:14 | null | UTF-8 | Python | false | false | 2,781 | py | from posthog.models import Event, Team, Person, PersonDistinctId
from rest_framework import serializers, viewsets, response, request
from rest_framework.decorators import action
from django.db.models import Q, Prefetch, QuerySet, Subquery, OuterRef
from .event import EventSerializer
from typing import Union
from .base ... | [
"tim.glaser@hiberly.com"
] | tim.glaser@hiberly.com |
f607cc5e2526bcc268de801f40a60c5f8d777c39 | 558ad954a7b150ce95a30e5b1b4d277ed8286d46 | /0x04-python-more_data_structures/8-simple_delete.py | 48e0c39dd411cfe4884cd6a191de83073610e039 | [] | no_license | Indifestus/holbertonschool-higher_level_programming | 9cf41f53d164a6612ea982c28468d2a330212920 | aaaa08577888828016557826f85a98893d8e9cca | refs/heads/master | 2023-03-15T19:06:48.626734 | 2018-01-15T02:27:29 | 2018-01-15T02:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | #!/usr/bin/python3
def simple_delete(my_dict, key=""):
if my_dict is not None:
my_dict.pop(key, None)
return my_dict
| [
"andrew.birnberg@gmail.com"
] | andrew.birnberg@gmail.com |
a66ea0e584b1c0c16a1073e306b633b0ae4bd795 | 3da102290ebe6c186474ecbeec9065ea2e5357e3 | /pi/robot.py | 4d162feefe0008daae6f7e2e33d88865d9c46d45 | [] | no_license | fo-am/penelopean-robotics | 55cbbebe29f15fe5996222a5db36040ac400b8f3 | 2a6f81a4d8b098ac513bd42df980e64128df8a1b | refs/heads/master | 2022-05-28T17:46:36.579042 | 2022-05-19T13:35:47 | 2022-05-19T13:35:47 | 134,366,263 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,976 | py | import yarnasm
import radio
import time
# things we want to be able to do:
# * tweak servo defaults
# * queue of messages to send?
class robot:
def __init__(self,address):
self.address=address
self.telemetry=[0 for i in range(256)]
self.code=[]
self.source=""
self.state="ru... | [
"dave@fo.am"
] | dave@fo.am |
6e7957bb1f333a3da864d18a81ae420ab74e4ffa | f19c5436c7173835a3f1d064541ee742178e213a | /mah/Programmers/메뉴 리뉴얼.py | 20b5a552218aadd52b2828f25d2f9f8a092c26d5 | [] | no_license | hongsungheejin/Algo-Study | f1c521d01147a6f74320dbc8efe3c1037e970e73 | d6cb8a2cc6495ccfcfb3477330a3af95895fae32 | refs/heads/main | 2023-07-06T10:58:27.258128 | 2021-07-29T02:11:13 | 2021-07-29T02:11:13 | 379,269,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from itertools import combinations
def solution(orders, course):
candi = {}
course = set(course)
for order in orders:
order = sorted(order)
for i in range(2, len(order)+1):
for combi in combinations(order, i):
combi = "".join(combi)
if co... | [
"mai.hong0924@gmail.com"
] | mai.hong0924@gmail.com |
b51f4bd7b2670382d3d6f617619e7c569746b871 | 74748f587dc4a8e74ebdf2274f632ffa545cceca | /itdrocevo/itdrocevo/asgi.py | cae9c654847e07815571a22e48c86b3f5b67901e | [] | no_license | IvanIvantey/servacok-saiticok | fc32c3daaf1c7ec7ed84b4a89b0d725949bd0d60 | fbd8bcf27e587bc4a0bb88db71bd527ca6d43b65 | refs/heads/master | 2023-03-03T23:35:57.522839 | 2021-02-08T13:22:39 | 2021-02-08T13:22:39 | 337,081,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for itdrocevo project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"sa50_i.v.ivantey@mpt.ru"
] | sa50_i.v.ivantey@mpt.ru |
8efb6483d2133c3e9f4a7801382b7a59b8ccfe7c | b6f8849e007476d0b6b55793fdf53c93452c1f14 | /lif_neuron_diagnosis.py | 668903a311d0c9a0f0c1ef979c2a9d2e38b44e71 | [] | no_license | emelon8/ripples_model | a646a353bc1700d29b21b9a19cf8e566933c0c09 | b06c8463f9c8a28acbcad928d34d2e74359aa769 | refs/heads/master | 2021-01-11T22:09:42.578264 | 2017-01-14T08:28:59 | 2017-01-14T08:28:59 | 78,926,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 19 21:17:41 2016
@author: eric
"""
import numpy as np
def LIF_neuron(dt,v0,taum,gL,Vrest,Vr,Vt,arp,arp_counter,se,con_matrix,num_pyr,num_inh,num_chat,sampa,sgaba,snmda,gampa,ggaba,gnmda,gampae,vampa,vgaba,vnmda,DC):
v = v0.copy() # copy timestep i to make timestep i... | [
"eric.melonakos@gmail.com"
] | eric.melonakos@gmail.com |
f4397551c757ec6c02227871baabb84f4703f2ba | 78c455c0095a5e1cc5bb76b9c3e686012e72c8f3 | /prod/universal.py | c77ab17b62dee0329efadd1a04610307be396b1e | [] | no_license | JorgeRamos01/Proyecto-texto | 0ec04815d4442ea03d336f8071ef2b01c2696cce | a19f551f807652b30aba4cd5a412f8dae95263db | refs/heads/master | 2020-05-31T21:00:08.454819 | 2019-06-06T00:53:41 | 2019-06-06T00:53:41 | 190,488,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,537 | py | # #Scrapepr el universal, seccion de opinion
from bs4 import BeautifulSoup
from urllib.request import Request, urlopen
import re
import datetime
from pgdbqueries import send_data_to_db # module to connect data base
from custom_printing import CustomWrite # new class (for printing logs)
cw = CustomWrite("El Universal... | [
"noreply@github.com"
] | JorgeRamos01.noreply@github.com |
8c2fce2c46678cdd2c2d448059130c263c6a1746 | be8b2123c0d06403cb679a18597d86248a4b30ee | /FacebookHackaton2013/facebookhackaton2013.py | 6a6e2b40beea256adb2c2b864f4a2ccafc42b1aa | [] | no_license | ClaudiaSianga/Python-para-Zumbis | 52438d30f4cc5cb0c16740083553cf2967139742 | 798f4acac673837e599d4e2790cedce98bc73ab9 | refs/heads/master | 2021-01-11T18:03:19.921355 | 2017-01-19T18:09:41 | 2017-01-19T18:09:41 | 79,480,204 | 0 | 0 | null | 2017-01-19T18:03:19 | 2017-01-19T18:03:19 | null | UTF-8 | Python | false | false | 432 | py | #!usr/bin/env python
# -*- coding: utf-8 -*-
def parse_bin(n, k):
lista = []
for i in range((2**n-1)+1):
lista.append(bin(i));
lista = sorted(lista, key=lambda x: -x.count('1'))
return (lista, lista[k-1])
print "="*150
print "Lista:%s \nk-ésimo elemento: %s\n" %(parse_bin(3, 5))
print "Lista:%s \nk-ésimo el... | [
"guilherme-louro@hotmail.com"
] | guilherme-louro@hotmail.com |
632b5d2161af536c55b014590d765fb51b0d4cce | 6d3b34e64e3ee6bdcdabbf6aad8aa3da3ef080e9 | /New Workspace/multithreading/usingsubclass.py | cf1535d211d7aa66869c0d5422314a74b016fb61 | [] | no_license | himani1213/SpringMicroservices | 15a9c84dc9a9309b1a47af74f39b34a708b228f2 | 2a62068374602da1d7d5f98afc1c62c60ba560ed | refs/heads/master | 2020-09-27T01:20:43.149587 | 2020-02-28T15:15:35 | 2020-02-28T15:15:35 | 226,388,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from threading import Thread
class MyThread(Thread):
def run(self):
i = 0
while(i<=10):
print(i)
i+=1
t= MyThread()
t.start() | [
"hsingl34@in.ibm.com"
] | hsingl34@in.ibm.com |
455b47e9572a2598ff0b2997545f882039909442 | c6dfa465c05be2ad350e8ef7c3c2c35a4dce41d2 | /explorations/wiener-exp.py | b19e914948c63345b0f6a618261404b585dffcf7 | [] | no_license | bogeorgiev/heating-up-dbs | b6e78f1d7ccd59005fd9d73544e311d9e088f5f3 | bf75787b6594590e72c32e678b565bbd47acf9ba | refs/heads/master | 2023-02-24T06:40:19.168808 | 2021-01-29T11:17:45 | 2021-01-29T11:17:45 | 260,421,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | import torch
from torch.distributions.multivariate_normal import MultivariateNormal
from torch.distributions.normal import Normal
import math
from matplotlib import pyplot as plt
import numpy as np
dim = 3
alpha = 1.0e2
num_walks = 10000
num_steps = 100 * alpha
step = 2.0e-1 / math.sqrt(alpha)
compute_empirical = Fals... | [
"lukas.b.franken@gmail.com"
] | lukas.b.franken@gmail.com |
173842b445e851f4641e07b28cf9e78b33a41bae | 68d6c069e5248451390b6caf0bcdc40026bfdf84 | /Python/hw2/VectorCal.py | 07fa8f17bf0836d84144884e466831a30fc2d191 | [] | no_license | Nightlord851108/HowToSolveIt | 64cb058a58c871cff83d49957d4ffd41d5387c32 | 7a21060030dbb6931008becb09a4de01141ce92a | refs/heads/master | 2020-03-23T19:24:10.564832 | 2020-01-30T05:49:59 | 2020-01-30T05:49:59 | 141,975,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | def vectorSum(v, u, d1, d2):
if (d1 != 0) & (d1 == d2):
i = 0
ans = []
while i < d1:
ans.append(v[i] + u[i])
i = i + 1
return ans
return "Dimensional Error"
def innerProduct(v, u, d1, d2):
if (d1 != 0) & (d1 == d2):
i = 0
... | [
"“nightlord851108@gmail.com”"
] | “nightlord851108@gmail.com” |
67036aa7f5e73b06e2cc28232521344169dd679e | 5006a6965c21e5b828300eedf907eb55ec5b8b27 | /bnpy/callbacks/CBCalcHeldoutMetricsTopicModel.py | 57f0d662cfa836d5634ada5bdb6b7f599e3c9e2c | [
"BSD-3-Clause"
] | permissive | birlrobotics/bnpy | 1804d0fed9c3db4c270f4cd6616b30323326f1ec | 8f297d8f3e4a56088d7755134c329f63a550be9e | refs/heads/master | 2021-07-09T14:36:31.203450 | 2018-02-09T07:16:41 | 2018-02-09T07:16:41 | 96,383,050 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | '''
CBCalcHeldoutMetricsTopicModel.py
Learning alg callback extension for fitting topic models on heldout data.
When applied, will perform heldout inference at every parameter-save checkpoint.
Usage
--------
Add the following keyword arg to any call to bnpy.run
--customFuncPath CBCalcHeldoutMetricsTopicModel.py
Ex... | [
"hongminwu0120@gmail.com"
] | hongminwu0120@gmail.com |
d7d2b1821665e6ce2fba837251c3f8cc1a3c770e | fff4663f296e081d4aa3ca4b36c301afb95aee88 | /lib_translate/term_protection.py | b5dab0be375d36ef3d46bc9c0450aa52067b961f | [] | no_license | sammichenVV/translateserver-py | 84d7787c0b4e42542be433b909ed243f65e4ed38 | b4c6900281b2219097d6f1f86a71311180a60c1e | refs/heads/main | 2023-03-19T14:20:00.579830 | 2021-03-17T06:54:01 | 2021-03-17T06:54:01 | 348,186,221 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,773 | py | """
对输入文本的专业术语进行保护,目前仅支持一句话中对一个术语进行保护
>>> src_word, tgt_word = "Hello world", "你好世界"
>>> add_words([[src_word, tgt_word]])
>>> src_word.lower() in show_words(return_dict=True)
True
>>> add_words([["I'm", "我是"]])
>>> sent, term = mask_term("hello world! I'm.")
>>> de_mask_term(sent, term)
'你好世界! 我是.'
>>> delete_words(["... | [
"00025@yu.lan-bridge.com"
] | 00025@yu.lan-bridge.com |
2b44b6f0f3f0b9d259ad52416362ca4d246b0348 | 342fc6f60c688a21b9ba4a8e8b64438d77039ba2 | /CNCS/CNCS/nxs/raw.py | c37c120916552715a26b08dd44b35ff7a2eded11 | [] | no_license | mcvine/instruments | 854001fe35063b1c8c86e80495093ce72884771f | 8e41d89c353995dcf5362a657a8bb5af08ff186c | refs/heads/master | 2023-04-03T11:01:53.232939 | 2023-04-02T04:16:07 | 2023-04-02T04:16:07 | 120,621,268 | 1 | 0 | null | 2023-04-02T04:16:08 | 2018-02-07T13:51:36 | Python | UTF-8 | Python | false | false | 3,916 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2008-2015 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@ornl.gov"
] | linjiao@ornl.gov |
336d03d10e2a186fdf639286c125e67ed25c4421 | 275c578b5ae0b5d7e2931b10948c48a044d2687c | /app/main/views.py | 08ed2b9b5b08692453c109ca0cf632cae8a116c7 | [] | no_license | mibei001/news | a311061744cdc9d240aeb55f59a1ef981bac5f37 | 2f078477a5b6162b0b302538c492bcae394aed48 | refs/heads/master | 2023-09-03T05:31:13.079048 | 2021-11-08T09:16:42 | 2021-11-08T09:16:42 | 424,885,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | from flask import render_template,request,redirect,url_for
from . import main
from ..requests import get_source,get_article
from ..models import Source
@main.route('/')
def index():
'''
View root page function that returns the index page and its data
'''
# Getting News source
title = ' ... | [
"kevin.mibei@moringaschool.com"
] | kevin.mibei@moringaschool.com |
50a1caa06984cbfea5664ed189a0988188a9b83f | cc31a912aea9bf0ecd47cd737afee7e96a242054 | /blogproject/blog/feeds.py | dbc833ebfed51c3135b05bc687b3857387e38223 | [] | no_license | tanglang1990/blog_for_person | 77ec7fa029045bfc03c6d12b39bf06612fc34703 | fa77041a4dfdfef05ce032eff334aa1df854c988 | refs/heads/master | 2020-04-23T06:22:57.256344 | 2018-10-17T07:35:39 | 2018-10-17T07:35:39 | 170,971,341 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from django.contrib.syndication.views import Feed
from .models import Article
class AllPostsRssFeed(Feed):
# 显示在聚合阅读器上的标题
title = "Django 博客教程演示项目"
# 通过聚合阅读器跳转到网站的地址
link = "/"
# 显示在聚合阅读器上的描述信息
description = "Django 博客教程演示项目测试文章"
# 需要显示的内容条目
def items(self):
return Article.... | [
"782555894@qq.com"
] | 782555894@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.