blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a70c7ad6684dd6121db4c63219f381a8d520655e | eddb7468b7f1b54789893d509fbf119e0bbf1786 | /fetcher/BlessFetcher.py | dfd28dc77348cc81ddf4145907bb26bade96698a | [] | no_license | destinationluo/wedding-invitation-analysis | e86f6568de96c2de2fb217de9f4af011c35d86fb | 5762faad61a2181e22004f4f0b0de2117235944c | refs/heads/master | 2020-04-10T13:54:04.040371 | 2018-12-13T16:00:44 | 2018-12-13T16:00:44 | 161,061,875 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | # -*- coding: utf-8 -*-
__author__ = 'luoqian'
from datasource.MySQLUtil import *
class BlessFetcher(object):
def __init__(self, mysqlUtil: MySQLUtil):
self.mysqlUtil = mysqlUtil
def fetch(self, callback):
sql = "SELECT * FROM bless order by id desc"
self.mysqlUtil.executeQuery(sql... | [
"359583129@qq.com"
] | 359583129@qq.com |
b99ab818fca8289648830abc2a851b6e7323a5e5 | 2e60017779c5c286629ab5a3a7aeb27a6b19a60b | /python/2017day19part2.py | 7f09c5b24ce6b8bf021a566185e157549778341b | [] | no_license | jamesjiang52/10000-Lines-of-Code | f8c7cb4b8d5e441693f3e0f6919731ce4680f60d | 3b6c20b288bad1de5390ad672c73272d98e93ae0 | refs/heads/master | 2020-03-15T03:50:38.104917 | 2018-05-07T04:41:52 | 2018-05-07T04:41:52 | 131,952,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Dec 19 13:21:23 2017
@author: James Jiang
"""
all_lines = [line.rstrip('\n') for line in open('Data.txt')]
all_lines_chars = []
for i in range(len(all_lines)):
chars = [j for j in all_lines[i]]
all_lines_chars.append(chars)
index_list = 0
index_all = 0
for i i... | [
"jamesjiang52@gmail.com"
] | jamesjiang52@gmail.com |
fd7f5b88078d711bac7bdf0f27f98fde59b8178f | 0eddf1bd369bb2120607a0e8f0ca292a9f306005 | /tanky/tank_survival.py | 5cf9fcb19454406ddea1fc045c49eb5f6361c255 | [] | no_license | alkareth/gitreries | a0347c09590201fbe51f60611191e390a7a793f3 | e3d6a9ac55d50113f0425f30cdaff590dc2c36cf | refs/heads/master | 2020-04-28T04:59:19.683899 | 2014-09-22T21:03:42 | 2014-09-22T21:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,110 | py | #!/usr/bin/python
# -*-coding:Utf-8 -*
# Copyright (c) 2013 NOEL-BARON Léo
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above c... | [
"leo.noel-baron@ens-rennes.fr"
] | leo.noel-baron@ens-rennes.fr |
b07e20842b46cac3da56fd62ca2c28f96062795b | f34184e6060b58680a9768c58f53e10ca17a0dc3 | /manage.py | 894acc68496b98d22c16a94be490e713ff01efaa | [] | no_license | ExtremelySeriousChicken/instaTravel | ee150249e6a4d061bfff1ec7f3ffa4ee11fff036 | d4dbb61ccea838197639f872cdfcd96af61eb91f | refs/heads/master | 2021-01-16T21:27:29.566892 | 2015-09-30T21:42:21 | 2015-09-30T21:42:21 | 42,782,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | #!/usr/bin/env python
import os
from app import create_app
from flask.ext.script import Manager, Shell
app = create_app('default')
manager = Manager(app)
if __name__ == '__main__':
manager.run() | [
"wijaya@umich.edu"
] | wijaya@umich.edu |
8ac9678fb6079ee9bfdb77dac2a762f5d30f718e | 2f1e83dc48cca5c14fad53ad95a4b920756508e4 | /src/z3c/menu/simple/menu.py | 02483430e7ffc333cd90b1dee8efeaea95e67078 | [
"ZPL-2.1"
] | permissive | ZeitOnline/z3c.menu.simple | c5839c70a3eaccc3c8a1a2f1e72de96b030f7176 | fc6f8ce8fddb5918a18e997e3adb53a58547b419 | refs/heads/main | 2023-02-22T19:45:47.983639 | 2019-12-12T10:14:33 | 2019-12-12T10:14:33 | 220,233,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,017 | py | ##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"tom.lazar@zeit.de"
] | tom.lazar@zeit.de |
984435c2ce0a43415fd4459d4871689edb1602c2 | f8141f06d7fb3f80788086669fb3bda86564aed5 | /Students/7-object-detection-frnn/cntk_helpers.py | d76e3c4124d1f1264447aed23227caa43b51421a | [
"MIT",
"CC-BY-4.0"
] | permissive | Azure-Samples/learnAnalytics-DeepLearning-Azure | bff46e9dbcd5c949e9e44cabed4c4db28d20df09 | 00df3cc0c98e8ed28bb33364138e748aa8364b5b | refs/heads/master | 2022-01-04T16:35:46.656647 | 2019-06-28T20:14:04 | 2019-06-28T20:14:04 | 102,758,327 | 8 | 6 | null | null | null | null | UTF-8 | Python | false | false | 38,360 | py | # Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE.md file in the project root
# for full license information.
# ==============================================================================
from __future__ import print_function
from builtins import str
import pdb, ... | [
"alikaz.zaidi@gmail.com"
] | alikaz.zaidi@gmail.com |
08de3983cade375a46349f7de656f9ca3a921a9e | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /PythonCrashCourse/chapter_06/exercise6_05.py | b03a04f3a086ec1337414ecd27d147eb1ba55d24 | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 660 | py | #!/usr/bin/env python3
rivers = {
'amazon': 'brasil',
'nile': 'egypt',
'mississippi': 'usa',
}
for river, country in rivers.items():
if river == 'mississippi':
print("The " + river.title() + " runs through " + country.upper() + ".")
else:
print("The " + river.title() + " runs t... | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
a8ed54d16d183772b2a0c8c2adc1a98cc0b4f006 | 4aa464b9fe64e12527524ae46e3fd52d8b555232 | /extractAndSplitSDF.py | 85d25b4018b9abb8dfe1959bc85bd7a588962811 | [] | no_license | amaunz/embrel | 8ebf669a6835b982761b2f7e9bde9434e3fd85c9 | 683b01fec6e7fe2f022e615c4325811d8dc09d62 | refs/heads/master | 2020-05-15T13:17:32.389335 | 2009-06-20T16:10:28 | 2009-06-20T16:10:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | import sys
import getopt
import re
import os
import openbabel, pybel
def setHash(hash,key,value,debug=False):
if debug:
print 'debug::%s' % key
try:
hash[key] = value
except:
print key
pass
class SDFReader:
molecules = {}
fieldStructure = {'animals' : ['Dog_Primate... | [
"andreas@maunz.de"
] | andreas@maunz.de |
87962fc9bba3e4a46ea7c5df4b6156a47c66f10c | b0dbeb89d8d38fc4b2106a1c8b2d8e8ff3613df2 | /PythonWorkspace/gui_basic/13_scrollbar.py | 5d943eae6182b94fe31e35c3754fdf8d80fb8874 | [] | no_license | kthoons/GAMEPROJECT_HP | 72781283f1b7d3876897d1adffac26f00d6e86de | 3be8ca49f3afa9acf1bd218d88a6527dcb7db24c | refs/heads/main | 2023-08-08T06:13:49.779406 | 2021-09-23T06:15:27 | 2021-09-23T06:15:27 | 400,940,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import tkinter.messagebox as msgbox
from tkinter import *
root = Tk()
root.title("Nado GUI")
root.geometry("640x480") # 가로 * 세로
frame = Frame(root)
frame.pack()
scrollbar = Scrollbar(frame)
scrollbar.pack(side="right", fill="y")
# set 이 없으면 스크롤을 내려도 다시 올라옴
listbox = Listbox(frame, selectmode="extended", height=10, ... | [
"kth9987992@gmail.com"
] | kth9987992@gmail.com |
1ac8ce3173f8967879bd1f5d721a6f3791638038 | f75f1f755d464462503753622097cb4865bd6d8f | /main.py | c9e701ca1b6bddeccf8b1dd39e253b4e15ff3732 | [] | no_license | AderonHuang/deellearning | b4596b87f8f2bfb99851251e2bbea830a4a4cab2 | 9297710d73b4860f46c98131b0811db3705d0206 | refs/heads/master | 2020-05-18T16:49:22.150839 | 2019-05-02T09:52:04 | 2019-05-02T09:52:04 | 184,536,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,862 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 21 20:10:19 2019
@author: aderon
"""
import argparse
import os
import shutil
import time
import math
import warnings
import model
from utils.modelMeasure import measure_model
parser = argparse.ArgumentParser(description='PyTorch Condensed Convolut... | [
"790869148@qq.com"
] | 790869148@qq.com |
47680cba77916a8d702cd13fc068011a0a87a7ee | da7200ccf10961939c69b0fb853aedfc9bf55e39 | /ChatOnline/venv/Scripts/pip3.6-script.py | 27b65484531086c3ef62cdd075c9425566ee6f8a | [] | no_license | wjcml/blog-python | 98a061d3061d1f4780693ba2d432354527e4e792 | 9a5731d5feb88c39cb4d1affa765a3536cb521da | refs/heads/master | 2022-12-07T11:50:26.035921 | 2019-07-18T02:18:08 | 2019-07-18T02:18:08 | 155,163,851 | 0 | 0 | null | 2022-11-22T03:33:02 | 2018-10-29T06:39:39 | Python | UTF-8 | Python | false | false | 408 | py | #!C:\Users\w\Desktop\ChatOnline\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"37792055+wjcml@users.noreply.github.com"
] | 37792055+wjcml@users.noreply.github.com |
ff54bcbdb3d753c978d4824da04afe0a6e6e7819 | 0cd461bdbe59eb80bf17483b1d20a3e6fbd52627 | /api/migrations/0002_ourteam_user.py | ad293bfa74ab57113b4eb84ac21ecac9d433691a | [] | no_license | cawirawa/SolarCarWebsiteBackend | f63420e81a4a02abf81c3db53b7fc7554e7c0bd2 | c77e9badf2ec2bff20c16b4a25eff3303d78d5f0 | refs/heads/master | 2021-05-17T17:37:31.588220 | 2020-02-24T22:39:26 | 2020-02-24T22:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # Generated by Django 3.0.3 on 2020-02-23 04:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0001_initial'),
... | [
"57200820+cawirawa@users.noreply.github.com"
] | 57200820+cawirawa@users.noreply.github.com |
7f2946f9d7b284aa351af1865732bd4fa135c038 | 533109348eb19de5a1a54a8f42d7f40ebb52c826 | /scripts/GenerateFracturePoints.py | e33d7b1790f2c4fe364f891d3d9158460e4a185a | [] | no_license | adamalsegard/ShatteringWood | 514eca6cc53eea465610c658fe0da16247e65462 | 77f911412a6f7777082be30574eb6362263d2843 | refs/heads/master | 2021-08-30T11:11:18.398697 | 2017-12-17T16:50:51 | 2017-12-17T16:50:51 | 110,939,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,632 | py | # GenerateFracturePoints
# My first try for to generate fracture points in the table
import maya.cmds as cmds
import random
import math
# Get object to be shattered (our table)
cmds.select('roundTable')
selected = cmds.ls(sl=True, transforms=True)
obj = selected[0]
print(obj)
# Get center point of collision (in our ... | [
"adam.alsegard@gmail.com"
] | adam.alsegard@gmail.com |
1e34f027687a6904c102edd621ee52069a4e3345 | 344fb29521745762704fc9d24731068ec8b5fdc6 | /DatabaseRepo/DatabaseAssignment.py | e3cb781366dc284ee3451ff6652e12f9d6c866c5 | [] | no_license | AliceHincu/FP-Assignment06-10 | bc39105f38c9e2f4a78cb31fae2a84b40a8a72ea | 256664327de10fcade5b5ab917747e966c8457d8 | refs/heads/master | 2023-07-30T05:57:12.294946 | 2021-09-19T17:22:51 | 2021-09-19T17:22:51 | 408,190,792 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,430 | py | import sqlite3
from sqlite3 import Error
from domain.Assignment import Assignment
from repository.assignment_repo import AssignmentRepo
class AssignmentSqlRepo(AssignmentRepo):
def __init__(self, database_name):
super().__init__()
self._database = database_name
self._connection = self.crea... | [
"53339016+913AliceHincu@users.noreply.github.com"
] | 53339016+913AliceHincu@users.noreply.github.com |
889ad5dc334108a9058a2b96c11c9e8dcef700fe | 2574a48e1cd547c002198ae0939ee86366feb399 | /dianshi_gaofenbei_1901/BandSelection_v3.2.1/render_point_mp.py | 7b3a719a5e85b3fe474fdb4de4738accbfedf5df | [] | no_license | BasicPower/tianchiorgame | 32db8a2340dba22313f95464fcaa7d90ec2b1a12 | 765206f15eb6b0a6514d1b6cc6e1291cf41c0ac5 | refs/heads/master | 2020-06-25T15:53:58.055117 | 2019-07-20T03:39:56 | 2019-07-20T03:39:56 | 199,358,573 | 1 | 0 | null | 2019-07-29T01:45:48 | 2019-07-29T01:45:48 | null | UTF-8 | Python | false | false | 2,598 | py | import numpy as np
from osgeo import gdal
import keras
from multiprocessing import Pool
import multiprocessing
import os
import datetime
import cv2
np.set_printoptions(threshold=np.inf) # 使print大量数据不用符号...代替而显示所有
def get_cell(pos_x, pos_y, size):
up = int(pos_x - size / 2)
left = int(pos_y - size / 2)
... | [
"lishihang@live.cn"
] | lishihang@live.cn |
5886a4377415980cdb4a50842f1be1637e4b2dc2 | 0c94acc3b18504d43072b1331d638ee97b80b7be | /cite/objects/account.py | ec3392565bd653ae4d0be04abb9624018848ce84 | [] | no_license | fairay/CourseDataBase | b0b742e6a348b169216fed38efc1471c08c784ce | d005e681d981d09567dd8ee7774808bba3120d04 | refs/heads/main | 2023-05-27T11:45:30.809962 | 2021-06-10T14:55:00 | 2021-06-10T14:55:00 | 336,570,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | from .base_object import *
class Account(BaseObj):
_login = None
_salt = None
_hashed_password = None
_pers_type = None
def __init__(self, **init_dict):
super(Account, self).__init__()
if init_dict is None:
return
self._login = init_dict['login']
self.... | [
"48217178+fairay@users.noreply.github.com"
] | 48217178+fairay@users.noreply.github.com |
2d3afd3ed978f3045b71870dc694e6614c3ae68a | efefea6831ce0a81d1d531d2f668fa3915e8af05 | /virtualenv/Scripts/django-admin.py | 1130bc292840785ac476f52e276ba14ac8eaff05 | [] | no_license | arturlazzarini/tdd-project | 0d28ae50b028ca86cc89e272233cda2191c8c028 | 0c720c76594830f4ff7a4030798acb7392185bc6 | refs/heads/master | 2023-03-21T01:11:57.875203 | 2021-03-03T18:54:40 | 2021-03-03T18:54:40 | 342,042,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | #!c:\users\artur\tdd-project\virtualenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"arturlazzarini@hotmail.com"
] | arturlazzarini@hotmail.com |
a1912ffe7b983cce6c3ec5119d89a01a0a747635 | fd02e8924ba325f2a62bbf97e460740a65559c74 | /PythonStart/0722Python/循环.py | 6e97b5c0cfd955e8823bf5ef1a968b1dc63d9ef4 | [] | no_license | ShiJingChao/Python- | 51ee62f7f39e0d570bdd853794c028020ca2dbc2 | 26bc75c1981a1ffe1b554068c3d78455392cc7b2 | refs/heads/master | 2020-07-08T00:05:16.532383 | 2019-10-14T15:19:49 | 2019-10-14T15:19:49 | 203,512,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # for i in range(1, 1001):
# print("第%d" % i, "次hello word", end=',')
# i=1
# while i < 100:
# print(i, end=" ")
# i += 1
a = 1100
b = 2255
print(a & b)
c = 0b100011001111
print(a&c) | [
"1015174363@qq.com"
] | 1015174363@qq.com |
a1861a296ca7e18981d23a4ef93d1ca6da824112 | b7a80424e870d79f3be5761b06ebe14c73d1b0c4 | /arena.py | 1054be472c65b3516770847b695927611fa46b27 | [] | no_license | MackRoe/Superhero-Team-Dueler_Term2 | a1bd7d9fed25d1b4f86e9cfed250b3b74058e164 | 41fc0829ed919c244d5dbcf9b9d1c7c79c9cb2d9 | refs/heads/master | 2020-09-13T13:45:03.504159 | 2019-12-09T22:00:44 | 2019-12-09T22:00:44 | 222,803,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,039 | py | from hero import Hero
from ability import Ability
from armor import Armor
from weapon import Weapon
from team import Team
class Arena:
def __init__(self):
'''Instantiate properties
team_one: None
team_two: None
'''
self.team_one = []
self.team_two = []
... | [
"elaine.music@students.makeschool.com"
] | elaine.music@students.makeschool.com |
99a1d8cfb3c20886f05f8dc1081afa36a59830e4 | 7f82582c13369fcfc1920f21006dde9a96580147 | /P2/src/p2_pathfinder.py | 1b3ad63ff764d9cf4de24ef1ad450f88cf8dc0a4 | [] | no_license | nnakano55/cmps146 | 868769a3055b571fc52741b002edf00de77b94ef | 23fc1075129e9199c037c63e1dfb0c294c23373b | refs/heads/master | 2020-03-30T10:54:34.935750 | 2018-11-03T00:59:25 | 2018-11-03T00:59:25 | 151,142,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,106 | py | """
P2 Navmensh Pathfinding
p2_pathfinder.py
Programmers:
Xuya Gao
Noriaki Nakano
"""
from heapq import heappop, heappush
def find_path (source_point, destination_point, mesh):
"""
Searches for a path from source_point to destination_point through the mesh
Args:
source_point: starting po... | [
"nnakano@ucsc.edu"
] | nnakano@ucsc.edu |
37cb554a74802779f0c4c92af616b37f2c942da0 | 7dfef2c31feb94075879ad93532706c214829618 | /main.py | 78b03b2de711bb7a159a25a0279ed3dfe7a73861 | [] | no_license | Badruzaman/HousePricePrediction | 78ad72157dbe045416b25e2e078ec2ff0365e076 | a250bb4e0ff5107380740a4f15da7060333dd1ef | refs/heads/master | 2023-04-14T10:04:24.784211 | 2021-04-10T05:46:22 | 2021-04-10T05:46:22 | 354,268,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LinearRegression
from sklearn.datasets import load_boston
USAhousing = pd.read_csv('USA_Housing.csv')
X = USAhousing[['Avg. Area Income', '... | [
"badru.cse@gmail.com"
] | badru.cse@gmail.com |
45f919c1e8cc79547c2bb908554234fb0c5e53df | 18af4a04e10ebc60d87269b95a5260af53222e4b | /Rest-API-master/sparks_crud/urls.py | 2270cf0187e2e978f7f4d1666dafc96ef41dc850 | [
"MIT"
] | permissive | shantanu9999/geo-student | 4b522dc9c450e0d297dbe38c784cea5c720fa719 | 5328e23516a4fc3aa776a78956dcb89140da7a8e | refs/heads/master | 2022-12-15T01:55:49.187949 | 2020-09-10T11:58:56 | 2020-09-10T11:58:56 | 294,393,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """sparks_crud URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"33569669+shantanu9999@users.noreply.github.com"
] | 33569669+shantanu9999@users.noreply.github.com |
effcba7200670626e61fa5818b4e690320046b98 | 8458686e40bc64d904cc2b399f294493fddc515b | /kerasenv/lib/python3.8/site-packages/pip/_internal/build_env.py | 8a492395b9e7728f1a1200e5ae40661d54fe7165 | [] | no_license | gtatiana/news-sift-bot | e976013a56357a0b7a4e7a16291aa19dd79bb6a5 | 79fb81ddc8a60df4539af0f67b6c838d91c5ea94 | refs/heads/master | 2023-04-23T11:29:31.530703 | 2021-03-26T16:26:04 | 2021-05-03T11:09:28 | 360,166,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,215 | py | """Build Environment used for isolation during sdist building
"""
import logging
import os
import sys
import textwrap
from collections import OrderedDict
from distutils.sysconfig import get_python_lib
from sysconfig import get_paths
from pip._vendor.pkg_resources import Requirement, VersionConflict, WorkingSet
from ... | [
"tanyaluzyk@gmail.com"
] | tanyaluzyk@gmail.com |
ef9982dbd00c0be1ec1e801aafd4023e2f2340d2 | a78c217242d52bb5a49c256e3f89276b3ba99b5f | /scripts/select_reefs.py | cc28aa269ea620b636c176f0f189481ef90024c1 | [] | no_license | mnksmith/oceana_MPAfishing | d84de3f0ba6ed0ba55f44016f99d822082181b3e | 7bb799d5c4164d657ab20841f9483ba6194d65c9 | refs/heads/master | 2021-06-15T23:53:28.723502 | 2021-02-19T01:55:21 | 2021-02-19T01:55:21 | 141,143,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | # -*- coding: utf-8 -*-
import shapefile
import fiona
from shapely.geometry import Point, shape
import pandas as pd
from unidecode import unidecode
#select all MPAs containing reef habitats (1170)
#read in shapefile
#polygons = [pol for pol in fiona.open("/Users/mnksmith/Documents/Oceana_MPA_data/HELCOM_MPAs/HELCOM_... | [
"noreply@github.com"
] | noreply@github.com |
de9981ffdcab19bc3f4efa3301cfdeb69aef2784 | 04b11043d35b42c19be33ec9a9e2d590ecafea93 | /convert.py | 17e20ba2b632b2c92ac140335439f09769e3f1bb | [] | no_license | 5ymmetric/SURGE-SPI | 41c535f8d82c308465123adcdf0e3813dd3ad70e | 54d847dc295ded22d4af33b49d0c44bb5837b36b | refs/heads/master | 2022-11-14T22:20:38.194370 | 2020-07-01T19:52:06 | 2020-07-01T19:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | import os
from glob import glob
import gdal
import numpy as np
import netCDF4 as nc4
from netCDF4 import Dataset
import datetime
import gc
wdir = 'C:\\Users\\Karthik.P\\OneDrive\\Desktop\\Research_SPI_Calculations\\Clipped\\India_Clipped'
odir = 'C:\\Users\\Karthik.P\\OneDrive\\Desktop\\Research_SPI_Calculations\\NetC... | [
"noreply@github.com"
] | noreply@github.com |
c4a90a7640739540ed89ba40691e097d9a60fdc8 | c16ac731e1f9a940873dd6e5ee397ffec184a07e | /DataPull_WorldBank.py | 5aaa13e410782e11f356ecdfd6ddcbacb7e44e2c | [] | no_license | athornbe/UCDPA_AlanThornberry | 430caf5e2f3a0e6e059f9e510e1be790d997c294 | f9454ce2df87f712b49fd65a9ca26da3d5646954 | refs/heads/master | 2023-09-03T07:59:46.330988 | 2021-11-21T08:25:56 | 2021-11-21T08:25:56 | 428,390,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,249 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import quandl
# Change matplotlib parameters to ensure column names don't get truncated in the box plot
from matplotlib import rcParams
rcParams.update({'figure.autolayout': True})
#Read data from data.nasdaq.com via an API
# set quandl API key a... | [
"alan.thornberry@gmail.com"
] | alan.thornberry@gmail.com |
a2cfd5e483d4082c18fb3e4fd15d7a66f8e7946c | 292c8f912492e97ecb852437bba4e7294833f514 | /Figures/fig_scatterplot_task_score_egoallo.py | e9a37c438e6457eedfb5b61243ab8b3920f48715 | [] | no_license | CornuA1/lntmodel_final | e47971ce3d36bd6ef8a0b1f125c706663752c307 | 1dd732ae86c1f8680fbf0f6d8e1c0ec3a7fd22cb | refs/heads/main | 2023-07-11T13:23:09.607029 | 2021-08-13T16:15:00 | 2021-08-13T16:15:00 | 395,445,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,410 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 21 13:36:14 2021
@author: lukasfischer
"""
import csv, os, yaml, warnings
import numpy as np
import scipy as sp
from scipy.io import loadmat
from scipy import stats
import matplotlib.pyplot as plt
plt.rcParams['svg.fonttype'] = 'none'
plt.rcParams[... | [
"l.fischer@protonmail.com"
] | l.fischer@protonmail.com |
56fe690f573e1bcd1c237c4fc714e06af528d8d6 | ceb3d82494813cd21e38231964e098bb3efe093b | /Transform/matrix_transform.py | b31c53519cc07e99f7fae2eaae98fa5108272797 | [
"Apache-2.0"
] | permissive | Joevaen/Scikit-image_On_CT | 0c0a306a9ca18668bd9bb4105e577766b1d5578b | e3bf0eeadc50691041b4b7c44a19d07546a85001 | refs/heads/main | 2023-03-16T01:28:04.871513 | 2021-03-16T07:53:57 | 2021-03-16T07:53:57 | 344,071,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | # 应用2D矩阵变换 | [
"joevaen@126.com"
] | joevaen@126.com |
c7e32b7956006589585393f647556ed9c81dfb10 | 7f25740b1ef47edc24db1a3618b399959b073fe1 | /1105_08_closer.py | 60b915e8ee1fc7296456e8dbffab48f45dbbce39 | [] | no_license | pjh9362/PyProject | b2d0aa5f8cfbf2abbd16232f2b55859be50446dc | 076d31e0055999c1f60767a9d60e122fb1fc913e | refs/heads/main | 2023-01-09T12:12:06.913295 | 2020-11-07T15:32:03 | 2020-11-07T15:32:03 | 306,814,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | '''
x = 10 #전역 변수
def foo():
print(x) #전역 변수 출력
foo()
print(x) #전역 변수 출력
'''
def foo():
x = 10 # foo의 지역 변수
print(x) # foo의 지역 변수 출력
foo()
print(x) # 에러. foo의 지역 변수는 출력할 수 없음
| [
"pjh9362@gmail.com"
] | pjh9362@gmail.com |
86760ff1101f035e356a326d9765f3a2aed65dfa | 6ee0b885c76d2432d17b5f26590062018a6e3416 | /configs.py | 4629ae35bbf526995d799cecb0d7e30693c2a28d | [] | no_license | cannyanalytics/Expired-Domain-Names-Scrapper | d711455ba80c17b74933d9dc0437a6bd107a0f6a | 3c63e794dd7263843ae1b101d8cad99d47db6313 | refs/heads/main | 2023-07-13T12:56:26.169061 | 2021-08-28T23:15:44 | 2021-08-28T23:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | username = 'seouser'
password = 'fakepass'
redirect_to_url = '/startpage'
| [
"tomoloju45@gmail.com"
] | tomoloju45@gmail.com |
30cddb6c1b1f8d348c3d729945e222719e0af836 | 7928200959c0b369239917d1993ba5f9e0400109 | /其他/消除小碎斑.py | bb664b3d8bd7458d96bc2cea1d26a161bc0c24ae | [
"MIT"
] | permissive | chenjl0710/arcpyTools | 30b14e580125e115dd62d49b24af0f81a8dbb419 | 4f31e79f402cc2a0827450ab3aaba8f8d9a5f502 | refs/heads/master | 2022-11-24T00:49:41.802612 | 2020-08-26T03:28:29 | 2020-08-26T03:28:29 | 141,035,441 | 2 | 1 | MIT | 2022-11-22T01:10:07 | 2018-07-15T14:47:02 | Python | GB18030 | Python | false | false | 3,023 | py | # -*- coding: cp936 -*-
import arcpy
import time
import os,shutil
#将面积小于阈值的图斑和其相邻面积最大的图斑融合
arcpy.env.overwriteOutput = True
def EliminateSamllArea(shp):
# try:
# arcpy.AddField_management(shp,"Area","LONG",9,2)
# except:
# print "Area field already exists!"
#
# print "Calculating... | [
"32512198+chenjl0710@users.noreply.github.com"
] | 32512198+chenjl0710@users.noreply.github.com |
43a263b58905712fcc792c7528cd6f6ff6cfa9ed | bb759eba1926d55171f82a0a83bd94460b8ce007 | /Likit5k.py | c6b0c95c784cbdec03b9b37136b2e308cde53e59 | [] | no_license | tankeng/edit | 1afb188ff629738aef214684973b7e7c93377a4f | 74f2165e7a0784706cf9d1393ffa6f21d1fea684 | refs/heads/master | 2021-04-25T17:16:49.939085 | 2018-02-14T07:52:58 | 2018-02-14T07:52:58 | 121,477,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 283,976 | py | # -*- coding: utf-8 -*-
import LINETCR
from LINETCR.lib.curve.ttypes import *
from datetime import datetime
import time, random, sys, ast, re, os, io, json, subprocess, threading, string, codecs, requests, ctypes, urllib, urllib2, urllib3, wikipedia, tempfile
from bs4 import BeautifulSoup
from urllib import urlopen
fr... | [
"noreply@github.com"
] | noreply@github.com |
406225491fb5bbdad17cb62a720eb610806512f7 | 9940c07fa8f8c8e7675a5f197f25b2185fe7fa4d | /request_test.py | 34bfbf358aca0e3b06c933b1afcf96635f508074 | [] | no_license | froggermtp/key-detection-test | 85700aeffde93a2944fa79f1e2bb4933ef9a4f60 | 117adee7bc4cfbe6b6a7587119a9c798bf47aedc | refs/heads/master | 2020-12-21T09:56:52.917833 | 2020-04-22T05:11:21 | 2020-04-22T05:11:21 | 236,393,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | import requests
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("image")
args = parser.parse_args()
file = open(args.image, "rb")
r = requests.post("http://127.0.0.1:5000/predict", files={'file': file})
print(r.text)
| [
"mfrogparris@gmail.com"
] | mfrogparris@gmail.com |
ccece3b514376b0b04b602fc979c2d7d8f934f5b | 7383fda959b1a2600c0fae350b5b4bc341c155bb | /pygithub3/resources/base.py | 4ca2aa334de44aac13c88418b0c0467529a836c9 | [
"ISC"
] | permissive | agargiulo/python-github3 | 1e1eeea6e59ebc1ea1cd222ab31d065407110867 | 78b74c3afe37f4172d6b933a90757256efb8ff9b | refs/heads/master | 2021-01-16T21:00:05.551844 | 2012-06-15T19:52:39 | 2012-06-15T19:52:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,891 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
try:
import simplejson as json
except ImportError:
import json
class Resource(object):
_dates = ()
_maps = {}
_collection_maps = {}
def __init__(self, attrs):
""" """
self._attrs = attrs
self.__set_attrs()
def __se... | [
"davidmedina9@gmail.com"
] | davidmedina9@gmail.com |
9359e762b8b25c861b32337ae9f6b139862987da | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/PyBox/pybox2d-android/examples/.svn/text-base/pyglet_framework.py.svn-base | 94e88482c339765bee83db8a62e627517c221639 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 21,827 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# C++ version Copyright (c) 2006-2007 Erin Catto http://www.box2d.org
# Python version Copyright (c) 2010 kne / sirkne at gmail dot com
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any ... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com | |
cb02822c052b15bed81ce10b37ee944716a7fd60 | 9624d15edc242e324666a65bf05bc073ff112bc9 | /TokenAuth/taskpro/taskapp/admin.py | 6ff593f1395ae012e8b712d1ace020cb567b0162 | [] | no_license | nivyainventateq/DjangoToken | 91bf907cb73cd601afe0c2af4eacba6297ec0e4b | 872e6d1cf9d5daf1a30b4c682ca42e293518196e | refs/heads/master | 2023-05-30T20:56:11.866695 | 2021-05-29T18:57:49 | 2021-05-29T18:57:49 | 372,049,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.contrib import admin
from taskapp.models import User
admin.site.register(User)
| [
"“nivyainventateq@gmail.com”"
] | “nivyainventateq@gmail.com” |
650bd45431b3d89a63d350aea8d1ed1d932bb642 | bec3798f114b660efb6242d1e9bade880f812688 | /lab8/wordsImplement2.py | 5d6a360fcd204df46a75c95090e08999d249d2b9 | [] | no_license | schnapple/csci2961-master | 9885174763ee928cc4729f1ceb3f50d94bcb54d6 | 19a62b56c2a185ce74eb9e76261c3f8e220fa8da | refs/heads/master | 2016-09-05T14:19:21.097147 | 2015-11-13T18:39:02 | 2015-11-13T18:39:02 | 42,084,198 | 0 | 0 | null | 2015-09-30T04:09:08 | 2015-09-08T02:03:05 | Python | UTF-8 | Python | false | false | 4,618 | py | """
SGBWords() returns an undirected graph over the 5757 5-letter
words in the datafile words_dat.txt. Two words are connected by an edge
if they differ in one letter, resulting in 14,135 edges. This example
is described in Section 1.1 in Knuth's book [1,2].
References.
----------
[1] Donald E. Knuth,
"The Stanf... | [
"plagam95@gmail.com"
] | plagam95@gmail.com |
bdfbd75b775053496065a6c56c132ee2c8f8aaa7 | e636b487379e6428e3d453fe1bb500d8d6b9fb40 | /0x03-python-data_structures/8-multiple_returns.py | 8f3f0ffa3826dce72e18831873a2f50df10a4618 | [] | no_license | Ethan-23/holbertonschool-higher_level_programming | 49ce96d5f771b8158f8f9495eb608ac251b06811 | 18075dcaa0e599e27a364b4161f1721e4b8d7b27 | refs/heads/main | 2023-05-02T02:30:06.855863 | 2021-05-13T03:06:27 | 2021-05-13T03:06:27 | 319,458,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | #!/usr/bin/python3
def multiple_returns(sentence):
if len(sentence) == 0:
tuple_empty = (0, None)
return tuple_empty
tuple_1 = (len(sentence), sentence[0])
return tuple_1
| [
"emanroberts@gmail.com"
] | emanroberts@gmail.com |
0b4c09b49d4e4bade511307fd9dd8f06b83a2362 | f39dfb5b634410851f276b065c926b4cf42ae078 | /figuras/PycharmKayStatisticalReport/kalman_filter_steady_state_example.py | 02c933d3ccd530bee2c37762ee13893e5d6740f5 | [
"MIT"
] | permissive | santoshmore85/estudiando_el_kay | 9fc57d2bbd884a4188a93a15a00436947d60338f | 787f9b2599efeea93c1cf67408edcf1fa199c9b7 | refs/heads/main | 2023-08-26T23:05:00.701166 | 2021-10-29T21:49:08 | 2021-10-29T21:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,663 | py | import matplotlib.pyplot as plt
import numpy.polynomial.polynomial as poly
import numpy as np
from scipy import signal
from matplotlib import rc
from matplotlib import rcParams
__author__ = 'ernesto'
# if use latex or mathtext
rc('text', usetex=True)
rcParams['text.latex.preamble']=[r"\usepackage{amsmath}"]
# color... | [
"bor9net@gmail.com"
] | bor9net@gmail.com |
9049cd5710e2708895a539776b48cf2983cf166f | 26354ac2ef71f53be0078116a46f917bf00059df | /venv/TP1/Exo4.py | 04b4552a3f79af073befbe3c57245cc2a0018d40 | [] | no_license | rraattnnii/MyPythonProjects | 151d8c4442a564fad0c405033413f303f7be6ac5 | da609d2c56ce798f760f4abb0a14d1523f9d2ae3 | refs/heads/master | 2020-09-08T14:25:56.274227 | 2019-11-12T07:58:39 | 2019-11-12T07:58:39 | 221,156,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | print("\n^^^^^ Exercice 4 : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^")
# Exercice 4 :
nomComplet = input("Saisir votre nom complet : ")
#nom_et_prenom = nom +" "+ prenom
age = input("Saisir votre age : ")
print(nomComplet + ", vous avez : " + age + " ans") | [
"mohmetal@live.fr"
] | mohmetal@live.fr |
8dd569a4cc2395fcad9de9cb3f157101eddf1301 | 31575b9e0f5c494afe665f79d1f44540c0a98922 | /meiduo_mall/meiduo_mall/utils/response_code.py | 2c5221eaf885a24e33c8b53f6b2359be7097a3d9 | [] | no_license | wisdomsys/meiduo_project | 490e73fcd96cf52c759f359a4c72f2aadcd9e806 | e12de180c3d2cb401c560728c3542a20a8dec7b8 | refs/heads/master | 2023-01-10T21:15:46.752367 | 2020-11-10T02:35:11 | 2020-11-10T02:35:11 | 310,580,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | class RETCODE:
OK = '0'
USERERR = '4004'
err_msg = {
RETCODE.OK: '成功'
}
| [
"1396871335@qq.com"
] | 1396871335@qq.com |
e45a01330d9e90fa76dea147d9fc060e42d10c77 | 9044b440bed2b8407ed9e04f7fb9d3d2a7593136 | /vision/classification/slim/image_models/finetune/train.py | b15420b6bf71de14a447e1b40980949e6c95830b | [] | no_license | xuzhezhaozhao/ai | d4264f5d15cc5fa514e81adb06eb83731a0ca818 | 925cbd31ad79f8827e2c3c706f4b51910f9f85d1 | refs/heads/master | 2022-01-22T07:04:29.082590 | 2022-01-17T06:49:39 | 2022-01-17T06:49:39 | 136,691,051 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,638 | py | #! /usr/bin/env python
# -*- coding=utf8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
import input_data
import hook
import build_model_fn
def build_estimator(opts):
"""Build estimator."""
num_samples_per_epoch = l... | [
"zhezhaoxu@tencent.com"
] | zhezhaoxu@tencent.com |
4f596c420101e3d0cb7db56aec280d763311ef13 | 6f04a6ef99c581ed2f0519c897f254a7b63fb61d | /rastervision/data/vector_source/default.py | 3946d67b4fa693f28e9a6590c44f1eadb29e48b8 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | dgketchum/raster-vision | 18030c9a8bfe99386aa95adbf8e3ec51d204947f | fe74bef30daa5821023946576b00c584ddc56de8 | refs/heads/master | 2020-08-30T13:56:08.598240 | 2019-11-03T17:38:33 | 2019-11-03T17:38:33 | 218,400,435 | 3 | 1 | NOASSERTION | 2019-10-29T23:09:57 | 2019-10-29T23:09:57 | null | UTF-8 | Python | false | false | 1,230 | py | from abc import (ABC, abstractmethod)
import os
import rastervision as rv
class VectorSourceDefaultProvider(ABC):
@staticmethod
@abstractmethod
def handles(s):
"""Returns True of this provider is a default for this string"""
pass
@abstractmethod
def construct(s):
"""Const... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
e33911f4ff39e954282be6c971e468995f91606c | 0d32e3819606c3fb6820d0cd5f5097db3b0d3dd4 | /HW3/sarsa_mountain_car.py | 0d4789ce9c45fd1092146fe290050525440869d0 | [] | no_license | IanCBrown/COMP5600 | e8e06b2a8e3bde0acc6897adb2396a57a2811f0a | ef454c009d6fd5eec50ceec5a8283a7c6d81d097 | refs/heads/master | 2020-08-02T13:20:41.024681 | 2019-12-09T03:53:37 | 2019-12-09T03:53:37 | 211,366,293 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,189 | py | import math
import numpy as np
import matplotlib
matplotlib.use("TkAgg")
from matplotlib import pyplot as plt
import gym
from gym import spaces
from gym.utils import seeding
# Resources:
# https://en.wikipedia.org/wiki/Mountain_car_problem
# https://towardsdatascience.com/getting-started-with-reinforcement-learning-... | [
"icb0004@auburn.edu"
] | icb0004@auburn.edu |
44821bdff3b8556116c400a1b2f16fed3d49ee25 | 9de2ba9978d133ea5ad78510de041487f1877816 | /service/inter/__init__.py | fa0054bcb1ef57f621ac53796bf314e55c215296 | [] | no_license | yaochenkun/aialg-python | bc25e18d7bb76dcecaa18f10dff2444e3f0cc8dd | cce090eeda491f5d2eef08b3ba0b54e303042aad | refs/heads/master | 2021-09-13T09:02:41.298523 | 2018-04-27T12:36:51 | 2018-04-27T12:36:51 | 108,155,303 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | __all__ = ['ttypes', 'constants', 'nlp_alg_service', 'image_alg_service', 'speech_alg_service', 'video_alg_service']
| [
"liwangadd@gmail.com"
] | liwangadd@gmail.com |
b31f396350cbbd37359e1a9e342d4727d49e9c68 | fd11966649c70d561ef66358e6fe34594e6afa93 | /Lab 4/planning.py | ffeb050e872dc029b2985dec1081f19221b8bb14 | [] | no_license | parasj/CS3630 | 8836fa70e8a12a32f7c555d8836d33d545a031d2 | baec4db82b9855c0f4b8abce833755f523022bf4 | refs/heads/master | 2021-03-16T08:28:55.779414 | 2017-04-25T20:58:45 | 2017-04-25T20:58:45 | 80,070,243 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,744 | py |
#author1: Paras Jain
#author2: Connor Lindquist
import asyncio
from grid import *
from visualizer import *
import threading
from queue import PriorityQueue
import math
import cozmo
from cozmo.util import degrees, distance_mm, speed_mmps
# State globals
ix = 0 # initial x position
iy = 0 # initial y position
grid_sca... | [
"parasjain@parasjain.com"
] | parasjain@parasjain.com |
581cec1c23e01efee6f3cfc052c5291558001790 | 66f6b8dfbbaff85ba57bf9c2baec4450ca37bfef | /allennlp/data/dataset_readers/penn_tree_bank.py | 0cd9135f8002e015b053d73db9fbefa73432d0fd | [
"Apache-2.0"
] | permissive | siddsach/allennlp | cccae3063a20bd2093cd0543278ea2fc9e4a2cf8 | 17eaf449020d7307fca7aec901043dc43a16ff59 | refs/heads/master | 2021-04-06T07:30:49.620074 | 2018-03-17T08:51:03 | 2018-03-17T08:51:03 | 124,619,246 | 0 | 0 | Apache-2.0 | 2018-03-17T08:51:04 | 2018-03-10T03:38:59 | Python | UTF-8 | Python | false | false | 10,752 | py |
from typing import Dict, List, Tuple
import logging
import os
from overrides import overrides
# NLTK is so performance orientated (ha ha) that they have lazy imports. Why? Who knows.
from nltk.corpus.reader.bracket_parse import BracketParseCorpusReader # pylint: disable=no-name-in-module
from nltk.tree import Tree
f... | [
"noreply@github.com"
] | noreply@github.com |
96d43d8fa24fe2bf0141da26ab1de903a5a6164a | 6d3c865ce6d9c416d8d11e91d6571a5154b036cf | /js_vacancies/apps.py | c28e61b96619b705fa4509492f9bf1a51fea5e6d | [] | no_license | compoundpartners/js-vacancies | 2cc94c842df980be177c6fa64b3879b5dcc50bbc | 175d9f3673c7b002db5c0ea550bb0f29638b7cbb | refs/heads/master | 2021-07-17T05:41:29.800636 | 2020-07-07T14:25:28 | 2020-07-07T14:25:28 | 178,962,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | # -*- coding: utf-8 -*-
from django.apps import AppConfig
class Vacancies(AppConfig):
name = 'js_vacancies'
verbose_name = 'Vacancies'
| [
"evgeny.dmi3ev@gmail.com"
] | evgeny.dmi3ev@gmail.com |
5b377eddf555f4f895e5d9a03673fd35a5b796b4 | 801084adaaa40d9a0045ccf827be29b44426b4d1 | /assignment 5 bonus.py | 8ed8581c2894819415933a432815db1de8aa5026 | [] | no_license | RomanBallinFaxJah/Assignment-5 | 11023011b069ec6bd5d9da158cf6d7a39adacf3f | 9d8b15b55bbffe5c3109b7f2115f14a83eae2068 | refs/heads/master | 2023-05-22T17:12:04.427059 | 2021-06-12T20:06:33 | 2021-06-12T20:06:33 | 376,368,408 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from math import pi
#calculates circumference and area
radius = int(input('Enter radius: '))
area = pi * radius ** 2
circumference = 2 * pi * radius
#outputs area and circumference rounded to 3 decimal points
print(f'\nArea: {round(area, 3)}\nCircumference: {round(circumference, 3)}')
| [
"noreply@github.com"
] | noreply@github.com |
b2e0391d750efe19f614deb8c2bd1631da82841d | 5916383e8d3df886edd20ac00ce9706a78078f56 | /飞机大战/v2/world.py | 9e05cd9b131661fae9882e44e040079213137409 | [] | no_license | sczhan/wode | 556154e8ccaa9192ea257bc88df3c5e4b268f88e | af4c721d0cedfdd2fe01dd681539724d1d64c378 | refs/heads/master | 2021-07-06T22:26:34.465708 | 2020-09-04T18:56:38 | 2020-09-04T18:56:38 | 181,295,279 | 1 | 0 | null | 2019-09-09T16:30:00 | 2019-04-14T10:53:57 | Python | UTF-8 | Python | false | false | 1,656 | py |
import tkinter
"""
蜜蜂从上向下运动
可以通过键盘左右控制
"""
step = 0 # 计算器,计算一个走了多少步
direction = (1, 1)
x = 0
y = 10
def set_right(e):
"""
:param e:
:return:
"""
global x
x += 20
def set_left(e):
"""
:param e:
:return:
"""
global x
x -= 20
root_window = tkinter.Tk()
root_windo... | [
"5481493@qq.com"
] | 5481493@qq.com |
a5b9e77e1622370ce346f4060e2d06b8a3ed2ece | 8f6e1af18963f9a49ff1e8406191106f2ff4db99 | /login.py | ec3480d942532be129b9e6f5e937a084450a27d5 | [
"MIT"
] | permissive | HappyBoy007007/git_test | a68a685bb5403a9f6f6e638f51ceafe1fb6cab90 | 5b90390bbc404c494c4be5e90430a013fa587aad | refs/heads/master | 2021-08-22T06:20:28.306265 | 2017-11-29T13:52:08 | 2017-11-29T13:52:08 | 112,475,032 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | num = 10
num2 = 20
num3 = 3
num4 = 4
| [
"manager@163.com"
] | manager@163.com |
422c8872c99d21c97cee55dbcd14f7f7444269bc | 8e3faa9ffc472918a368baf08baab0fdda818aa7 | /numpy/basic.py | 3e02c6ae932f4dae0f25316f711d743d0042af0f | [] | no_license | seasea4/test | beb74151046ba2da4204103eb47645fdcba42c65 | 0f3b1d6c5a6a5e8eefce24fc92ed825eb8d2e043 | refs/heads/master | 2021-08-28T10:52:38.441418 | 2017-12-12T01:54:56 | 2017-12-12T01:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | import numpy as np
a = np.array([[1,2,3],[4,5,6],[7,8,9]])
print(a)
print(a.flags)
print("dimension" , a.ndim)
print("要素数", a.size)
print("shape", a.shape)
print("要素のデータ型", a.dtype)
| [
"platong@ocean.local"
] | platong@ocean.local |
586dd622119475aefed5f1cc9ae7c15634b326da | 0f147c8e301b36dd33ff15a93557b8758d3aabf0 | /book_examles/11_10 GRAPH.py | b0d71a1168bd794727366c057872919c71e5e18a | [] | no_license | maxsagitov/hello-world | ec786344e89ba19a66ea14ad68fec5cebb1ff297 | 33c59968181bbca3ed96172b8fa8c3e8ea254e6b | refs/heads/master | 2021-01-10T07:29:29.219304 | 2018-07-18T14:26:59 | 2018-07-18T14:26:59 | 51,152,290 | 0 | 0 | null | 2016-02-06T07:50:59 | 2016-02-05T14:47:28 | null | UTF-8 | Python | false | false | 782 | py | import tkinter
import random
import math
canvas_size = 500
npoints = 5
colors = ["red","orange","yellow","green","blue","cyan","magenta","light blue"]
root=tkinter.Tk()
canv = tkinter.Canvas(root, width=canvas_size, height=canvas_size, bg="white")
canv.pack()
def draw():
x = []
... | [
"maxsagitov@gmail.com"
] | maxsagitov@gmail.com |
0d26f422ee7d0c456dc605cbf5d8db0d626ba2a3 | b5dfd4f11558d8a42b59701bbfd459d8162d21cc | /online_messanger/clientui.py | 4e46f5764cb4d2ab90c0e6f6cef9eae825d5439b | [] | no_license | Makillaa/Messanger_PY | 232c5a6f4b2b8665684d49493ff14dd99c23ddf7 | f277a1d7d8bffea2f9ddf6150288dc1b58691d37 | refs/heads/main | 2023-04-23T18:27:05.845695 | 2021-05-11T21:57:19 | 2021-05-11T21:57:19 | 366,520,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,797 | py | # Form implementation generated from reading ui file 'messanger.ui'
#
# Created by: PyQt6 UI code generator 6.0.3
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
# The graphical part of the messenger, created in Qt an... | [
"1999gmo@gmail.com"
] | 1999gmo@gmail.com |
d398a866182a6242b7f52dfb076bc0db0fe74ef4 | 534aa8162cb988278eea3f41ce37c9bd36dfbb45 | /mysite/urls.py | 69ba143f5627b2bf90d1e2806c034d010e628131 | [] | no_license | Artemchik98/cook_book_vs_9_30 | ac5de23a6f58276dbbcf707524e7bd23da6e6969 | c9a5abe6f5b07439d72a4f943d1b920959ce2f74 | refs/heads/master | 2023-06-01T19:12:52.613553 | 2021-06-20T08:28:56 | 2021-06-20T08:28:56 | 356,616,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | 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 ... | [
"artem.svistelnik@gmail.com"
] | artem.svistelnik@gmail.com |
cf895f73715b3636d625dbe313c3f6691fe2b0e4 | ef3d00b8665e75c57ac4c3c933835a8237b3b979 | /1.py | 547bd98fc48a6563832902da4fc314f324521263 | [] | no_license | andywei513/python_project_andy1 | f12610f0da2913a09b4607659cbe558201f60d16 | 0ec1972affb13570ea9192fb3367c3d4c45cb78c | refs/heads/master | 2020-03-08T03:42:08.229297 | 2018-04-04T10:26:04 | 2018-04-04T10:26:04 | 127,898,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # -*- coding:utf-8 -*-
# python project for andy
# Author:'ahuang3'
# Time: 2018/4/3, 13:02
import numpy as np
import matplotlib.pyplot as plt
x = np.random.rand(1,10)
y = np.random.randn(1,10)
plt.plot(x)
plt.plot(y)
plt.show()
print (x)
#TODO
| [
"andy.huang@morningstar.com"
] | andy.huang@morningstar.com |
f5e26bb9443dd48bac9db4319fda8080bc02b761 | 1e4f1aa147a02dd47b8865d04ed46171cf312a26 | /historical/historical-toy2/netIO/ServerSimpleLoop/net_common.py | 99866561de7c21e6f41c07e8207d4e85e9853967 | [] | no_license | ziliangpeng/naoshima | d71ae8abbcd36c96da93c1460d38fe9135b4430c | d5b2648d95022e3810bfc9a25dadf8fe7cba5a17 | refs/heads/master | 2023-09-06T06:17:03.569270 | 2023-09-06T05:29:06 | 2023-09-06T05:29:06 | 100,778,986 | 1 | 0 | null | 2022-11-22T06:28:46 | 2017-08-19T07:47:31 | Python | UTF-8 | Python | false | false | 292 | py |
def handle_rev_str(conn):
l = ord(recv_n(conn, 1))
s = recv_n(conn, l)
s = s[::-1]
send_all(conn, s)
conn.close()
def send_all(s, content):
s.sendall(content)
def recv_n(s, n):
ret = ''
while len(ret) < n:
ret += s.recv(n - len(ret))
return ret
| [
"ziliangdotme@gmail.com"
] | ziliangdotme@gmail.com |
4dc4f06dcd7437e04f8a1ff2544e56c38996a789 | 43f5b8676f7666164a21be0a00aef6b93fb32c82 | /Load Balancer/Balanceador/pack_analysis.py | b47e4bd8be6f53184d0b610f92c385f7aa0998f5 | [] | no_license | ericrm24/showcase | efe5d22ffc681286990f8e3303941470d454d633 | f1c9682a944c2e2012bf6ca768b23f1d575dfa8c | refs/heads/master | 2023-03-18T08:36:59.124840 | 2021-03-07T18:38:23 | 2021-03-07T18:38:23 | 345,256,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | # Tomado de http://www.bitforestinfo.com/2017/01/how-to-write-simple-packet-sniffer.html
import socket
import struct
import binascii
class unpack:
def __cinit__(self):
self.data=None
# Ethernet Header
def eth_header(self, data):
storeobj=data
storeobj=struct.unpack("!6s6sH",storeobj)
destination_mac=bi... | [
"eric.rios@ucr.ac.cr"
] | eric.rios@ucr.ac.cr |
8fdb4d9c7e1167bf5251de6dd6debabbebd1071f | 09b42f77ffc0dfde5febc9d72d0df70cdebd2d56 | /landlab/grid/tests/test_raster_funcs/test_is_on_grid.py | d0f2d7c9bed16095103cdc71c4adb1ad630e1730 | [
"MIT"
] | permissive | srblack72/landlab | 44b26f85014c2a9993f2997386156978bf1fe7f6 | 55ccf7f899961b5bf495d1b077a699e2a97ebfb1 | refs/heads/master | 2021-01-16T21:31:00.699587 | 2014-05-22T20:34:47 | 2014-05-22T20:34:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import numpy as np
from numpy.testing import assert_array_equal
from nose import with_setup
from nose.tools import (assert_is, assert_equal, assert_is_instance,
assert_raises)
from landlab.grid import raster_funcs as rfuncs
from landlab import RasterModelGrid
def test_with_arrays():
rmg =... | [
"huttone@093548ea-dc74-4ebb-8037-4be9f23db00a"
] | huttone@093548ea-dc74-4ebb-8037-4be9f23db00a |
f6486ce6ff06211908b6be8003c1460abe1d9e0d | 5055f9df409767783de33a020e3eb1a5c378e429 | /looping/loop2.py | f74add30f4846df3bbc64bd5d65b6c52a142f851 | [] | no_license | andrewsokolovski/Python-learning | 5c981886898039eb57e61f38cf892bc23644a586 | b6e530a5bafe03e79222ebf0e41a7fe18fca4881 | refs/heads/master | 2023-07-08T20:19:06.073362 | 2021-08-19T09:17:03 | 2021-08-19T09:17:03 | 300,217,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import turtle
turtle.shape('turtle')
for i in range(0, 5):
turtle.forward(100)
turtle.right(72)
| [
"72194996+andrewsokolovski@users.noreply.github.com"
] | 72194996+andrewsokolovski@users.noreply.github.com |
9aa448374059d0676a08d21260a20ddf73c763fb | 05463cb39965208024aa691f501e112086f45715 | /testldap/settings.py | de29792f581a310fa01ae387f4db1921ce09b06b | [] | no_license | Melyxi/testldap | ea8bcaa078ad3601c92a2476dbe97523a2291696 | 8c052cc8403200ee8847d76cdbe98f109af9a968 | refs/heads/master | 2023-05-02T12:58:16.219280 | 2021-05-02T19:44:11 | 2021-05-02T19:44:11 | 347,760,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | py | """
Django settings for testldap project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"igorkuz2018@yandex.ru"
] | igorkuz2018@yandex.ru |
b7710b0c72571ba7df963198d2e9e46d1fbcc2be | 99aa48b929961a3e8ac238a1f51ce0b2499af2b7 | /exercises/dominoes/example.py | 031034f28ce3111e6846aae43160f6fd2ddd5c5b | [
"MIT",
"Python-2.0"
] | permissive | JodieHaywood/python-6 | b4dfbadcddd97d81e8bcb16b315395610f7fb8be | b71bfb6f82fb43d49752635d89eab843cb627e4c | refs/heads/master | 2020-03-30T13:24:16.929668 | 2018-10-02T12:45:25 | 2018-10-02T12:45:25 | 151,271,387 | 1 | 0 | MIT | 2018-10-02T14:46:03 | 2018-10-02T14:46:02 | null | UTF-8 | Python | false | false | 814 | py | from itertools import permutations
from functools import reduce
def swap(a, b):
return (b, a)
def build_chain(chain, domino):
if chain is not None:
last = chain[-1]
if len(chain) == 1 and last[0] == domino[0]:
return [swap(*last), domino]
elif len(chain) == 1 and last[0] ... | [
"nathan.parsons@warwick.ac.uk"
] | nathan.parsons@warwick.ac.uk |
1a56ce32cf2752a7fe134d978447571ef9758c2e | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/dialogflow/v2/dialogflow-v2-py/google/cloud/dialogflow_v2/services/entity_types/async_client.py | 21d695ce98ae5062c7c952f41a7a0a8c5056c830 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,710 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
ff0b74594ba1af28c3b2e0dc7d13cc69e7044588 | 247c7e157b08d14fb64f69fc1cde6c0da6dc3e24 | /pytrace/reader/trace_walker.py | 9ad35f38fb6e142e87da200e2fed539f49fc8eaf | [] | no_license | cloax/pytrace | 6212722231668e0caa31bf97167836f2c74afc68 | fc9f2057c8a50e95cb80ece3ef28029639bdd82d | refs/heads/master | 2021-01-15T22:52:46.629506 | 2012-08-16T08:07:16 | 2012-08-16T08:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | import time
import urwid
from .tables import DB
TIME_FORMAT = "%Y/%m/%d %H:%M:%S"
def prettify(trace):
time_str = time.strftime(TIME_FORMAT + ",{:.6f}".format(trace.time - int(trace.time)),
time.localtime(trace.time))
func_prefix = (trace.depth + 3) * ' ' + ('--> ' if trace.type ==... | [
"alonho@gmail.com"
] | alonho@gmail.com |
3af1b9068b5b218404c88d47ba2e3c366b0626ec | fb333187da3b193f5f6d4920291b30049155ba90 | /firebreak/game.py | 6cdc24e8d86b89af87b42eeaa22fe2da3444b5ee | [] | no_license | rseldon/firebreak | 5549649b37187937d0f95d683027acf11a26113f | 7fe0e011b28bd75e9b8343dc5a704766f5cf1ce1 | refs/heads/master | 2020-03-10T23:43:57.202754 | 2019-02-21T13:09:16 | 2019-03-02T02:47:29 | 129,647,002 | 0 | 0 | null | 2019-03-02T02:52:43 | 2018-04-15T20:16:27 | Python | UTF-8 | Python | false | false | 2,181 | py | #!/usr/bin/env python3
from collections import namedtuple
from enum import Enum
from random import shuffle
class Color(Enum):
RED = 91
GREEN = 92
BLUE = 93
YELLOW = 94
WHITE = 95
RAINBOW = 96
Card = namedtuple('Card', ['color', 'rank'])
DEFAULT_COLORS = {Color.RED, Color.BLUE, Color.GREEN, Co... | [
"ryan.seldon@gmail.com"
] | ryan.seldon@gmail.com |
b2595d9eccaf22427e7e16962a002d011843363f | c2df9e04adec78e789d1fbdb0711c45e5b9263a7 | /venv/Lib/site-packages/matplotlib/tests/test_texmanager.py | d24f7dc27a562a23298a3978078f1dbbcabf9e93 | [
"MIT",
"BSD-3-Clause"
] | permissive | AdarshSai/Final_Project | 433009a2f416e894ee3be85cd9317cb8e8df5516 | f966834ca72dd232102ed500ef47ef2b3bdbed5b | refs/heads/main | 2023-01-23T12:21:41.342074 | 2020-11-19T22:24:15 | 2020-11-19T22:24:15 | 308,898,012 | 0 | 1 | MIT | 2020-11-19T22:24:17 | 2020-10-31T14:19:58 | Python | UTF-8 | Python | false | false | 475 | py | import matplotlib.pyplot as plt
from matplotlib.texmanager import TexManager
def test_fontconfig_preamble():
"""
Test that the preamble is included in _fontconfig
"""
plt.rcParams['text.usetex'] = True
tm1 = TexManager()
font_config1 = tm1.get_font_config()
plt.rcParams['tex... | [
"adarshsaig@gmail.com"
] | adarshsaig@gmail.com |
817789a1e9c9374b23fe9c891aab32d72d899bf4 | 6e846afa2c76c3430ed5d5cee3f331b704bc644a | /ex20.py | 603f722df10fe90bd9f9dce33e08b22cc2120f9f | [] | no_license | EmilyY123/learnPythonTheHardWay | 486c0e55163c2666568bb6f721865e0f63174cc8 | b8d88b0f28590a3194af9fa45fef0dbc796d70f5 | refs/heads/master | 2016-09-05T23:58:55.160329 | 2015-04-26T23:28:47 | 2015-04-26T23:28:47 | 33,806,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | ## functions and files
from sys import argv
script, input_file = argv
def print_all(f):
print f.read()
def rewind(f):
f.seek(0)
def print_a_line(line_count,f):
print line_count, f.readline()
current_file = open(input_file)
print "First let's print the whole file:\n"
print_all(current_file)
print "Now let's ... | [
"leonfliu@gmail.com"
] | leonfliu@gmail.com |
d06c40ecaf072a5bad0a3bfcdf2cff9f0960317d | ccb4cb8358fb896a88bbf0c6771462d898d7a492 | /examples/goce_reentry_chart.py | decf8f0416fb3a95317f8d7eb65579f41c578074 | [
"MIT"
] | permissive | skyfielders/python-skyfield | a30d34a680dcd285bc8cd39cedc2629f792d5821 | 61fb6324e312715e20aa75ec24dc87286442be1a | refs/heads/master | 2023-08-31T13:10:32.863587 | 2023-08-10T14:25:56 | 2023-08-10T14:25:56 | 7,924,113 | 1,040 | 204 | MIT | 2023-08-28T19:44:50 | 2013-01-30T21:19:21 | Python | UTF-8 | Python | false | false | 2,026 | py | import numpy as np
from matplotlib import pyplot as plt
from matplotlib.dates import HourLocator, DateFormatter
from skyfield.api import load, EarthSatellite
# Labels for both date and hour on the x axis, and km on y.
def label_dates_and_hours(axes):
axes.xaxis.set_major_locator(HourLocator([0]))
axes.xaxis.... | [
"brandon@rhodesmill.org"
] | brandon@rhodesmill.org |
6130db32bea26cc4fd7d4373d721ab934c68b46b | 75eefd794c83d56f113a615d68d11c03f05375d2 | /0x0F-python-object_relational_mapping/13-model_state_delete_a.py | 82a2613f4284591ba9231fe4ad163087930d38dc | [] | no_license | andresjjn/holbertonschool-higher_level_programming | 681229f48742a58198682d84124afd0cb46d739d | 623b1e016629c0d3e7770535792ef545343a5013 | refs/heads/master | 2022-12-19T02:19:33.921961 | 2020-09-25T00:18:22 | 2020-09-25T00:18:22 | 259,374,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | #!/usr/bin/python3
"""Script that lists all State objects from the database hbtn_0e_6_usa"""
import sys
from model_state import Base, State
from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
if __name__ == "__main__":
engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}'.format
... | [
"andresjt93@gmail.com"
] | andresjt93@gmail.com |
27d7feffa6fc2ef4d11f58d87c17bf40d8a87a90 | 22b409e532df1ece6d509e9d7a3369f087038c0e | /service-3/tests/test_app.py | ef4b533b28d18823bb1863b46baaafd16870fd44 | [] | no_license | BMustafa97/Project2QAApp | d56096414a5734af0763a8209b82a0927f76b822 | 3714a1e9fb6606bbbb1a4d6680f42ff57c52930d | refs/heads/main | 2023-03-14T04:16:02.267373 | 2021-03-07T20:00:04 | 2021-03-07T20:00:04 | 341,344,821 | 1 | 0 | null | 2021-03-02T11:29:06 | 2021-02-22T21:39:34 | Python | UTF-8 | Python | false | false | 796 | py | import sys
from app import app
import unittest
from flask import url_for
from flask_testing import TestCase
from unittest.mock import patch
class TestBase(TestCase):
def create_app(self):
app.config['SQLALCHEMY_DATABASE_URI'] ="sqlite:///testdb.sqlite"
return app
# Pass in configurations for te... | [
"bilalmustafa1797@gmail.com"
] | bilalmustafa1797@gmail.com |
944dd21d731631667b2b61b7df4bbb9c9272ea4d | f0d6efe035d4c2ed1ea6bb6d1d5a613b8630a025 | /lib/jsonrpc/flexjsonrpc/__init__.py | 53ece394443611d381a3d2a3a98aed5682669d8f | [
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | bemoss/BEMOSS3.5 | d24c1c5587e5081092cc97250db45645363da4e4 | 75a09bc5d0a2ec0ae994ac900a93dc027b527860 | refs/heads/master | 2021-08-15T23:05:40.661118 | 2021-03-29T20:28:14 | 2021-03-29T20:28:14 | 91,000,462 | 81 | 38 | NOASSERTION | 2021-03-29T20:29:54 | 2017-05-11T16:25:43 | Python | UTF-8 | Python | false | false | 2,921 | py | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
# Copyright (c) 2013, Battelle Memorial Institute
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistri... | [
"aribemoss@gmail.com"
] | aribemoss@gmail.com |
de387f75b9153d81353f74324c32842675a55b8c | 888e79392cb660be5799cc5bd25d76bcfa9e2e2c | /doctorus/doctorus/doctype/actividad/test_actividad.py | 64e868e23ae78de54542b56cedaaeb515a1bd9a4 | [
"MIT"
] | permissive | Nirchains/doctorus | 269eadee5754612c521d1c6193d5fe7bbfdb3b8a | 38d39270742dfdae6597a06713952df01a2c3e9d | refs/heads/master | 2020-03-17T07:09:30.046005 | 2019-05-08T06:51:50 | 2019-05-08T06:51:50 | 133,386,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, HISPALIS DIGITAL and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestActividad(unittest.TestCase):
pass
| [
"nirchains@gmail.com"
] | nirchains@gmail.com |
6f636b5072e7d57d722bcf8845eabfe6746a93a9 | 81f2cd08a11f6be0d11a2664001491329957b200 | /pyscf/pbc/df/mdf.py | afdf3d5c06d62899305f92b0be06cb20c77f5436 | [
"Apache-2.0"
] | permissive | crisely09/pyscf | 18b564556b249bafab24e1c7d08fdf0a57dfcf0a | cb92f7974bd9c87c0ef5b2b52abf5d3219b3d6b6 | refs/heads/master | 2021-07-10T01:54:45.698418 | 2019-11-27T22:49:43 | 2019-11-27T22:49:43 | 224,692,664 | 0 | 0 | Apache-2.0 | 2019-11-28T16:32:10 | 2019-11-28T16:32:09 | null | UTF-8 | Python | false | false | 17,494 | py | #!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | [
"osirpt.sun@gmail.com"
] | osirpt.sun@gmail.com |
65ac87e32913f82bd9f12be4f6f81cffa19a4a1c | 8c8a481485cd297180454a5495b68dd28867fd51 | /Models/States.py | 02af0f9d78f1d8495951c0d3bb45266180d88afb | [] | no_license | M-R-FARHADI/Thermobrig | 66cdf47a87b7353e9306bd69af2037c6b5ff6132 | 9ed107373f232cc0a007e5b6992d0ad4ad59102d | refs/heads/master | 2023-02-07T19:17:27.547134 | 2020-12-29T07:05:39 | 2020-12-29T07:05:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,897 | py | from pandas import DataFrame
from collections import OrderedDict
from dataclasses import dataclass, field
from typing import Union, Dict, List
from Utilities.Numeric import isNumeric, isWithin
@dataclass(unsafe_hash=True)
class StatePure:
P: float = float('nan')
T: float = float('nan')
mu: float = float... | [
"unlusoycan@gmail.com"
] | unlusoycan@gmail.com |
12ee2af586a5389598d17d3a8e2eb199ba981004 | bd2696ebd08022b8fa126d963661fdf0792e2a0c | /L10_packet_dir/test_Job_02_from_L10_unittest.py | ae6f62abb582aa18cb4a2eb44c1d333c30227a43 | [
"MIT"
] | permissive | github-Ilfat/All_Lesson_of_Python | 653d737085c7f1bd381b2d704f280374edeab957 | fbab364fe91e05e08658662b16470a1809b6b2b0 | refs/heads/master | 2021-05-17T15:54:17.353396 | 2020-05-07T14:40:17 | 2020-05-07T14:40:17 | 250,856,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,720 | py | import unittest
from For_Job_01_L10_Game_fool_card_desc import Game_fool_card_desc
class Test_Game_fool_card_desc_unittest(unittest.TestCase):
def setUp(self):
# Присвоение значений для параметров класса "-=СТОЛ КАРТОЧНОЙ ИГРЫ "В ДУРАКА"=-"
name1='Комп1' #──── имя игрока 1
name2='Комп2' #... | [
"s-ilfat-h@mail.ru"
] | s-ilfat-h@mail.ru |
c61e108e71fa3ecad09dfae82bc33ff67ac2e895 | 555d5a4ab56fcb5c7d1b87697266b33bf019f69b | /functions.py | 66ba7fbe64944f5db6b9fb9d28601a25b26ac9e1 | [] | no_license | bencyn/python_level_one | beaa3db4353430ed2f96023f65f99265004e1175 | bddcc9018eb56bda57500dcf7fe097663b4097db | refs/heads/master | 2020-04-03T04:31:16.243095 | 2018-10-27T22:49:33 | 2018-10-27T22:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | def my_func(param1='default'):
"""
THIS IS THE DOCSTRING
asdf
asdf
asdf
"""
print("my first python function! {}".format(param1))
my_func(param1='bencyn')
# types
def addNum(num1,num2):
if type(num1)==type(num2)==type(10):
return num1+num2
else:
return "Sorry, I need ... | [
"bensonnjung39@gmail.com"
] | bensonnjung39@gmail.com |
ac743aaa34f496401df9479367ce482c7d2ac7a9 | 13048946876a285f2fe7bdfbf168e8ab28abcf6e | /Searching2.py | 5f29bd9569eac2af0d5fb803f1a378ea222956d4 | [] | no_license | G0LDF0X/Python-Searching | 3f823677038454555a8c4dad72bd17a8af745879 | c8003ebf73e6b15cbf2ed030db74e032134f051c | refs/heads/main | 2023-08-02T04:03:27.931838 | 2021-10-08T12:13:08 | 2021-10-08T12:13:08 | 414,869,849 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 3,264 | py | # 내가 필요한 함수와 라이브러리를 import한다.
from bs4 import BeautifulSoup
from requests import get
from re import compile, findall, sub
# Just a function that turns lists into strings because the re.findall() really annoys me
def lststr(lst):
string = ''
return string.join(lst)
# 이 .py 파일을 실행하면 실행될 main method이다.... | [
"noreply@github.com"
] | noreply@github.com |
138aa5edcea9579e2c34ec3974387a021d223d93 | 4103dc87a5309946920e964a37cce2dd637bcdfe | /mindelay/association/__init__.py | 9261e8cb30e2b91d168d9d61c4cd7e2174e5e8cc | [] | no_license | donglao/mindelay | 8415e465ad04a43cf272f5a6eb2581ca710c61ac | 0c97edf872f470943f90c9a4dede19632f86fee0 | refs/heads/master | 2020-07-01T09:16:33.378687 | 2019-10-03T17:34:55 | 2019-10-03T17:34:55 | 201,123,622 | 31 | 7 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | # association
from .update import update | [
"noreply@github.com"
] | noreply@github.com |
866e74750ea247f7bbe24203f017bd1d800b882d | f4fe0733d433cb650869cc502b58a9a81d657306 | /section03/02-reference.py | 91a0e465d3b41ff3490436ceb127203c2ab2dcc8 | [] | no_license | jj-a/basicPython | c14bd1331bba1e0b3f2eee40053cbf15aab83dd2 | 50758d6faa95409d6a1d3f3cc183a142cc1a6312 | refs/heads/master | 2020-04-26T16:30:59.322970 | 2019-03-13T09:14:10 | 2019-03-13T09:14:10 | 173,681,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | # section03 / 02-reference.py
# 값에 의한 호출 (Call by Value) : 정수, 실수, 논리값, 문자열
# 객체 참조에 의한 호출 (Call by Object Reference): 리스트, 튜플, 딕셔너리
# Call by Object Reference = Call by Sharing
# Call by Object Reference는 자바의 Call by Reference와 다름 ***
a = 100
b = 200
print(a, b)
# 객체의 참조 (list, dictionary, tuple)
foo = [1, 2, 3]
bar... | [
"jxxbom@gmail.com"
] | jxxbom@gmail.com |
86e6438502f84c5aafa15800b1dd4a1b2feba977 | 9c4f4b4b7dd63d1d8c2eb4f2587e2a5bbae4bcdc | /tests/test_secuencia_valida.py | ff4b8932e6b63d79e3a64c6c727c7c0c4605b474 | [] | no_license | luciomondelli/CuatroEnLinea | 806e72f00654269cc7e6b15a01bed6561c18cb16 | a24b5fe40c5a583563d9c71d95e9cb1fb913e28c | refs/heads/main | 2023-06-14T07:45:18.246115 | 2021-07-01T16:37:02 | 2021-07-01T16:37:02 | 358,373,072 | 0 | 0 | null | 2021-05-24T22:32:21 | 2021-04-15T19:39:41 | Python | UTF-8 | Python | false | false | 148 | py | from src.CuatroEnLinea import columnaValida
def test_columna_Valida():
secuencia = [1, 2, 6, 2, 5, 4, 2]
assert columnaValida(secuencia) == True | [
"luciomondelli123@gmail.com"
] | luciomondelli123@gmail.com |
c9eba986ef40c22a55a583905c95b5f619a319a1 | c9558831ad86603f0efc27b25b05706984a3338e | /calculate(distance,no_of_passengers).py | 9b9bf9f48af9851ad39efb1ff290d9bba457ab40 | [] | no_license | ygohil2350/infytq-Python_Fandamentals- | b7c3bcf3cfbfb9041fafe824454329d5ed3ecd96 | 82d69aecf479ea62139095f74cea56ed6f07989a | refs/heads/main | 2023-03-26T04:19:26.405065 | 2021-03-19T08:01:27 | 2021-03-19T08:01:27 | 346,596,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #lex_auth_012693816779112448160
def calculate(distance,no_of_passengers):
#Remove pass and write your logic here
cost=0
cost=70*distance/10
rest=0
rest=no_of_passengers*80
if cost<=rest:
return abs(cost - rest)
else:
return -1
#Provide different values for distance, no_... | [
"noreply@github.com"
] | noreply@github.com |
532643ec7785b8e9f57df629a1c947434c7fcbcd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-2705.py | da1acce1fdca02af865dc610333ef8e807a4d3b9 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,755 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b0b3c1aaa329c0e7f591d7df292153004d55f266 | 66e3b5dfd66b677a88c59e181e7b0edd563fd738 | /ie/dit/soc/bridgingmodule2013/boolean/soln6.1.py | b29781add6e56e989c6c30c476330f375547599d | [] | no_license | bjg/bridgingmodule2013 | 0b23dbe5170aa577c046418599cea69b32161213 | 6233e5c7b5f553c2d1179ad71d2c5f30f932c321 | refs/heads/master | 2020-09-13T07:50:40.512937 | 2013-09-06T11:12:22 | 2013-09-06T11:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def halfadder(a, b):
return [a ^ b, a & b]
for pairs in [[0, 0], [0, 1], [1, 0], [1, 1]]:
s, c = halfadder(*pairs)
print c, s
| [
"brian.j.gillespie@gmail.com"
] | brian.j.gillespie@gmail.com |
10d1a3ab2353a80a6de7080d63ff12ec30391eee | 6ad1fa724d3875ac841eb01418ca653f7937c460 | /Python1807AXF-master/app/migrations/0003_mustbuy.py | 7c9452f0a4fc8e4daf11e4e96abe828a7ac5398b | [] | no_license | hlyhly1998/hly | eb422369d508952d6c4f822ca89796f2925192d1 | fc6b564f465e8a76bde5083628e4b650b44d13a2 | refs/heads/master | 2022-12-06T15:05:17.951507 | 2019-06-26T02:27:57 | 2019-06-26T02:27:57 | 145,086,404 | 1 | 0 | null | 2022-11-22T02:39:10 | 2018-08-17T07:20:17 | JavaScript | UTF-8 | Python | false | false | 762 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2018-09-25 01:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0002_nav'),
]
operations = [
migrations.CreateModel(
nam... | [
"huanglingyun111@163.com"
] | huanglingyun111@163.com |
5bf9421e0c8fc17eaca5fbf2da651488df0f890b | 441244ceae643308d3ec61ebeef84367bc8e7007 | /3_1.py | 7e6cb032552c630e44c61a3016a86f1b3adc6a24 | [] | no_license | SealSiil/AdventOfCode2018 | f0fed698a35027b4ba1294e09b8cf913e8d0428f | 1e4e3306f1d1f8a1f35f120fa430bdd1efb5e1f6 | refs/heads/master | 2020-04-09T11:12:31.099286 | 2018-12-11T20:13:38 | 2018-12-11T20:13:38 | 160,299,812 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | import numpy as np
import re
def cleaning(data):
match = pattern.match(data)
Claims[int(match.group(1))] = ([int(match.group(2)),int(match.group(3))], [int(match.group(4)),int(match.group(5))])
def stake(marker, edgePos, edgeSize):
for w in range((edgePos[0] + 1),(edgePos[0] + 1 + edgeSize[0])) :
... | [
"jason.a.siil@gmail.com"
] | jason.a.siil@gmail.com |
eef01ca5d4c017c8baef7d64dc217c6b276ef324 | e6edf0f1631d59a3f5e4b826a51d16f14ddb17c9 | /runcheck.py | 6b07578fdb766957ba8de9137439c39808d26f70 | [] | no_license | ParkKiHoon/Pyhton-for-ai | db7d60472c8b8380dbfb35942d09e8ce4f5f081d | ffbe44aeefc413000fcb8d57836e47b8b15f2980 | refs/heads/main | 2023-07-17T01:18:38.155566 | 2021-09-02T10:37:55 | 2021-09-02T10:37:55 | 402,381,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | #!/root/anaconda3/bin python3
import os
import subprocess
print("0")
process_read = os.popen("ps -ef | grep aimain.py | grep -v 'grep'").readlines()
print("1")
# ps -ef 명령어를 이용해서 현재 프로세스를 출력한 후, 그 중 run24h.py 문자열이 포함된 줄만 모은다.
# grep 명령어 자체도 프로세스에 나타나므로 grep -v를 이용해서 제외한다.
check_process = str(process_read)
print("2")
# ... | [
"vpfmtlsl@naver.com"
] | vpfmtlsl@naver.com |
3b9031d40184e01f4ecd36f3a2235fa27257fe43 | 8c4bbe6b7551100f18504d50280c12f58e88ee40 | /Homework1/Homework1/OLDsolutions/testing.py | 4a568cf7c317c6668ce1c0f7e5aa6e4e729ef5c5 | [] | no_license | AvisekNaug/AI6360 | 814724948e604c855470baf3c2763c47b878da12 | 7c81dc709ebac59203ac93f7aed629ad5b2d89e5 | refs/heads/master | 2021-06-27T11:14:03.789356 | 2019-07-30T17:51:28 | 2019-07-30T17:51:28 | 97,511,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,053 | py | import pprint
pp = pprint.PrettyPrinter(indent=4)
def puzz_astar(start,end):
"""
A* algorithm
"""
#weight = 1.0
Open = [[0,heuristic_2(start),start]] #optional: heuristic_1
Closed = []
Nodes_Expanded=0
#incumbent = [99999999]
while Open:
i = 0
f... | [
"noreply@github.com"
] | noreply@github.com |
307f0c8f91fd180198a905ec44e1075657a0281a | 819c070a222d2d19dca43a0bd28cca1e76e64da4 | /devel/lib/python2.7/dist-packages/rbx1_nav/cfg/CalibrateLinearConfig.py | 2cde3f07a9f379cd020cb890ec6a8be4edd35a6d | [] | no_license | danielzhangcs/catkin_ws | 069c21b1fea7177d41e31cf13994082818d6e38c | 01ab11727b0928085a0b42d1cafb1ceac79748f2 | refs/heads/main | 2023-01-04T14:00:53.955168 | 2020-10-22T00:46:54 | 2020-10-22T00:46:54 | 303,494,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,947 | py | ## *********************************************************
##
## File autogenerated for the rbx1_nav package
## by the dynamic_reconfigure package.
## Please do not edit.
##
## ********************************************************/
from dynamic_reconfigure.encoding import extract_params
inf = float('inf')
confi... | [
"danielzhang@brandeis.edu"
] | danielzhang@brandeis.edu |
7d1b5a7a4c9b2473875d05659a41073fc769e6de | 825afdb29be726e5b9dec219d203579ca7d23f8a | /tests/web_bottle_ssl_test.py | 3e5f5a780fcfd58bf3d017bd463cb0839262a4f8 | [
"MIT"
] | permissive | tmetsch/smart_home | d8c16241af8e48ab3b16c2812ec7d48866e56929 | 582c225f8659029529a9c6f1c1aa551d0b2ec906 | refs/heads/master | 2022-10-01T09:30:22.494708 | 2022-09-14T10:20:41 | 2022-09-14T10:20:41 | 103,826,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | """
Unittest for bottle SSL wrapper.
"""
import threading
import unittest
import bottle
from web import bottle_ssl
class SecureServerAdapterTest(unittest.TestCase):
"""
Testcase for the SecureServerAdapter class.
"""
def setUp(self):
self.cut = bottle_ssl.SecureServerAdapter('tests/files/k... | [
"tmetsch@gmail.com"
] | tmetsch@gmail.com |
e5b6a2d65e3ac4422c05b239dc066aa8ec10effa | 1b442d616c3666c329d2ff85a08e63fb670d18d0 | /PY01032.py | 424ff6c9fb458d867254f044722bf4d870686b81 | [] | no_license | nhuantho/PythonCodePtit | 5ce233e6ad756d3dbb79384b450478123256a80f | 6e0b5fef13b727d568cfaa0afee1a1506761e644 | refs/heads/main | 2023-08-20T08:22:19.179586 | 2021-10-29T04:10:00 | 2021-10-29T04:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,288 | py | s='''1 3 5 7 9 15 17 21 27 31 33 45 51 63 65 73 85 93 99 107 119 127 129 153 165 189 195 219 231 255 257 273 297 313 325 341 365 381 387 403 427 443 455 471 495 511 513 561 585 633 645 693 717 765 771 819 843 891 903 951 975 1023 1025 1057 1105 1137 1161 1193 1241 1273 1285 1317 1365 1397 1421 1453 1501 1533 1539 1571 ... | [
"nhuanbc.b19cn488@gmail.com"
] | nhuanbc.b19cn488@gmail.com |
b660bfe2f136e27d1264ed5c5751e3353662e6eb | 4513c7ab29ee4379ee22ba3c8d244ae6eb8207dc | /tastmate/settings.py | 5afc4f22b5b1568d76f44ec39f2dc0d1f3253eca | [] | no_license | duyanh249/taskmate | 70e83a195af730cd15163ed4b4aaf2f7c67126a9 | 529d91a3368c2523c621705544cc366a2c63713b | refs/heads/master | 2023-07-14T22:27:20.493137 | 2021-08-10T14:24:33 | 2021-08-10T14:24:33 | 393,057,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,686 | py | """
Django settings for tastmate project.
Generated by 'django-admin startproject' using Django 3.2.5.
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 pathli... | [
"duyanhbmehust@gmail.com"
] | duyanhbmehust@gmail.com |
010a6576a6d25c570dd63ee9354806d80522854d | a016c7a98f42adaff0c6df9eabccfc16ced31766 | /Automatical report output weekly/X604.py | ab7354167fbffd934b434ed4ecb7e76d515ca6d6 | [] | no_license | zhoumengxiong/AutoOutputReport | b22bb094a28f498e20f9a07f8fe691b2029894bc | 94159de7e6b80bcd724f63068446b7181524e789 | refs/heads/master | 2021-09-22T17:02:32.347520 | 2018-09-12T10:41:08 | 2018-09-12T10:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,157 | py | # -*- coding: utf-8 -*-
import pymysql
from openpyxl import load_workbook
import datetime
from openpyxl.styles import Border, Side, Font, Alignment
def style_range(ws, cell_range, border, fill, font, alignment):
"""
Apply styles to a range of cells as if they were a single cell.
:param alignment: An openp... | [
"zhoumengxiong@outlook.com"
] | zhoumengxiong@outlook.com |
916d5024feee51c4aecbfdb8b0b81be68f04a159 | 7f9a21c118dba8f0aea05f46ecccbc0677127159 | /perpustakaan/wsgi.py | 257e84276066c731bbdb15d0fbe7503096b37ac9 | [] | no_license | Anggiyasti/perpustakaan | 3af4c7e120b3a09d7f0670586cb04e0e785eb590 | cbf327b3d1eeb363b0ea2dd132f83df9eb068bb5 | refs/heads/master | 2021-05-03T10:46:19.530274 | 2016-10-04T10:53:48 | 2016-10-04T10:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for perpustakaan project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"putrianggiyasti@gmail.com"
] | putrianggiyasti@gmail.com |
b40dca379be236bcc74b9e56cefe1271d2baf212 | 132bfa4b6736b6c91a6be8d9116a65d581222868 | /autoapp.py | 7d83e42e53be5b762ed08570c9f90bab591bcf3a | [] | no_license | banphlet/Flask-Tensorflow | 3a735c88fcb0807e7704f0f3d62547e181463716 | 6b0feb8078eedf163c0d28d56a09c16d8d63ad90 | refs/heads/master | 2022-01-24T01:53:37.867200 | 2019-07-21T11:17:37 | 2019-07-21T11:17:37 | 197,902,306 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | from app import app
if __name__ == "__main__":
app.run() | [
"banphlet4@gmail.com"
] | banphlet4@gmail.com |
a54a1d9b4da5c754793e3a51b8280cbe710d82f8 | af071b50e49cf1c89a7cdba43f1a92161600adab | /pingpong/admin.py | b4faacbe9445a9fe3e5c9aee56de3dd9c6d02c1e | [] | no_license | astaric/pingpong | 6674add96737e9589bd4e6cac4785d6e6f84c236 | bd4909a0e9527caece38cd5b7870f3893797f45c | refs/heads/master | 2021-01-21T19:35:55.798938 | 2018-11-16T14:59:58 | 2018-11-16T14:59:58 | 6,784,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | from django.contrib import admin
from .models import Player, Category, GroupMember, Group
class PlayerAdmin(admin.ModelAdmin):
list_display = ['full_name', 'category']
ordering = ['id']
list_filter = ['category']
class CategoryAdmin(admin.ModelAdmin):
ordering = ('gender', 'min_age')
prepopulat... | [
"anze.staric@gmail.com"
] | anze.staric@gmail.com |
e3968b5a6ee4acfc5472f3331048077d2290fe32 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_203/78.py | 29bc91b6b0a4fa993c5a99a015c4bc7188f4154e | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | #!/usr/bin/env python2
import itertools
def solve_row(prev_row, row):
prev_row = list(prev_row)
prev_chars = set(prev_row)
#print prev_row, row
for i, row_i in enumerate(row):
if row_i == '?':
continue
min_i = i
max_i = i
while max_i + 1 < len(prev_row) and pr... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
503a11282b2b012d89e3014060423162487ba9a6 | fec863b67ec1ae65da7111bd8c77d0ab2ef1f6ce | /movie recommendation system/.history/model3_20210430162616.py | ef78677ec57da3e3bcb5a7edf1bc1dcf42a79f03 | [] | no_license | kannan768/movie-recommendation-system | e6cf71620e25a0185fed3b37896137f1f39b0801 | 7460d440d44e77390e459ab10c535b6971c9c3ab | refs/heads/main | 2023-05-14T02:21:50.930672 | 2021-06-09T05:02:30 | 2021-06-09T05:02:30 | 375,225,316 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | #item-item filtering
#colloborative filtering
from math import sqrt
import pandas as pd
import numpy as np
import seaborn as sns
from matplotlib import pyplot as plt
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import linear_kernel
from sklearn.metrics import pairwise_distan... | [
"kannanbsk1609080@gmail.com"
] | kannanbsk1609080@gmail.com |
9d93842fa5abd98b0fd609d5f9ab9f8f4e3ae9cc | 1dde2ae19e8c50a6c49ac1929ef4f0d7948fc47b | /recursion and dynamic programming/39_combination_sum.py | 87ddd881f9b13f2b5f26c8dbc83fe72f9cbab57a | [] | no_license | ryanSoftwareEngineer/algorithms | 694786e970e99120bdd94ca5722ad91aed846589 | 9dbff6f4a40ba99c7310966e63f66e14174bdb61 | refs/heads/master | 2023-04-21T10:09:30.683266 | 2021-05-13T02:55:30 | 2021-05-13T02:55:30 | 330,536,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | '''
Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order.
The same number may be chosen from candidates an unlimited number of times. Two combinations are un... | [
"ryansoftwareengineer@gmail.com"
] | ryansoftwareengineer@gmail.com |
3b600461905bbc4961263bfe2745dd295cc11579 | d9296d3b420d8f5c1aeca094d00dd6bc38a3d57d | /read_statistics/migrations/0001_initial.py | ea8634dbdab68cbb44d0ce86241b1fce182ee74d | [] | no_license | Anthony88888/mysite | 57f5f40530886b12cf1364c10c6206983b022c6c | 7130715ef3acac054b96fa22dcf19fec1f31e019 | refs/heads/master | 2023-01-09T12:15:11.720225 | 2020-10-25T14:48:35 | 2020-10-25T14:48:35 | 305,168,092 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # Generated by Django 2.0.13 on 2020-10-06 16:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
]
operations = [
migrations.CreateMod... | [
"admin@example.com"
] | admin@example.com |
b80f3341e01c927cd8220c8b5e567848a7c8a259 | 229f4ec6272c5a730da44923a94f211fba04d38f | /cltk/prosody/latin/HendecasyllableScanner.py | 15a3a006967237e83df65eef182e34fe46ab2867 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Sedictious/cltk | d8fd364f66eb5fdbc85057b490ddd842b15e96a4 | 681170d58de61d50bec6cca9ca5753844506c3f6 | refs/heads/master | 2021-04-30T02:10:41.988706 | 2018-12-10T17:14:17 | 2018-12-10T17:14:17 | 121,495,814 | 1 | 0 | MIT | 2018-12-10T17:01:16 | 2018-02-14T10:05:17 | Python | UTF-8 | Python | false | false | 9,228 | py | """Utility class for producing a scansion pattern for a Latin hendecasyllables.
Given a line of hendecasyllables, the scan method performs a series of transformation and checks
are performed and for each one performed successfully, a note is added to the scansion_notes
list so that end users may view the provenance of... | [
"kyle@kyle-p-johnson.com"
] | kyle@kyle-p-johnson.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.