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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a85268becbc22108817aae858c058934d5ffef70 | 1d1a6eb5627c907cae3d2adb325eeb1e87161558 | /sentinel-api.py | 45ca002f0ef6bf475f4815b6e484b94e25ba0ece | [] | no_license | sirparis/Sentinel-API | 37e3c3aa2e7104656c3ab72cab8ca6fcc7fb4ffc | 4790e48c2c674081674a44e1ab1289d018445821 | refs/heads/master | 2020-03-17T13:59:51.141328 | 2016-06-28T09:54:06 | 2016-06-28T09:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,874 | py | #! /usr/bin/env python
# -*- coding: iso-8859-1 -*-
import os,sys
import os
import optparse
from xml.dom import minidom
import time
###########################################################################
class OptionParser (optparse.OptionParser):
def check_required (self, opt):
option = self.get_opti... | [
"noreply@github.com"
] | noreply@github.com |
7b49c5935c6662a70085097b581992922e499ee2 | 900379ae0f67d58e6aff9861fcdafc4fff9b634e | /HTMLparser/beautifulsoup4-4.4.1/setuptools-20.2.2/setup.py | a59d374d4f2597c7ef582b24bbc36dcbff699c03 | [
"MIT"
] | permissive | a514514772/lol_replayer_for_tencent | cd444707b963561a20c15a13e4898712f844e34a | ae92c1c11621946b1feac2cb3e474865e99a8f4e | refs/heads/master | 2020-12-11T07:31:35.117032 | 2016-04-07T18:10:22 | 2016-04-07T18:10:22 | 53,326,771 | 4 | 0 | null | 2016-03-07T13:15:17 | 2016-03-07T13:15:16 | null | UTF-8 | Python | false | false | 6,700 | py | #!/usr/bin/env python
"""
Distutils setup file, used to install or test 'setuptools'
"""
import io
import os
import sys
import textwrap
# Allow to run setup.py from another directory.
os.chdir(os.path.dirname(os.path.abspath(__file__)))
src_root = None
from distutils.util import convert_path
command_ns = {}
init_p... | [
"a88575847@gmail.com"
] | a88575847@gmail.com |
987eefa3b4567bac22ef4aa1bb712480e2cf395b | e7669caf1a4ce9053bb720bcfa2d85a4ee35ea65 | /pyrosetta_toolkit/window_modules/protocol_builder/ProtocolBuilder.py | 9317ac4215847ebde667e595866fa8e5255693b9 | [
"BSD-3-Clause"
] | permissive | SchiefLab/Jade | f81190321df061f8317db869a64a7b87a13d664a | 791d26892aacf21bca733aa9c1c6ea3f2be51958 | refs/heads/master | 2023-01-10T15:14:08.431470 | 2018-11-07T17:11:02 | 2018-11-07T17:11:02 | 41,381,258 | 7 | 2 | NOASSERTION | 2022-12-26T20:35:53 | 2015-08-25T18:39:20 | Python | UTF-8 | Python | false | false | 25,209 | py | #!/usr/bin/env python
#
# (c) Copyright Rosetta Commons Member Institutions.
# (c) This file is part of the Rosetta software suite and is made available under license.
# (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
# (c) For more information, see http://www.rosettacommons.or... | [
"jadolfbr@gmail.com"
] | jadolfbr@gmail.com |
5a0b3271ed81ec8672e77a7284e2e7c0c3368600 | 75c56c42eda7c1b4c976fd25b0e16ecbab22b7ca | /submissions/Brock/myBayes.py | d694409501c92a6f8fe1a5d97d7f006173a2791e | [
"MIT"
] | permissive | WmHHooper/aima-python | 6139edb75c4ebb524df80035ef369bffec18f534 | 9792b128bbc192b27cc33ab6c084834a82a2d664 | refs/heads/master | 2021-01-21T08:54:50.370881 | 2018-12-13T03:11:00 | 2018-12-13T03:11:00 | 64,494,943 | 4 | 103 | MIT | 2018-12-13T02:54:04 | 2016-07-29T16:29:20 | Python | UTF-8 | Python | false | false | 1,401 | py |
from probability import BayesNet
T, F = True, False
depressedStudent = BayesNet([
('Sad', '', 0.45),
('Homework', '', 0.32),
('Tired', '', 0.7),
('Sleeping', 'Sad Homework Tired',
{(T, T, T): 0.12,
(T, T, F): 0.05,
(T, F, T): 0.65,
(T, F, F): 0.33,
(F, T, T): 0.10,
... | [
"jbrock3852@gmail.com"
] | jbrock3852@gmail.com |
96180f3134882c4ef5c7da63ee14db2f4aacead8 | a552866df96c40c22096eddbc5316522c2de2e1d | /SR BANKING PVT. Ltd/Terms.py | 37a88e0229e266131004da60f1a97acb124f4474 | [] | no_license | AnonWolf99/S-R-BANK | 5dc3d6b5fc20fa9b4048c30759b9c8ec44d0c68d | cba4047999e4afcf9763f983605c8695cb394922 | refs/heads/master | 2021-01-20T11:10:55.820125 | 2017-08-28T17:40:50 | 2017-08-28T17:40:50 | 101,668,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,180 | py | import time
print """You agree to the following TERMS AND CONDITIONS by opening an account with us:-"""
time.sleep(2)
print"""
1.1 I agree to abide by the Bank's Terms and Conditions and rules in force and the changes thereto in Terms and Conditions from time to time relating to my account as communicated and made ... | [
"noreply@github.com"
] | noreply@github.com |
50779c927afec635a78a23666d1fd869c6611a99 | e5fb0bc07bfeb901ce9f390c28d689c65acd4d90 | /solutions/prob1.py | 493bc5477ef66d31ccf0740e20365cfcad1c72cd | [
"Apache-2.0",
"MIT"
] | permissive | Han0nly/crypto | b8c426b5d65a10f3ef5c3e45e9b28369a79a1db1 | 7718344247e8f87530d2f4c6299c311501a6f2d3 | refs/heads/master | 2021-01-10T17:45:50.956931 | 2015-11-26T14:34:11 | 2015-11-26T14:34:11 | 46,762,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,434 | py | #!/usr/bin/env python
# Written against python 3.3.1
# Matasano Problem 1
# Convert hex to base64
# Example hex: 49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d
# Example base64: SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t
import base64
impo... | [
"646861172@qq.com"
] | 646861172@qq.com |
e166b8410337e791d70cb27ce11b98e02c6b4ca8 | 6c3edb74805fd4008038747daab549f423a74cd0 | /DataStructures/linkedlist/linkedlist.py | 676f4b61865ac485421ee1aa368474fce41e637d | [] | no_license | layanabushaweesh/data-structures-and-algorithms-401 | d27da0051605fc942e2bc56db1b69dff09f8bf21 | d2e0a166e0a63e433ca4266ba7b1a850249f14fa | refs/heads/main | 2023-06-28T05:13:01.220804 | 2021-08-03T04:10:25 | 2021-08-03T04:10:25 | 376,221,155 | 0 | 0 | null | 2021-08-03T04:10:25 | 2021-06-12T06:41:34 | Python | UTF-8 | Python | false | false | 4,360 | py | #Create a Node class that has properties for the value stored in the Node, and a pointer to the next Node.
from typing import Counter, cast
class Node:
def __init__(self, value):
# Assign data
self.value = value
# Initialize next as null
self.next = None
# Within your LinkedList... | [
"layanabushaweesh@gmail.com"
] | layanabushaweesh@gmail.com |
f1fa19fbbe5ab20300801c58ecef9397b9ea91ed | b5615027c68fd8b9231c0b3a6a09afc8170e10ef | /battery.py | 5ba72ef54503a2cad1e25a1345dbe08d489155d5 | [] | no_license | zelut/dwm | 9f67cc8a829bc8e42e9bdf76011a4f2e22e82deb | c587f6405cba131cc30edda7131253bcaa8d1611 | refs/heads/master | 2021-01-10T19:41:08.277134 | 2011-06-04T01:37:05 | 2011-06-04T01:37:05 | 514,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | #!/usr/bin/env python
import re, sys
pattern = re.compile(r'Battery\s+(\d+):\s+(\w+),\s+(\d+)%')
items = pattern.findall(sys.stdin.read())
new = []
for item in items:
new.append('Battery %s: %s, %s%%' % item)
print ' | '.join(new)
| [
"christer.edwards@ubuntu.com"
] | christer.edwards@ubuntu.com |
d5bbd6060bcdbf6577231502c87702616b5efea7 | 3217e1e8f64ee25674222b09a85b059a93fad9a3 | /deck_collector.py | c254d513dc0cfc82909bcbb32ee3b9a3fd3d82cc | [] | no_license | Wizwizard/mtgtool | 5589b21b2bc7452510b5e948e87f1f64699091ec | 6642a7a971a1536af2549c1089b74794aede886e | refs/heads/master | 2023-03-25T15:25:23.188233 | 2021-03-15T15:19:27 | 2021-03-15T15:19:27 | 311,638,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | import mtgazone_crawler
import db
import time
import math
# 1 standard 2 historic
# source, deck_name, deck_code, deck_meta, deck_color, create_dt, create_ts
def mtgazone_decks_collector():
source = "mtgazone"
today_dt = time.strftime("%Y%m%d", time.localtime())
deck_color = 00000
def insert_mtgazon... | [
"303704668@qq.com"
] | 303704668@qq.com |
cc322034c38f2bc31f1b1aceb9adcad7b001e1a3 | 236a073b6a2b6b9ca978c730a19518a3226f60e0 | /RLDashboard/wsgi.py | f6b75183dd0f3a1c67164158e394944a42387478 | [] | no_license | Rankith/RLDashboard | 468150b59c88c268ce79d9f44cb2988cf0786d10 | b398408ad6f65550d18262167a3d1eb5c8f645b8 | refs/heads/master | 2022-12-09T11:00:09.031194 | 2019-04-24T22:11:55 | 2019-04-24T22:11:55 | 169,513,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | """
WSGI config for RLDashboard project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATIO... | [
"Julian@MAIN-PC"
] | Julian@MAIN-PC |
76ffe62acb560a5f6efa818a203b727cdbf4b491 | 8de315bcf5e699f4f4014a52103a83949e8c8dfe | /entertaiment_center.py | 2d8db1bbb04f1cb01d5a0c2697224dd757f2421b | [] | no_license | sviridovartem/Python-MovieWebsite | eca4da230bca38acd24678d7cbb764479814f170 | ded8331795098c5375f834599cbb549a952eabb9 | refs/heads/master | 2021-05-01T13:58:50.975777 | 2017-01-20T18:24:55 | 2017-01-20T18:24:55 | 79,585,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,401 | py | import media
import fresh_tomatoes
grandTour1 = media.Movie("The Grand Tour",
"Jeremy Clarkson, Richard Hammond and James May travel the globe as the hosts of this Amazon original series. At each location -- including Johannesburg, Lapland, Rotterdam, Stuttgart Whitby, Scotland, California, Na... | [
"SvyrydovArtem@gmail.com"
] | SvyrydovArtem@gmail.com |
397901e01becec7e4703b0b2a662c94bfabcba7b | 0f0791ba7d5fb15034bf084b2a0898f7d8e8c326 | /python3/051-100/094-str.py | 7dc6c68d087296d14384f0df62d55e26410d6a2a | [] | no_license | songseonghun/kagglestruggle | 3314aae21aca33af89ea7a22e0090b7ff3d981de | 468ffd8c5ff45e412d5138a7533c207371ce95c6 | refs/heads/master | 2020-04-30T01:50:38.072980 | 2019-07-19T00:26:32 | 2019-07-19T00:26:32 | 176,541,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | #Custom object formatting
class C:
def __init__(self, value):
self.value = value
def __str__(self):
return str(self.value)
c = C(42)
print(c)
print(type(c))
| [
"48725949+songseonghun@users.noreply.github.com"
] | 48725949+songseonghun@users.noreply.github.com |
0cf69877d3d3387e6620566be46b35d6430bd28b | 0b671777768c5912889fac1401f0f02978817afa | /day_05/2.py | 986eed9061041e7a80d2fe11b5ee4029b6e88fd6 | [] | no_license | Alekaei/AdventOfCode2018 | d1e61dc538cbef5a8f59fd21d548ba32ae1c8477 | 813c84f59a7edf3405ac19fb740b141b62329c7c | refs/heads/master | 2020-04-09T19:39:02.226056 | 2018-12-16T18:24:23 | 2018-12-16T18:24:23 | 160,549,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | polymer = open('input.txt', 'r').read().strip('\n')
possible = [l + l.upper() if i == 0 else l.upper()+l for l in 'abcdefghijklmnopqrstuvwxyz' for i in range(2)]
polyLengths = {}
for l in 'abcdefghijklmnopqrstuvwxyz':
polyLengths[l] = polymer.replace(l, '').replace(l.upper(), '')
clearPass = False
while not clearPa... | [
"alekaei522@gmail.com"
] | alekaei522@gmail.com |
c81059988c5dd0c4f6ab9e0838d2642382177278 | c95b3489d2eb78169e18e045f8b94fe7eabbdb5a | /test/issues/issue27_test.py | a78ed39a04e8a53590a81dca9df15df7333d4f8f | [
"Apache-2.0"
] | permissive | chaimleib/intervaltree | 51d337990b6b02807ff858a1e11694c1a347ac56 | 01a30a8df977a02e1b6e25eee3838b8d6b340995 | refs/heads/master | 2023-08-30T21:37:44.419160 | 2023-03-29T17:43:06 | 2023-03-29T17:43:06 | 18,158,381 | 581 | 116 | Apache-2.0 | 2023-02-22T00:15:54 | 2014-03-26T23:54:47 | Python | UTF-8 | Python | false | false | 1,909 | py | """
intervaltree: A mutable, self-balancing interval tree for Python 2 and 3.
Queries may be by point, by range overlap, or by range envelopment.
Test module: IntervalTree, insertion and removal of float intervals
Submitted as issue #26 (Pop from empty list error) by sciencectn
Ensure that rotations that promote Inter... | [
"chaim.leib.halbert@gmail.com"
] | chaim.leib.halbert@gmail.com |
c2b06340672afdd111ed8495629bc667dc414581 | 85e6d039205878475e05957219aa6fb32b04b086 | /21-merge-two-sorted-lists.py | fe8d58c771b3bbbfc84fc60686a46266cd299bf2 | [
"MIT"
] | permissive | LGX95/leetcode | e4e3fd98527a8559b60beb572b1f728b97357c14 | a25813975beca8e24e8b0c920d6e2ef488c848da | refs/heads/master | 2023-01-28T13:00:16.624801 | 2020-12-07T15:17:58 | 2020-12-07T15:17:58 | 292,799,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | """Question: https://leetcode.com/problems/merge-two-sorted-lists/
"""
from datastruct import ListNode
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
curr = dummy = ListNode()
while l1 and l2:
if l1.val < l2.val:
curr.next = l1
... | [
"ligengxin95@gmail.com"
] | ligengxin95@gmail.com |
2924ecd026a7be9109e89a1ce2001fbe9027dd62 | 3880459de628e19d82891b2d27b18db925c81dcf | /utils.py | 98921ebcb43ec3f931b955e31b9e575f042812ce | [] | no_license | sjchasel/FinancialIntelligence | 027388335831344f9dca98483b559cc45121d316 | cc0db12ef95eed1901df51347b42e080ec37abdf | refs/heads/main | 2023-06-27T15:16:03.088496 | 2021-08-03T09:19:54 | 2021-08-03T09:19:54 | 376,996,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,285 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
import torch
import torch.nn as nn
import torch.nn.functional as F
from tqdm import trange
from transformers import AutoModel, AutoTokenizer
from transformers import BertTokenizer, BertModel
from torch.utils.data import DataLoader, TensorDataset
from sklearn.metrics import a... | [
"1296841437@qq.com"
] | 1296841437@qq.com |
d9fe6f00109d7ea449564f348bea0fbcf2feca43 | 001184c168b93118f0429b11bab55fe108928b5d | /Week 3- Programming Assignments/Orientation2.py | 533af81246e273eec244ce942ae5e3e9300f2085 | [] | no_license | harrypotter0/ml-robot | caee1f9695427b8a83f64a41420f89b948fdb801 | 06e6672ba47fd73d4077ff5a6f48bdfafaea6597 | refs/heads/master | 2021-09-14T04:28:31.987037 | 2018-05-08T14:30:04 | 2018-05-08T14:30:04 | 115,803,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | # In this exercise, write a program that will
# run your previous code twice.
# Please only modify the indicated area below!
from math import *
import random
landmarks = [[20.0, 20.0], [80.0, 80.0], [20.0, 80.0], [80.0, 20.0]]
world_size = 100.0
class robot:
def __init__(self):
self.x = random.random() ... | [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
6c81ceed055c2d375b64725926e5208cb180263e | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/plugins/VersionUpgrade/VersionUpgrade25to26/__init__.py | c74b3218b6ee2cb2b18f90149702826398f3ef7d | [
"GPL-3.0-only",
"LGPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 2,027 | py | # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Any, Dict, TYPE_CHECKING
from . import VersionUpgrade25to26
if TYPE_CHECKING:
from UM.Application import Application
upgrade = VersionUpgrade25to26.VersionUpgrade25to26()
def getMetaData() -> Dict... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
1eb189ae65d0e595f75658cb9e990349ad5f7c32 | 26cd1e49030341b8ce532a79211493e8bd8962af | /rl backup 20131126.py | 8972b46d638c8163b962307a50fe001940ba82d9 | [] | no_license | cgibbs/PyRoguelike | 3d05520f2fdfc54998720eee2699cbaad4cea5cc | 049a0418dac5a0e924407af1018eebcf38663498 | refs/heads/master | 2021-03-13T00:07:09.338283 | 2014-12-03T19:58:20 | 2014-12-03T19:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,768 | py | import libtcodpy as libtcod
import math
import textwrap
import shelve
import string
import time
SCREEN_WIDTH = 80
SCREEN_HEIGHT = 50
LIMIT_FPS = 20
BAR_WIDTH = 20
PANEL_HEIGHT = 7
PANEL_Y = SCREEN_HEIGHT - PANEL_HEIGHT
INVENTORY_WIDTH = 50
MSG_X = BAR_WIDTH + 2
MSG_WIDTH = SCREEN_WIDTH - BAR_WIDTH - 2
MSG_HEIGHT = ... | [
"kcg005@shsu.edu"
] | kcg005@shsu.edu |
1564996a59aed6a91a7494bbe86e79f0eb22aaca | 275c4026d99059341e9ddcbaf834f3863d4a7b71 | /src/fiximports.py | 74f94eb442e0a49072e5ab688d80268d5e99c911 | [
"BSD-3-Clause"
] | permissive | sr-lab/verified-pam-cracklib | fad014dbaf2d6a63543104a1bae57950e91524cc | f2fe95c54c1085a9577490f06a22e797c3697375 | refs/heads/master | 2021-01-19T07:36:19.538160 | 2018-05-23T22:24:05 | 2018-05-23T22:24:05 | 82,292,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | #!/usr/bin/env python
# preprocessor: add extra imports
# preprocessor: ghc -F -pgmF
import os, sys
imports = """
import qualified Data.Bits
import qualified Data.Char
import qualified GHC.Prim
"""
filename = sys.argv[2]
out = open(sys.argv[3], "w")
out.write("{-# LINE 1 \"%s\" #-}\n" % (filename))
for n, line in e... | [
"saul.a.johnson@gmail.com"
] | saul.a.johnson@gmail.com |
d91241e28a7781f4e1b8d3e0aaae4e0162f0622f | a3eccc652f83815318bdb033a33573c5b1e073e9 | /nac/crm/views/add_lead.py | 7d6cf4cdf3c36cb198817a0d24a038fb42afd38d | [] | no_license | jsvelu/coms-dev--old | 8139fa511e2985b4d71550f1c59402069d09edf3 | de300ad6ef947d29380972a6efe809f4ef05d7e1 | refs/heads/main | 2023-07-17T20:44:36.101738 | 2021-09-04T21:56:38 | 2021-09-04T21:56:38 | 403,158,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from authtools.views import resolve_url_lazy
from django.urls import reverse_lazy
from django.views.generic.edit import FormView
from rules.contrib.views import PermissionRequiredMixin
from crm.forms.lead import LeadForm
from customers.models import Customer
from dealerships.models import Dealership
class AddLeadVie... | [
"velu@qrsolutions.in"
] | velu@qrsolutions.in |
6d9ced454145fc2b7691e9934b6e754a3ceb726d | 18536f8145457a193b976eec44ee92535f588e54 | /tests/functional/s3api/test_select_object_content.py | 87750a30e5124bb75e76a8d9613cd5c8052055b8 | [
"Apache-2.0"
] | permissive | jamsheedsaeed/awsapp | 07e4ec6b9e07f679106db8e61f104ee9065e6af0 | 5498a3652b1d471a8695e14ca9739140e88a4b29 | refs/heads/master | 2023-01-01T23:44:16.181967 | 2020-06-19T06:56:48 | 2020-06-19T06:56:48 | 273,418,893 | 0 | 0 | NOASSERTION | 2022-12-26T20:16:39 | 2020-06-19T06:16:31 | Python | UTF-8 | Python | false | false | 4,758 | py | #!/usr/bin/env python
# Copyright 2018 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in ... | [
"jamsheedsaeed786@gmail.com"
] | jamsheedsaeed786@gmail.com |
a82cdbdc538afca933f90a5e2880ccdcce52f870 | 621d0b65820c529b44ee06eea9ca1523fd158cd8 | /flask_questions.py | d3b41d4691abcdbd5ca1b43fe70a65db6c0db56d | [] | no_license | aparnapr121/python_practice | 99fbe646a8ebe482074322722c9010a7997961de | 6460f67e7ba7c2fc701ec8a27518c1b834c4ec8c | refs/heads/master | 2020-04-27T15:49:10.989048 | 2019-09-30T04:55:07 | 2019-09-30T04:55:07 | 174,461,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | """
Flask db migrations
"""
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
app =Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'
db = SQLAlchemy(app)
migrate = Migrate(app, db)
class User(db.Model):
id = db.Column(db.Integer, primary_... | [
"aparnapr121@gmail.com"
] | aparnapr121@gmail.com |
6017959ca8b24f96799feb4c4d7d782a199cab41 | 2d195a727e2c006ca7a9614016e5a18d06b4bc2b | /17drill.py | a37a1adf923430a1d111dd466c17b42ca1332581 | [] | no_license | semosso/lpthw | fc500456fabd39b3919b4b631b26fa4dda2172e5 | 83c2e7c6a9a879ed3cd6b5c11c504c6d11a4717b | refs/heads/master | 2020-04-07T05:48:14.730969 | 2019-03-24T22:28:59 | 2019-03-24T22:28:59 | 158,110,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # SD
from sys import argv; from os.path import exists
script, from_file, to_file = argv
print(f'Copying from {from_file} to {to_file}.')
indata = open(from_file).read()
print(f'The input file is {len(indata)} bytes long. Does the output file exist? {exists(to_file)}')
out_file = open(to_file, 'w') # SD 4 related... | [
"vnazambuja@gmail.com"
] | vnazambuja@gmail.com |
858f6123ce2a85f7c7c16b36c09c7fa59fb9ca1a | b7a4e5b4216ccd3be0922326f8e3c5da4f19265c | /Project 2 - demographic_data_analyzer/test_module.py | f55b015fc45207b10cb7257dfe8290f3c3b2722a | [] | no_license | CzarneckaAnna/Data-Analysis-with-Python | bb2ce09b766ded8affb46afe17e89aad3e774098 | 50e7a296aca1805b93c1b97a495336194b84bfa1 | refs/heads/main | 2023-06-12T21:50:37.024196 | 2021-06-29T07:15:57 | 2021-06-29T07:15:57 | 376,090,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | import unittest
import demographic_data_analyzer
class DemographicAnalyzerTestCase(unittest.TestCase):
def setUp(self):
self.data = demographic_data_analyzer.calculate_demographic_data(print_data = False)
def test_race_count(self):
actual = self.data['race_count'].tolist()
expected = [... | [
"77941142+CzarneckaAnna@users.noreply.github.com"
] | 77941142+CzarneckaAnna@users.noreply.github.com |
d7b26fb31c391f73723ea82312f6d38eee6913cc | 0d7ce029df04852763f63b8d148eeac5d7dbb89c | /web_6/MVC/Controller/routes/routes_login.py | 10f6ad8cb26882d253913b29d9750d9fd7148cc1 | [] | no_license | lph4stalin/xiao | f42a3961326468125c82a764349deeb1a6b1fd42 | ce2bf2aa215f823c448fe079ff04524ca4128aed | refs/heads/master | 2020-05-31T14:40:04.126333 | 2019-08-04T04:00:12 | 2019-08-04T04:00:12 | 190,334,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from Model import *
from .utils import *
import sys
sys.path.append('../')
import Controller.session
def route_login(request):
"""
login 的函数,传入 POST 的 Body,返回页面
会把原始页面中{{result}}部分替换为自定义内容
"""
r = page(request).decode(encoding='utf-8')
if request.method == 'POST':
# 把 body 解析成字典
... | [
"34419569+lph4stalin@users.noreply.github.com"
] | 34419569+lph4stalin@users.noreply.github.com |
4d49e6a6ebef6ee3656c669671bf466d09be810f | cad821661e025a83b37db741bc8c680ed3e85055 | /utils/init.py | 54a39a97884b5e4a50dcf1441205d63d8c366435 | [
"MIT"
] | permissive | Flyfoxs/DFL-CNN | 96eb30c0c6e7dfdccb2f0bf5f98e01317c54040d | 49ef653488aabbcc2495305d39b63f5f4c5093ea | refs/heads/master | 2021-02-18T08:37:05.384326 | 2020-03-08T15:11:34 | 2020-03-08T15:11:34 | 245,178,577 | 0 | 0 | MIT | 2020-03-05T14:04:03 | 2020-03-05T14:04:02 | null | UTF-8 | Python | false | false | 1,283 | py | from torch.nn import init
def init_net(net, init_type='normal'):
init_weights(net, init_type)
return net
def init_weights(net, init_type='normal', gain=0.02):
def init_func(m):
# this will apply to each layer
classname = m.__class__.__name__
if hasattr(m, 'weight') and (cla... | [
"noreply@github.com"
] | noreply@github.com |
71fd3ac1332d7bf2b5e91a0def54ccd030a76166 | e344e4b9ae7a73bcb04c5525968972763856c3d0 | /ICP 1/Source/venv/Scripts/pip3-script.py | 95a8214579a56e4341997eed069163eab1128119 | [] | no_license | sai-kolla/Python | 1d68589a395f5e19f76d57e4201c735d2a12337d | 1116635b42029d5e7adccca584315869f5c16cf1 | refs/heads/master | 2022-02-10T04:23:16.919632 | 2022-01-20T19:21:56 | 2022-01-20T19:21:56 | 167,486,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | #!C:\Users\sainagarjuna\Desktop\Python\part-1\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"nagarjunaguf17062@gmail.com"
] | nagarjunaguf17062@gmail.com |
84920513cb1563a1d74030b4b122dcb70823892e | bbcc6cbeedf6bf4feaa95dedd6ce2ba0049f2bae | /example/gesture_recognition/gesture_rgb_demo_keras.py | bf654c017796023a607f6ccf463040b7cc5a74d7 | [] | no_license | rocking5566/deep-learning-docker | 5cb74e1ff1684236187d282e2b133d26efafa1ed | d8d8186495eb71b10bbf68fa6b4b47f141549455 | refs/heads/master | 2021-07-12T16:17:15.640411 | 2020-07-15T07:05:48 | 2020-07-15T07:47:05 | 146,019,058 | 4 | 3 | null | 2019-04-27T15:35:40 | 2018-08-24T17:08:37 | Python | UTF-8 | Python | false | false | 2,432 | py | import cv2
import numpy as np
import time
from keras.models import load_model
skinkernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE,(5,5))
labels = ['Five_Finger', 'Four_Finger', 'Good_Sign', 'One_Finger', 'Three_Finger', 'Two_Finger', 'other']
def skin_mask(frame, x0, y0, width, height):
# HSV values
lo... | [
"aa155495.cs01g@nctu.edu.tw"
] | aa155495.cs01g@nctu.edu.tw |
0d6f16c184e2ce478047763e87b14aba93f6cafa | 2b86301d5ad3fecaa5a300cabfe6b4dfc82b78ed | /venv/Lib/site-packages/tornado/web.py | bb2684eb81a0c172288230f3ed046e2ddf4ec3c2 | [
"MIT"
] | permissive | sserrot/champion_relationships | 72823bbe73e15973007e032470d7efdf72af3be0 | 91315d6b7f6e7e678d9f8083b4b3e63574e97d2b | refs/heads/master | 2022-12-21T05:15:36.780768 | 2021-12-05T15:19:09 | 2021-12-05T15:19:09 | 71,414,425 | 1 | 2 | MIT | 2022-12-18T07:42:59 | 2016-10-20T01:35:56 | Python | UTF-8 | Python | false | false | 138,290 | py | #
# Copyright 2009 Facebook
#
# 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 agreed to in writing, s... | [
"sserrot@users.noreply.github.com"
] | sserrot@users.noreply.github.com |
bbe75444d302d73114f2dc23cf5b7892d1e85103 | 1f007dc6cf88326f67bdba951dd35e2903bbe63d | /first.py | db1cb219e4d2e204e309dff65617843a800f1857 | [] | no_license | SemihBogaz/voice_command | 18775c0d3a8549a4c1515dc525e89d309ad1e685 | c582274782c2f9b4eeb6bba090e7ba0b9ce66b8f | refs/heads/master | 2020-07-05T04:09:44.318374 | 2019-08-15T09:57:36 | 2019-08-15T09:57:36 | 202,517,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | import speech_recognition as sr
from os import system as command
import voice_command.shrink as func
# Record Audio
r = sr.Recognizer()
with sr.Microphone() as source:
command("cls")
print("Say something!")
audio = r.listen(source)
flag = False
# Speech recognition using Google Speech Recognition
try:
... | [
"sbogazq@gmail.com"
] | sbogazq@gmail.com |
2bb2a509afadc7c3f3ff75189c8a831aca872153 | e2e8b2997801d506fcf9336d57910dbcb7d4030a | /apart/board1.py | 4381897844844b71bcf558ff4f568403974fd4fd | [] | no_license | Logan-kim7/studycrawl_test | 0d67e928f7e6ce7ef668360d8347e6f45fe3a154 | 98c8ac88bd139cb6ff1163a3f4623a024123c25f | refs/heads/master | 2023-07-06T21:03:16.203198 | 2020-06-22T07:44:04 | 2020-06-22T07:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # 제목, 내용, 작성일자, 작성자
import requests
from bs4 import BeautifulSoup
url = 'http://news.sarangbang.com/talk/bbs/free/163831?url=%2F%2Fnews.sarangbang.com%2Fbbs.html%3Ftab%3Dfree'
resp = requests.get(url)
if resp.status_code != 200:
print('WARNING: 잘못된 URL 접근')
soup = BeautifulSoup(resp.text, 'html.parser')
title =... | [
"skynate22@naver.com"
] | skynate22@naver.com |
466afc3c2f8ea5e751d48b901d7493e5f8b27c5b | 80022966e020bb3c4e0a5888362d7c9fa087ee49 | /High_Pass_Filter.py | 2e54886a7f6b387387c15881625644416dc4bcd0 | [] | no_license | Temuujin-Natsagnyam/Electronic-simulations | 2baa485243aee2a354ae99c96eeaa015c40ead8c | 7b7f44e286dd846559dbb7874487a9e917395921 | refs/heads/master | 2021-05-12T02:56:31.329335 | 2018-02-02T22:45:30 | 2018-02-02T22:45:30 | 117,602,164 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | #This filter blocks out low frequencies. Try changing values for f on line 16 to see effects.
import matplotlib.pyplot as plt
from matplotlib.pyplot import *
import numpy as np
def lag(V_input,T,V_previous_output): #lag function
V_new_output = V_previous_output + (V_input - V_previous_output)/T
return ... | [
"noreply@github.com"
] | noreply@github.com |
ef1db9e22c21827eb0398501a7637b0032bce8a1 | e561a6225346bd7b45355194b4ac53f8866c42e4 | /transiter_ny_mta/transiter_ny_mta/alertsparser.py | a42b87ace705bfa063ff15189f7388055db91e13 | [
"MIT",
"Apache-2.0"
] | permissive | jamespfennell/transiter-ny | 5005cc67c6ce1477ce99b9c3decde7101bd47dba | 5952f8c204358b271fc4abafba9aab1ca3787493 | refs/heads/master | 2023-05-09T17:01:56.742970 | 2021-06-16T02:16:15 | 2021-06-16T02:16:15 | 157,099,383 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,420 | py | import enum
import os
from transiter.parse import Alert
from transiter.parse import gtfsrealtime
from .proto import alerts_pb2 as gtfs_rt_pb2
class NyctBusPriority(enum.Enum):
UNKNOWN = 0
NYCT_BUS_PRIORITY_NO_SCHEDULED_SERVICE = 1
NYCT_BUS_PRIORITY_SUNDAY_SCHEDULE = 2
NYCT_BUS_PRIORITY_SATURDAY_SCHE... | [
"jamespfennell@gmail.com"
] | jamespfennell@gmail.com |
65604f5a94139165f1c75b887f7aa3d6cb7948f1 | cc648007dc85e231af7de608f52dd6782aa3f067 | /tests/keras/applications/applications_test.py | 909e99cf03d7feb9c6130bc66ce0a0429ba34bb1 | [
"MIT"
] | permissive | reemaRaven/AgeGenderRecognitionPython | 1eb02547d5aabeead8ab1b978280da4a6bf8d18a | bdd749685840822350687618aaadad0a5d7d84ea | refs/heads/master | 2022-10-05T11:07:28.855190 | 2022-09-15T15:59:45 | 2022-09-15T15:59:45 | 135,426,703 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,453 | py | import pytest
import random
import os
from multiprocessing import Process, Queue
from keras.utils.test_utils import keras_test
from keras.utils.test_utils import layer_test
from keras.models import Sequential
from keras import applications
from keras import backend as K
pytestmark = pytest.mark.skipif(
os.environ... | [
"noreply@github.com"
] | noreply@github.com |
9f07b9a1f2bbe353e56d790b97862ed6285cfadd | f339663cece2424266828d72316bc45e918ff20b | /run_tests.py | e3b9b8d3e5b87497e66f3b21fee42b825259143d | [] | no_license | sharly2012/api_auto | d106b9506d9ab53c9963a3c6ba743aae9ac815dc | 0ce10afd7984800e27ba7e330adc3d40f61ebfe3 | refs/heads/master | 2020-03-27T02:29:18.097906 | 2018-08-23T03:22:23 | 2018-08-23T03:22:23 | 145,695,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import os
import sys
import time
import unittest
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)
from util.BaseUtil import BaseUtil
from runner.HTMLTestRunner import HTMLTestRunner
test_suits = unittest.TestSuite()
test_dir = BaseUtil().get_root_path... | [
"sharly2012@sina.com"
] | sharly2012@sina.com |
557b03cc273636b6aec6e63858471538c5db84b4 | 64f528739e65a5dfb8b085b9dac85584ed15833d | /batch_helpers/s3_helpers.py | 86fafa9adc82969deb3e97affbf72553b0228c4e | [] | no_license | FredHutch/docker-mothur | e61da21fc4c1dce37c9a29b65f07719e6cab9ae5 | b78b7867c1d2f5d6c99f80a4b6606740d88d899c | refs/heads/master | 2018-11-11T19:18:59.436879 | 2018-08-22T18:39:20 | 2018-08-22T18:39:20 | 113,611,146 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | #!/usr/bin/python
"""Functions that help with downloading or uploading files to S3."""
import os
import boto3
import logging
from exec_helpers import run_cmds
from exec_helpers import fastq_to_fasta
from sra_helpers import get_sra
def s3_path_exists(s3_url):
"""Check to see whether a given path exists on S3."""
... | [
"sam@fredhutch.org"
] | sam@fredhutch.org |
5e6d52adf01b93ef37a0657c9724b59153a22997 | b4463b2c4434251003733b1e2082a7bca906dd0d | /bug.py | d46aae30716092e5ae0bdb6bb768daa912eb6b7d | [] | no_license | JeanLouisDufour/smtlib | cca2d6f32c0f7f385f279a128c0fb8a4d760b7dc | c8b193736b7eee42d9efe704de86b3044c3a9b87 | refs/heads/master | 2021-10-22T12:16:35.835203 | 2021-10-21T06:26:31 | 2021-10-21T06:26:31 | 232,175,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import sys
#sys.setrecursionlimit(10**6)
rec_lim = sys.getrecursionlimit()
print('rec lim : {}'.format(rec_lim))
def depth(t):
""
if isinstance(t,(list,tuple)) and t:
d = max(depth(ti) for ti in t)+1
else:
d = 0
return d
if len(sys.argv) == 2:
lim = int(sys.argv[1])
else:
lim = 30000 # rec... | [
"jeanlouis.dufour7@gmail.com"
] | jeanlouis.dufour7@gmail.com |
ac83f37408f9ce4faeb63627ab445bf3739bee2e | 99aec7b0cfe6ef23ad515d52a0972e3b1f97b5b3 | /asgn3/src/parser_yacc.py | ecfe4434ac98b0b3c5c92de2cd422df2ae1263fc | [] | no_license | shubhag/compiler | f021525c7c999167bd4831ea17965d45ac89b7c4 | c8f43f54ec610586575c8457a9258d9389f9ce49 | refs/heads/master | 2021-01-18T14:20:43.386841 | 2015-04-14T15:17:18 | 2015-04-14T15:17:18 | 29,200,534 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 38,395 | py | import ply.yacc as yacc, sys
import symbol as symbolTbl
import tac as tac
# Get the token map from the lexer. This is required.
from lexer_yacc import tokens
ST = symbolTbl.symbTbl()
TAC = tac.threeAddressCode(ST)
def p_compilationunit(p):
'''CompilationUnit : ProgramFile '''
# ST.printSymbTbl()
TAC.printTAC()
... | [
"shubhamagrawal094@gmail.com"
] | shubhamagrawal094@gmail.com |
f2df0a5b18ace630467007d86e19afacb3556e85 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/scapy/utils.py | 5b1a8f7bb5902f7ffccbf08702bef25a0a6f3395 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 61,921 | py | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
General utility functions.
"""
from __future__ import absolute_import
from __future__ import print_function
from decimal ... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
76b5f00b33e1e1c14706ac0d49c7aa81282dd5c1 | 773c18637235a55dc3b2c716338f2d1bbe2b1672 | /migue/migue/urls.py | 6d56d1ffd7ba49547d58bce2082a68e9e60b07c2 | [] | no_license | ElDumah/fase2GonzalezVaras008V | f0e28058ee1df986d6fd65286ea8397ca535c5be | ea1c798c338fffa49b94c222f7e50b5dec3b31c0 | refs/heads/main | 2023-01-13T04:09:57.948179 | 2020-11-06T03:09:34 | 2020-11-06T03:09:34 | 310,417,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | """migue 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 v... | [
"felipegg140@gmail.com"
] | felipegg140@gmail.com |
b9c002459698dfe723cf7ba8bd912fba77f75fde | 9ecc9daad0ed04264a3ab1e33e13631c297f5e4c | /backend/migrations/0001_initial.py | c20dff19f441d342a5950c4e48b1fe8c40b2713c | [] | no_license | denisqa2h/django_tractorsPTZ | 4822272ed317b104b132a9a5c1c80e44be795f0b | b1d6fccbcf626b9750078a5b14aba29e207ada90 | refs/heads/main | 2023-09-02T11:43:31.577469 | 2021-11-23T20:16:58 | 2021-11-23T20:16:58 | 431,236,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | # Generated by Django 3.2.8 on 2021-11-18 19:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"denisqa2h@yandex.ru"
] | denisqa2h@yandex.ru |
baa5c5fefc9c8ea942dc377a5fc819bcabc8897a | 36b7139a9ba0a0fb0181605950b26aa2971c8c35 | /lib/config/default.py | 3763ebf44d83c4769e213464dd1e80f4da5b1e96 | [
"MIT"
] | permissive | Re3write/deepresolution | 845962d27cae4a1a7bd6929ebedf6211f2e2e1f8 | 2ad7e67beae89d181a5c7c9bcf553b65c6327faa | refs/heads/master | 2020-04-28T21:26:16.515656 | 2019-03-14T08:48:50 | 2019-03-14T08:48:50 | 175,581,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,471 | py |
# ------------------------------------------------------------------------------
# Copyright (c) Microsoft
# Licensed under the MIT License.
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __fut... | [
"1936929110@qq.com"
] | 1936929110@qq.com |
74424ac3e6d93d62acb824c11f9c1c939a91b9e4 | 285085d0a6388c9fab93ad1863403d60c3b07141 | /LeetCode/有效的括号.py | e3c0d6d1562ded4346cc68811f07324799ae73fc | [] | no_license | winstonfy/python_life | 8fa978bd4f9371bd0c51894a72453971b230a955 | 79e238403419cba922b3fb9cc24571398d7b14cd | refs/heads/master | 2022-04-19T00:16:35.476738 | 2020-04-16T07:19:08 | 2020-04-16T07:19:08 | 256,140,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | #__author__ = 'Winston'
#date: 2020/2/22
def isValid(s):
dic = {'{': '}', '[': ']', '(': ')', '?': '?'}
stack = ['?']
for c in s:
if c in dic: stack.append(c)
elif dic[stack.pop()] != c: return False
return len(stack) == 1
aa=isValid('([)]')
print(aa) | [
"withong_1314@163.com"
] | withong_1314@163.com |
2958eecfff5d168b9defe4a24e536c251c58de46 | db331fb24e5b95131413c8d5cebc880674dd30f7 | /foundation/migrations/0009_title_img2.py | d49553924ebcef455145509d19762fb843f2a4e0 | [] | no_license | kmvit/personalsite | 78fb18f428e3c95219d9145cb22bdefdf8896bf9 | 5da20e853055affdad4e6d21f36bae6cfe7507b7 | refs/heads/master | 2021-06-18T13:34:03.800622 | 2017-04-07T12:40:24 | 2017-04-07T12:40:24 | 27,366,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('foundation', '0008_auto_20141201_2156'),
]
operations = [
migrations.AddField(
model_name='title',
n... | [
"kmv-it@yandex.ru"
] | kmv-it@yandex.ru |
7bb39738e94a5b5e9dc321265e095891bac887f7 | edd0ad7c9956c30feee1c6e9bfccc71226c55d55 | /FlaskerNews/FlaskerNews/views/vote.py | a5056bbe6a53d20dbaebb0492b47da862963f08f | [] | no_license | plutokid/FlaskerNews | 30761f1074e994b1f61f5c8fede77277a381dd86 | 99a145ab2d36b50517bb0eee20e1c80331996a4a | refs/heads/master | 2020-07-12T09:56:09.642408 | 2015-04-10T03:41:25 | 2015-04-10T03:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from flask import Blueprint, g, redirect, url_for, session
routes = Blueprint('vote', __name__)
@routes.route('/vote/<int:link_id>')
def vote(link_id):
"""
Increment the links votes by one
:param link_id: int Id of the link
:return: View
"""
if session.get('logged_in'):
g.db.execute('U... | [
"rmcgr467@mtroyal.ca"
] | rmcgr467@mtroyal.ca |
d9742b6ce4662d7db2e2be406cb2ba38ea2c387a | de6e0b0c90cdbaa268da6780821152e8c889fe28 | /layers/NCF.py | 0848feb6d1a7a10a5e930dfabe3597df742eddf1 | [] | no_license | kihongmin/NCF | 8e1a841fef4149986fe482944552bcaa69c3d4ba | f235f6ff3421ccb8c6a05c3c3cd774ddb38b3909 | refs/heads/master | 2022-11-09T09:12:53.411409 | 2020-06-30T05:58:49 | 2020-06-30T05:58:49 | 270,998,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | import tensorflow as tf
from tensorflow.keras import Input,Model
from tensorflow.keras.layers import Embedding,Flatten,Concatenate, Dense, Layer
class GMF_layer(Layer):
def __init__(self,n_plylst,n_items,embed_dim,name='GMF_layer',**kwargs):
self.mf_embedding_plylst = Embedding(input_dim=n_plylst, output_d... | [
"minkh93@gmail.com"
] | minkh93@gmail.com |
77388ef09898130d90f9cc56214733cdd9160d06 | 4b60c34ba37e7c0611257e7934791fb43d01e254 | /src/Lib/pysparseSuperLU.py | 2524ee2635966f53d120c079893e98ac0bbfb303 | [] | no_license | regmi/pysparse | 0913ff69b5d07b58c20deb5b6f44caeaa8498d64 | ebc2ad045382c69e6bb41217c9431e51736ac4a0 | refs/heads/master | 2021-01-01T16:20:10.075871 | 2010-04-09T22:56:51 | 2010-04-09T22:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,502 | py | """
A framework for solving sparse linear systems of equations using an LU
factorization, by means of the supernodal sparse LU factorization package
SuperLU ([DEGLL99]_, [DGL99]_, [LD03]_).
This package is appropriate for factorizing sparse square unsymmetric or
rectangular matrices.
See [SLU]_ for more information.
... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
4fe25f4e150b0ce7ed9875fb9d679c0ed7a8c3e4 | 9889523fe76d03aa90e4e692ce28db9ba1e4ad4a | /f-anoGAN/encode2.py | 108b7a4ee200cc0422cf52e8ecef44ae0b61fbe0 | [] | no_license | zhangziquan/Anomaly-Detection | d7014333409f5adf652f3beb060f4d417121163a | df2d548b84326a253ae03efa1b928039ff73b9de | refs/heads/master | 2022-10-05T08:49:51.334663 | 2020-05-24T06:55:57 | 2020-05-24T06:55:57 | 266,486,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | import argparse
import torch
from torch import optim
from loader import get_loader
from models import Discriminator, Generator
from Etrainer2 import Trainer
from utils import PlotHelper
from wgan64x64 import GoodGenerator, GoodDiscriminator, Encoder
def main():
torch.random.manual_seed(0)
torch.backends.cud... | [
"ziquanzhang@126.com"
] | ziquanzhang@126.com |
f3403aedc03d17a697f9c7b08f4240e87c455671 | 72ab4456e58990937e0bace6bc9f2e7a4075aaaf | /session/main.py | e9c99414d025cce2e74ca861c7c3e08a74e2b3d3 | [] | no_license | saviocamacam/minicurso-flask | 659af2575eef91b38dcebecb94d0caeaece1c327 | b7ed618a4b25d0c8b3ef442fee570c0c3fa6bc1d | refs/heads/master | 2021-01-20T21:19:57.896336 | 2017-08-29T19:50:06 | 2017-08-29T19:50:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from flask import Flask, session, redirect
@app.route("/")
def index():
if 'username' in session:
| [
"a1648160@debian9-dacom.dacom"
] | a1648160@debian9-dacom.dacom |
2027baa13a86b80c2c4129115502adb7fc1464ee | 5ff670221e85384c4bf1a0eb377bcffb66caa1c5 | /plot_histogram.py | ff091c4e7fe9bcfe28aa736f5ca00eaa9e036775 | [] | no_license | jiejieautonomous/util_scripts | 54cb62c635fb0146126bb3e94e05652a9e6f4d7c | db1c953eb2acf251b1dd5d22285ec59199fc75e6 | refs/heads/master | 2021-09-26T14:46:48.386992 | 2018-10-31T00:37:44 | 2018-10-31T00:37:44 | 109,363,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import numpy as numpy
import matplotlib.pyplot as plt
with open("steering.txt") as file:
data = numpy.loadtxt(file)
data = numpy.array(filter(lambda x: x>-5, data))
plt.hist(data)
plt.title("Gaussian Histogram")
plt.xlabel("Value")
plt.ylabel("Frequency")
plt.savefig("histogram.png", dpi = 300)
plt.show()
| [
"32581447+jiejieautonomous@users.noreply.github.com"
] | 32581447+jiejieautonomous@users.noreply.github.com |
50fb0ace9918425efc89a81fbe619b4056b38b2b | f4c9a3515aeb78f82fccac4a65fac1c22c77d3f4 | /Windows.py | 6a09aa67dd860a6974875b5d215a3bc28d12568c | [] | no_license | fredricklamar/Windows-Schedule-Shtdown-Program | 3180162e862576855d05f3f41f34dbcb22dfb2cb | 05e0fc502c92daf1030eda9b1751ccda93d22a94 | refs/heads/main | 2023-01-22T15:41:38.776120 | 2020-11-24T22:25:59 | 2020-11-24T22:25:59 | 315,761,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | import os
class Shutdown:
def __init__(self):
pass
def ByMinutes(minute=6):
minute = int(minute * 60)
os.system('shutdown /s /t {} /c "THE SYSTEM WILL SHUTDOWN IN THE NEXT {} MINUTES (Fredrick_Lamar)"'.format(minute, int(minute/60)))
def ByHours(hour=60):
hour = int(h... | [
"noreply@github.com"
] | noreply@github.com |
9824125bb2e5cc4986006dddbe094514e3617d37 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2975/60678/236000.py | f7743095883cfe2fd3eb8728f8d5bdd8c431f04d | [] | 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 | 92 | py | a=input()
j=0
b=[];
for i in a:
b.append(i)
b.sort()
a=''
for i in b:
a=a+i
print(a) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b750259ce124ef286fff24e3c5e426b1daef1811 | efb2fb6090dff63ba9df0fdf6bec895215f7b365 | /untitled5.py | f4f313fd82f93cafd4e970076f1f247f19f7c3df | [] | no_license | patheisen/first-one | f94fefd9df2485e7723b920f2592ecb427d1d575 | 80eacb41683cc22fee03f301534471eaa79d820a | refs/heads/master | 2020-12-19T10:57:22.485107 | 2020-01-26T03:09:17 | 2020-01-26T03:09:17 | 235,712,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 4 00:13:07 2018
@author: paul
"""
okchar = "hlc"
info = "a"
low = 0
high = 100
guess = int((low+high)/2)
print('Please think of a number between 0 and 100!')
print('Is your secret number ' + str(guess) + ' ?' )
info = input('Enter h to indicate the gue... | [
"noreply@github.com"
] | noreply@github.com |
db4c2df17484709e6b6cdd077329a69a586eaeef | 1d6f5f94870cd7959848235c2dabc408e9f71ce8 | /test/untitled.py | edcbd32ef0bad40556d997e361e2ce702cc43b4f | [] | no_license | Raphael-Nyphalem/eclidien | 1d0af79bc2313a86b6c815d42f621c6499690877 | 0423627133f1e77cced8967adc591720d232dd47 | refs/heads/master | 2021-04-04T13:14:48.095085 | 2020-03-31T08:14:22 | 2020-03-31T08:14:22 | 248,460,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,363 | py | #!/usr/bin/python3.4
# -*- coding: utf-8 -*-
import math
import csv
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits import mplot3d
import pylab
def import_tableau_float_csv(filename):
tableau_valeur=[]
spreadsheet = csv.reader(open(filename, 'r'), delimiter=';')
for row in spreadsh... | [
"r8louisl@enib.fr"
] | r8louisl@enib.fr |
caf3c7ebeaefbe93d9c64fc405ae223a3ab5b018 | 872cf0b3a412342c9c33c1b3ed934385d270792a | /HC_Test/mayw3 _Test/boundaries.py | 1df00fbe089660cad154f24cae203172941c15fd | [] | no_license | h0uter/shero_localization_simulation | 46d75e2696d5a51e4ad8865eb30fb2dffe2d841b | bb7b5470d67060fc1091f2a3f4fa0fbe1d0ec797 | refs/heads/master | 2020-05-18T18:01:54.446826 | 2019-05-16T14:15:03 | 2019-05-16T14:35:30 | 184,572,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | from Tkinter import *
from math import sin, cos, pi, fabs
from numpy import sign
import sys
class boundaries(object):
def __init__(self,world_size,wall_width):
self.world_size = world_size
self.wall_width = wall_width
self.parray = [] # Consider preallocation for faster memory access... | [
"halithan96@hotmail.com"
] | halithan96@hotmail.com |
65dfab2bd4785e0a84b4dc18766ff005a340741f | 86c5a40ade24f7d6aab5145192f72b601fdf0b14 | /api/models.py | f615a34d9f422472d5c4478663f4d5678cbd73f3 | [] | no_license | jingchaoluan/OCRService | 93c32e3c9682ef22d08beeac295bfd385532dba5 | 734d45b3fe292b6214aba129587e7e693631c293 | refs/heads/master | 2021-10-18T18:46:06.557687 | 2019-01-17T22:12:57 | 2019-01-17T22:12:57 | 93,561,105 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from languages.fields import LanguageField
from .validators import validate_image_extension
class UploadedImage(models.Model):
# The model used in OCR recognition to proces this image
imagelanguage = LanguageField(defa... | [
"jingchaoluan@gmail.com"
] | jingchaoluan@gmail.com |
c08c9abb26256773f2ac17246a3403395039613f | b16c4781907e4db38b9c153dea3d72fb4bf05e42 | /gui.py | fdc3eeaf7b2472a864f2af34208ac64a99d97e5d | [] | no_license | conformist-mw/underground-chat | 1dc0d89395d4b379d6d68cd5c53240c645e0f9e7 | 20bdb7588ebe268efec216508dc4fa041f0c0e67 | refs/heads/master | 2023-07-08T11:01:58.101500 | 2021-08-19T20:48:15 | 2021-08-19T20:48:15 | 389,193,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,473 | py | import asyncio
import tkinter as tk
from enum import Enum
from tkinter.scrolledtext import ScrolledText
class TkAppClosed(Exception):
pass
class ReadConnectionStateChanged(Enum):
INITIATED = 'устанавливаем соединение'
ESTABLISHED = 'соединение установлено'
CLOSED = 'соединение закрыто'
def __st... | [
"conformist.mw@gmail.com"
] | conformist.mw@gmail.com |
52ee72f998113f142208a89bb6d1e6818b4f2d24 | 2d0315bf15d9b52df7be724329aaf7c3494923e7 | /Chandao_ui/run_cases.py | f46b81377d5563af8264deb8161a0c211562416b | [] | no_license | tchudi/hudi | 5872eb7d962a762e865b50970e34549af78e75ba | e25f6c935e53ca8558f075cec444864175e9eb0f | refs/heads/master | 2022-11-06T05:56:58.168330 | 2020-06-28T08:41:20 | 2020-06-28T08:41:20 | 275,278,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
__auth__ = 'HUDI'
import unittest
import HTMLTestRunner_cn
import sys
import time
sys.path.append(r'D:/Chandao_ui')
if __name__=="__main__":
casespath='./cases/'
report='./reports/'+time.strftime('%Y%m%d%H%M%S',time.localtime())+'_report.html'
discover=unitt... | [
"1561483023@qq.com"
] | 1561483023@qq.com |
5e3f127541774244db776a2ad4ca2f70cd1d14b9 | dfdbc9118742bc09d7c7fe6fe42f53b7d1d7977a | /spacegame_ii/parralax.py | 3ef67de9c8ce5c05576be44f185131d62e7cf4e6 | [] | no_license | 602p/spacegame | d1c3a34233ed7c7128d5cbe4c470c168a84700ac | 1350beeb6df2b65a0c041f512fa944cbae4dba2b | refs/heads/master | 2021-01-10T19:28:19.220218 | 2015-04-27T20:37:14 | 2015-04-27T20:37:14 | 27,309,904 | 0 | 0 | null | 2015-04-20T15:12:11 | 2014-11-29T17:39:59 | Python | UTF-8 | Python | false | false | 1,454 | py | from __future__ import division
import pygame, random
import logging
module_logger=logging.getLogger("sg.parralax")
debug, info, warning, error, critical = module_logger.debug, module_logger.info, module_logger.warning, module_logger.error, module_logger.critical
class StarfieldLayer:
def __init__(self, density, col... | [
"louis@goessling.com"
] | louis@goessling.com |
20713c09f61f91f229e758ab20e5ff3bd78ac04a | 7a850daa2fd2aca0a84fd4c8c6e27fb4ae9cfc20 | /Part 2/Chapter 11/Apriori_example(Listing_6).py | ac3e27220a2e12aaf214535d0bc02ce686273a4c | [] | no_license | knut0815/Book | e327d9df10729ed7ab958f0f5004bff706889bc0 | ee2ff6604ac9df31bbad72d3e7693063597bfe70 | refs/heads/master | 2020-09-29T04:06:37.431783 | 2018-06-16T10:42:40 | 2018-06-16T10:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #import statements
from apyori import apriori
#get the transactions
transactions = [
['A','B','C'],
['A','C'],
['B','C'],
['A','D'],
['A','C','D']
]
#apply apriori
results = list(apriori(transactions,min_support = 0.5))
print(results[0])
print(results[1])
print(results[2])
| [
"amd.srinivas@gmail.com"
] | amd.srinivas@gmail.com |
4e5eb16ce8074b0b1e7cff77d6541d6dc9348b78 | 7f2c4de1b179524f9380376111f293c81ba57502 | /authentication/urls.py | 7f6bdc8a9493410054924e63b4745789b8035662 | [] | no_license | archibishop/IOT-Dashboard | a3db5c1ae44a52cb354f6a2c956be1fb94609ad9 | 572b2a9eb23040752ff042c30694685e1b31bbcd | refs/heads/develop | 2022-12-10T10:05:54.624103 | 2019-08-15T08:11:01 | 2019-08-15T08:11:01 | 196,520,261 | 1 | 0 | null | 2022-12-08T05:59:17 | 2019-07-12T06:18:34 | HTML | UTF-8 | Python | false | false | 296 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.Index.as_view(), name='index'),
path('login', views.Login.as_view(), name='login'),
path('signup', views.SignUp.as_view(), name='signup'),
path('signout', views.Logout.as_view(), name='signout'),
]
| [
"noreply@github.com"
] | noreply@github.com |
366b123835d76c2d1d9da799e97242bd5b6eb115 | 051c3ee44478265c4510530888335335ec9f7fdf | /ML_Applications/CNNs/Mutants/Mutants_generated_by_MutPy_(code)/mutants_resnet/mutants_resnet_model_VERML_basedOn_nas_fix4_deterministic/227.py | db2b7a8e3c4f11397abeacd5d10e97ec30844aa5 | [] | no_license | PinjiaHe/VerifyML | b581c016012c62d8439adfce0caef4f098b36d5e | 3bd7c49e45720c1cdfe0af4ac7dd35b201056e65 | refs/heads/master | 2020-03-25T19:40:39.996370 | 2018-01-30T08:58:58 | 2018-01-30T08:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,666 | py | """Contains definitions for the preactivation form of Residual Networks.
Residual networks (ResNets) were originally proposed in:
[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385
The full preactivation 'v2' ResNet variant implemented in this modu... | [
"anurag.bms@gmail.com"
] | anurag.bms@gmail.com |
fe3657f499c9f10b71a26ef58326f2f95d5634cb | 6c4486ab599fd5dea9006e41cdb89db54b47b77c | /tests/products/NGP_OBLIC_Create_Ballpark.py | 92f3d21ced7693e315f188073ea8a95c59c80077 | [] | no_license | kenito2050/Python-Page-Object-Framework-Example | 28ba61cdc1498374be4fc088a1348e0acb754dc2 | 2a3a3e6c74dc7ec7c9acce41030e9487925b9b0c | refs/heads/master | 2020-04-02T15:52:24.286208 | 2018-10-25T01:46:24 | 2018-10-25T01:46:24 | 154,587,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,830 | py | from xml.etree import ElementTree as ET
import xlrd
import time
from pages.producer_center.ballpark.ballpark_Indication import BallPark_Indication
from pages.producer_center.ballpark.ballpark_PAF import BallPark_PAF
from pages.producer_center.ballpark.ballpark_download_send import BallPark_Download_Send
from pages.prod... | [
"kvillarruel@nasinsurance.com"
] | kvillarruel@nasinsurance.com |
39f268f529d0a918c58b042419c5517ca79f2909 | 2f499e10aa3a55da76354a2a426ff8d5dd8fbd9d | /crepes_bretonnes/blog/migrations/0008_contact.py | 318c592af92df0a453fde40c4378c5930cddc1e6 | [] | no_license | OtmanAndour/Projet-8-Cours-OC | d16a81a7a2fb5211a96866d86faec4288655ec26 | f31eb141ba5679b08f3ae1725b930e27cd32b75f | refs/heads/master | 2020-05-19T06:13:00.603002 | 2019-05-09T13:29:44 | 2019-05-09T13:29:44 | 184,867,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # Generated by Django 2.2 on 2019-05-05 09:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_article_slug'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', ... | [
"andour.otman@gmail.com"
] | andour.otman@gmail.com |
3e8474ef201455aa5739a31fe47a4749d1b82850 | e6f4e3afd16a7ee5c7a8fb61f7ed697ce88ef4c4 | /Pro2/abcpp/abcpp/treeplot.py | c8a4ebaadf40cfd0ca32ddbb58e1a29142193621 | [] | no_license | xl0418/Code | 01b58d05f7fae1a5fcfec15894ce0ed8c833fd1a | 75235b913730714d538d6d822a99297da54d3841 | refs/heads/master | 2021-06-03T21:10:31.578731 | 2020-11-17T07:50:48 | 2020-11-17T07:50:48 | 136,896,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | import sys, os
import platform
if platform.system() == 'Windows':
sys.path.append('C:/Liang/abcpp_master8/abcpp')
elif platform.system() == 'Darwin':
sys.path.append('/Users/dudupig/Documents/GitHub/Code/Pro2/Python_p2')
from dvtraitsim_py import DVSim
from dvtraitsim_shared import DVTreeData, DVParam
import n... | [
"xl0418@gmail.com"
] | xl0418@gmail.com |
ff2b1e0c24570a6af8dd3afc556dc6a113bf32bd | 6703e02500b0c6133b88a6cdcb7d697aab548a43 | /utils/camera.py | a974fe66cff3977e75b750ab10c9cea24259409f | [] | no_license | volrath/aigames | f127b852efedd161f5bac257215e19f4d1c157a8 | 385d243c44d2c967ed3f6df10e44886f332745c2 | refs/heads/master | 2020-06-04T20:28:22.175879 | 2009-04-08T09:19:02 | 2009-04-08T09:19:02 | 196,714 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,169 | py | import pygame
from pygame.locals import *
from utils.locals import MAIN_VIEW, SIDE_VIEW, TOP_VIEW
class Camera:
"""
Models an opengl camera
"""
def __init__(self, position=(0.,0.,0.), view=(0.,0.,0.), up=(0.,1.,0.)):
self.position = {'x': position[0], 'y': position[1], 'z': position[2]}
... | [
"volrath.fp@gmail.com"
] | volrath.fp@gmail.com |
a27f3a20b6fa8d1ba378c1d002f8540193ad314f | e547f7a92e7a1c1d79f8631f9e8ee8a93879a4eb | /src/repairs/orig_10.py | c3ab8fcb1de9b539ab3376dd8e20fd33d3a46618 | [] | no_license | gsakkas/seq2parse | 3c33ec7bc6cc6e4abd9e4981e53efdc173b7a7b9 | 7ae0681f1139cb873868727f035c1b7a369c3eb9 | refs/heads/main | 2023-04-09T12:29:37.902066 | 2023-01-18T21:32:12 | 2023-01-18T21:32:12 | 417,597,310 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | a = 5
if 0 =< a < 10:
print("test passé")
| [
"george.p.sakkas@gmail.com"
] | george.p.sakkas@gmail.com |
97fd14465e013db61fed8ed0b72b9e7fbdbe377a | ac4b821ae9ab3306e59059a40d3e3e74d18aa80b | /Glitch/Client/Messaging.py | 6aa357ae72d6761f3e97fe276029ae64ab7abc65 | [] | no_license | tylerreisinger/glitch_bot | ed8bd076df232e23dee8f0a4ceccf05cf5c797e3 | 6d6ee0d984f403bcc5ab7b73882c6c47b9190943 | refs/heads/master | 2020-06-27T22:21:34.815614 | 2016-11-22T20:23:25 | 2016-11-22T20:23:25 | 74,510,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | from Glitch.Events.Messaging import RoomOpenedEvent
class ChatManager(object):
def __init__(self, globalId, helpId):
self._globalId = globalId
self._helpId = helpId
self._openRooms = []
def SendLocalChatMessage(self, client, message):
return client.SendPacket('local_cha... | [
"reisinger.tyler@gmail.com"
] | reisinger.tyler@gmail.com |
e1777656b213d4c2844b2c00100ec25284c3bbdb | 5a5e3e838ee72d9e2922192e6e0f240340ef6540 | /visual_novel/visual_novel/context_processors.py | 6e67bbd1726d615df0f6a60c8a3fcc09137c1903 | [
"MIT"
] | permissive | dolamroth/visual_novel | 6c89787079cf48dc0d0d70ca7ad3be3da97ae741 | e3f1b13187e0fff5f6c94af907e0944b45f85fdc | refs/heads/develop | 2023-07-26T19:50:42.472442 | 2022-11-22T11:54:26 | 2022-11-22T11:54:26 | 124,779,991 | 8 | 4 | MIT | 2023-09-10T13:37:13 | 2018-03-11T17:15:56 | Python | UTF-8 | Python | false | false | 293 | py | def global_settings(request):
return {
'custom_admin_header_settings': _admin_custom_header_settings()
}
def _admin_custom_header_settings():
admin_header = dict()
admin_header['header_title'] = 'Администрирование vn-russian'
return admin_header
| [
"noreply@github.com"
] | noreply@github.com |
a0a4f5653ab88ed2135ff8bf01ab21870eb8ee7d | aeb76e7e5be21cab34407cea229a45f196b3caf1 | /src/analysis/math_utils.py | 1125e4af15a129eb659a5c6549d2fd6c1841f99e | [
"MIT"
] | permissive | Frama-99/Whisking-Analysis | 63bfb0490400e3e23f369de34dd3fa9fba09d632 | 46552e20eb84582857848ec44b034844fbe191a4 | refs/heads/master | 2023-02-21T23:04:31.574307 | 2021-01-02T06:29:15 | 2021-01-02T06:29:15 | 263,380,319 | 2 | 0 | MIT | 2020-05-20T02:30:05 | 2020-05-12T15:43:52 | Python | UTF-8 | Python | false | false | 1,901 | py | import numpy as np
from scipy.spatial import distance as dist
def regress(df_x, df_y, df_likelihood, start_df_ind, end_df_ind, frame):
# print("Regressing frame", frame)
x_arr = df_x[start_df_ind:end_df_ind, frame]
y_arr = df_y[start_df_ind:end_df_ind, frame]
ind_to_delete = np.array([])
for bp_... | [
"ma990801@gmail.com"
] | ma990801@gmail.com |
e065d8213af8822e9badd779144dceb7ce76d332 | 6896a34d8f53fa31a3dbae8505eec15836a1382f | /tests/test_queen.py | 74bfcda81bcaeb12effe9ff1644866459387440a | [] | no_license | mymorkkis/gamesroom | 851dd04a992058d88dbe7db750c041a7850e1db1 | 267c5ff7ba761cb2e3f94b0219fcb99cdf1a83f4 | refs/heads/master | 2022-02-03T14:02:27.463480 | 2022-01-14T14:26:57 | 2022-01-14T14:26:57 | 140,058,904 | 0 | 0 | null | 2022-01-14T14:27:47 | 2018-07-07T06:29:46 | Python | UTF-8 | Python | false | false | 950 | py | """Test module for Queen game piece."""
import pytest
from src.game_enums import Color
from src.games.game import Coords
from src.game_pieces.queen import Queen
@pytest.fixture(scope='module')
def queen():
"""Setup Queen start coords. Return Queen"""
game_queen = Queen(Color.BLACK)
game_queen.coords = Co... | [
"mveasey87@gmail.com"
] | mveasey87@gmail.com |
ce8bc8e8c5475a8d2ed27e43305f5fd02ca3d509 | da481ac79daaa68df0219e92b0d80a1a7aed1bf6 | /python/example/run_all_tests.py | 747477c1ca24629cf95203798b913aa2369a40a8 | [] | no_license | PeterZhouSZ/diff_pd | 5ebad8f8d361a3ac4b8c7fb25c923b85e01c8a31 | 45bf74bc1b601d0aba7cc5becc3d2582136b5c0b | refs/heads/master | 2023-07-06T10:56:59.660391 | 2021-08-13T04:21:07 | 2021-08-13T04:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import sys
sys.path.append('../')
from importlib import import_module
from py_diff_pd.common.common import print_ok, print_error
if __name__ == '__main__':
# If you want to add a new test, simply add its name here --- you can find their names from README.md.
tests = [
# Utilities.
'render_quad... | [
"taodu@csail.mit.edu"
] | taodu@csail.mit.edu |
036cc5c5eb1b3c9b6e0a55d8c7af30556fad3348 | b47ee8aed3c76d1a9222f3563bb6592f7e9d6eed | /ASSIGNMENT 5/3.1.N_asterisks.py | 3ca0e5683ce007be022dad84de43395528538705 | [] | no_license | ranjithkumar121/Python | 3697554852335d9af8683a554a3f36e146ab109e | 5af562edca1a792141974d26962415533c12045e | refs/heads/main | 2023-06-19T00:18:08.191503 | 2021-07-12T07:05:18 | 2021-07-12T07:05:18 | 347,558,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | n=int(input())
for i in range(n):
print("*",end='') | [
"noreply@github.com"
] | noreply@github.com |
f9d6c58a95f2f31a18cae1c8b336fef90528b0c9 | fbd2c939318d02fd843f904547a448b1fd3b91e6 | /jingtum/admin.py | 61e358b24a9585acdbeec1487ff755195b7d9607 | [] | no_license | moactum/moacscan | 2d862ecb80920260ad94edaf216951e71b705409 | 2c81a62965815b8d95346a11e14c30b6503c262a | refs/heads/master | 2020-03-20T08:09:37.137056 | 2018-09-21T15:34:20 | 2018-09-21T15:34:20 | 129,925,266 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from django.contrib import admin
from .models import *
from decimal import Decimal
# Register your models here.
#@admin.register(Currency)
#class CurrencyAdmin(admin.ModelAdmin):
# list_display = ('name','issuer')
#
#@admin.register(Agent)
#class AgentAdmin(admin.ModelAdmin):
# list_display = ('name','wallet','user')
... | [
"lospringliu@gmail.com"
] | lospringliu@gmail.com |
a70eeb7b35e008a538944e58aa7d3ee6fb68255d | e6accded005467d24c40282fa3bdb6046a0db207 | /Leet_Code/Longest_Palindrome.py | c904b7bc35ffbd8fea32a9cd516607a429a819cb | [] | no_license | holynekk/Competitive-Programming | 12bacb55c0ebc8ce88ce908d06554e7ab0044fb2 | 30adfc5dbfc393c8acaa4ef504bbe0d2bc38fc8a | refs/heads/master | 2023-09-01T17:56:02.875474 | 2023-08-29T13:22:02 | 2023-08-29T13:23:20 | 248,493,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class Solution:
def longestPalindrome(self, s: str) -> int:
char_dict = {}
for char in s:
if char_dict.get(char):
char_dict[char] += 1
else:
char_dict[char] = 1
total = 0
for x in char_dict.values():
total += x - x%... | [
"e238109@metu.edu.tr"
] | e238109@metu.edu.tr |
79b729366e1e6dd4733ec4c9c4f4199ddbfb9d6a | 7b91755b1c777248050f3cadf23ed34d1f10adef | /Section3/14.py | 86af53d07f05b5c224b8112a78a39b964bf71c05 | [] | no_license | JAntonioMarin/PythonBootcamp | ef2976be0204df44e0c56a521628c73a5d274008 | 6e4af15b725913d3fda60599792e17d7d43d61d2 | refs/heads/master | 2021-01-06T16:52:57.537678 | 2020-03-26T17:36:50 | 2020-03-26T17:36:50 | 241,406,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | print('hello')
print("world")
print('this is also a string')
print(" I'm going on a run ")
print('hello \nworld')
print('hello \tworld')
print(len('hello'))
print(len('I am'))
# Coding Exercise 2: Quic Print Check
print("Hello World")
| [
"avalanch.psp@gmail.com"
] | avalanch.psp@gmail.com |
ffe252fc9f13e3ef55fa6cc9c12b9faff80dcad3 | 9155e552eaffac9cb046c9977579e149e9edc785 | /bin/gunicorn_paster | e1641f6ab0bfd44b836f5e737f328e92de9a3513 | [] | no_license | Mahmoudalqannas/Upskilling_project | e89b12b059085bdcf75da6bbdee8ae42bbae746f | 60cc653be399ce28973a45a0cff1614c8421cdbe | refs/heads/master | 2022-12-09T14:13:26.432963 | 2020-01-24T16:36:21 | 2020-01-24T16:36:21 | 236,038,863 | 0 | 0 | null | 2022-12-08T05:25:54 | 2020-01-24T16:25:38 | Python | UTF-8 | Python | false | false | 271 | #!/home/mahmoud/Desktop/website_from_github/github_website/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.pasterapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"alqannas.m.94@gmail.com"
] | alqannas.m.94@gmail.com | |
2e92cd81e512454e2d3f9a8e81c11d227c03b534 | 534a13a18fc93b5c163f76edb88ab9d97813b9c9 | /contacts/contacts.py | 10cb337bcae559d1391401451305a48756071458 | [] | no_license | B0Kimm/Study | 83312b7fa32ed677ed90123d3f551b139c2ecdd0 | 16fbdc1360c16d855656f78d4f929e64dd1d4622 | refs/heads/master | 2022-12-29T13:38:16.126029 | 2020-10-16T10:44:23 | 2020-10-16T10:44:23 | 297,597,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,605 | py | class Contact :
def __init__(self, name, phone, email, addr) :
# pass # 위 파라미터를 보고 나머지 완성
self.name = name #self.name과 name은 서로 다른 존재인데, 값을 할당하므로써 연결
self.phone = phone
self.email = email
self.addr = addr # ^^속성/값을 정의
def print__info(self) :
print(f'이름 : {self.nam... | [
"bo.kim0226@gmail.com"
] | bo.kim0226@gmail.com |
17537cbc584d4ebb28f1282403dee16b24b6a73c | d116cecc8504278f8bbdb99502f42377a92363f0 | /ddpg.py | 17f6179610bc84326afa256086bdb4e8bee14c35 | [] | no_license | tedrepo/rnnDPG | 6a4fb2921259c71ac2d3804990a3b60a410c7afd | 42e9c7e28f6a333efa079a6707596db7b7f1e6d5 | refs/heads/master | 2020-04-04T02:04:12.898615 | 2017-04-06T14:12:41 | 2017-04-06T14:12:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,316 | py | #! /usr/bin/env python
#coding=utf-8
import numpy as np
from actor import ActorNet
#actor network only add state in input and output
from critic import CriticNet
#critic network only change in input
from collections import deque
from gym.spaces import Box,Discrete
import random
from tensorflow_grad_inverter import gra... | [
"niulyhappy@126.com"
] | niulyhappy@126.com |
c01a85edbe50705d0130f3d5a07c86dfb7ab36ac | f82b6f095b4c83b6f3c8691c0e56c2acb026749a | /cluster_identification/lanthipeptide_gb_mining.py | 78391cbb99cf2881c4e3c1eeb49b4a042e09a018 | [] | no_license | mcwalker-group/reimagined-octo-funicular | 27a1e01bf3f09f96b03bacb7178b8aa3068174cc | 6be1cfb1ba5265aafecdc0cabc4e774f0921596f | refs/heads/master | 2020-09-15T14:54:44.575718 | 2019-11-26T16:52:10 | 2019-11-26T16:52:10 | 223,482,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,582 | py | from Bio import SeqIO
from Bio.Seq import Seq
from Bio.SeqRecord import SeqRecord
from Bio.Alphabet import IUPAC
import re
import os
import time
import find_cluster
import pep_processing
import glob
acc = 'lanC-like.acc' #file with cluster accessi... | [
"noreply@github.com"
] | noreply@github.com |
a823d40e45f948799c58daf72f5a9314e5da1b4c | 25e481ef7fba79285f4c8a7fa2e81c8b2b7f9cce | /saleor/core/permissions.py | 093869518cad2dc41e345780942a66464273b61a | [
"BSD-2-Clause"
] | permissive | arslanahmd/Ghar-Tameer | 59e60def48a14f9452dfefe2edf30e362878191d | 72401b2fc0079e6d52e844afd8fcf57122ad319f | refs/heads/master | 2023-01-31T04:08:26.288332 | 2018-06-07T18:02:01 | 2018-06-07T18:02:01 | 136,231,127 | 0 | 0 | NOASSERTION | 2023-01-11T22:21:42 | 2018-06-05T20:28:11 | Python | UTF-8 | Python | false | false | 957 | py | from django.contrib.auth.models import Permission
MODELS_PERMISSIONS = [
'order.view_order',
'order.edit_order',
'product.view_category',
'product.edit_category',
'product.view_product',
'product.edit_product',
'product.view_properties',
'product.edit_properties',
'product.view_sto... | [
"arslanahmad085@gmail.com"
] | arslanahmad085@gmail.com |
a1a780150649a93bfbd4a2688d95448739078148 | 2cec023820d2662271274bc85929620445dd5524 | /np/wsgi.py | 8f66592145abf9c5028828ea6c055dc4560e19b1 | [] | no_license | Destarossa/belblog | fedd638717cb5ee06d86f7da00b3666013267791 | 7236e8cdafdfe1973ef4e4d65cb7673a5c6f976d | refs/heads/master | 2022-09-10T02:01:42.710964 | 2020-05-26T01:00:24 | 2020-05-26T01:00:24 | 266,903,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | """
WSGI config for np 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_M... | [
"simoko9900@gmail.com"
] | simoko9900@gmail.com |
cb52f9c28303ef6fe3c1b1de5b15d447c04d65a9 | 9b32151fc41719c6292be9d787c5a43aeb1d42ca | /boloo_app/views.py | e7c9b2cc1fd6c76ff66e925e41379d55bdd4a481 | [] | no_license | vinzane123/assignment | 05fd7f41535e16054a7565a1c5d3099b976f3214 | cd555a9f5c19dca540f9a4ff241b2bed1cdbc6ce | refs/heads/master | 2022-12-12T19:19:41.066236 | 2020-02-13T06:49:04 | 2020-02-13T06:49:04 | 240,072,450 | 0 | 0 | null | 2022-12-08T03:36:16 | 2020-02-12T17:26:14 | Python | UTF-8 | Python | false | false | 10,421 | py | from django.shortcuts import render
from django.http import HttpResponse,JsonResponse
from django.views.decorators.csrf import csrf_exempt
import datetime
import json
import re
import requests
import os
import time
from celery import group
import asyncio
from final_bol.settings import client_id,client_secret,URL_CLOUD
... | [
"vinodhpolamarasetty@gmail.com"
] | vinodhpolamarasetty@gmail.com |
446770e0649d43b764b19c811db9a3848df664ba | 6cd5ab1d73196765266b746c18079ea43f901c58 | /shop/migrations/0003_order.py | 051671a9c5651bc532e95e32e380f222a132171b | [] | no_license | val-h/mercator | e128967e72de780de4d18d82ee3e3676a241d971 | 77cff19a987e2905bafcbff579d2567492317a20 | refs/heads/main | 2023-07-19T18:40:15.001354 | 2021-09-03T14:45:33 | 2021-09-03T14:45:33 | 382,549,535 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # Generated by Django 3.2.5 on 2021-07-20 13:43
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),
('shop', '0002_alter_image... | [
"valentin97mirchev@gmail.com"
] | valentin97mirchev@gmail.com |
b13d8791da0cebf4917a14b354b40afbad5d5415 | b7e48b1b0a5a24ff61ced3ae90c7f3f4e15e0630 | /21-30/ex_29.py | dbb2337c0346848036d111d12f42fb1ffa44752f | [] | no_license | Tubesocrates/LPHW | 0d011bf348518e2026abb3b1073105237033bb3e | 10f06e69dae8d2e11d5d26bea20a6e60f85faf2f | refs/heads/master | 2020-06-29T02:28:32.621512 | 2019-12-05T22:06:44 | 2019-12-05T22:06:44 | 200,411,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | people = 20
cats = 30
dogs = 15
if people < cats:
print("Too many cats! The world is doomed!")
if people > cats:
print("Not many cats! The world is saved!")
if people < dogs:
print("The wrld is drooled on!")
if people > dogs:
print("The world is dry!")
dogs += 5
if people >= dogs:
print("Peopl... | [
"josh.johnson.w@gmail.com"
] | josh.johnson.w@gmail.com |
6992fdef849f4eac389603da73bf111c08fa1ab7 | badd20c8bca2ac72bff2d4563fb82f73267a32eb | /Ground_Station/GUI/Release/Tethered_Flight_2.0/login_functions.py | 38b792bac492c38926329fca6bdf2977b333889f | [
"GLWTPL"
] | permissive | EagleEyeisu/FlightSoftware | 08d4f584782fa1621fe8a05d2199ce107e90f0ce | af7e03976db98527b7072a8a35ba7b9769b59d4f | refs/heads/master | 2020-12-03T21:38:57.673055 | 2020-02-11T02:05:37 | 2020-02-11T02:05:37 | 66,887,916 | 3 | 4 | null | 2019-01-24T04:19:12 | 2016-08-29T23:18:52 | Python | UTF-8 | Python | false | false | 3,676 | py | #############################################################
#
# Property of Eagle Eye.
#
# Authors:
# Jared Danner
#
#############################################################
from tkinter import *
import globals as g
class Login_Terminal():
def __init__(self):
"""
Initialization function for t... | [
"jareddanner3@gmail.com"
] | jareddanner3@gmail.com |
cdcb7f7408bf2bd203429928d9ca2240c1d4e1fd | ba36953039e986a589cd711f0a36d71361e18fa3 | /test3.py | c65e1f37e8aced6e0dae6ca907d0b8aaea588852 | [] | no_license | ShiroOYuki/Face_Tracking | be223fcab11ba3ad83d28fcfe3b8a81812b5f113 | aa258b1aa3866f440ec501dbecd07b3cfc16e3f2 | refs/heads/main | 2023-08-18T03:53:19.508252 | 2021-09-23T04:51:48 | 2021-09-23T04:51:48 | 398,284,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | import serial
import numpy as np
import matplotlib.pyplot as plt
ser = serial.Serial()
ser.baudrate = 9600
ser.port = "COM7"
ser.open()
count = 0
l2 = []
while True:
i,j = 0,0
l = []
while i<8:
while j<8:
data = ser.read()
try:
val = int(int.from_bytes(data... | [
"63907529+ShiroOYuki@users.noreply.github.com"
] | 63907529+ShiroOYuki@users.noreply.github.com |
f06eb07b2769c485c79383ffe3d9e63c0e6da8e7 | c76ecb867227c5b298e0b17fe1d3f61e1e18e0fd | /test/functional/test_runner.py | ea1dc818c401ef86a156aaeda5e409c65a610e77 | [
"MIT"
] | permissive | elspero-project/elspero | 841eb940b002ea0c5d0f8282679c144ef1a3dc37 | 229dade3027a4cc8a8fabffb420b313a635725ad | refs/heads/master | 2020-07-09T01:17:49.627706 | 2019-08-24T13:42:03 | 2019-08-24T13:42:03 | 164,885,736 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,238 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
f... | [
"progof031@gmail.com"
] | progof031@gmail.com |
9591b223d52310912c74667e3148d1398f10c830 | 124fe233f9cc86898756b3c0fc2988c69001f670 | /tests/test_stat.py | 212f9eec83cf924d08398be7ee3032045c77594c | [
"MIT"
] | permissive | jon-rd/jc | 0c4e043ccc40fdf7a0771d48cec4d86321fc4588 | 1e18dd30a824b0463f0cad86e0da7094c47d34f9 | refs/heads/master | 2023-04-16T01:39:16.961164 | 2021-03-05T19:50:37 | 2021-03-05T19:50:37 | 351,145,638 | 0 | 0 | MIT | 2021-04-14T14:13:28 | 2021-03-24T16:14:42 | null | UTF-8 | Python | false | false | 2,659 | py | import os
import json
import unittest
import jc.parsers.stat
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
def setUp(self):
# input
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/stat.out'), 'r', encoding='utf-8') as f:
... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
f6200c41fbfc26030afb9f8196b7c6948fbc18be | ecf0d106831b9e08578845674a457a166b6e0a14 | /OOP/inheritance_EXERCISE/restaurant/project/food/dessert.py | 6f120937221db42a44dd44819bf082a0f5df016c | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from project.food.food import Food
class Dessert(Food):
def __init__(self, name: str, price: float, grams: float, calories: float):
super().__init__(name, price, grams)
self.__calories = calories
@property
def calories(self):
return self.__calories
| [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
bfc343124d28802e0f4bd2ba30267e0ec368741c | 3d7351a55677f2a8b4d6b87fca9ef52d8e99aa2b | /Tarea1/lista.py | 284026a9accffef9f8541fd46c9cad36c9b6e05d | [] | no_license | DerekCI/CursoPython | 20a9cdafd6938e005c493eb86422745e3f77d702 | e12720aa91ff2a8f6d5692cc09b8031f5688f672 | refs/heads/master | 2020-05-23T08:35:57.501936 | 2019-05-21T19:29:21 | 2019-05-21T19:29:21 | 186,691,132 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | lista = [1, 2.5, 'kereD', [5,6] ,4]
print(lista) | [
"derekcortez16@gmail.com"
] | derekcortez16@gmail.com |
44c60c0e1278fc5c2b982c62e1a100195ea7daee | 3f518acd890391d11304abea9d876513530aa987 | /src/models.py | 5185b6604a3228b651b25161489649222d4fc7f3 | [] | no_license | PKUGoodSpeed/Futures | 88325ffc98a6eebbec7b80b70d4469ea05604153 | 24e9960d58bdd5b3331b4dfe60969789000cad00 | refs/heads/master | 2021-05-09T19:22:21.891106 | 2018-02-06T00:59:34 | 2018-02-06T00:59:34 | 118,639,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,778 | py | '''
Constructing keras models
'''
## Math and dataFrame
import numpy as np
import pandas as pd
import plotter
## Traditional Machine Learning
from sklearn.linear_model import Ridge, LogisticRegression
from sklearn.model_selection import train_test_split, cross_val_score
from sklearn.feature_extraction.text import Coun... | [
"zebo@ginkgo-llc.com"
] | zebo@ginkgo-llc.com |
83b787cef85760658c0b52721ba002a699117420 | 06e392c3f81d8828872e3fa8467ec77c08a842ca | /TextUtils/textutils/textutils/asgi.py | 3994cc54891b6274457d08d03c69fbd143121fd5 | [] | no_license | Takshit-hub/textutiles | 65648ef12ff6e7252020a2429c2df411acd8c60d | 11e1deac8b00d14caf36efdf4d2c3e7bbcdda2ff | refs/heads/main | 2023-06-05T07:38:15.135845 | 2021-06-29T04:19:18 | 2021-06-29T04:19:18 | 381,236,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for textutils project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefaul... | [
"noreply@github.com"
] | noreply@github.com |
d92dab64ead092890dbcea7bf09ab6f8f52ac179 | cef1e1ede623f22a433ce299fecc803a8e3dea4f | /FlaskAPI/requests.py | 37d04620a49dd56509f0f7115005e0a7323ab3c6 | [] | no_license | nathankts/ds_salary_proj | 8d29c9026b24bcc56daef157fecb1677e3332ef3 | a597f81cd13628af5b8876b5bd20d614a2db829d | refs/heads/master | 2022-12-19T19:32:24.324541 | 2020-11-01T17:19:06 | 2020-11-01T17:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 1 13:55:03 2020
@author: Nathan
"""
import requests
from data_input import data_in
URL = 'http://127.0.0.1:5000/predict'
headers = {"Content-Type": "application/json"}
data = {"input": data_in}
r = requests.get(URL,headers=headers, json=data)
r.json... | [
"noreply@github.com"
] | noreply@github.com |
9a9f2f15e46689e698a6cf1af6e148036e507196 | 0444e53f4908454e2e8ab9f70877ec76be9f872c | /reportng/migrations/0025_auto_20161204_2336.py | 76552396407602970196277f9a8d5e618d06029d | [
"MIT"
] | permissive | dedayoa/keepintouch | c946612d6b69a20a92617354fef2ce6407382be5 | 2551fc21bb1f6055ab0fc2ec040c6ba874c2838f | refs/heads/master | 2020-03-22T12:53:44.488570 | 2018-08-17T13:00:51 | 2018-08-17T13:00:51 | 140,069,262 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-12-04 22:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reportng', '0024_auto_20161204_2123'),
]
operations = [
migrations.AlterFie... | [
"dedayoa@gmail.com"
] | dedayoa@gmail.com |
66598ec0257be4760b1dc38c8228fa5050235c13 | 6929a33a7259dad9b45192ca088a492085ed2953 | /solutions/0062-unique-paths/unique-paths.py | 1ac2c0fb3f2cb34e18806ccd977c68cdb4bb37c1 | [] | no_license | moqi112358/leetcode | 70366d29c474d19c43180fd4c282cc02c890af03 | fab9433ff7f66d00023e3af271cf309b2d481722 | refs/heads/master | 2022-12-10T01:46:14.799231 | 2021-01-14T05:00:09 | 2021-01-14T05:00:09 | 218,163,960 | 3 | 0 | null | 2022-07-06T20:26:38 | 2019-10-28T23:26:47 | Python | UTF-8 | Python | false | false | 1,747 | py | # A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
#
# The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
#
# How many possible unique paths are there?... | [
"983028670@qq.com"
] | 983028670@qq.com |
b973f93f7d741dfd49d54492b0d5b830f78b4317 | 7c5f1ee6440b810d8cc0ded97ad6c2b3216d7caa | /assignment1/project_params.py | 2a1db91442ad080bdf5c9820f150b0ca9c17ff32 | [] | no_license | ChristianFusco/homework_ai | 2114e905bd4a730812bc109cec6a98436cf5debd | 7970b58e492e9482deac5d177940d2a96846ca96 | refs/heads/master | 2021-01-23T08:29:30.330719 | 2017-10-18T15:48:42 | 2017-10-18T15:48:42 | 102,526,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | # Author: Christian Fusco
# Class: CSI-480-01/02
# Assignment: Python Practice
# Date Assigned: ???
# Due Date: 9/11/2017
#
# Description:
# A short introduction to python.
#
# Certification of Authenticity:
# I certify that this is entirely my own work, except where I have given
# fully-documented references to the wo... | [
"christian.fusco@mymail.champlain.edu"
] | christian.fusco@mymail.champlain.edu |
3db0ebeb7b9b731c2659609646a1967a56c83c38 | 0b04bd3f290b44d0f862ccdce98b9013d52a6e73 | /Alumno/models.py | a6727984dee8a02ed1a509af4bd9b37c447f984e | [] | no_license | JosePablo24/ProyectoArq | 6a621ece702fb65300bc511273f11d5299ab55b9 | d069e6574be06462c0b217d42fd2e225ec8aadc6 | refs/heads/master | 2022-12-13T19:11:12.681625 | 2019-07-02T00:14:41 | 2019-07-02T00:14:41 | 194,610,063 | 0 | 0 | null | 2022-12-08T05:17:49 | 2019-07-01T06:08:04 | Python | UTF-8 | Python | false | false | 475 | py | from django.db import models
from django.utils import timezone
class Alumno(models.Model):
name = models.CharField(max_length=100, null=False)
lastname = models.CharField(max_length=100, null=False)
matricula = models.IntegerField(null=False)
delete = models.BooleanField(default=False)
... | [
"173198@ids.upchiapas.edu.mx"
] | 173198@ids.upchiapas.edu.mx |
bfce9d136fc8f0d5498c2c68464b5e93bbfc3feb | 5cd515be8878b1091787ab64a0fb1485c97de570 | /scrape/wsdot.py | 7aed27c452a0e11c3d96e96dad3b96af3620f764 | [] | no_license | arimar/uw_python | 9f2787f1f5c53b6e5151e618ad9a3b9726b91e65 | 155599aac2a1cd1d15483f9b2ac21977ee00f107 | refs/heads/master | 2021-01-25T03:54:20.961503 | 2012-03-06T08:27:46 | 2012-03-06T08:27:46 | 3,138,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | import urllib2
from BeautifulSoup import BeautifulSoup
page_north = urllib2.urlopen('http://www.wsdot.wa.gov/small/Seattle/TravelTimes/nbtimes.aspx')
page_south = urllib2.urlopen('http://www.wsdot.wa.gov/small/Seattle/TravelTimes/sbtimes.aspx')
soup = BeautifulSoup(page_north)
print "********************************... | [
"rtarima@yahoo.com"
] | rtarima@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.