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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68da1f8ed563eab43f86b7aed55660c3e2a9adc1 | ace9500032f65f3b35576e543bb0a5db11348f79 | /develop/issabove_config.py | b87332548763e0c093be62522b209da11d3d2826 | [] | no_license | conradstorz/config_mgr | ba59b2ff1ae804524c4964dcc40510220fd87b31 | eaae1a0e4e66d46d7f2d082eef187d90bd5d3455 | refs/heads/master | 2023-02-04T16:23:31.571294 | 2015-08-01T04:09:19 | 2015-08-01T04:09:19 | 317,722,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,670 | py | # import pdb; pdb.set_trace()
"""
This is an implementation of config_mgr written by Conrad Storz to specifically meet the needs of the fine program
written by Liam Kennedy called ISS-ABOVE. config_mgr is used here to read a file of configuration options and place
the results into a data structure used b... | [
"estorz@gmail.com"
] | estorz@gmail.com |
11db259082bfba48cb8bd0c27e64e3d77bc28f6a | b87ea98bc166cade5c78d246aeb0e23c59183d56 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/model/uniqueitems_false_validation.py | 9a1260048babd250a0448eb1540cbf3fbb04e197 | [
"Apache-2.0"
] | permissive | holisticon/openapi-generator | 88f8e6a3d7bc059c8f56563c87f6d473694d94e5 | 6a67551ea54a1aa9a49eb48ee26b4e9bb7fb1272 | refs/heads/master | 2023-05-12T02:55:19.037397 | 2023-04-14T08:31:59 | 2023-04-14T08:31:59 | 450,034,139 | 1 | 0 | Apache-2.0 | 2022-01-20T09:34:14 | 2022-01-20T09:34:13 | null | UTF-8 | Python | false | false | 1,499 | py | # coding: utf-8
"""
openapi 3.0.3 sample spec
sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501
The version of the OpenAPI document: 0.0.1
Generated by: https://openapi-generator.tech
"""
from datetime import date, datetime # noqa: F401
import deci... | [
"noreply@github.com"
] | holisticon.noreply@github.com |
05353751c192e689e8eb95d46dcf502dcdae0f2e | 16053f613cf204ae9c90065bb638de15144323a6 | /NAV_DEEPAK P/NAVHW_010.py | e69749e9ffe410ba7f26b40c1b44fde9a9f824d4 | [] | no_license | patel-deepak506/Codechef | c67cb271fa50e8c515b010edaef4881853177d11 | 28ce5f5ad587b178fa9f13078c76f41a1a390eaf | refs/heads/master | 2023-02-20T18:17:46.405561 | 2021-01-15T13:27:22 | 2021-01-15T13:27:22 | 329,900,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | '''
NAVHW_010:: Write a program to input three sides of a triangle and check if the triangle is valid.
Sum of 2 sides should be greater than the third side which means
a+b>c and a+c>b and c+b>a ⇒ Then triangle is possible.
'''
a=int(input("first line"))
b=int(input("second line"))
c=int(input("third line"))
if a!=0... | [
"pateldeepak5498@gmail.com"
] | pateldeepak5498@gmail.com |
01c0bc0094458a1b15a835bb362e74daa12cd141 | 44946aab1360f30a871c41b9d9e9d40b2b3027f9 | /First Thingspeak code.py | b7b3f452e077ec35f41cfdaab434943a3978680a | [] | no_license | TalalBhatti/Smart-Agriculture-Python | 6a30494477941b2be9818338af31739203117fe1 | 36b3264356a499d91a6232bbc5ea741177f77f61 | refs/heads/master | 2022-11-30T23:47:18.443652 | 2020-07-21T17:52:50 | 2020-07-21T17:52:50 | 255,388,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import random
import threading
import urllib.request
import requests
# Define a function that will post on server every 15 Seconds
def thingspeak_post():
threading.Timer(15, thingspeak_post).start()
val = random.randint(1, 30)
URl = 'https://api.thingspeak.com/update?api_key='
KEY = '2K1UL7AJ3BY7PQQN'... | [
"talalabhatti@gmail.com"
] | talalabhatti@gmail.com |
b0cca8b9434940d04dba61101b28a01ce4e2201d | 63a82b8dd8d97b5c9d7ab9ec54449280fa8d6006 | /BillingExtractSplit/extract.py | a680f68a0513fe597ed8d3c7e5a2136e782174f8 | [] | no_license | jiananxu/ScriptSum | 3f97ae8aed2876511c90ee1d4300f4dbd46fe6ca | a6a5ef6e5615ea20bdc14f273141cb78264bdc72 | refs/heads/master | 2021-07-05T11:31:12.419153 | 2017-09-29T05:42:19 | 2017-09-29T05:44:52 | 104,832,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,500 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017-08-15
# @Author : xujn
# @Version : 1
# @QQ : 1170182824
import pymysql
import sys
# # 【命令行参数】
settle_acc_code = ''
if len(sys.argv) == 2:
settle_acc_code = sys.argv[1]
else:
print '请正确输入'
# 可以自行定义结算单号,如用此行代码,请注释掉【命令行参数】中代码
# settle_acc_... | [
"1170182824@qq.com"
] | 1170182824@qq.com |
5076a64b7b9dffb2596e7311309c3d5dfccaca8b | d99f3470287da3b06b76f79ff65948446ec0e49e | /dojos_and_ninjas _mod/config.py | 8069c064507d8987d43d333d5bb9ad690c29fc19 | [] | no_license | ivanmallory/ivanm_flask_orm | 7534543d206835982f629c1c93a898253e056afb | 9ddac13cd5f1b4e3248dca8ea7724328db0914c7 | refs/heads/master | 2020-12-19T05:22:02.071929 | 2020-01-22T17:57:01 | 2020-01-22T17:57:01 | 235,631,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from flask import Flask, render_template, request, redirect
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.sql import func
from flask_migrate import Migrate
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///dojos__and_ninjas.db'
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = Fals... | [
"ivanmallory1992@gmail.com"
] | ivanmallory1992@gmail.com |
1d09209d6dba4a6799b5c1bfb79a819731896502 | de19902be68d82ef10f0a073656aa575d52c0c8a | /ALL/1859_从上到下打印二叉树_BFS_level_order.py | 52588a0e3fcfcaa13c285c457dec5a3efd085082 | [] | no_license | qihao-huang/LeetCode | 7c13c0601c95e5809a758375fcfd5caa6bb489c2 | 27fc21b7d1fb0fa51c11f0c71a55ca08eac9314b | refs/heads/master | 2023-03-20T00:29:46.941445 | 2021-03-27T08:22:33 | 2021-03-27T08:22:33 | 178,548,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | # https://leetcode-cn.com/problems/cong-shang-dao-xia-da-yin-er-cha-shu-lcof/
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def levelOrder(self, root: TreeNode) -> List[int]:
... | [
"qihao.huang@outlook.com"
] | qihao.huang@outlook.com |
9c4be50e59b7490e407701acc732e406059a83e8 | 8425bd2b3e6e16718f948cf1ab78f2b32cd3e888 | /init_dataset.py | e1df5e2bfa19af6f405bafeceb8c279cd152afdf | [
"MIT"
] | permissive | lujiaxuan0520/NAIC-ReID-2020-contest | 2efca188fce1cfc7c016c295988715c405f50a94 | 51953a6927afb71733e39845fec9723210d37a1b | refs/heads/master | 2023-01-24T17:29:54.586836 | 2020-11-30T04:33:42 | 2020-11-30T04:33:42 | 292,447,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,079 | py | ####################################################################################
# initialize the datasets, including train, gallery and query
# Author: Jiaxuan Lu
# make the folder as:
# images: directory, the training images
# query: directory, the query images
# gallery: directory, the gallery images
# l... | [
"ljx2856@126.com"
] | ljx2856@126.com |
4b4729261ff6725fa22125c809b571cc7ad16bf8 | 87226b2757e2ac50f0ab7942053e702f5eacb796 | /lib/petsc/bin/maint/petsclinter/petsclinter/util/__init__.py | 980c8183b39deeb7ded072f928dd248788aa9365 | [
"BSD-2-Clause"
] | permissive | firedrakeproject/petsc | dcf7b32e83bdc88d37099904960d7a4c3c4a89e4 | 9364cb008b2aaa08d45c84b965f81718cf7649cb | refs/heads/firedrake | 2023-08-31T22:16:45.175956 | 2023-04-03T09:39:56 | 2023-04-03T09:39:56 | 52,269,402 | 2 | 8 | NOASSERTION | 2023-04-11T09:20:08 | 2016-02-22T11:40:41 | C | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/env python3
"""
# Created: Mon Jun 20 15:14:22 2022 (-0400)
# @author: Jacob Faibussowitsch
"""
from ._utility import *
from ._clang import *
from ._timeout import timeout
__export_symbols__ = ['get_clang_function', 'timeout']
| [
"jacob.fai@gmail.com"
] | jacob.fai@gmail.com |
df302b8bd2400a2eaad254c59654c8eac62b383e | c4d2a5e815059df5ac36c706712210036b7d34c8 | /p20.py | 5e11adaff55ee87d29e54723289bf2d1598416d0 | [] | no_license | sathyagoud/github | 898fef4efd2124399ccbc29149e88c39f8aa2362 | 97dafd39c119d28bfdf9f51d6314f697a7782b6f | refs/heads/master | 2020-04-08T02:45:13.248598 | 2018-12-30T12:50:39 | 2018-12-30T12:50:39 | 158,947,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #!/usr/bin/python
# Function definition is here
def printme( str ):
"This prints a passed string into this function"
print str
return;
# Now you can call printme function
printme("I'm first call to user defined function!")
printme("Again second call to the same function")
| [
"goudnlm@gmail.com"
] | goudnlm@gmail.com |
286ff94d4e666a01bb9b09599b019a2cfc6bbeaf | 830acf618939231314e8fd7af0fa01436a545476 | /1.1/create_batches.py | 65c00f9d03fa770dc8b0dc367c2496bbfe2058fe | [] | no_license | gagandt/cs671a2 | e1857d71edb60f9e9a73a72f154ea29634c85291 | ed96cee01d5f88a6a18977f0bdbb1f1c5d7f2152 | refs/heads/master | 2020-05-03T16:25:39.092157 | 2019-03-31T17:55:39 | 2019-03-31T17:55:39 | 178,722,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from cus_load import data
dataset = data("output")
x_train, y_leng, y_widt, y_colo, y_angl = dataset.load()
no_of_batches = 750
x_train = np.split(x_train, no_of_batches)
y_leng = np.split(y_leng, no_of_batches)
y_widt = np.split(y_widt, no_of_batches)
y_colo = np.split(y_colo, no_of_batches)
y_angl = np.split(y_angl, ... | [
"gagandeep280597@gmail.com"
] | gagandeep280597@gmail.com |
6e41fb2648e6342cec5af82591e50b8d1ca0bbb0 | b59c7726c5509d73126b24f628a76087cf25d933 | /wmcFinal/wsgi.py | 09a70e3e9fa6b987916a2747877e99daac938893 | [] | no_license | princedalsaniya/PGF-django | bdf0dc6d0f12669de8017d28d3143c0719c2d4b4 | b84ffea8860f6fa5841c319b9417f17ad2f4cc88 | refs/heads/main | 2023-06-21T00:32:28.992255 | 2021-07-24T18:30:18 | 2021-07-24T18:30:18 | 389,090,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for wmcFinal 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"princedalsaniya@Princes-MacBook-Pro.local"
] | princedalsaniya@Princes-MacBook-Pro.local |
af881113a1cd9241a5c6017190a99743c9f52eb0 | ed24769b4b1427c988f4dc5ad0b89e92ceaceae5 | /2020harukadai_script/script/get_relation_words.py | 356f003beb72358833c71fd4abd48377e1d277be | [] | no_license | lasurstein/work | 5886137bdb6137fdd79425e09e0119891e0797bf | 00ef25c24c27f75179242a70a85f3abdc9f1a66c | refs/heads/master | 2022-12-01T19:10:10.260704 | 2020-08-16T19:12:38 | 2020-08-16T19:12:38 | 224,409,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | """
教師データのツイート内に含まれる各単語と
'桜'の関連度を計算する
"""
from pymongo import MongoClient, DESCENDING
from .s_lib import setup_mongo
import sys, math, collection
def setup_mongo(db_name):
connection = MongoClient()
db = connection[db_name]
print('mongoDB ready')
return db
def calc_pmi(sw, w, s, n):
pmi = math.l... | [
"sabamoffy.1258@gmail.com"
] | sabamoffy.1258@gmail.com |
5973d8e70d69cfce3f3e04d9d5cc73421a0e21bb | 2a26a1d9fc5cb1b787aee9b84462805ab06fee9a | /0x0B-python-input_output/9-add_item.py | 354e43fa3a5ad0a5fe5e1f06944b0e6585884638 | [] | no_license | GEEK1050/holbertonschool-higher_level_programming | 5eb07fd34578519ff70f96531cae09109eb6c92f | eaa7342bf04c4db8b9bedec065d221b90adba609 | refs/heads/master | 2023-04-03T08:08:15.694571 | 2021-04-12T02:28:27 | 2021-04-12T02:28:27 | 259,311,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/python3
"""9-add_item: add item to json file"""
from sys import argv
save_to_json_file = __import__("7-save_to_json_file").save_to_json_file
load_from_json_file = __import__("8-load_from_json_file").load_from_json_file
try:
ls_object = load_from_json_file("add_item.json")
except:
ls_object = []
ls_... | [
"karim-bahri-18@outlook.fr"
] | karim-bahri-18@outlook.fr |
022708975ca33818b19536b19210681bec01944f | feeef1ae124ba1125b624b6f9897b2ace2f9af4f | /exo1.py | 69df3d244a53ef657843314754a5e019582d1fee | [
"BSD-3-Clause"
] | permissive | m-a-rahal/Beleif-functions | bdf88b9ed635cd0e1494fd165c7da771c23623f0 | 1672cb4fab3eedc9059c7273158cef7a28558a2b | refs/heads/master | 2023-08-25T20:24:47.284441 | 2021-10-30T14:02:17 | 2021-10-30T14:02:17 | 422,012,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | from my_pyds import Sources
def init(show = True):
global sources
# exercice 1
# on écrit Ω comme étant des mots séparés par des virgules
omega = 'p, c, s'
# on stockes nos sources d'information dans une classe appelée 'Sources'
sources = Sources(omega)
sources.add({'p,c' : 0.65, 's' : 0.... | [
"m.a.rahal@outlook.com"
] | m.a.rahal@outlook.com |
d4869d70623e2ddc41c79ddcb84dbf6f07d53117 | 9f91d3a1cb2712979cba088af52e32fc91b6b3e3 | /tests/test_context.py | f5c9b123d857a7817d858b8d0bf816e4fe341250 | [
"MIT"
] | permissive | simonsobs/sotodlib | fe5e3b828d18ea599edbf8335ca8f5f3d982074b | 80fa09de7d17cdbf4dbf7a66d6f569f4186804f6 | refs/heads/master | 2023-08-31T10:47:00.737927 | 2023-08-24T20:25:24 | 2023-08-24T20:25:24 | 150,447,576 | 11 | 17 | MIT | 2023-09-14T15:40:31 | 2018-09-26T15:20:39 | Python | UTF-8 | Python | false | false | 18,444 | py | # Copyright (c) 2022 Simons Observatory.
# Full license can be found in the top level "LICENSE" file.
"""Test Context class, including metadata and TOD loading.
"""
import unittest
import tempfile
from sotodlib import core
from sotodlib.core import metadata, Context, OBSLOADER_REGISTRY
from sotodlib.io.metadata imp... | [
"mhasself@users.noreply.github.com"
] | mhasself@users.noreply.github.com |
da0fbe83b3f410b9755ff9d071a087bcc7bf9880 | 846ec93310fd3ee9e54094c04abec74aa741955a | /lesson 2.4.8.py | 19a4243df0815abf6a9be08a9f05a210f51e49bd | [] | no_license | AlexSolomyaniy/Selenium | e1b98b6112763a2e2ef36df8ed2de7229e28306a | 40fd050636e218b46697437f00235e08338a95d8 | refs/heads/master | 2023-01-02T22:43:57.695582 | 2020-07-01T13:42:40 | 2020-07-01T13:42:40 | 256,708,301 | 0 | 0 | null | 2020-10-13T23:13:48 | 2020-04-18T08:53:44 | Python | UTF-8 | Python | false | false | 936 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
import math
link = "http://suninjuly.github.io/explicit_wait2.html"
browser = webdriver.Chrome()
browser.get(li... | [
"alexsolomyaniy@gmail.com"
] | alexsolomyaniy@gmail.com |
ae132c35f9378954b35796886aca3491386db3b5 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/5804612/snippet.py | 365ec99e3c6e1802b17ec70aaac6ebe7524850f5 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 4,333 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import curses
from math import floor
from datetime import datetime as date
from subprocess import Popen as popen
# Globals:
screen = curses.initscr()
last_width = 0
last_height = 0
alarm_hour = 0
alarm_minute = 0
alarm_state = False
alarm = None
glyph = {
'0': ["... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
d3a321975787ef773d78f0684552b6f88767bd82 | 9e2c6f99c6a32bd652b9b7542e14405a6e4647c0 | /devel/lib/python2.7/dist-packages/turtlebot_arm_block_manipulation/msg/_InteractiveBlockManipulationFeedback.py | 9f48fe084e107ddb63ed970deecf4901be0e1183 | [] | no_license | AsaadIrfan/idris | 7ef5fb8b123d9ebe630dcbcee19001c76aaa7f48 | 0140b9b0cec8c7196fd4476b614b9c2bdabe7d40 | refs/heads/master | 2016-09-13T11:14:02.915661 | 2016-05-04T10:41:32 | 2016-05-04T10:41:32 | 58,019,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | """autogenerated by genpy from turtlebot_arm_block_manipulation/InteractiveBlockManipulationFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class InteractiveBlockManipulationFeedback(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf84... | [
"asaad@VAIO.(none)"
] | asaad@VAIO.(none) |
ebf0e020ef120e562a08ef9bcdd5e8cee93bc47f | 4ed13b743a2d0f0d11ee0f79679ee7591251a98e | /webserver.py | 88e88b1b960d00fc7f1892ceae4a5fefed3d8f89 | [] | no_license | astafjew/preview2 | 1705701c60522545920688ca81123f798a9ee12b | 553169805e269bddd9e5982a320c03d072aeb60b | refs/heads/master | 2020-03-16T20:22:17.163041 | 2018-05-10T22:17:19 | 2018-05-10T22:17:19 | 132,955,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | import os, sys
from http.server import HTTPServer, CGIHTTPRequestHandler
def main() -> None:
webdir = '.'
addr = ''
port = 80
os.chdir(webdir)
srvraddr = (addr, port)
srvrobj = HTTPServer(srvraddr, CGIHTTPRequestHandler)
srvrobj.serve_forever()
if __name__ == '__main__':
main()
| [
"astafjew@outlook.com"
] | astafjew@outlook.com |
bb8bdb6598f67347abf97cfbefa319588c9439d8 | 332be02156a35461787464bf928e84b252c7e909 | /src/common/SCI/Camera/CameraControls.cpp.py | aef5602f2b9c5b63e44ba3f6c4672c2f57c10dfa | [] | no_license | behollis/pyQt-muView | 4f682ab85b806bf13619a0ee121e1e63200b5ea5 | d834fbf642b21a67c66b79cbe0406b910af033d5 | refs/heads/master | 2016-08-11T21:56:33.589436 | 2015-11-25T18:44:05 | 2015-11-25T18:44:05 | 45,575,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | '''
** Common Library
** Copyright (C) 2013 Paul Rosen
**
** 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, version 3 of the License, or
** (at your option) any later version.
**... | [
"brad.hollister@gmail.com"
] | brad.hollister@gmail.com |
06962cf3b7b305a4b37e760aee4bdf5f691546bf | dac7a6bb3952cf1fec35e0be0dbe9003784b9cce | /revtex.py | a87ee9dfe1892dbafc0ea639b9aadc7c497211c5 | [
"BSD-2-Clause"
] | permissive | kprussing/site_scons | 4ae65d3ea85ef41cc74f4ae41932f304ee016e73 | 780541c1b1c9c64b55bfda1b45b445a7fee67a0f | refs/heads/master | 2021-01-11T09:10:44.779229 | 2019-01-18T01:56:42 | 2019-01-18T01:56:42 | 77,252,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | __doc__="""Define the builder for calling REVTeX.
The REVTeX 4.1 builder emits and additional bibliography files that is
<root>Notes.bib. We need to tell SCons that this file is emitted and
needs to be cleaned up.
"""
import copy
import os
from SCons.Builder import BuilderBase
def emitter(target, source, env):
... | [
"kprussing74@gmail.com"
] | kprussing74@gmail.com |
0e959b1996691724bf22b090b9d06486c27af470 | 264cb5d5ec6c1b07b99c5f0c8dc7aca60a8078d3 | /project/urls.py | 1acd272072ad988d5c42e8f4a1f389684c33910a | [] | no_license | Soryu-Asuka-Langley/Team-melli | 3da768b026b7714f26b5c3ca6bfe8fb0a30e6d0f | e4bb2bfaab87ff48a744e7b13a834dc24242b9c3 | refs/heads/main | 2023-04-09T15:49:42.129724 | 2021-04-27T04:48:35 | 2021-04-27T04:48:35 | 346,623,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py |
from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
#from django.conf.urls import url
urlpatterns = [
path('admin/', admin.site.urls),
path('', include("main.urls")),
path('tinymce/', include('tinymc... | [
"noreply@github.com"
] | Soryu-Asuka-Langley.noreply@github.com |
023cc5cbef7dff5fd9a816a89dea3d5ea53d429b | 1bed4be568ac6d24726d31563722e20c0c71e20f | /app/migrations/0001_initial.py | 8d3638ed5c5240eb5a3f4aa7b473c3087a526804 | [] | no_license | seantmoore/placeme | 8efc67bd3cdc657833df7123a6409220519ab550 | 33d8ca14407971ff13d67dd119b1c3a8fcb8b0d8 | refs/heads/master | 2020-06-19T19:43:50.527957 | 2019-08-02T17:01:39 | 2019-08-02T17:01:39 | 196,846,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | # Generated by Django 2.2.3 on 2019-07-06 23:26
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Board',
fields=[
('id', models.AutoField(au... | [
"smoore22@gmail.com"
] | smoore22@gmail.com |
64c5c647ff198f9d9fc25f1d32f3d88950bd533a | a4298bffaf0b16800950c2bd85bea52f1c88a053 | /Mining/RoughCore(冲突时的文件备份2016-03-25 12_08_21).py | 67ec7170a7e1b3d1ddaf088a5bdc08800dee2e88 | [] | no_license | madarou/IR | 44cf57a44b6edfb9a2b133dfe55914ffdb3be483 | 8120f32adc16eb0af328c2879931f1dd20f1005b | refs/heads/master | 2021-01-18T23:44:07.169298 | 2016-07-07T08:32:23 | 2016-07-07T08:32:23 | 54,884,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | #coding=utf-8
from model.User_Relation import User_Relation
'''
Created on 2016年3月25日
@author: makao
标签传播前,找初始传播的core
'''
if __name__ == '__main__':
user_degree_list=[]#存各个用户被关注的度,即出度
for line in open('/Users/makao/Yun/Workspace/lab/data/num_user_relation.txt'):
user_number = line.split('|')[0].strip(... | [
"2016333261@qq.com"
] | 2016333261@qq.com |
630e61e13715868ffbcd3ed0d652a6f347e82937 | f30327ea27615d9bc4fe73bfef7be4ee071c846d | /AppUI/manage/FT07_InvoiceManager/FT0705_IntercourseFunds.py | 1d32037236ffe321af2a3a2ea3d51560fae96ff3 | [] | no_license | cangyun520/RuanBang | 9ffba433699fb4f6238e8d92a273599814de61cb | b8797730cbe1b84d5095ff00d1fa3b82ab534da2 | refs/heads/master | 2021-08-07T11:29:48.167792 | 2020-04-02T13:23:53 | 2020-04-02T13:23:53 | 136,142,677 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | # encoding:utf-8
"""
* Created by Arvin.liu on 2018-9-6.
* QQ 405367236
"""
from common.webClass import *
class IntercourseFunds(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
# 登录
WebLogin.submit(self, "manage", "刘朗洲", "YUANDINGYUN", "368739960423059456")
... | [
"billjc@521"
] | billjc@521 |
442b77f00ec2aefb6bbd4d2294e85553d2ba4a8e | 10da8bc88a5f65cbe3bf78fff24ddef59b091218 | /examples/whoami.py | bbbe29cc0a62f9427c01dc56d0c8e4bcff933a8e | [
"MIT"
] | permissive | pooyamb/aiotg | 6ef21d7750d894427761dc0ccc9896baee593286 | c8cb12b81bee7303fd593d596dd40d7a1d88aa65 | refs/heads/master | 2020-07-03T10:51:12.909377 | 2019-08-12T08:10:38 | 2019-08-12T08:10:38 | 201,884,078 | 0 | 0 | MIT | 2019-08-12T07:55:53 | 2019-08-12T07:55:51 | null | UTF-8 | Python | false | false | 212 | py | import os
from aiotg import Bot
bot = Bot(os.environ["API_TOKEN"])
@bot.command("whoami")
def whoami(chat, match):
return chat.reply(chat.sender["id"])
if __name__ == "__main__":
bot.run(debug=True)
| [
"stepan.zastupov@gmail.com"
] | stepan.zastupov@gmail.com |
bfa6d491ac1883fedbb611a648b08ef90886f9b8 | 857a2fda199ba864b28fb3ebfca72e1e02966107 | /uservice_django_poc/wsgi.py | 213ec47ce9c4911b966a812887ce41108e70db3f | [] | no_license | dkharlan/django-api-vuejs-spa-proof-of-concept | bf58355bf274c33099f992af2b82e107727bd87c | 731069db94697eeea6891addcb4acae44b515225 | refs/heads/master | 2021-09-04T09:49:42.636732 | 2018-01-17T19:17:57 | 2018-01-17T19:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
WSGI config for uservice_django_poc project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"dkharlan@umich.edu"
] | dkharlan@umich.edu |
2bed5e05cd7d0f73b106debbb0bb75f2fb8c0d8a | 36254944621366f0c882296f8cd01da69de34a46 | /workflow/tools/vocab.py | 0bb300ece8ba8b997c186df21239f65429782b0e | [] | no_license | lqleeqee/avatar_jianyi | 180855baf71cbfe4d1d37e6453f052193c9027bc | 97dc2bb1adc9be7594fd442f3f1aa7612693599f | refs/heads/master | 2021-01-24T00:14:30.038596 | 2016-02-02T02:41:50 | 2016-02-02T02:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # -*- coding: utf-8 -*-
import os, re, sys, logging, time, inspect
pfolder = os.path.realpath(os.path.abspath (os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],"..")))
if pfolder not in sys.path:
sys.path.insert(0, pfolder)
reload(sys)
sys.setdefaultencoding('utf8')
class Vocab:
def _... | [
"root@node9rh6.vipcloud"
] | root@node9rh6.vipcloud |
63cbad1c14a50e5aac0a3149fea6efa6425cc1f0 | 0884dfe08f536f1883f20ed102001fdfa0ac7b4e | /example/ROP/oneshot.py | e562567c05d4a37c694ae7e91145f1e9aeb7fcd0 | [] | no_license | xiaoyj/ShawPwn | 4b40329be2735ea18e42a8006ba906c5903851f0 | cfa408f22094f0a03607d1f56043d641735d9cb3 | refs/heads/master | 2021-04-04T20:34:38.675318 | 2020-03-19T11:48:16 | 2020-03-19T11:48:16 | 248,485,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/python
#coding:utf-8
#通过one_gadget来实现一次get shell
from pwn import *
one_gadget_rce = 0x45526
#one_gadget libc.so.6_x64
#0x45526 execve("/bin/sh", rsp+0x30, environ)
#constraints:
# rax == NULL
setbuf_addr = 0x77f50
setbuf_got = 0x600ae0
io = remote("172.17.0.2", 10001)
io.sendline(str(se... | [
"xiaoyijie2007@126.com"
] | xiaoyijie2007@126.com |
a286699b7f36dbfa78716c8e6f0563a57fd544ad | 182f2a1b367f3aa55a841e083bb61f6118f8fdc7 | /recipes/forms.py | c5aa29b32f9fea36509301e0f4c239c16d437586 | [] | no_license | Buzzlay/foodgram-project-react | d6e79284ff45f0cd9d55d0ed1194186e475718be | 6e4fdac34e9dbcb8df848d20b93b9fdeae32c935 | refs/heads/master | 2023-06-18T14:53:30.307788 | 2021-07-02T15:10:55 | 2021-07-02T15:10:55 | 381,918,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | from django import forms
from .models import Recipe, Tag, Ingredient, RecipeIngredient, Follow
class RecipeForm(forms.ModelForm):
tags = forms.ModelMultipleChoiceField(
queryset=Tag.objects.all(), to_field_name='slug',
)
ingredients = forms.ModelMultipleChoiceField(
queryset=Ingredient.ob... | [
"dimabuslaev@gmail.com"
] | dimabuslaev@gmail.com |
9fd6995514daf5e51e5de8708cadd039a2ac6fbf | e5f875bd5870b81fc3a06788bf4ed7f2b5ee51ef | /qq.py | ba498fee19bff7189eb7297d9e1910f1c0c7e25a | [] | no_license | nchuxlm/Python | 7b4a4577b8ca36401abae5f1e54577c9f645e385 | 8417f61bec9fbce2b46510ac551be2b9c090f1c9 | refs/heads/master | 2020-07-26T06:12:49.268762 | 2019-09-15T08:02:02 | 2019-09-15T08:02:02 | 208,560,877 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,056 | py | from enum import Enum, unique
from math import sqrt
from random import randint
import pygame
@unique
class Color(Enum):
RED = (255, 0, 0)
GREEN = (0, 255, 0)
BLUE = (0, 0, 255)
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GRAY = (242, 242, 242)
@staticmethod
def random_color():
... | [
"51351229@qq.com"
] | 51351229@qq.com |
ccad155c93d1dc3713bc931ca59362dda019cbe3 | aaf306b4117027bd66dfdbac80f2147a9b48a455 | /Day66-75/code/example01.py | b1fee7aa04cbe05762d013ada68b220f217fb53c | [] | no_license | xiangsxuan/Python-100-Days | 309da160fc4c85aa9699a0c522525e2b01e0421d | e86dece224b0a77103f6d6b734fecd9eef7dca97 | refs/heads/master | 2020-03-18T19:56:59.744032 | 2018-05-28T15:21:07 | 2018-05-28T15:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | from urllib.error import URLError
from urllib.request import urlopen
import re
import pymysql
import ssl
from pymysql import Error
def decode_page(page_bytes, charsets=('utf-8', )):
page_html = None
for charset in charsets:
try:
page_html = page_bytes.decode(charset)
break
... | [
"jackfrued@126.com"
] | jackfrued@126.com |
bb49278ee22d5f196a40e0bafc858d9570658c07 | dfed075354fdd13d53c6c63725fb22f16469d377 | /check_arb_mpmath.py | 09d5ca490305c9ff7fe70253c01afaa200ff0773 | [
"MIT"
] | permissive | klkuhlm/unconfined | 85c868e7b2b526fc2c5fbb009810f80883850e63 | 1e5904d7ed57b0bc6d4801f62de516c1cb4c5e62 | refs/heads/main | 2023-03-20T22:25:07.228240 | 2022-07-30T21:29:53 | 2022-07-30T21:29:53 | 519,058,610 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from mpmath import *
print mp
mp.prec = 113
print mp
for i in range(8):
ii = i+1
z = ii*pi/4.0 + ii*pi/2.0*1j
nu = (ii+2)*pi/4.0
print ii,z,nu,besselj(nu,z),bessely(nu,z)
| [
"kristopher.kuhlman@gmail.com"
] | kristopher.kuhlman@gmail.com |
2826769ec7b97b846621c389213c801e03813fcf | 866cff63b1c2b71af512e165a00f81ed07a4f31d | /modin/experimental/core/execution/dask/__init__.py | f4c4b0280ec82ebce60609f35c9f9c0e328df1ee | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | modin-project/modin | d313249315a7e0de1fb61d803727b41a53df991d | 8f6e00378e095817deccd25f4140406c5ee6c992 | refs/heads/master | 2023-08-31T21:27:23.108633 | 2023-08-31T19:09:15 | 2023-08-31T19:09:15 | 138,224,079 | 9,241 | 693 | Apache-2.0 | 2023-09-14T20:40:19 | 2018-06-21T21:35:05 | Python | UTF-8 | Python | false | false | 858 | py | # Licensed to Modin Development Team under one or more contributor license agreements.
# See the NOTICE file distributed with this work for additional information regarding
# copyright ownership. The Modin Development Team licenses this file to you under the
# Apache License, Version 2.0 (the "License"); you may not u... | [
"noreply@github.com"
] | modin-project.noreply@github.com |
d3ca685b9c2136a3c1c581a042146b3f9b4be186 | 4a0eb422dea8b3b911d56d4eae54137753cdefb0 | /python-52-weeks/Device_classes/train_netmiko.py | aa215f6fdeb69e540b32f016fa3a73ddec8598dc | [] | no_license | aramidetosin/python-netmon | a52c85bf124c051ec4ffe9a252501520d0f7bb39 | de6f935bfcb8134e769eb2be81c8ebc0abd3df1d | refs/heads/master | 2023-03-27T17:01:56.080756 | 2021-03-28T12:57:45 | 2021-03-28T12:57:45 | 332,056,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | import re
from netmiko import Netmiko
junos = {
"hostname": "192.168.1.229",
"username": "admin",
"password": "juniper1",
"device_type": "juniper",
}
connection = Netmiko(
host=junos["hostname"],
username=junos["username"],
password=junos["password"],
device_type=junos["device_type"],
... | [
"aoluwatosin10@gmail.com"
] | aoluwatosin10@gmail.com |
94cdc32bee11453c29930736a23540b0730f30eb | ad1d6b46f561e755940a09824c0d275cf1998814 | /medvision/aug_cpu/base.py | 10bf6b5c8457efaa38ee2172caf4a0bfc36208bc | [
"Apache-2.0"
] | permissive | shiontao/MedVision | cdc1d248571d3acd5db7d66ae45236d1cf80fa59 | d3a8a8149ce913d5e7be2494a67727c461649f43 | refs/heads/main | 2023-07-23T02:09:28.209669 | 2021-09-09T08:52:22 | 2021-09-09T08:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,662 | py | # Copyright (c) 2020. The Medical Image Computing (MIC) Lab, 陶豪毅
#
# 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... | [
"thyzyfx@qq.com"
] | thyzyfx@qq.com |
0275123d7fb91c214e41c16a3925bba2d42f8e39 | 72c004bff7f3c3ad9375b01db53d1ed01eaa29c3 | /2021-08/unfriendly_rsa/unfriendly_rsa.py | 035ab01a9a8d9476114622c3f3cfc1c5fbed7284 | [] | no_license | sathishlkumar/imaginaryCTF-solution | 46f61267a86e4ebf47bf146295a53d6800bd78b6 | 719f919efb40c60203897cd603a64a5d61a3c2eb | refs/heads/master | 2023-08-25T07:25:04.997504 | 2021-11-01T04:43:08 | 2021-11-01T04:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from Crypto.Util.number import getPrime, GCD, bytes_to_long
p = getPrime(1024)
q = getPrime(1024)
n = p * q
phi = (p - 1) * (q - 1) // GCD(p - 1, q - 1)
# Hey, look, twin primes!
e1 = 0x10001
e2 = 0x10003
with open("flag.txt", "rb") as f:
flag = f.read()
assert len(flag) == 35
flag = bytes_to_long(flag)
... | [
"kirby741852963@gmail.com"
] | kirby741852963@gmail.com |
288c2466e40aa160e37a43870d3d002aa2fb3ecd | 6fb37fee016346120d4c14c4343516532304055a | /src/genie/libs/parser/iosxr/tests/test_show_lag.py | c6fd6cb76e151730fba4cb6d7f539f3f7ed993be | [
"Apache-2.0"
] | permissive | devbollinger/genieparser | 011526ebbd747c6dcd767535ce4bd33167e15536 | ad5ce7ba8f5153d1aeb9cffcfc4dde0871f3401c | refs/heads/master | 2020-12-20T11:36:00.750128 | 2020-01-24T18:45:40 | 2020-01-24T18:45:40 | 236,061,155 | 0 | 0 | Apache-2.0 | 2020-01-24T18:38:43 | 2020-01-24T18:38:42 | null | UTF-8 | Python | false | false | 35,946 | py | #!/bin/env python
import unittest
from unittest.mock import Mock
from ats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError, SchemaMissingKeyError
from genie.libs.parser.iosxr.show_lag import ShowLacpSystemId, ShowBundle, ShowLacp
############################################... | [
"karmoham@cisco.com"
] | karmoham@cisco.com |
1182de00b02e4c3d72a984d7f48629f62af7cb72 | 87ffdf1ba56218c040e4e1d0101f2aa1322695d9 | /download.py | eda83b91b6d926050e48a0be770fb4f5e0672e19 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | keepingbetter/dd | 57d1f52440354c1c7d3675eb62ab515a39a9ec89 | f9aa4d1a09c286de769bde17dd92ece63cf4c3d9 | refs/heads/master | 2022-07-23T22:26:48.393083 | 2020-05-20T10:24:58 | 2020-05-20T10:24:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,835 | py | """Retrieve and build dependencies of C extensions."""
import ctypes
import hashlib
import os
import shutil
import subprocess
import sys
import tarfile
try:
import urllib2
except ImportError:
import urllib.request, urllib.error, urllib.parse
urllib2 = urllib.request
try:
import cysignals
except ImportE... | [
"jfilippidis@gmail.com"
] | jfilippidis@gmail.com |
765d739adbd0510f77f961b9ceb68bda2da2175d | 3a427ceece00860d3931c73d8c64f43c75b1ed8c | /backend/src/djreact/settings.py | ec2262d097cb150dd8fc17205168ce94b8cf0bc0 | [] | no_license | maria-S-456/githubprofile | bf57839af12a08ee3615fe2118d381bf83dd6468 | 9fcaa8f7eb15d89bc917f90eff188342bcef19f2 | refs/heads/master | 2023-05-14T01:24:13.739574 | 2021-06-11T06:22:10 | 2021-06-11T06:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | """
Django settings for djreact project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib... | [
"mars381pika@gmail.com"
] | mars381pika@gmail.com |
b5f11363bf40452c02e2d01a2753049110e5149d | d6097d3b94e283a1ba971f5a8bb1fcdd6d573cdd | /Modbus/Code/send.py | b5e25f65379dd18cd3a4a74a791de46e35879beb | [] | no_license | farahabdelkhalek/SOMEL_Project | ad60f16a9b453a64dfa08e44f63262edfb2472df | ca9cad4d936c6f824fdcbc64211c920a4a4a99b1 | refs/heads/master | 2022-12-22T19:33:18.590310 | 2020-10-03T10:52:07 | 2020-10-03T10:52:07 | 245,158,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,103 | py | /* This file runs on all the raspberry pi modules. It's role is to retrieve the MODBUS values once the connection
is established. As for the receiving edge, once the raspberry receives data on its serial port,
it publishes it on the Final topic via MQTT. */
#!/usr/bin/env python
import paho.mqtt.client as mqtt
... | [
"noreply@github.com"
] | farahabdelkhalek.noreply@github.com |
2dde9d6b6d7882fd2f8221971f5affeee6735fa2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03072/s635930653.py | 041f13523a4cc93f92b5e54f56ee442444872570 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | n = int(input())
h = list(map(int, input().split()))
max = h[0]
count = 0
for i in h:
if max <= i:
count += 1
max = i
else:
continue
print(count) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
895cb19ae2743b8c9829ac797346fa5b72da865b | c4bbf0aaf86cc23c1deace8c67400024c0c5ed3b | /tools/nvgaze-syntetic-to-dataset.py | 64cdb145fe0156aa1036a58fed2de53017df44c6 | [
"Apache-2.0"
] | permissive | ajinkyapuar/acomoeye-NN | ed94649a2b6c9aeff7274e7cd369268ecc607467 | 991372bd3a2f568e4dbf4602b33a8c307f94eff4 | refs/heads/master | 2023-05-02T08:06:20.426044 | 2020-09-19T16:23:48 | 2020-09-19T17:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#Example:
#python3 merge-csv-dataset.py /path/to/list-of-csvs.txt
import os
import sys
import random
# importing shutil module
import shutil
import time
# for radians
import math
directory = sys.argv[1] if len(sys.argv) > 1 else 'Q:/DATASETS/NVGAZE_SYN'
folderNameToOpen ... | [
"czero69@gmail.com"
] | czero69@gmail.com |
ffb910988f1b7e11b9b24547734b0af71c413415 | d9f89fc0b7833177c92e6cce955d3482b9e211ce | /displayImage/main.py | da338f834189f3052df1943fc52351bc7c766446 | [
"MIT"
] | permissive | mackst/opengl-samples | 8f8b4f2297762903f4922fbd08bb23dd3cc203a0 | a427db5b30dba9318100b75b5539a1919e5e0c43 | refs/heads/master | 2021-01-20T07:20:20.959062 | 2018-04-17T13:09:12 | 2018-04-17T13:09:12 | 18,587,743 | 9 | 7 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''display an image using opengl'''
import sys
import PySide
from PySide.QtGui import *
from PySide.QtCore import *
from PySide.QtOpenGL import *
from OpenGL.GL import *
from OpenGL.GL import shaders
import numpy as np
from PIL import Image
def shaderFromFile(shaderT... | [
"schistone@gmail.com"
] | schistone@gmail.com |
3cafb6c30f860bc9df214c720cd8edabd9836e7b | 5034f052b7a1cb793b0113adb72df3e70dd13b70 | /Atividades/atividade-3/div.py | 8ae415dc85570901b4b1e556bfc1068d3ce8ef10 | [] | no_license | PedroHenriqueDevBR/IFPI-visao-computacional | 52cb25600899b5745190b64c49c4c1344701b428 | 791128009c197f056a9fc0bb0cf7c045fc998bb7 | refs/heads/main | 2023-08-19T06:06:24.030933 | 2021-10-24T03:11:40 | 2021-10-24T03:11:40 | 402,138,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import cv2
import numpy as np
class AddImage:
def __init__(self, path_01, path_02):
self.image_01 = cv2.imread(path_01)
self.image_02 = cv2.imread(path_02)
def easy_mode(self):
result = cv2.divide(self.image_01, self.image_02)
cv2.imwrite('/home/pedro/Dev/PythonProjects/VisaoC... | [
"p.lyma18@gmail.com"
] | p.lyma18@gmail.com |
b1d6f14a804a71ceb162c56f25adee764f4dc543 | e217a2ad18383fc0cbe226e09a00af86266889ed | /prac.py | 769c6c50eed16dc20a08570d6ebc5469af00bff2 | [] | no_license | charlenecalderon/Girls_Who_Code | 00ec7226448165b1ff32ed0fecad8b2924257b50 | 6e2d8151cb09bc9eb25baba78a332965742ba4ef | refs/heads/master | 2020-12-03T03:59:42.631005 | 2017-07-14T22:43:29 | 2017-07-14T22:43:29 | 95,800,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | from random import randint
#functions
def level2(numlist):
numSum = 0
for num in numlist:
if num % 5 == 0 or num % 3 == 0: #number is either a muliple of 5 or 3
numSum += num
print("Final sum:")
print(numSum)
#running code
randomlist = []
for x in... | [
"noreply@github.com"
] | charlenecalderon.noreply@github.com |
b4125ff3baca52f7f9801c981e6e38f5bfee6626 | c557490fec13987c8e1e034914a3bd2acc7b1fa6 | /venv/Lib/site-packages/futura/__init__.py | b9de72aed30f70762c5dc84aad68d44ba086017f | [] | no_license | manpakhong/futu | 89223e0a85c3fd4ad9f0acbec542116fcfa05356 | 08dc0ca74cc66c6ece42dd8a67617c56bb9fbcf7 | refs/heads/master | 2023-04-10T19:57:59.461091 | 2021-03-28T08:38:39 | 2021-03-28T08:38:39 | 352,279,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | import logging
# import wurst
import wurst
import futura.wurst_monkeypatch as wmp
#do monkeypatching here
wurst.relink_technosphere_exchanges = wmp.relink_technosphere_exchanges
wurst.transformations.relink_technosphere_exchanges = wmp.relink_technosphere_exchanges
wurst.transformations.geo.relink_technosphere_exchang... | [
"manpakhong@hotmail.com"
] | manpakhong@hotmail.com |
87dec6ef073bd02fe7709d0c6b011cbfd0f6b878 | 7861798672463b239a3102b8407ec56c593c2811 | /setup.py | 0130f5685229a7217c8d3b52ceae52cde7687776 | [] | no_license | nag92/strokeRehabSystem | 33b38cb41de4a357e1a9c99cb30b5608d97932b7 | f51752bd355c91e162f94c26b4078e7d7bcee744 | refs/heads/master | 2020-03-31T14:25:06.853916 | 2018-05-02T15:35:50 | 2018-05-02T15:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['strokeRehabSystem'],
package_dir={'': 'src'})
setup(**setup_args) | [
"nagoldfarb@wpi.edu"
] | nagoldfarb@wpi.edu |
ae0cecc0ca41d9b343f260bad7b96d766e8a0097 | 6db7dd70ea3f3b712b241d22a6839738d177b4f0 | /venv/Scripts/pip3-script.py | 18b5458da3822ea1d717872f2dfd71eb778209d5 | [] | no_license | nsvitek/CT_tools | e9117d78176dfc8ec1c2baa6ad7183c388cfd346 | 0c3a79429e609e653edda3e14265d67c720079cd | refs/heads/master | 2021-06-29T17:19:24.719887 | 2021-06-06T21:36:26 | 2021-06-06T21:36:26 | 67,648,094 | 4 | 3 | null | 2021-01-26T00:12:41 | 2016-09-07T22:25:31 | Python | UTF-8 | Python | false | false | 394 | py | #!C:\scripts\CT_tools\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"nvitek@ufl.edu"
] | nvitek@ufl.edu |
0224791ecdacf52585dc82bcf696f6feda3eb560 | b0c02d7ca86c1ef84af18a8c701702e8bb212b64 | /robotcar/robot_demo.py | d835d77755ccbeb16aa91e9b243d69dbd81e23e3 | [] | no_license | flashypepo/myMicropython-Examples | 24fa2f372e68742abe0f74913df000dfe64a9e55 | b2b63df865b5ad471b351ca5f279135025859f5d | refs/heads/master | 2021-09-24T18:52:18.083444 | 2018-10-13T11:59:19 | 2018-10-13T11:59:19 | 98,223,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | import machine, motor, bot, time
print('creating i2c and motors ...')
i2c = machine.I2C(scl=machine.Pin(5), sda=machine.Pin(4))
motors = motor.DCMotors(i2c) #creates motors object
LEFT=0 #M0 - left motor
RIGHT=3 #M4 - right motor
print('creating robot ...')
robot = bot.Robot(motors, LEFT, RIGHT) # creates robot
dt =... | [
"peter@pepo.nl"
] | peter@pepo.nl |
dc0fc7f361897b8a6caf3af60b74016bcfec4ade | 39b2f9849935f1afbe06268c99197823e5fd51a4 | /Set4/Sha1.py | 2d88fa144769870d2a30eae634832a7b11e14cef | [] | no_license | mwolotsky/Matasano-Crypto-Challenges | 4bbc3a3d40dfd802f167e3e58967043c540701cf | ed0364811d7d3b21b500acf55b6a15d36f45f6ad | refs/heads/master | 2021-01-10T06:54:17.143417 | 2015-12-30T23:09:17 | 2015-12-30T23:09:17 | 48,822,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | def sha1(data):
bytes = ""
h0 = 0x67452301
h1 = 0xEFCDAB89
h2 = 0x98BADCFE
h3 = 0x10325476
h4 = 0xC3D2E1F0
for n in range(len(data)):
bytes+='{0:08b}'.format(ord(data[n]))
bits = bytes+"1"
pBits = bits
#pad until length equals 448 mod 512
while len(pBits)%512 != 448:... | [
"mwolotsky@gmail.com"
] | mwolotsky@gmail.com |
57282343e5e90d60419937a1efdd060ff67d2978 | a970fb077359cfd4c907508cc581b366844c2d89 | /CISC340BACKUP/PREZI/WebApp/changePassword.py | 16cd79315275bfd5fe1e347f68f4a0dd753da6cc | [] | no_license | joemuiruri/CISC340-11 | 18604a262e228787509a51cc087b0c9a6605e5cb | 9c3041f10cde604b213a58f41451f0b4ca8776c6 | refs/heads/master | 2022-11-08T05:52:15.164745 | 2019-11-25T22:20:56 | 2019-11-25T22:20:56 | 218,209,590 | 0 | 2 | null | 2022-10-26T22:21:49 | 2019-10-29T05:18:18 | Python | UTF-8 | Python | false | false | 488 | py | import sqlite3
import sys
conn=sqlite3.connect('database.db')
curs=conn.cursor()
# function to insert data on a table
def add_data (password):
curs.execute("INSERT INTO users VALUES(date('now'),(?))", password)
conn.commit()
# call the function to insert data
add_data (3000)
add_data (12345)
add_data (77789)
# ... | [
"muiruri.vale@gmail.com"
] | muiruri.vale@gmail.com |
6fa666ea6d1840544f96f471b1e3fa431e6625ce | 2b468b1d22ecc5668529255676a1d43936829074 | /codes/personal_backend/support/test/api/account/test_account_staff_api.py | 77c65d5ee97fc600c4f0bfb8569cff2aaa68c41e | [] | no_license | MaseraTiGo/4U | 5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c | f572830aa996cfe619fc4dd8279972a2f567c94c | refs/heads/master | 2023-07-26T09:44:21.014294 | 2023-07-13T03:43:34 | 2023-07-13T03:43:34 | 149,217,706 | 0 | 0 | null | 2020-06-05T20:38:16 | 2018-09-18T02:34:29 | Python | UTF-8 | Python | false | false | 1,720 | py | # coding=UTF-8
import json
from support.common.testcase.api_test_case import APITestCase
'''
class Add(APITestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_account_staff_add(self):
"""test account staff to add"""
flag = "user"
api = "account.st... | [
"344627181@qq.com"
] | 344627181@qq.com |
ccd697a6a78eacaa8b650a7009e884bff8555924 | e1ef59d1ae408e7c4cab1d9ef9c7fd9795802fbf | /pymde/__init__.py | 988c96688e0451ad8c8e75d06ac7bf793fd0b550 | [] | no_license | xdavio/pyMDE | 9016e3dca9a06234a380067846b3b2d193f253ae | 3a7bd36e805bd15c218ff40a42beb7730c7a6db3 | refs/heads/master | 2021-01-19T02:46:39.121372 | 2016-07-04T18:31:41 | 2016-07-04T18:31:41 | 52,641,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | import disparity
import est
import estPois
import gen
import plot
import utils
| [
"xdavio@gmail.com"
] | xdavio@gmail.com |
220cd1c2030bd81343be655d92e5b541a99d79c2 | 112d61040182170072d918f097e79e373c60749d | /drafts/newbot.py | 2feead7dbed62a91c29111f9728cbc9a8b82df2c | [] | no_license | incub4t0r/brewdawgDiscordBot | 58a76c2034c922c65cdf4964131a8e8abe97b5da | a1c0510efd196c4a267e5a92b397f025ee2f6668 | refs/heads/master | 2023-01-31T04:08:38.202569 | 2020-12-16T14:05:48 | 2020-12-16T14:05:48 | 313,378,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | #importing the discord module
import discord, datetime, os
from dotenv import load_dotenv
from discord.ext import commands
import random
load_dotenv()
TOKEN = os.getenv('DISCORD_TOKEN')
GUILD = os.getenv('DISCORD_GUILD')
#creating a new discord client for us to use. cool_bot be the client
Client=discord.Client()
bot ... | [
"dchung0812@gmail.com"
] | dchung0812@gmail.com |
11b183f939cb3ea46045917b073f25eed287ea3d | 363590c82e8ede64b64e213eac540f21c09e1cbf | /projecteuler/045/045-orz.py | c4d68176748fa82149a8f87bfd31bb8d1a3315d1 | [] | no_license | zlbruce/nrciz | 73d6b3ac298f4e7fa922890c4c78b4c6ee16493b | af8343d57f806dd46ea12cb0d763767d6e4a8ee3 | refs/heads/master | 2021-01-19T07:56:38.128938 | 2012-10-10T09:43:52 | 2012-10-10T09:43:52 | 33,296,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #!/usr/bin/python
import math
def p45():
i = 166
while True:
t = i*(3*i-1)
fl = int(math.floor(math.sqrt(t)))
if (fl&1) == 1 and fl*(fl+1) == t:
return ((fl*(fl+1))>>1)
i+=1
print p45() | [
"python.orz@gmail.com@7ad355ac-b993-11de-8dfb-43c0dffa5306"
] | python.orz@gmail.com@7ad355ac-b993-11de-8dfb-43c0dffa5306 |
df7c71b8406ccf0bda40020e4ce52c00b578a18a | cfcbb535d85985c77d271be90013a63c0c300708 | /examples/train.py | 45ab13394cddf5bac5028e5a8589c0b2649079f6 | [] | no_license | shohei1029/azureml_distributed-pytorch | 8033c4d48c9b5dd6db82b62981e4a40f7746a23e | 0d6825912b276671d550539c542a14002934f27b | refs/heads/main | 2023-04-15T09:55:16.775585 | 2021-04-22T08:15:29 | 2021-04-22T08:15:29 | 350,219,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,742 | py | # Copyright (c) 2017 Facebook, Inc. All rights reserved.
# BSD 3-Clause License
#
# Script adapted from:
# https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html
# ==============================================================================
# imports
import torch
import torchvision
import torchvision.tra... | [
"shohei.nagata@microsoft.com"
] | shohei.nagata@microsoft.com |
ebec297cf9757800b95b45d4ecce9e7e14d0d7f1 | ae84e8ef6291b23e323f30bc889788360309cc91 | /MerchantsSeeding.py | 2d09a73fd84e3178d4b17fe65e6e97e3100c04c9 | [] | no_license | curtylin/Syrup | fa6f7dd350e8140ef98bf4de2ea6f14c0605401d | 1de61785f577813b19f6e944f8dd4e6114e7af8d | refs/heads/main | 2023-01-04T10:18:51.973468 | 2020-10-18T04:45:51 | 2020-10-18T04:45:51 | 304,757,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | import sqlite3
def seedMerchants():
conn = sqlite3.connect('merchants.db')
c = conn.cursor()
#Create table
c.execute("INSERT INTO merchants VALUES ('Chipotle', 'Dining')")
c.execute("INSERT INTO merchants VALUES ('Smiths', 'Grocery')")
c.execute("INSERT INTO merchants VALUES ('Dell', 'S... | [
"curtylin@gmail.com"
] | curtylin@gmail.com |
1730b70350f730d297df40f72538228bd2baad78 | a92832cb521db147802fc6bfe84f30d954f77be5 | /check_hands.py | fad13b4100c08f10d2866d583f98eef90e48d255 | [] | no_license | samgottuso/poker_simulator | 474ea7f6bb86d8b57f755371666f262d90a27715 | fed1c7493ac68c25122363f722b418b30ecfc3d9 | refs/heads/master | 2020-03-09T08:56:32.515299 | 2018-04-18T20:36:18 | 2018-04-18T20:36:18 | 128,700,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 17 09:17:14 2018
@author: 583185
"""
def check_flush(hand_suit):
suits=['club','spades','diamonds','hearts']
for i in suits:
if hand_suit.count(i) >= 5:
return True
return False
def check_straight(hand_value):
#create a set of val... | [
"583185@bah.com"
] | 583185@bah.com |
3b782022c3c31f156e428ff9c96c287a644795d6 | fa66dbe45569ea0454ee93528cecb50040cec9e0 | /TIQ/69-sqrt.py | 9fbcb35c750833cb30a369adde19774c2732cac7 | [] | no_license | rjorth/Algorithms-and-Data-Structures | 82fff21c7887009c242e8bcba255531731015bdd | 78ef29b43305e0b2f78206c9f25924d25c853c60 | refs/heads/master | 2021-06-26T20:15:14.511506 | 2020-11-15T13:54:58 | 2020-11-15T13:54:58 | 174,715,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | def sqrt(x):
s = x ** (0.5)
i = int(s)
return i
print(sqrt(5)) | [
"rosaliejorth@gmail.com"
] | rosaliejorth@gmail.com |
87b3c9e11b14cb7d689ba36d1587e35e28f58976 | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/skimage/draw/draw_nd.py | 03c268fb11faaef98beb8414071d9f7ed38a343a | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:c5e7f1c5ad5f275def9df43f330f4af4782e674274fb765bbb93af0c05902092
size 3841
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
1e27c836218327b2cdce494ce8cccd902bf149b2 | 26b88f5f76f5d3717cbfcc0b661c23e413ba9980 | /tf_prob.py | 873d59d2e610d417ff5a499d2e0b1cbe90f34ecd | [] | no_license | lrthomps/snippets | 087256214ac595a70d782a518d1b2b3cf58a335c | 649d79f38d95147496687088ca73d9d63dac8a3f | refs/heads/master | 2020-08-17T07:53:45.329439 | 2019-12-28T21:18:37 | 2019-12-28T21:18:37 | 215,635,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import tensorflow as tf
import tensorflow_probability as tfp
| [
"lara.r.thompson@gmail.com"
] | lara.r.thompson@gmail.com |
3b000396470f1290887fd8852fe1748987884fa1 | d990692dd7afdbb2a235ad03ac5209b4f3bb0df9 | /ipc/chromium/src/base/base.gyp | 12bbc52b7c12f20a2c20d7c68e0e483de997fbe5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | walkero-gr/timberwolf | 5c33158a19dfeb3781c72c6732d45747d9a3c19e | 90ca7da29b6089d1b14f5ff1d08e586aa2ec041f | refs/heads/master | 2022-09-15T11:13:14.252767 | 2022-09-04T12:39:59 | 2022-09-04T12:39:59 | 291,531,351 | 0 | 0 | NOASSERTION | 2020-08-30T18:46:51 | 2020-08-30T18:46:51 | null | UTF-8 | Python | false | false | 22,067 | gyp | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../build/common.gypi',
],
'targets': [
{
'target_name': 'base',
... | [
"benjamin@smedbergs.us"
] | benjamin@smedbergs.us |
9baa3f287276592e421d12cded14a471cffc5499 | 8dfa03c80237bcd47957a30f85014b82ad7bf348 | /di_using_repos/logger.py | 2b9ff2f4b7ee7a63d1bdde21ee73a2be218d2f1f | [] | no_license | marstom/Dependency-Injection-in-Python | 1c8db6d721fad1fe2bfe550069da8105c69ffbb0 | ae0633924642da4b50c6c88fdecc718f69242315 | refs/heads/main | 2023-03-23T20:18:35.511994 | 2021-03-15T15:18:44 | 2021-03-15T15:18:44 | 348,019,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | from datetime import datetime
from database_repo.database_repo import DatabaseRepo
from enums import LogType
class Logger:
object_name = "logs"
def __init__(self, repo: DatabaseRepo, database_path: str):
self.repo = repo
self.repo.init_database(database_path)
def log(self, content: ... | [
"marstomek@gmail.com"
] | marstomek@gmail.com |
8bcd24c011d9161181d17fedd6f3a34b69c78eee | 26f0a020329eb9a02cf08c18fc563bb7528c90b4 | /2021.04/2021.04.10/주식가격.py | 4a88af58fb63427fdc1ab213285f55bf2b6c2756 | [] | no_license | SongJeongHun/algorithm | 760bc224f7682e005f469fa92bfa8ea259d34248 | 807dcbe424ccbf24c5bf3a9423ed29d4c429edab | refs/heads/main | 2023-07-03T22:47:33.961929 | 2021-07-27T03:07:19 | 2021-07-27T03:07:19 | 353,604,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | """ 1h 03m """
def solution(prices):
answer = []
for i in range(len(prices) - 1):
time = 0
for j in range(i,len(prices) - 1):
if prices[i] > prices[j]:
break
else:
time += 1
answer.append(time)
answer.append(0)
return answ... | [
"song970124@gmail.com"
] | song970124@gmail.com |
53bd4f6d8ea2f43221fdfebe427f580940792a4c | f61c95a0cd2212acc97df32ef1b0fd5e12f976d0 | /analyze_extended_no_test_set.py | f9814c40751dccecd2e23e8432431f923594a7aa | [] | no_license | andreyboytsov/copd-data-processing | 62ba1dca122c5eed4026a0bf780f97a039c6e838 | 3cd0f684d7cf4afea9f0daef814eb8d1eae0200c | refs/heads/master | 2020-04-18T12:13:18.777346 | 2020-01-22T13:18:11 | 2020-01-22T13:18:11 | 167,527,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,398 | py | import pandas as pd
import numpy as np
from sklearn import dummy
from itertools import product
from sklearn import tree, ensemble, linear_model
from sklearn.model_selection import KFold
from sklearn.metrics import accuracy_score
# ============================== PARAMETERS ==============================
test_id_select... | [
"andrey.boytsov@uni.lu"
] | andrey.boytsov@uni.lu |
86ce704f77b7c265463560e188583cbaa2aac01e | f29d69eea45f4383db37b1b6876be4bcfd286312 | /user_portrait_0320/user_portrait/cron/network/cron_network.py | ed9c43bd9b965c0a28d58ca37f802ddade6ad69a | [] | no_license | xuzhiq/user_portrait_ending2 | 5ac9952cf275923677d6e2f575289236df4dde9b | f2978135ff672f58090e202e588f7321ed121477 | refs/heads/master | 2021-05-31T05:15:21.316687 | 2016-05-11T11:56:38 | 2016-05-11T11:56:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,804 | py | # -*- coding:utf-8 -*-
import tempfile
import sys
import json
import time
import tempfile
reload(sys)
sys.path.append('../../')
from spam.pagerank_for_portrait import pagerank
from time_utils import ts2datetime, datetime2ts, ts2date
from keywords_utils import get_task_information, identify_task_exist,\
compute_... | [
"lijiahongasdf@163.com"
] | lijiahongasdf@163.com |
c015abc83aad9d4d4eb62342b203ad222667c74b | 24684138f7a74672e084511e2f0202680b318112 | /lib/nmdc_metaassembly/nmdc_metaassemblyImpl.py | e0e0904a89147ec217adef5203a3d73a74881dd3 | [
"MIT"
] | permissive | microbiomedata/nmdc_kbase_metaassembly | 531abc003bace8ead6334966f90a8e925bd583ca | 2cb091007e556933e90c7c342a3e800d931e15ca | refs/heads/master | 2023-03-16T06:16:24.445768 | 2021-03-05T16:56:48 | 2021-03-05T16:56:48 | 341,439,883 | 0 | 2 | MIT | 2021-02-24T18:53:34 | 2021-02-23T05:31:18 | Python | UTF-8 | Python | false | false | 2,579 | py | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import logging
import os
from installed_clients.KBaseReportClient import KBaseReport
from nmdc_metaassembly.assemble import nmdc_mg_assembly
#END_HEADER
class nmdc_metaassembly:
'''
Module Name:
nmdc_metaassembly
Module Description:
A KBase module: nmdc_met... | [
"scanon@lbl.gov"
] | scanon@lbl.gov |
2d0d254d2e50261d7ce3da281976d922d1abc99e | 82a1da2174d132d6ed2046f3235ef12d64e47df4 | /classes/ex2.py | 7032b95459bee924816e5e258d99e238014e7d33 | [] | no_license | cryptoads/classpractice | 4c0b13a9eb41a72d9be672e4b3a0e68f82dead37 | 2bb437901f5e216a34dbbf62dfe82e5d8faecd27 | refs/heads/master | 2021-04-06T08:31:57.279785 | 2018-03-11T04:23:50 | 2018-03-11T04:23:50 | 124,678,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | class Vehicle(object):
def __init__(self, make, model, year):
self.make = make
self.model = model
self.year = year
def print_info(self):
print self.make
print self.model
print self.year
car = Vehicle('Nissan', 'Leaf', 2015)
car.print_info()
| [
"chrisjohnmichels@gmail.com"
] | chrisjohnmichels@gmail.com |
ea8002c7df09e620bcf2f15740bfc4e9bd72a65b | 9012fd7d5f8a5ec099c6ff52250d3780460e6f81 | /hittalaget/teams/views.py | a432f0075d6bb346e39ab2f8640ef57bc3d59583 | [] | no_license | joakimekman/hittalaget | dee45ab3f73259ca90abd3699da4468e39ed51e7 | e85b251f04a1b3c0b722c79eed7706803e5c461a | refs/heads/master | 2022-12-15T02:50:42.744713 | 2020-02-15T16:02:10 | 2020-02-15T16:02:10 | 160,588,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | from django.contrib.auth.views import redirect_to_login
from django.contrib import messages
from django.http import HttpResponseRedirect, Http404, HttpResponse
from django.shortcuts import render, redirect, get_object_or_404
from django.urls import reverse
from django.views.generic import (
CreateView,
DeleteVi... | [
"joakimekman91@gmail.com"
] | joakimekman91@gmail.com |
5377baedb9cea908ee013e6259b08d6b0666cc97 | 3d966a940bcf64de5fcaf11b899419ab7b544d37 | /sel_by_id.py | c4fefa9514816519e9d9aca7dfa41cb2465053b6 | [] | no_license | ghywaity/selenium3 | 88577b23f41689e54cefc6bbc42563e49c5c90a2 | dce4dfcaf78fbcbde3030bfc5e215a47eec15a3d | refs/heads/master | 2020-03-26T18:32:22.315600 | 2018-08-18T12:27:01 | 2018-08-18T12:27:01 | 145,218,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | # coding=utf-8
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://www.baidu.com/")
driver.find_element_by_id('kw').send_keys(u"中国你好") | [
"605896609@qq.com"
] | 605896609@qq.com |
55c32fcbdc0ec35bf98a422cfb77be4738584994 | b8c98d2ed6f6f2aead1f5ac38e79e8f6a51dffd2 | /hw/hw4/16/main.py | f31d527fe3f7828f7063983b475bf434376bae92 | [
"MIT"
] | permissive | makci97/bio_algo | 3cf84469bec4445357dbe9c2cd55031528e3bf1d | 16481ab91fbf343aee1747bc6b01d281baec462d | refs/heads/master | 2020-04-21T21:18:33.244641 | 2019-04-30T20:02:59 | 2019-04-30T20:02:59 | 169,875,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | import sys
import numpy as np
from collections import Counter, defaultdict
mapping = {
'ATA': 'I', 'ATC': 'I', 'ATT': 'I', 'ATG': 'M',
'ACA': 'T', 'ACC': 'T', 'ACG': 'T', 'ACT': 'T',
'AAC': 'N', 'AAT': 'N', 'AAA': 'K', 'AAG': 'K',
'AGC': 'S', 'AGT': 'S', 'AGA': 'R', 'AGG': 'R',
'CTA': 'L', 'CTC': '... | [
"makci.97@mail.ru"
] | makci.97@mail.ru |
76a4f3ed1ee8fcfc18ee01fb522ea34a61d27c5f | 71e5febd44b20b4c71a335b35aaf85df4a4fee99 | /generate.py | 7cd01a26fc1aa60edf2bbab053ee70c0a903a2aa | [] | no_license | gromande/gartner-magic-quadrant | ee2ca6e29ea00cd130849be7486cdda739b37fe3 | 48474f513d27c4a2f50f3f2281199523f304bab1 | refs/heads/master | 2020-03-06T20:44:57.977210 | 2018-03-30T21:53:52 | 2018-03-30T21:53:52 | 127,061,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import json
def get_vendors(url):
capability_page = urlopen(url)
soup = BeautifulSoup(capability_page, 'html.parser')
table_of_contents = soup.find('ul', {"class": "noindt"})
for item in table_of_contents.find_all('li'):
item_text... | [
"gromande@hawk.iit.edu"
] | gromande@hawk.iit.edu |
220d3da93147ba464b5fd1a2eeefdba19a37c65f | 26552adb0d8889affd40e009d3c311e41a873e43 | /Python_Solutions/9095.py | 6b8aaf7f8f39b7b0b8e579984c319a8acee871ab | [] | no_license | Isaac-Lee/BOJ-Algorithm | 3b9b64aba9ab3b48d15133cbf5ad122822e441d0 | 27f0339195c48f416e672390758e85305203b71a | refs/heads/main | 2022-06-29T21:36:11.500158 | 2022-06-25T06:35:05 | 2022-06-25T06:35:05 | 203,349,860 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import sys
def make123(n):
if memo[n] > 0:
return memo[n]
if n == 1 or n == 0:
memo[n] = 1
return memo[n]
memo[n] += make123(n-1)
if n-3 >= 0:
memo[n] += make123(n-3)
if n-2 >= 0:
memo[n] += make123(n-2)
return memo[n]
if __name__ == "__main__":
... | [
"yy0221ss@gmail.com"
] | yy0221ss@gmail.com |
08b0e8fd963c6c43b06c690f5101523720463fa9 | 7d968fa66a974aef3bf2215b42d6469945e2093a | /mainscript.py | 6163070719ac8fc4869ea22b635bf16090779ab2 | [] | no_license | lakshmanaram/delta-sysad-task-2 | 9ba59feacd44d8782b0c6b76fd59299174d9f436 | 3b4d2f57e73f880a1efb0c69546516813373c925 | refs/heads/master | 2021-01-10T08:03:25.103369 | 2015-06-05T03:34:58 | 2015-06-05T03:34:58 | 36,909,516 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import sys
filepath=sys.argv[1]
f = open(filepath+'/script1.py','w')
database_name="task2"
table_name="time"
column_name="time_then"
f.write("from pymongo import MongoClient\nclient = MongoClient()\ndb = client."+database_name+"\n") #task2 is the database name
f.write("table = db."+table_name+"\n") #time is the table n... | [
"lakshmanaram.n@gmail.com"
] | lakshmanaram.n@gmail.com |
9ec5e950344c99edf148ff71438bb35e99b3b29f | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/policy_forwarding/policies/policy/rules/rule/state/__init__.py | b7f28188826e26155aff4389cbaa827bfc94ebf9 | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 22,120 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
cb1c30d4f49143a002710b7239b06ef0ab1bc6d4 | 2c7db8257d9fb47d71065f3bde3c857f339318c7 | /091_gl_particle_animation.py | 96f28edd82104b29a3975148f2e731b4c50242ef | [] | no_license | jakebolewski/PyOpenCL-Tutorial | 417175b12e28b34a3d7de5a25c01325f8163747a | a910d01feee7ff2a354ac04425be44a330a8d27c | refs/heads/master | 2021-01-21T07:39:52.901918 | 2013-10-16T13:24:08 | 2013-10-16T13:24:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,184 | py | # Visualization of particles with gravity
import pyopencl as cl # OpenCL - GPU computing interface
mf = cl.mem_flags
from pyopencl.tools import get_gl_sharing_context_properties
from OpenGL.GL import * # OpenGL - GPU rendering interface
from OpenGL.GLU import * # OpenGL tools (mipmaps, NURBS, perspective projection, s... | [
"nimajnebs@gmail.com"
] | nimajnebs@gmail.com |
2ccdf2b047d75015b2f32fc2ad1b2b21583d8209 | 0a6cddc6d05fd72e4ae605594f48ecba06d6ac48 | /sctriangulate/colors.py | d2fc6a3d19f759689f33329b28bf8b6544be1d7d | [
"MIT"
] | permissive | alexcwsmith/scTriangulate | 464156ced4d9a58407950e301d04e05b166d7ca4 | ec014a4c575f4fd3270922ee9197493a6ec0846c | refs/heads/main | 2023-08-15T22:47:51.851558 | 2021-10-18T22:01:26 | 2021-10-18T22:01:26 | 418,676,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,475 | py | from matplotlib import cm
import pandas as pd
import numpy as np
from matplotlib.colors import LinearSegmentedColormap, to_hex, to_rgb
import copy
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rcParams['pdf.fonttype'] = 42
mpl.rcParams['ps.fonttype'] = 42
mpl.rcParams['font.family'] = 'Arial'
# test_di... | [
"frankli296@yahoo.com"
] | frankli296@yahoo.com |
2333844b5a3eb4be4b91edfde561bc0886a58b77 | 435b4e73d324977e574c93e48382975452c8cd42 | /test.py | 94fd985e0a9924e0cc0072ca3f0655e644b2ad75 | [] | no_license | Arijit82/myTestRepo | 4f3d73317de2d2e83f2101add6909799902b607d | ca0cee4368dd2e8b5b7868816287f015eeb4fb7a | refs/heads/master | 2020-03-18T04:38:10.860279 | 2018-06-22T11:34:30 | 2018-06-22T11:34:30 | 134,297,818 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,748 | py | import requests
from jira.client import JIRA
from jira.resources import Issue
from flask import Flask, request, session
import os
from flask import jsonify
from flask_cors import CORS
from pymongo import MongoClient
from datetime import datetime
from mongo import chk2
app = Flask(__name__)
app.secret_key = os.urandom(... | [
"c-arijit.chandra@timesinternet.in"
] | c-arijit.chandra@timesinternet.in |
9e2d0ba458a2b6093e2c9298336169c3a97e8549 | 0c72223596ffa82eb03639e3549511ea62f65965 | /CFM_main/regrid.py | c7f387d4f1aedaaf1b2990c2fb3f2d445234486c | [
"MIT"
] | permissive | UWGlaciology/CommunityFirnModel | 61a0fa8b25b4025ec5e9a1a4e2f4201a11feaeba | d7dedbb6ce72203a237402824052147d1b113f5b | refs/heads/main | 2023-08-09T18:05:05.635304 | 2023-06-26T15:46:51 | 2023-06-26T15:46:51 | 14,030,315 | 31 | 14 | MIT | 2023-06-20T17:18:57 | 2013-10-31T22:52:52 | Python | UTF-8 | Python | false | false | 31,900 | py | #!/usr/bin/env python
'''
Script to change the grid to have different resolutions at different depths.
'''
from constants import *
import numpy as np
def regrid(self):
'''
Called in both firn_density_spin and firn_density_nospin
There are 3 subgrids in the regrid module. Grid 1 is the high resolution g... | [
"maximusjstevens@gmail.com"
] | maximusjstevens@gmail.com |
4500e1ade3e6b531f0ba47f3ca1579f0729538fc | b731713e1d8083bc89a0ab12fbcb4e1482ce7c89 | /run.py | 06d1ba0500220f4df7868ce99a266086f96347ca | [] | no_license | perara/sysx-monitor | ee4272ae545c1f75d13397bbb8344a65c70cdd2c | 0ed780f340088553a3850ba5378705d1ebe7e07c | refs/heads/master | 2021-01-12T16:53:15.035070 | 2016-10-25T08:18:02 | 2016-10-25T08:18:02 | 71,462,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | import os
import json
import subprocess
import sys
import time
import socket
# timeout in seconds
timeout = 1
socket.setdefaulttimeout(timeout)
from loaders import load_config
try:
from urllib.parse import urlparse, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError
e... | [
"perara12@gmail.com"
] | perara12@gmail.com |
bf571be27351992acd02048bfb7db0a2418428e7 | f2cff61beb4795c1b39b9d2a8f578a1acfa6e24e | /web/routes.py | 2e54f00deb8c29fc69e58eb416e505ec075eb267 | [] | no_license | ivanwong-berkeley/w209_dataviz | 16603671299117d4ce56dc7939bf4e907dbb3980 | 2457fb826e3f578487023e2bb48e75fda19239e5 | refs/heads/master | 2023-03-20T20:19:20.158900 | 2021-02-11T18:39:39 | 2021-02-11T18:39:39 | 336,922,810 | 1 | 0 | null | 2021-03-18T00:37:14 | 2021-02-08T00:43:02 | Jupyter Notebook | UTF-8 | Python | false | false | 6,276 | py | from altair import Chart, X, Y, Axis, Data, DataFormat
import pandas as pd
import numpy as np
from flask import render_template, url_for, flash, redirect, request, make_response, jsonify, abort
from web import app
from web.utils import utils
import json
import altair as alt
@app.route("/")
@app.route("/allcategory")
... | [
"ivanwong@berkeley.edu"
] | ivanwong@berkeley.edu |
5072b3970794f75d4fca3eefc693d845e22db03f | fd1ed6e7fdad1bbb2fb8b6df02aed796c336fe1e | /sepal_nbspredict.py | f7f7c32d9a54f64ffc58816c5231dc23d485ad8e | [] | no_license | gauravwt63/Iris-Data-analysis-and-prediction | b033d788f0c4956a5e6a712b4229fb65c999b894 | a0101481887bea7c151cbf8dba9c8905bd6a8720 | refs/heads/master | 2023-06-08T20:05:33.495570 | 2021-06-22T18:43:37 | 2021-06-22T18:43:37 | 379,368,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | import random
import sklearn
import numpy as np
import matplotlib.pyplot as plt
import random
def convert_to_float(lst):
column=0
while column<4:#2
lst[column]=float(lst[column])
column +=1
return lst
def sepal_split_data(split,training_data=[],test_data=[]):
for line in open("iris.txt"... | [
"gauravwt63@gmail.com"
] | gauravwt63@gmail.com |
b07717ae965c5aa2e55fdbcbf027e893ba95b680 | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res/scripts/client/gui/scaleform/daapi/view/battlegas_attack.py | c45a4342116a35a23080122c5c705cc4d96ee7d0 | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/gas_attack.py
from gui.Scaleform.locale.FALLOUT import FALLOUT
from gui.battle_control import g_sessionProvider
from gui.shared.utils.plugins import IPlugin
from gui import makeHtmlString
from helpers import i18n
class GasAttackPlugin(IPlugin):
... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
3b76907b5c2b47f1b8eaca416b4f95f1e6a7c74d | cdaa13ca7971ba3fa4ef279d181407db1d104677 | /674. Longest Continuous Increasing Subsequence.py | d18404c01a98478a7be46eaf1b1b6fd87b269046 | [] | no_license | jingweiwu26/Practice_code | e319726c960aea4caf6da16eb47a4ba6ab944207 | 3bab0224256c206fc459e53384fd3abf4a711fe2 | refs/heads/master | 2022-01-31T15:13:10.059963 | 2022-01-27T18:46:37 | 2022-01-27T18:46:37 | 81,012,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 20 23:11:09 2018
@author: Wu Jingwei
"""
class Solution(object):
def findLengthOfLCIS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if not nums:
return 0
size = len(nums)
con... | [
"noreply@github.com"
] | jingweiwu26.noreply@github.com |
b020a784c22606793e17979f0014927a8ba9d5d7 | 0046667f824bc219fa369ee715c8a223cb729a74 | /hmm.py | 418583b938fc5a775459560d3fc5c2a280cca8e9 | [] | no_license | justttry/statisticallearning | 54933d7ee1ecad032ca3c0750812da8f07bf0dba | fef4d32ace845713b3701b1884056f6de3ce198d | refs/heads/master | 2021-01-17T04:54:59.989171 | 2017-02-27T08:30:38 | 2017-02-27T08:30:38 | 83,036,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,633 | py | #encoding:UTF-8
import unittest
from numpy import *
#----------------------------------------------------------------------
def calcForwardP(a, t, O, A, B):
"""
计算前向概率
Parameter:
t:t时刻
O:观测变量矩阵
a:t时的前向概率向量
A:状态转移概率矩阵
B:观测概率分布矩阵
Return:
a:t+1时的前向概率向量
"""
return multiply(... | [
"kerzhao@163.com"
] | kerzhao@163.com |
d9b63bda9224716ff670ca94c387f32ebcfa4a5c | e660268f64816bdf53ebbb4c7fba2339de8e0c11 | /plotRoute.py | 8db3132b17c19ef3ece02f792ebc57914a066546 | [] | no_license | guaguakai/wildlife-trade | c1d4ddd3c14095c2112ff3541fdca103a54a6cb2 | df8a61ca2d7d31951369218f56526a1396cf30c5 | refs/heads/main | 2023-03-26T00:24:37.354513 | 2021-03-23T16:04:13 | 2021-03-23T16:04:13 | 335,851,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | import pandas as pd
import numpy as np
import pickle
import tqdm
import os
from os import path
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from sklearn import linear_model
from sklearn.metrics import mean_squared_error, mean_absolute_error, r... | [
"kaiwang@g.harvard.edu"
] | kaiwang@g.harvard.edu |
c98a819a88b0d2d03261337e2aeaf74cf0e57d0b | 91fa322253afb01720acda36103abef9f487382c | /take_photo.py | 5bc0108dac4cc2bf98db1f7df9dcda77d2803b35 | [] | no_license | CherifSy/plant_monitor_rpi | 0cfebf7fae08add0d2a0a25e544ec251d38a3d45 | 9e4600adb6ee4295ee807bc49bb9915bdd9579cc | refs/heads/master | 2021-04-27T13:12:18.774785 | 2018-02-22T01:07:07 | 2018-02-22T01:07:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from datetime import datetime
import time
import json
import requests
from configparser import ConfigParser
import picamera
import os
# Read config file
config = ConfigParser()
config.read('raspberrypi.cfg')
mac = config.get('MiFlora', 'mac')
url = config.get('Flask', 'url')
# Define an image filename with the devic... | [
"salekd@gmail.com"
] | salekd@gmail.com |
db54551b3aac3b008dc93f22d0b31052c20e14f7 | 492e966c3cefedaf4f9973cf0ee6bb0615eead01 | /daaf/ADB_Action_Scipt.py | b2bb7eaaddaabc403b663ff77c949fbcd6e2768c | [] | no_license | sxwollo/atvAuto | e5679cdd5dc7074d9e2975d6fe594f7dec7149e9 | 0bd0ca89aef249bec72aea3e65d314232aa27e1a | refs/heads/master | 2020-12-10T16:42:34.673803 | 2019-06-04T21:42:11 | 2019-06-04T21:42:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | import subprocess
import time
class ActionScript:
"""This is an ADB shell action script framework"""
def __init__(self):
self.deviceID = "none"
@staticmethod
def __execute_cmd(adb):
"""this will send the command to the shell"""
try:
out = subprocess.check_output(a... | [
"darren.victoriano@gmail.com"
] | darren.victoriano@gmail.com |
ca6c8b671ebcdb85b6cbd67e7b3dc8038712bb70 | 6ff1591d02cd6846c61b6689e9c92ec5c6940e63 | /python_crash_course/django_official_tutorial/mysite/urls.py | eabcd9c7eb0e26312228365e4780e379aacb5ce8 | [
"Apache-2.0"
] | permissive | FuryBrand/study_notes | c0a6171ff43d25d2c001d9b9b86b6c9d7adbe028 | 5be75774c0dfcf361720acb70bd8d1511f648733 | refs/heads/master | 2022-12-07T06:42:49.404223 | 2020-08-28T03:39:34 | 2020-08-28T03:39:34 | 132,152,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"bindthemall@outlook.jp"
] | bindthemall@outlook.jp |
db221693696bd678140b5b4dffd264e3e5f29f9b | e3fe6ea7a67f19f35d3edc4e82a900f988a710d1 | /ML/regression/optimizer.py | b643b44b5a2f13b5ddebd8f647bb964b5519cff8 | [] | no_license | fooSynaptic/NLP_utils | 8258b857458d2021b4ead31680b06edaed031fcd | 9a02d3caf9f97b1fc777ffeefba87be7a44fe262 | refs/heads/master | 2022-08-29T03:45:01.977332 | 2022-07-28T15:09:12 | 2022-07-28T15:09:12 | 163,344,219 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # encoding=utf-8
# /usr/bin/python3
import numpy as np
"""vanilla linear regression with gradient descent"""
class linReg():
def __init__(self, num_inputs):
self.w = np.random.rand(num_inputs, )
self.b = np.random.rand(1, )
def squared_loss(self, y_hat, y):
squared_err = (y_hat - y.r... | [
"hujiaxin@ajmide.com"
] | hujiaxin@ajmide.com |
51dee616a3eaca46a906e8517cd7b1f6e8dc4d17 | 61de3b3c4acb24f78e65fa3de6992a2d370c47bf | /ADDevice.py | c1ef74d72b75477db4739d6332c134ba766f3c51 | [] | no_license | joshslaton/RFIDpy | a3049eb5b40c97e38affaa6550e6e33a85a78ab0 | fb256463e75d7bef8c2585411a46f3c4a90f4496 | refs/heads/master | 2020-06-18T04:08:03.843015 | 2019-07-10T16:52:27 | 2019-07-10T16:52:27 | 196,158,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | import os
import clr
import sys
import time
import inspect
os.system("cls")
dir = "C:\\Users\\User\\Desktop\\RFIDpy\\RFIDSoftwareSDK\\dll"
dlls = os.listdir("C:\\Users\\User\\Desktop\\RFIDpy\\RFIDSoftwareSDK\\dll")
for dll in dlls:
if("dll" in dll):
clr.AddReference(dir+"\\"+dll)
# pr... | [
"alecjoshua.slaton@lorma.edu"
] | alecjoshua.slaton@lorma.edu |
a583b094e10e271c7a87b12272c61dc1263274db | 350ade9361645f87d96589a0c90c76d8a951832b | /search.py | 103e3e43619fb4d0f0232b3c8f8036cdd866439b | [] | no_license | dongzeyuan/Practise | becf7c7ca15928213aa22ae15bd8b3f1f9b7dc8b | ecef4466d30c5c9e88e766b4f3df6db24959b9d3 | refs/heads/master | 2021-09-21T02:06:24.629708 | 2018-08-19T08:50:02 | 2018-08-19T08:50:02 | 119,028,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,776 | py | import wx
class ExamplePanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
# 创建一些sizer
mainSizer = wx.BoxSizer(wx.VERTICAL)
grid = wx.GridBagSizer(vgap=5, hgap=5) # 虚拟网格sizer,此处指定了行和列之间的间隙
hSizer = wx.BoxSizer(wx.HORIZONTAL)
self.quote = ... | [
"dongfujing88@gmail.com"
] | dongfujing88@gmail.com |
828a8ba97f1d9fbaddeb6a95c03d6331147ab776 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2494/60586/313709.py | dece5e2fbe54f2c6b73a7876421950dab76b7928 | [] | 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 | 102 | py | x=input()
if x=="[1,3,2,3,1]":
print(2)
elif x=="[2,4,3,5,1]":
print(3)
else:
print(x) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c0604ecc3e5fec3aa2883092810bbfee31e16a8e | f50368f3165c182a0adc914dec56f0cc03d9fb5a | /visual_mpc/envs/sawyer_robot/vanilla_sawyer_env.py | dc1c25c0a1aabdcacfee00d56d4d3d2dbb6b5243 | [
"MIT"
] | permissive | anestisdotpy/visual_foresight | 16ea71f938458a35892c1f557903ed885810dda3 | 957df706b4c7a11b7a0c9ba2de15853df62cd4ed | refs/heads/master | 2020-06-22T05:59:10.578361 | 2019-07-18T20:23:51 | 2019-07-18T20:23:51 | 197,651,312 | 0 | 0 | null | 2019-07-18T20:17:26 | 2019-07-18T20:17:26 | null | UTF-8 | Python | false | false | 487 | py | from .base_sawyer_env import BaseSawyerEnv
import copy
class VanillaSawyerEnv(BaseSawyerEnv):
def __init__(self, env_params, _=None):
self._hyper = copy.deepcopy(env_params)
BaseSawyerEnv.__init__(self, env_params)
self._adim, self._sdim = self._base_adim, self._base_sdim
def _next_qp... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
810a59c8745f1142c33f1360bf7d197f058d35c5 | 9a8efb1c1e1834fbf45f639095d662561886738b | /server.py | 4782800ab62d193a83dbc2fb4fcb0526e4081c11 | [
"BSD-2-Clause"
] | permissive | hinzwifi/cryptohttp | 3c35b08d9c42a508c729803d441289efe935ffe1 | 68c92bba4d772c423bf8bcbda44856d856de0d57 | refs/heads/main | 2023-07-26T08:16:13.566213 | 2021-09-05T03:21:26 | 2021-09-05T03:21:26 | 403,201,857 | 0 | 0 | BSD-2-Clause | 2021-09-05T02:59:48 | 2021-09-05T02:59:48 | null | UTF-8 | Python | false | false | 1,748 | py | import cryptowatch as cw
import threading
import time
import json
class Server:
def __init__(self, refresh_rate):
self.refresh_rate = refresh_rate
with open("coins.json", "r") as f:
data = f.read()
self.__coins = list(json.loads(data).keys())
self.__coin_names = json.lo... | [
"jakedolan443@protonmail.com"
] | jakedolan443@protonmail.com |
3a2edbe823a9eacb1fb0a386ff55ac1a2d103a78 | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/common/Lib/unittest/test/test_result.py | 84c64afbe56d6189144f44facf68bad105d3b19e | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 15,163 | py | # 2016.11.19 20:01:20 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/unittest/test/test_result.py
import sys
import textwrap
from StringIO import StringIO
from test import test_support
import traceback
import unittest
class Test_TestResult(unittest.TestCase):
def test_init(self):
resu... | [
"info@webium.sk"
] | info@webium.sk |
c91098df134dfbb8d069f78c81f47e6095de850a | dca204087704a0652f5678499c2d317515205f27 | /RestaurantShare/RestaurantShare/settings.py | 48782f5edd9975f15fe6be0f6e9f7a4534df06c9 | [] | no_license | rohhj622/djangoProject | 8e4bf6cdb9362f55243c3d828acc6943f52df8f7 | 522086ae0424a0b5306e855495a9fa7a6d8456f5 | refs/heads/master | 2022-12-05T17:50:39.311192 | 2020-08-27T08:32:56 | 2020-08-27T08:32:56 | 288,628,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | """
Django settings for RestaurantShare project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"rohhj622@gmail.com"
] | rohhj622@gmail.com |
47aa7a1143dc899b2cb361cfd3a2c6ae4a5ca4db | 0ae8d4aa8171d46e3dab71adaa26127c01360b87 | /зарплата.py | e71ae2fa37007842dd5dd794928936ab2e769104 | [] | no_license | dasherinuk/classwork | f004f7587157171cdb1c65b1eb13a721feb6c00b | 8b2efc055409576c59da878d293d8df6fd9ffb8e | refs/heads/master | 2023-06-04T16:08:53.299460 | 2021-06-19T09:18:20 | 2021-06-19T09:18:20 | 297,706,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | array=[]
for i in range(3):
pay=int(input("Enter the pay"))
array.append(pay)
print(max(array)-min(array))
| [
"dasherpegusus@gmail.com"
] | dasherpegusus@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.