blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
401d75d1d76f4262e95bf4c0626a2c60185ab64d | 9b1f5dc9a0c5347e4f31d814953dc9b19f3889f3 | /venv1/Lib/site-packages/pizza/__init__.py | 765fa7bbfa69944474c379e9ef94fa25484a0290 | [] | no_license | jhz-duanmeng/PythonProject | ef256863372f2e231acc7afc5514a180a4769423 | eeb1c829c77a6147183e4ad6faa9071efbeb46b3 | refs/heads/master | 2022-12-28T21:01:55.475026 | 2018-07-13T06:08:12 | 2018-07-13T06:08:12 | 127,878,681 | 0 | 1 | null | 2022-12-15T20:09:25 | 2018-04-03T08:47:55 | Python | UTF-8 | Python | false | false | 49 | py | """
TODO [template]:
"""
__version__ = '0.1.2'
| [
"duanmeng@ren001.com"
] | duanmeng@ren001.com |
189c26969f0c8ac952e8c823e4a06b066eca5d6c | 5fdffe1b67fccf3090fc351b8fc076e1df48b55f | /blog/models.py | 748b1fee60560f520b870c8251e8542cce4e5186 | [] | no_license | lukaszpiescicki/my-first-blog | 4b16da125fd7bc3a4038cdecf6bd10b047d687fa | f698e1eb02df1e3c91ff7507db9a6b1f4d5a0c84 | refs/heads/master | 2021-04-15T09:25:33.858373 | 2018-03-23T14:34:23 | 2018-03-23T14:34:23 | 126,216,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
published_... | [
"lukasz@adres.pl"
] | lukasz@adres.pl |
9758dcff5b3e3dbc21bef7f41f40e90d1ade3209 | 4922b7d43a42af618b30ad2c988bb69c9a68f9bd | /create.py | 4e82aca66590c120064147b3fc5090bc583109d0 | [
"MIT"
] | permissive | jamesspearsv/mylib | 70dcb6376918a20c9348838a14ee494e7b855231 | 23bd3c61345a1f33c55d53eff9422b49cc87fc4b | refs/heads/main | 2023-05-10T21:43:49.886919 | 2023-05-05T18:31:54 | 2023-05-05T18:31:54 | 331,441,242 | 0 | 0 | MIT | 2021-03-03T20:12:31 | 2021-01-20T21:48:12 | HTML | UTF-8 | Python | false | false | 91 | py | from mylib import db
# Create DB is it doesn't already exist
db.create_all()
print("Done") | [
"58987727+jamesspearsv@users.noreply.github.com"
] | 58987727+jamesspearsv@users.noreply.github.com |
b378e68252b07c26150d78b94ddfee517ccb2c23 | 2681edbd35d0ced02cbb995292929b3f73c8df66 | /Calculate Islands.py | bd3b5430025e9470e2bce00c17093a194da07c25 | [] | no_license | vit-aborigen/CIO_woplugin | 46a658b93e939e406f88f4d317ef15d804e3115e | f252730fd8e2efa25735c8a90732608f58fa765b | refs/heads/master | 2020-12-30T12:55:27.688801 | 2019-02-17T18:03:10 | 2019-02-17T18:03:10 | 91,370,583 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | from typing import List
from collections import deque
DIRECTIONS = [(i,j) for i in range(-1,2) for j in range(-1, 2) if i|j]
def start_new_island(land_map, start):
island = set([start])
frontier = deque([start])
while frontier:
current_i, current_j = frontier.popleft()
for delta_i, delta_... | [
"vit.aborigen@gmail.com"
] | vit.aborigen@gmail.com |
dc217de412ac4cd7870e2b1f1bb8531cab88a313 | accfe90fbd439fa4ef0655114a5b3d9d771ca837 | /euler53.py | f0facc7f50f6052f742c862cf253746770a693ac | [] | no_license | hackingmath/Project-Euler | 57641ba6e82706e5a3585e8072c70db81d97d984 | 83863e5351ba4425bd803ae0d01efeb824ffa7ca | refs/heads/master | 2022-02-22T09:06:10.215593 | 2019-07-13T16:21:47 | 2019-07-13T16:21:47 | 111,737,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | '''Problem 53: Combinatoric selections'''
import time
t1 = time.time()
def fact(n):
if n <= 1:
return 1
return n*fact(n-1)
def combinations(n,r):
'''returns nCr'''
return fact(n)/(fact(r)*fact(n-r))
tot = 0
for n in range(1,101):
for r in range(1,101):
if c... | [
"noreply@github.com"
] | hackingmath.noreply@github.com |
91ab8d909e454c9b1400e8239b1625f42794e22c | 8eeb9c50738b437b3a9f477d3e1f89c4dae32665 | /Edabit_challanges/tempCodeRunnerFile.py | dbcdb96f01538c9176ea4873a302dc90bb429e48 | [] | no_license | KikatoIV/Code_wars-edabit_challenges | 7b935a32e1f3547a1dc52c6669907d0d95bc6779 | 70483c360a0663c98c8118564cfad19b74ed3f19 | refs/heads/master | 2022-11-26T18:33:02.844614 | 2020-08-03T20:22:26 | 2020-08-03T20:22:26 | 276,307,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | def factorial(n):
if n < 1:
return 1
else:
return n * factorial(n - 1)
def combination(m,k):
if k <= m:
return factorial(m)/(factorial(k) * factorial(m - k))
else:
return 0
def bernoulli_number(m):
if m == 0:
return 1
else:
t = 0
... | [
"noreply@github.com"
] | KikatoIV.noreply@github.com |
2b7f4da3bd83e5ecb36e0ce57b11a6e791947733 | 36fa195debaeff67b7b3a603a85931e026553caf | /content/code/2021Q1/lazyseq/primes.py | 9b1f13ecc6e19ad96d4f827167d8e13f190446a1 | [] | no_license | chemacortes/blog | c6f6f3013f1430c57d759e863c8024811d2ab717 | b0b925e035f11d51274b1a44a3da2432e6a82020 | refs/heads/master | 2023-08-31T10:47:38.372437 | 2023-06-13T22:19:17 | 2023-06-13T22:20:26 | 49,067,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | # %% [markdown]
"""
Secuencia perezosa de números primos
====================================
## Doctests
```python
>>> isprime(2 ** 31 - 1)
True
>>> primes[90000]
1159531
>>> primes.index(1159531)
90000
>>> primes.size
90001
>>> primes.last
1159531
```
"""
# %%
from collections.abc import Iterator
from itertools ... | [
"devxtrem@gmail.com"
] | devxtrem@gmail.com |
f63cc38c63d23260de3d810341117a25e4ef0062 | 60a7e9c29625d56719ba9a9176d85192a3b34ab1 | /keywordex.py | 1b61df6f91457ea1c9bec1990a7af6a3f454f2a0 | [] | no_license | ajaysahu3964/pythonasminiprograms | 97570acd7245e47427bce126990e2206f32193e6 | de8f7ccf32cc681cb6dd906d153b6d4add8468f0 | refs/heads/main | 2023-06-15T06:52:37.977171 | 2021-07-13T03:50:25 | 2021-07-13T03:50:25 | 385,466,002 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | def findtotalmarks(sname,scls,**marks):
print("================================")
TOT=0
print("==========================")
print("\t student name={}".format(sname))
print("\t student class={}".format(scls))
print("============================")
for k,v in marks.items():
prin... | [
"noreply@github.com"
] | ajaysahu3964.noreply@github.com |
03ac429876849ea66bb0620bdd6ed89d555a31e9 | 8db2d51f1b2af79cb88627461a22bdcab62b9f06 | /Packages/Robot/test/run_test.py | acc651bd698bf2d9db2744b9c9ca8b69ced9be84 | [
"MIT",
"LicenseRef-scancode-boost-original"
] | permissive | techidaily/syntect-resources | 6696c48fbe8c5fb43704956a68f452af6aafb1bc | 39f1f874664fb348c7e4f9bd7495c75851db56f6 | refs/heads/master | 2020-09-13T08:58:45.796421 | 2019-11-20T02:24:43 | 2019-11-20T02:24:43 | 222,717,446 | 0 | 0 | null | 2019-11-19T14:39:01 | 2019-11-19T14:38:58 | null | UTF-8 | Python | false | false | 2,037 | py | import env
import os
import sys
import unittest
import shutil
from robot import run as robot_run
def acceptance_test(options):
if not options:
return _acceptance_all()
else:
if '-s' in options or '--suite' in options:
return _acceptance_include(options[1:])
else:
... | [
"lauer3912@gmail.com"
] | lauer3912@gmail.com |
9f35a98a481426a7b353b1322b3fe4db5a355250 | 69c9fd16fd7b83b88de61feac90119e79467d3bd | /semirest/main/settings.py | da98d78051929e288d46cead4beadb9d6d98b387 | [] | no_license | kkneville/Library | 47aa4ab9f81b34b3bd2d113045a646126bbf6cab | a0f17899f9c350f1fb2fc14b365d7838feb5bf8a | refs/heads/master | 2021-05-16T09:26:25.970317 | 2017-09-22T02:18:27 | 2017-09-22T02:18:27 | 104,420,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,247 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
... | [
"noreply@github.com"
] | kkneville.noreply@github.com |
f27dd7007266a7fa98068202e2b768f1a343ede9 | fd58f4267966d3089ea75fe885acc1d248a315a6 | /GitUpload/twitter/apps.py | a710e51b558fb3f45147d5dd4bceab7c31a67552 | [] | no_license | Rahul-Neetipalli/Twitter-Stream-API | e2124e998d30d967c6a4de639b5a05d46bc59fb8 | af4723128455689152289f58df84ee29da761ad7 | refs/heads/master | 2021-04-28T08:45:32.537985 | 2018-02-20T23:46:29 | 2018-02-20T23:46:29 | 122,255,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class WebappConfig(AppConfig):
name = 'twitter'
| [
"noreply@github.com"
] | Rahul-Neetipalli.noreply@github.com |
6c3cd11274537c6f983228d5a8d3930357113766 | cf04fc9544c194ea93027457fe0b0d16ff95acf1 | /Tuple/twentythree.py | 90e1650908a1fa37c275e3a4e23c12d0eb275226 | [] | no_license | bipinaghimire/lab4_continue | 0da9c47e3f5461306926cf42844aef92a4b8b8b6 | d13ec8fd4fb14c5d11ba12d57f8c28c80478a2d6 | refs/heads/master | 2023-06-15T05:13:29.902384 | 2021-07-12T13:34:32 | 2021-07-12T13:34:32 | 382,886,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | '''
Write a Python program to unpack a tuple in several variables.
''' | [
"bipinaghimire6@gmail.com"
] | bipinaghimire6@gmail.com |
a9348fa138e67f3c65eb8bc7140cc96a7d4e4dc6 | 3988c6b359c005ac6cf0dbc9ccbf522552e59914 | /PortfolioT/performance.py | 941913ff9362c9bae4f4195f183c7539316979a3 | [] | no_license | quantanjali/Portfolio-Asset | 19f60d5deb10cbfeaf4b0714133deb5a7095da9e | 75b16992012fd6a54d169ad49a19d104377aa889 | refs/heads/master | 2020-03-22T18:50:10.202503 | 2017-10-14T21:23:36 | 2017-10-14T21:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py |
from metrics import *
from dateutil.relativedelta import relativedelta
import pandas as pd
class Performance(object):
def __init__(self):
super().__init__()
def CAGR(self, decimals = 5):
return CAGR(self.beginning_cash, self.ending_cash,
relativedelta(self.e... | [
"thanhuwe8@gmail.com"
] | thanhuwe8@gmail.com |
71b938f35f2e86207a6ef753acded41f341f6218 | f16eb361cc921a2713575b2b3d7293a9860a71fc | /lib/python2.7/site-packages/adapt/engine.py | 1e3a247a3886300423d436d60c30640a89cbade9 | [] | no_license | respeaker/respeaker_virtualenv | eb84f5e789665f61a5ebed2cf0a16e7010427e29 | 0fee195ee963c2591062b371798fc6bde7374f64 | refs/heads/master | 2020-04-17T05:00:16.408596 | 2017-03-31T09:08:27 | 2017-03-31T09:08:27 | 66,375,228 | 2 | 2 | null | 2017-03-31T09:08:28 | 2016-08-23T14:36:41 | Python | UTF-8 | Python | false | false | 11,000 | py | import re
import heapq
import pyee
from adapt.entity_tagger import EntityTagger
from adapt.parser import Parser
from adapt.tools.text.tokenizer import EnglishTokenizer
from adapt.tools.text.trie import Trie
__author__ = 'seanfitz'
class IntentDeterminationEngine(pyee.EventEmitter):
"""
IntentDeterminationEng... | [
"xiongyihui3@gmail.com"
] | xiongyihui3@gmail.com |
4a29737770e7086e49a02c6b2ad4f68990dfe713 | dc7c62f22e5b7da4691d2bdf9a1da2f3ba9edd75 | /Course_case/2018_11_13/triangular2.py | d06a373b587ee46f8804945adac150cc981320b4 | [] | no_license | xiaohaiguicc/CS5001 | 563c17637f06f0074ccb743db4f0bdd2a326f978 | 51698ba8bfc2201639e6f4d358e0fc531780d2fc | refs/heads/master | 2020-04-06T17:32:55.046301 | 2018-12-20T23:53:05 | 2018-12-20T23:53:05 | 157,664,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import sys
def main(number):
print(add_up(number, 0, 0))
def add_up(number, counter, total):
if(counter == number):
return total
else:
counter += 1
total = total + counter
print(total)
return add_up(number, counter, total)
# Tail recursion should maintain ... | [
"xiaohaiguicc@gmail.com"
] | xiaohaiguicc@gmail.com |
3d4d57039cb77139659902790f4a1cdc0860e733 | db1d7c6d2e2bf04609fbeef739f9ef8de730ae41 | /python/learn_python/sum_lines.py | b6c6386e69f08aa8b75ca1d41c16b4cc981f5db9 | [] | no_license | mhyeagle/programming-language | 752e42725bf03c0f35c8c84b3d710a58a90ad407 | 8d2d2a8052a8ed8b178ac1d87a23d7fc8ed3803e | refs/heads/master | 2021-01-20T01:50:59.730843 | 2019-12-23T13:21:42 | 2019-12-23T13:21:42 | 83,811,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | #!/usr/bin/python3
f = open('lines')
i = 0
for line in f:
print('line{}: {}'.format(i, line))
i = i+1
i = 0
f.seek(0, 0)
line = f.readline()
while(line):
print('readline{}: {}'.format(i, line))
line = f.readline()
i = i+1
sum = 0
f.seek(0, 0)
for line in f:
sum = sum + int(line)
print("line... | [
"tianyashuibin@163.com"
] | tianyashuibin@163.com |
f6673d559b79bac22e6e8e35d66144a80a7fa286 | d12063536ee8b689341e7199744fb46bb37c229c | /ConditionalCommands.py | 14bcf1497f18c72e2d6c1919c2e88c49429cec22 | [] | no_license | omshivpuje/Seleniumproject | a385ec6260eec97d8a0f5091b472a1da23a2d895 | e005dd1a093c1ef8a2ee04a1600a1809301bcadd | refs/heads/master | 2022-12-05T09:13:13.218950 | 2020-08-19T05:05:53 | 2020-08-19T05:05:53 | 288,637,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from LaunchDriver import Browser
from selenium.webdriver.common.keys import Keys
import time
browser = Browser()
browser.get_url()
ele = browser.driver.find_element_by_name("q")
print(ele.is_displayed())
print(ele.is_enabled())
ele.send_keys("Welcome")
browser.driver.find_element_by_xpath("//*[@id='tsf']/div[2]/div[1... | [
"omshivpuje@gmail.com"
] | omshivpuje@gmail.com |
dad04859464d7fb48b6fafffe85f706c64c2c16c | 7513db33f456b3fa9527a5616ac531f33b0a240e | /mysite/blog/migrations/0001_initial.py | 9e9e4528ed64500fbd15a727e270fbefa37d31e7 | [] | no_license | sebastiankluwa/blog | a343c8ec831af3da1dd12885a35ba934a26e8cc7 | bd204055f74abe6aa9a3467d883673a44841431e | refs/heads/main | 2023-01-06T10:58:52.963912 | 2020-11-07T23:25:59 | 2020-11-07T23:25:59 | 304,058,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | # Generated by Django 2.0.5 on 2020-10-16 09:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"sebastiankluwa@gmail.com"
] | sebastiankluwa@gmail.com |
787930d97450b5f2e31a326802a470f4ec3c790d | 70e536915d9bc448d23252b8fd9aa53c5095012e | /test.py | e26e84bcf42cf57c724e083a078d227954ab7c99 | [] | no_license | manavkulshrestha/CS187 | 0917ca1a1e637b65eaf2504a1f456c6b79522765 | 228589e810fbdc483854d07547cdf1537efd2c56 | refs/heads/master | 2022-02-22T04:44:54.893998 | 2019-09-14T18:06:38 | 2019-09-14T18:06:38 | 147,436,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | def areAnagrams(str1,str2):
return (''.join(sorted(str1)) == ''.join(sorted(str2)))
print(areAnagrams('face','faces'))
print(areAnagrams('draw','ward'))
class Node:
left_child = None
right_child = None
def _init_(left_child, right_child):
self.left_child = left_child
self.right_child = right_child
def has... | [
"manavkoolz@gmail.com"
] | manavkoolz@gmail.com |
121a4786acd33c8fae59095a863400cd9244e08f | 7a013424c82b71bc82aa312e0165a1af4170ac23 | /ABC/ABC130/ABC130C.py | bea89a0abcd66a950ed8682791281b50307f53ea | [] | no_license | kikugawa-shoma/Atcoder | fe3405e36dd3e4e25127b6110d6009db507e7095 | 7299116b7beb84815fe34d41f640a2ad1e74ba29 | refs/heads/master | 2020-12-21T19:10:12.471507 | 2020-10-10T16:38:18 | 2020-10-10T16:38:18 | 236,531,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | W, H, x, y = map(float, input().split())
f = 0
if W / 2 == x and H / 2 == y:
f = 1
print("{} {}".format(W*H/2, f))
| [
"kikugawa-s@sys.i.kyoto-u.ac.jp"
] | kikugawa-s@sys.i.kyoto-u.ac.jp |
a8c8e4c916d17a090cfcb804aa6462fed27bdbb2 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/p2_svpn_profile_parameters_py3.py | 27b1bcd7ec17e77255ff1d4ced6bc9eb6304a6ed | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,204 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
a9f2c564853bc7441c44a4c883e66286c4babe0a | 4d9bdaf3deb0f78dc99eb87b8cd4386e8f3069de | /scripts/PostStacksFiltering/genMissingLoci.py | 139e11d32999f22d8bad689cab5607c7e34c1d16 | [] | no_license | mfisher5/PCod-Compare-repo | 5b6f688097feb279a26cd12f43bf91f9a5a83e15 | 2320781656836c1d9534be1a406b1cae4c47ebe1 | refs/heads/master | 2020-03-07T12:33:25.000207 | 2018-06-10T23:05:23 | 2018-06-10T23:05:23 | 127,480,623 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | py | ### This file generates Eleni's Missing Loci filtering file ###
## MF 2/24/2017
## Arguments:
##-- population map
#########################
import sys
popmap = open(sys.argv[1], "r")
script = open("FilterLoci_by_MissingValues.py", "w")
## Start writing the MAF filtering script ##
script.write("### This script... | [
"mfisher5@uw.edu"
] | mfisher5@uw.edu |
9131907141fc1bbf6a2771e76593b15b0de4679a | fb1964b66da85ed65bd7ed348e127bbf4cbaf6d0 | /quiz/06-2.py | 213492957a1331516f836cb3a2cc471062551940 | [] | no_license | iimseunghyun/mypython | 2ee157cd3bc5eeae224326660d59c42c400632b2 | 432677a3d24ffd8f4f145c077b0782440e4e8bf4 | refs/heads/master | 2021-03-25T17:45:33.573778 | 2020-03-16T07:25:52 | 2020-03-16T07:25:52 | 247,636,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | nsum = 0
for number in range(1,1000):
if number %3 == 0 or number %5 == 0:
nsum += number
print(nsum)
| [
"lms-426@hanmail.net"
] | lms-426@hanmail.net |
46c54726728ef5eee9d0c672674ead804539e82e | 0c54adae745b8fb007575097b003fb203773987e | /TP1_Sentiment_Analysis_Tweet_COVID19/sentiwordgang.py | 94cf987a4ccbe6c7feeaed7a6b1071ada09d5d6a | [] | no_license | lsteffanutto/Prog_Robot_UBA | e01ac86a7fea273752d2db8ae09e7870404bc315 | 16516dea48005d81cfc675a87fa9a1f80147a968 | refs/heads/master | 2022-12-21T21:32:13.549966 | 2020-09-20T16:13:08 | 2020-09-20T16:13:08 | 297,111,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,466 | py | #D'abord tu prend ton ensemble conjunto_etiquetado_balanced et tu change les categories
import pandas as pd
import csv
import numpy as np
import re
import random
import nltk
nltk.download('punkt')
nltk.download('averaged_perceptron_tagger')
nltk.download('sentiwordnet')
from nltk.stem import WordNetLemm... | [
"ramel@LUCAS-LAPTOP-918IVQT4.localdomain"
] | ramel@LUCAS-LAPTOP-918IVQT4.localdomain |
c4ed982a58c60000c37c8c3d517afc81033018b2 | a5101b73132e3854307c5c5cc38cb582cbda1288 | /lunar_lander.py | 9966c0772c0db92ea31c24cf0aa26f20818aac5b | [] | no_license | schliffen/Deep_Reinforcement_Learing-imitation-learning-from-observation- | 65f093a74dc67e02495554d27ee571cc66021963 | d0a7ebe9f6a8e932264efae050746c790f65a91d | refs/heads/master | 2021-04-24T19:10:52.914790 | 2018-01-15T21:52:03 | 2018-01-15T21:52:03 | 117,597,828 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | import gym
from gym import wrappers
import os
import argparse
import numpy as np
from REINFORCE import REINFORCE
ENV_NAME = 'LunarLander-v2' # name of the environment
RENDER = True # show game
RAND_SEED = 0 # random seed for generating psudorandom numbers
LOG_DIR = 'log/' # path for saving the training log
TEST_DIR = ... | [
"noreply@github.com"
] | schliffen.noreply@github.com |
dd4a3a510046aec991cf8bee38886e04a075561c | 7104e1d0a4c3330140091df581ea61674856e720 | /Matrix_Chain_Multiplication/evaluate_expression_to_true_bottom_up_dp.py | b34d7d5eedee7439c0c1f78dce1deb9185c1fa3e | [] | no_license | bambamshivam/Dynamic_Programming | 3923ae9320a24cc7df741f55df269ef87fe5add8 | 6bf12cd12f922fe10e489fb0121dc19d3f6aa61b | refs/heads/master | 2023-06-30T13:26:21.712066 | 2021-08-04T02:51:15 | 2021-08-04T02:51:15 | 380,435,514 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | import math
#Evaluate Expression To True-Boolean Parenthesization Memoized
#Given a boolean expression with following symbols.
#Symbols
# 'T' --- true
# 'F' --- false
#And following operators filled between symbols
#Operators
# & --- boolean AND
# | --- boolean OR
# ^ --- boolean XOR
#Count the n... | [
"bambamshivam@gmail.com"
] | bambamshivam@gmail.com |
2d03496972b2e22a6b930a099e1c905ed46caf95 | 68968b3ecd41536ec8e3f107bc292c05496068d1 | /Homework/Chapter 6/Exercise 6.1.py | c15dfc328b2bf7df564e7ae2ef29a7d7a067ee00 | [] | no_license | AlexWinn/Assignment | b96f1b22b5e0864adad0c92a815699c371bfd808 | 8dc0e23a839841fe5b859b6f652a5fb9c58a09a9 | refs/heads/master | 2020-06-22T10:56:41.945561 | 2019-07-19T04:36:50 | 2019-07-19T04:36:50 | 197,702,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | def main():
disk_space = open('numbers.txt ', 'r')
file_contents = disk_space.read
disk_space.close()
print(file_contents)
main() | [
"lexwinn@gmail.com"
] | lexwinn@gmail.com |
18329acdca1e1308339364664c5c906d6033b3bd | 17122ce9af8b9df406b09384f6db3e4af48454bb | /simple_user_scheduling/Brain_user_scheduling.py | fe812147923cebf746d58d4e26e21e724d488344 | [] | no_license | gradusn/User_Scheduling | 1302e034a4db0f10bf52b43ee2545b68794e673d | fe0ce2161620bab09f8a467043ffef60cb435490 | refs/heads/master | 2021-10-26T05:46:33.413397 | 2019-09-27T07:59:41 | 2019-09-27T07:59:41 | 210,284,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,142 | py | """
This part of code is the Q learning brain, which is a brain of the agent.
All decisions are made in here.
View more on my tutorial page: https://morvanzhou.github.io/tutorials/
"""
import numpy as np
import pandas as pd
import User_scheduling_env
class QLearningTable:
def __init__(self, actions, learning_r... | [
"nimrod1988@gmail.com"
] | nimrod1988@gmail.com |
c16e036930adf714c13cf0415186dbfdead8e0ae | 70bdecc19c4017d5bce1cdabd2fc1c8a97b9079c | /login_next_min.py | f90b06beb65ddb12c6e4f8b74ea531a36d9d8b6f | [] | no_license | mahesh4555/sdms | 521b9f016fa78e773caea7a603958872dc45e67d | e0fa480a38e1c907cdbc4412a02340efbe62c422 | refs/heads/master | 2020-04-14T16:28:16.100779 | 2019-01-03T10:01:58 | 2019-01-03T10:01:58 | 163,952,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #!/usr/bin/env python
import cgi
import MySQLdb
print("Content-type: text/html\r\n\r\n")
print('''<html>
<head>
<link rel="stylesheet" type="text/css" href="css_file.css">
</head>
<body>
<h1> Student Database </h1>''')
print("""<div> <button type="button" onclick="location... | [
"noreply@github.com"
] | mahesh4555.noreply@github.com |
e38c56af8ffe496c4b40efc35c236f9a0a0a0e82 | 585dc752d56815b48fbd8dbe072148a2996b461a | /app/forms/AdminForm.py | 6fd3e619eb9505ccaa06d626d51adbf7de7e34d4 | [] | no_license | starboss1/totalizator | 6e47acced67da9068e3d5bab40cdd78dd2aaaeff | fa10c9284556b25775364ed9166a3c4b574cefaa | refs/heads/master | 2022-09-25T02:55:32.746116 | 2020-05-10T11:21:29 | 2020-05-10T11:21:29 | 253,229,595 | 1 | 0 | null | 2021-03-20T03:25:05 | 2020-04-05T12:28:53 | Python | UTF-8 | Python | false | false | 1,076 | py | from datetime import datetime
from wtforms import SubmitField, StringField, FloatField
from wtforms.validators import DataRequired, NumberRange
from wtforms.fields.html5 import DateTimeLocalField
from flask_wtf import FlaskForm
__all__ = ['AdminCreateMatchForm', 'AdminCreateEventForm']
class AdminCreateMatchForm(Fl... | [
"sergei.konoshenko2000@gmail.com"
] | sergei.konoshenko2000@gmail.com |
cd152e5c7b4aedc192021bcc9e6abea96e4d33bd | c8402585eaf575b2d552523b3afeb35056f1449f | /projecteuler/7. 10001st prime.py | 0ed1040249f9723deeb0d35c4f25fe010d8624fb | [] | no_license | EASYept/Simple-programs | 8e8e4c1b0ffe10971554f38f6911c667034209b3 | 6c8531da2b8814c24ca2107c6a18afcf49cf9bd3 | refs/heads/master | 2023-01-20T05:52:00.254609 | 2020-11-24T10:54:14 | 2020-11-24T10:54:14 | 299,404,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import math
def is_prime(n:int):
if n > 1:
for i in range(2, round(n/2)):
if (n % i) == 0:
return False
else:
return True
def n_prime_num(n):
count = 1 # because 2 is prime but i'm skipping it
needed_count = n
for i in range(3, ... | [
"noreply@github.com"
] | EASYept.noreply@github.com |
1769c6c9ca5472aafa523f3d7d2e49747c67166b | b8b88a49daf832e0b84724adb7f359e1af1dee67 | /Tkinter_Dice.py | 8b42fedd6e6ad4b0f1b268fd884cf1623ccd11df | [] | no_license | christianhansenx/Python_Tkinter_GUI | 14319d7e5ae0861de7e65aded6beebd25a358bd8 | 924bfb31f7413d875f69a157f44111e6f2812a60 | refs/heads/master | 2023-06-17T21:41:50.896696 | 2021-07-08T11:03:25 | 2021-07-08T11:03:25 | 295,513,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,986 | py | """ import modules (the script is written for Python 3.xx) """
import random
import time
from timeit import default_timer as timer
import threading
import queue
import tkinter as tk # Import all tkinter functions
import tkinter.font as tkfont
import sys
import os
DICE_AMOUNT_MAX = 4 # Maximum numbers of dices the us... | [
"67972214+christianhansenx@users.noreply.github.com"
] | 67972214+christianhansenx@users.noreply.github.com |
5e285118ceb143da8b9da7137c754bf11b80ab65 | 12316bab944d42a600ecf4fb9961982fa66087ef | /python/dsbox/planner/common/temp.py | ad7be1e08c52726c364aad4419e5e0f9fe302dba | [
"MIT"
] | permissive | proska/dsbox-ta2 | 189b7ce6abc31d87739ad376cd14d05c54f0693a | d3ab379f32f6b094583e29218ed45486c88c8d4f | refs/heads/template-2018-june | 2021-06-14T23:54:55.634506 | 2018-09-13T22:22:18 | 2018-09-13T22:22:18 | 140,617,137 | 0 | 0 | MIT | 2019-07-25T04:25:10 | 2018-07-11T18:59:42 | Python | UTF-8 | Python | false | false | 2,215 | py | '''
Created on Jan 25, 2018
@author: ktyao
'''
PRIMITIVES_REPO = ''
#PRIMITIVES_REPO = '/home/ktyao/dev/dsbox/primitives_repo'
if not PRIMITIVES_REPO:
print('set PRIMITIVES_REPO to clone of rep at https://gitlab.datadrivendiscovery.org/jpl/primitives_repo')
exit()
import json
import os
# from importlib im... | [
"kyao@isi.edu"
] | kyao@isi.edu |
19a3eee629fa47e078d018c096fe5cbfebf9e3ca | 9b527131c291b735a163226d1daac2397c25b712 | /Lecture5/roma_changing_signs.py | c0d266b142cfb3c1ac106e243bb79b49848d36dc | [] | no_license | arnabs542/BigO-Coding-material | dbc8895ec6370933069b2e40e0610d4b05dddcf2 | 3b31bddb1240a407aa22f8eec78956d06b42efbc | refs/heads/master | 2022-03-19T18:32:53.667852 | 2019-11-27T23:55:04 | 2019-11-27T23:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py |
if __name__ == '__main__':
n, k = map(int, input().split())
arr = list(map(int, input().split()))
i = 0
current_sum = 0
done = False
while k > 0:
if arr[i] < 0:
k -= 1
arr[i] *= (-1)
current_sum += arr[i]
elif arr[i] == 0:
k = 0
current_sum += sum(arr[i:])
done = True
else: #arr[i] >... | [
"tranhoangkhuongvn@gmail.com"
] | tranhoangkhuongvn@gmail.com |
7df05d472b19ced0ccd2930b9340908455dbf8c4 | 6ec79342913bab1d8ad3342b55f1cf20b9c4cdad | /PoemCrawler/Common.py | 4257f87fe617b5450c2b407effbe4f146fa698d6 | [] | no_license | wAiXiSeu/PoemProj | 86177617f784f483e944969a38f6f6c2d9ae1de8 | 244001c171561eebd99ffb54894d17aa5684ca81 | refs/heads/master | 2021-05-12T13:00:47.757573 | 2018-01-30T11:11:00 | 2018-01-30T11:11:00 | 116,922,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/1/19 17:26
# @Author : wAiXi
# @Site :
# @File : Common.py
# @Software: PyCharm Community Edition
from urllib.parse import quote
import urllib.request
import eventlet
from bs4 import BeautifulSoup
import time
def get_url(base_path, page_index, k... | [
"yuecheng_w@126.com"
] | yuecheng_w@126.com |
47c01bea6e4b839e670993aff8668a65ae1f6926 | 63a82b8dd8d97b5c9d7ab9ec54449280fa8d6006 | /mail/__init__.py | e210db8bd679f07d493e8e7ba3ac9cb6854511a7 | [] | no_license | jiananxu/ScriptSum | 3f97ae8aed2876511c90ee1d4300f4dbd46fe6ca | a6a5ef6e5615ea20bdc14f273141cb78264bdc72 | refs/heads/master | 2021-07-05T11:31:12.419153 | 2017-09-29T05:42:19 | 2017-09-29T05:44:52 | 104,832,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2017/9/7 16:59
# @Author : xujn
# @Version : 1.0
| [
"1170182824@qq.com"
] | 1170182824@qq.com |
75eb98fc12d4018fae7d066c8314e27635ef7652 | c00f36609234927636f80a16f2417d6841aac81b | /retrySession.py | 0231c0c98c99b2c4c3c0beea4b4f3651e9997379 | [] | no_license | Unknow101/CheatSheet | 480964d53e8e73d3a8e22e2e1299ecaa1bf359d4 | 13ae16060e717a7f14dc89bbfbbf074114c51863 | refs/heads/master | 2021-07-19T12:50:20.356456 | 2020-05-09T00:10:29 | 2020-05-09T00:10:29 | 153,243,104 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # from https://www.peterbe.com/plog/best-practice-with-retries-with-requests
# Utile notamment dans le cas d'un bruteforce web.
import requests
from requests.adapters import HTTPAdapter
from urllib3.util import Retry
import string
def requests_retry_session(
retries=3,
backoff_factor=0.3,
status_forcelist... | [
"noreply@github.com"
] | Unknow101.noreply@github.com |
b64ce057bb94fa3109946b9c036a46f4777d5887 | eb0f5d61d88fd68a59b1594888298a4e70d1000e | /0x0B-python-input_output/14-pascal_triangle.py | 1f697ee1e04480b1f57d13312c6d96a61b6a4cf0 | [] | no_license | luismvargasg/holbertonschool-higher_level_programming | c17b0da5d4ef3d767bdce9f0b7ea31e3dd43e9e7 | 21edd4750a6161addae1caf89b23c5bbcd4f82b6 | refs/heads/master | 2022-12-18T22:46:54.167917 | 2020-09-25T22:00:28 | 2020-09-25T22:00:28 | 259,408,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | #!/usr/bin/python3
"""Module to represent the Pascal's triangle"""
def pascal_triangle(n):
"""function that returns a list of lists of integers
representing the Pascals triangle of n.
Args:
n: given number to represent.
Return:
an empty list if n <= 0 or the triangle.
"""
... | [
"1610@holbertonschool.com"
] | 1610@holbertonschool.com |
6bb67f60eee3878501a804c84034ebedbb3dc851 | 966cde04e832bff2c171c5f4234dc2fa33166ab1 | /datacenter/migrations/0007_auto_20140922_1637.py | fe5d5b4b80782bc42e8a7d5c7c0760725f21b996 | [] | no_license | luiscruz/activersity_datacenter | b9aff5479a6ecb6e1c4b7cc16a9e56f58b873c60 | 03b25ff151809cbb3f298380a2f48bdc5d49e61b | refs/heads/master | 2021-01-23T04:19:50.909709 | 2015-04-06T21:31:49 | 2015-04-06T21:31:49 | 23,912,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('datacenter', '000... | [
"luismirandacruz@gmail.com"
] | luismirandacruz@gmail.com |
f56413bb2102f16bae59cd5e08ac6c66af23e429 | 4601308229f4ca8cde705ff5ac730957db271c30 | /auctions/migrations/0008_auction_payed.py | ba7debd59ea92cfdfdd9a550d7a6a3b80503c951 | [] | no_license | nalorakq8/garage_sale | 173b838cb866ef071c342e9c8a87b249109b25e0 | 482168930c6865f11e98046d72c6a6c207a4ba91 | refs/heads/master | 2021-09-29T14:08:09.755512 | 2018-11-25T08:11:18 | 2018-11-25T08:11:18 | 112,475,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-12-29 17:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auctions', '0007_auto_20171229_0011'),
]
operations = [
migrations.AddField... | [
"yousefmon@gmail.com"
] | yousefmon@gmail.com |
60164fd42bf23197841fd96225ff510867aa1489 | 1f4b2685f8690b794b2ccec834bc32b9b000b6cc | /pi-panel/image-scroller.py | 3be297b3c44e978b991f95e5cbdf3c77a1461106 | [] | no_license | gpambrozio/piscripts | 1d38954746745a113ba3c2dd2b3b104cd8444833 | 720d79d1a319d4023ff4814104b15841924775cd | refs/heads/master | 2023-04-27T10:10:44.160163 | 2023-04-19T00:27:53 | 2023-04-19T00:27:53 | 155,786,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | #!/usr/bin/env python
import time
from samplebase import SampleBase
from PIL import Image
class ImageScroller(SampleBase):
def __init__(self, *args, **kwargs):
super(ImageScroller, self).__init__(*args, **kwargs)
self.parser.add_argument("-i", "--image", help="The image to display", default="runte... | [
"gustavo@gustavo.eng.br"
] | gustavo@gustavo.eng.br |
c5768e9463f05e05e31c969528853d7ac2d1189c | cacf5ad2f94830d3a7f5ca6d5be5c7ce5665b36a | /Source_code_output/src/auxBookVerifSpeakers.py | 0acb102b83240da743a8f2f72777977868c1e3a3 | [] | no_license | antheymans/Topologie-Roman | 64f4f5a308c5cef82f7c14612f40b7633d067944 | a8138f41ad64f21d32020793b67c277c0bde111b | refs/heads/master | 2023-04-28T11:59:19.381496 | 2021-05-25T20:13:19 | 2021-05-25T20:13:19 | 212,549,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,071 | py | '''
Created on 26 janv. 2015
@author: thibautnicodeme
'''
from helpers import PATH_CSV, PATH_CORRECTED, PATH_BOOKS_OBJECT
from auxConvertOccurrences import generate_occurrences
from bookInputOutput import get_files_in_folder
#Compares the CSV output for a filename and the corrected_occurrences for the same filename
... | [
"antoineheymans@yahoo.fr"
] | antoineheymans@yahoo.fr |
7636d3dd8eb08a2e7e9e842b49efd72bb64336cf | 10f7ad03da8d8759ae72c052deb6b3afbbb69182 | /setup.py | f2fb98bdbb88e82320d4c5e41c155d09d1037a11 | [
"MIT"
] | permissive | chesswiz16/Trader | 4b8eec01590a2f48ae2105ad8e406f4f01ef363e | 008308016be6803094b4f5891efa8687af95bacf | refs/heads/master | 2021-05-14T02:48:40.694592 | 2018-02-15T06:24:54 | 2018-02-15T06:24:54 | 116,603,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
install_requires = [
'ws4py==0.4.3',
'requests==2.13.0',
'python-dateutil==2.6.1',
]
tests_require = [
]
setup(
name='gdax-trader',
version='1.0.0',
author='Tiger Huang',
author_email='3wood.tiger@gmail.com',
license='... | [
"3wood.tiger@gmail.com"
] | 3wood.tiger@gmail.com |
892a1d142cc310a228ac230413ddd84949a2b83d | 6d43c34b418233d9b81980e6cba01a26d6a3e91a | /baekjoon/Bronze/b_2609.py | 7b5fe2947a6a123650a1a1d1c78cdb18aa251ecc | [] | no_license | spongebob03/Playground | 1cbba795294e5d609cb0ae951568f62d6f7e8dbc | 4acae2f742f9f8b7e950053207e7c9f86cea6233 | refs/heads/master | 2021-01-05T04:22:36.303355 | 2020-05-22T13:59:28 | 2020-05-22T13:59:28 | 240,878,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #최대공약수 최소공배수
import sys
x=sys.stdin.readline().split()
x1=int(x[0])
x2=int(x[1])
tmp=0
if(x1<x2):
tmp=x2
x2=x1
x1=tmp
y1=0
y2=0
for i in range(1,x2+1):
if(x1%i==0 and x2%i==0):
y1=i
m=x1*x2
for i in range(x2,m+1):
if(i%x1==0 and i%x2==0):
y2=i
break
print(y1)
print(y2)
... | [
"sunhee1996@naver.com"
] | sunhee1996@naver.com |
86da1117af12cef4075e33b58fc74440c7b0b6cd | f3cd073ba3dcfa100c3968ab976a4ed81857324c | /3.Object.Oriented.Programming/11.dataClasses.py | 89d5fac86b254e609a8ad6ae7ba9af0ed323300a | [
"MIT"
] | permissive | bhattvishal/programming-learning-python | 280b954f2457861b816af30dd751c092dd25fdc4 | 78498bfbe7c1c7b1bda53756ca8552ab30fbf538 | refs/heads/master | 2023-06-22T22:53:03.914384 | 2021-07-12T12:03:38 | 2021-07-12T12:03:38 | 315,338,556 | 1 | 0 | MIT | 2020-11-27T09:15:19 | 2020-11-23T14:20:23 | Python | UTF-8 | Python | false | false | 481 | py | # To automate the process of __init__ function Python introduces Data Classes in version 3.7
# the decorator @dataclass will automatically converts this to __init__
from dataclasses import dataclass
@dataclass
class Book:
title: str
author: str
pages: int
price: float
def getDataInfo(self... | [
"vishalbhatt@eaton.com"
] | vishalbhatt@eaton.com |
10e35ecd5cce3c181a6f00fea6cc9a4899a7864b | 53abbe623c9b8d37db8eb8ebb9759931965546e0 | /workout/admin.py | 7ea0cefe74015a5b27d7dcfa8ebf2fd68891dadf | [] | no_license | tharaniansivakumar/Hari_django_reference | 7afda40172e52e8e8de8c6bf89ff00d70fc43303 | c4bff2810e93f36ef8ba226716a870473677e33a | refs/heads/master | 2020-03-25T10:02:24.788137 | 2018-08-06T05:52:34 | 2018-08-06T05:52:34 | 143,682,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py |
from django.contrib import admin
from models import Workout,File,Phone,Lap,Products,dateSample
# Register your models here.
admin.site.register(Workout)
admin.site.register(File)
admin.site.register(Phone)
admin.site.register(Lap)
admin.site.register(Products)
admin.site.register(dateSample) | [
"dharanian@divum.in"
] | dharanian@divum.in |
0a76d52c519c2b9ff4438e8567ebfbc0b5e3cb2e | d8f16b24ba0db0abdcecbbce1cffdb2406a0e652 | /onlineshopping/myshopping/migrations/0007_auto_20200310_1644.py | 85939b0c355318b8cf5b90416ea6310e30142333 | [] | no_license | roshan-pokhrel2/djangoecommerce | 5c482221dd8dbd043fa8239345797444a4db2224 | 21b52e33396af9b0e2af338f0dd3186026f40edb | refs/heads/master | 2021-04-04T22:09:58.792737 | 2020-03-20T08:19:38 | 2020-03-20T08:19:38 | 248,493,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # Generated by Django 3.0.3 on 2020-03-10 16:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('myshopping', '0006_order_orderitem'),
]
operations = [
migrations.RemoveField(
model_name='orderitem',
name='item',
... | [
"you@example.com"
] | you@example.com |
16f96d7366e36a5e24f87013735b926feee8309d | 3c6946a868ccac8cbd5bd4f5c6b0dfaf7cc4df28 | /10_Exercise/centroid_decomposition.py | c9e88d43ac6ff29c7f0fef9ad724481efe2e061a | [] | no_license | andres112/Social-Media-Analytics | 971d26fd0fab0a6f5035ff75e6064bac7f72d2b1 | ae15091da870d118c3fc6148cf1ab92939e1951c | refs/heads/master | 2021-07-12T22:52:31.522089 | 2021-07-03T10:23:00 | 2021-07-03T10:23:00 | 243,337,469 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | import numpy as np
from numpy import linalg as LA
def SSV(x, n, m):
sign = -1
while True:
# Check if sign is negative
if sign == -1:
z = np.matrix(np.ones((n, 1)), dtype=np.float)
z = np.ones((n, 1))
else:
z[sign] = z[sign]*-1 # Change the sign of t... | [
"andres.dorado90@gmail.com"
] | andres.dorado90@gmail.com |
f3951e93008241f4bcc49b4094ee7b2c614e0908 | dbadf56866468404ecbc6ff25d999b4088b736e7 | /project_source/livestock/models.py | 2b1977d16547ba42477a7577acb3909c6f3d7f4e | [] | no_license | InternityFoundation/97_GitCoders | 6a3af738e68c90864e74574fb07ac9281841f432 | 040fc451f15e8a640c486301f68a8d7a5aea3b12 | refs/heads/master | 2022-12-12T12:22:36.471703 | 2019-11-10T07:28:24 | 2019-11-10T07:28:24 | 220,621,931 | 1 | 0 | null | 2022-12-08T05:23:50 | 2019-11-09T09:47:29 | Jupyter Notebook | UTF-8 | Python | false | false | 3,204 | py | from django.db import models
import os
import re
from datetime import datetime
def upload_livestock_image_directory_path(instance, filename):
filename, file_extension = os.path.splitext(filename)
return 'livestock/'+re.sub('[-:. ]','',str(datetime.today()))+file_extension
class CategoryA(models.Model):
n... | [
"mznrajatjain@gmail.com"
] | mznrajatjain@gmail.com |
56291aa4a0f783a753deddf4f50d79d3d9595070 | d1f971b9fa0edfa633b62887cf9d173d6a86a440 | /concepts/Exercises/fractions_example.py | 9c1d73c4e52a77b235af4df8a39a46bdb6118ce0 | [] | no_license | papan36125/python_exercises | d45cf434c15aa46e10967c13fbe9658915826478 | 748eed2b19bccf4b5c700075675de87c7c70c46e | refs/heads/master | 2020-04-28T10:01:10.361108 | 2019-05-10T13:45:35 | 2019-05-10T13:45:35 | 175,187,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import fractions
# Output: 3/2
print(fractions.Fraction(1.5))
# Output: 5
print(fractions.Fraction(5))
# Output: 1/3
print(fractions.Fraction(1,3))
| [
"noreply@github.com"
] | papan36125.noreply@github.com |
02214ea3f8469684440d875077648f0e178654d6 | 4142b8c513d87361da196631f7edd82f11465abb | /python/round690/1462A.py | a873968e7e5d1a7c9aafc73f818dd309e372ef2b | [] | no_license | npkhanhh/codeforces | b52b66780426682ea1a3d72c66aedbe6dc71d7fe | 107acd623b0e99ef0a635dfce3e87041347e36df | refs/heads/master | 2022-02-08T17:01:01.731524 | 2022-02-07T10:29:52 | 2022-02-07T10:29:52 | 228,027,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from sys import stdin
for _ in range(int(stdin.readline())):
n = int(stdin.readline())
a = list(map(int, stdin.readline().split()))
res = []
for i in range(n // 2):
res.append(a[i])
res.append(a[-i - 1])
if n % 2 == 1:
res.append(a[n // 2])
print(*res)
| [
"npkhanh93@gmail.com"
] | npkhanh93@gmail.com |
7cac5d18cc958abd001dac689a69d95fa4d14499 | 38e38d4ef72273eabb524fddbd9d4319a3d8d83d | /Test/Test/urls.py | 166db9f67b3e95553ebcaaa4880fd21fa09f355a | [] | no_license | ItisDL/saiShengKeJiTest | 37bbefa0df183566e7c60a4d2f18cbe67846e885 | d2cf1ab81099c1c99d0d458231da27d00e433ec8 | refs/heads/master | 2022-04-19T12:51:24.452352 | 2020-04-21T16:04:46 | 2020-04-21T16:04:46 | 257,592,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | """Test URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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 vi... | [
"dailei@dextree.com"
] | dailei@dextree.com |
94d07e32ad395b3e50daef1387bf59eb26062aab | 99dddad6faeb332283a696ac9252a7a59c44315d | /custom_utils/invite.py | 2ae0ad295101410e351fefd13ba8c2a50dddccc1 | [] | no_license | polytropon/EventManager | 64c2df29a231f605bc5359ee3b552cb17d28ebff | 892a026d4de9e59a427b931608e5ec1c7507919a | refs/heads/master | 2022-04-25T07:21:07.633626 | 2020-04-25T09:55:35 | 2020-04-25T09:55:35 | 258,739,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | from crm.models import *
# v = Veranstaltung.objects.get(pk=event_id)
# registered = [fe.person for fe in v.FormEntries.all()]
# persons = Person.objects.all()
# [p._einladungscode(v) for p in persons if p not in registered]
# [p._params_link(v) for p in persons if p not in registered]
# [p.send_message("Einladung: Kon... | [
"34506264+polytropon@users.noreply.github.com"
] | 34506264+polytropon@users.noreply.github.com |
84ad5e39e6ed8f804f2af1674e09ad1309a0827d | 019bd4cd7daa30ec90acb4ea6909ef11fb2810b8 | /nucypher/utilities/simulate.py | 678028d848cc2150d6cedf79d5a061e6b8b8d492 | [] | no_license | lucianstroie/nucypher | 6f9545e07b02220a082f5cb833c5be8cfc823b67 | d558c43e4a4085ac09c1ae00f076273f93567151 | refs/heads/master | 2020-03-28T07:47:13.831236 | 2018-09-06T13:07:27 | 2018-09-06T13:07:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | from twisted.internet import protocol
class UrsulaProcessProtocol(protocol.ProcessProtocol):
def __init__(self, command):
self.command = command
def connectionMade(self):
print("connectionMade!")
self.transport.closeStdin() # tell them we're done
def outReceived(self, data):
... | [
"kieranprasch@gmail.com"
] | kieranprasch@gmail.com |
57800759d45885db65b681bbb6b4e4f86f263971 | 1f74cbca452ec1ddec3da61cf1ea16b2b92b0088 | /Assignment 1/News Data Part 1/Multinomial_Classifier.py | 0298516b8f4b0776abf4f4368ca68b8dc99ad138 | [] | no_license | SmellingSalt/Statistical-Pattern-Recognition-Assignments | ea911bb8349fc24ded251e2cddc6b5230bf4f23b | 3d70687c5632ee06b1c19ed9fdaf749afdf3d105 | refs/heads/master | 2021-07-17T12:20:09.931474 | 2021-02-01T11:31:29 | 2021-02-01T11:31:29 | 236,273,314 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,356 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Feb 7 15:13:32 2020
@author: Sawan Singh Mahara
"""
def MultiClass(vocab_length):
#%% IMPORTING LIBRARIES AND FUNCTIONS
import numpy as np
import pandas as pd
# import os
import time
# import nltk
# import operator
# f... | [
"ssmahara96@gmail.com"
] | ssmahara96@gmail.com |
f9d184281a3b0801b38b09da1998a093073194e6 | 2f3c5572a2f6ae51a639c6bac0def980e4e42a00 | /distancetransform.py | d32fb02692774756f9dd036ca3ace54d06d4b045 | [] | no_license | k-dominik/CellProfiler-plugins | c6fd353ddbf601260a33942cba20fff8da545780 | 19d60b03a9ca114c8d5d46586cf79a853605f9fc | refs/heads/master | 2022-10-13T11:03:25.732602 | 2022-09-15T15:26:47 | 2022-09-15T15:26:47 | 217,050,259 | 0 | 0 | null | 2019-10-23T12:20:42 | 2019-10-23T12:20:41 | null | UTF-8 | Python | false | false | 2,679 | py | __doc__ = """\
DistanceTransform
===========
**DistanceTransform**
Computes the distance transform of a binary image. The distance of each
foreground pixel is computed to the nearest background pixel. The
resulting image is then scaled so that the largest distance is 1.
============ ============ ===============
Su... | [
"82409851+bdiazroh@users.noreply.github.com"
] | 82409851+bdiazroh@users.noreply.github.com |
4fcf931f72068f5a92e1405169a021ee2d4e55a8 | 423ba09a145b3468a322acf4ddf7d2c2446e227d | /atcoder/nikkei2019-qual/nikkei2019-qual_a.py | 618827da3e3942e1cc9d874f950210e5c318784a | [] | no_license | hirosuzuki/procon | 13d3bc332d6e4368fd54fec742b32b09729658ed | 533f40e13456542b202905a61814ad926c3c206e | refs/heads/master | 2021-05-12T10:42:51.920561 | 2020-05-20T15:49:05 | 2020-05-20T15:49:05 | 117,356,746 | 0 | 0 | null | 2018-01-29T14:46:28 | 2018-01-13T15:56:40 | Python | UTF-8 | Python | false | false | 81 | py | N, A, B = [int(_) for _ in input().split()]
print(min(A, B), max(A + B - N, 0))
| [
"hirosuzuki@users.noreply.github.com"
] | hirosuzuki@users.noreply.github.com |
7bbf27f80d4c6768ffd8917a180fe042e57c3e2f | ad851a016594d7c938a03acc48b415c5215b091d | /2.py | a95bd646692600901d068f599ce798130ec6cca2 | [] | no_license | alexseyvorobev/1234 | 66a63a043ca967222f14c5b68710fc0c40fb1381 | 57e4d3db2d6bfc863845e6c4a3fcdccc3ff0fdbe | refs/heads/main | 2023-08-29T00:30:13.921939 | 2021-10-01T22:36:51 | 2021-10-01T22:36:51 | 412,633,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | a=3
b=4
c=5
print("S=",(a*b)/2,"P=",a+b+c)
| [
"daffernn@mail.ru"
] | daffernn@mail.ru |
f0e64f8cedf24b981d04d5354be492342880cabb | 96b5c322ce92df471d06ce90ffd5e7c814dac016 | /techstore/wsgi.py | 5ec1f15a34dcae884b209fdf5ca6cd2a3ab0b4db | [] | no_license | MuhamedYoussef/techstore | e53e0e1fea3f0f4632bd41d9adbb0578306a1c3c | 3898a79df810a1fcba3299b91471653898cf40f8 | refs/heads/master | 2020-04-17T02:50:45.554258 | 2019-01-24T08:23:43 | 2019-01-24T08:23:43 | 166,155,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for techstore project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"muhamed-youssef@outlook.com"
] | muhamed-youssef@outlook.com |
64d8680345a04444e6e646f2a2095d2dc6a64b52 | 256746f29f9995accd4fee35b9b8981264ca2e37 | /Ch05/2017-8-21_2.py | e37173b77da869c3f53193f47a2a80dc66a3786c | [] | no_license | Vagacoder/Python_for_everyone | adadd55561b2200d461afbc1752157ad7326698e | b2a1d1dcbc3cce5499ecc68447e1a04a8e59dc66 | refs/heads/master | 2021-06-22T00:26:02.169461 | 2019-05-25T16:06:04 | 2019-05-25T16:06:04 | 114,508,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | ## Ch05 P 5.26
def read_digit(code):
bar1 = read_bar(code[0])
bar2 = read_bar(code[1])
bar3 = read_bar(code[2])
bar4 = read_bar(code[3])
bar5 = read_bar(code[4])
number = bar1 * 7 + bar2 * 4 + bar3 * 2 + bar4 * 1 + bar5 * 0
if number == 11:
number = 0
return number
... | [
"noreply@github.com"
] | Vagacoder.noreply@github.com |
25f0701b94cb86f2e5275730be28606eed770268 | 3aafebe8dda3732fdc354df3c253a56762d99bf2 | /site-packages/integralstor/acl.py | 31864a495b1370c7986672ec02c4a05d760e99a6 | [] | no_license | fractalio/integralstor | e666566301f793cb598a08778861b42710e34e19 | 1aa3e8000e7b676afb3fcadf6627991cc84c62e6 | refs/heads/master | 2021-06-24T15:41:09.400882 | 2017-09-13T06:31:55 | 2017-09-13T14:27:10 | 103,245,335 | 1 | 0 | null | 2017-09-12T08:44:05 | 2017-09-12T08:44:05 | null | UTF-8 | Python | false | false | 9,064 | py | from integralstor import command
def get_all_aces(path):
"""Get all the access control entries for the given path."""
aces = []
try:
lines, err = command.get_command_output('getfacl "%s"' % path)
if err:
raise Exception(err)
for line in lines:
if not line.st... | [
"ram@fractalio.com"
] | ram@fractalio.com |
f3642979d4510602e56c8abedf82bafc4409fb14 | 1fa16fac6d67147df08d845a799a3161e2ba7389 | /utilities/constants.py | ab35b1ee997038f5966b9e0daadc683bcb0e7f8e | [] | no_license | AlexFox63/PedestrianTracking | e6d618496de04c257c00614c3f75477fc96e0951 | 1752d178bcfe5334b7c63bf4a9da438f7f73b769 | refs/heads/master | 2022-06-29T21:08:10.073464 | 2020-05-08T22:25:07 | 2020-05-08T22:25:07 | 262,426,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import os
# Root Directory
ROOT_DIR = os.path.realpath(__file__)[:-22]
# Model Constants
CKPT_COCO = ROOT_DIR + 'frozen_inference_graph.pb'
LABELS_COCO = ROOT_DIR + 'labelmap.pbtxt'
| [
"derezzded63@yandex.ru"
] | derezzded63@yandex.ru |
20ff5212b7eedb2e5bb3e1980b7f154928ab516b | 578039b4fdfec1c37ae6e48b81febac88570c6ec | /payloads/general/command.py | d28f1db059636b2ead8d76622ba9204b45548a21 | [
"MIT"
] | permissive | Optixal/sshpwn | 1a3d1f537fd732bf2da7448329e8a343118e6a79 | 9a6ed19b8351c61f0a905b0bd4123ac315e80ab0 | refs/heads/master | 2020-04-06T06:55:17.799460 | 2016-09-04T08:44:44 | 2016-09-04T08:44:44 | 61,960,707 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | #!/usr/bin/python3
from pwn import *
def execute(session, configs, params):
if not params:
print(cs.status, "Usage: command [command]")
return 1
try:
shell = session.shell("/bin/bash")
shell.sendline(params)
output = str(shell.recvrepeat(0.2), "UTF-8")
shel... | [
"optixal@live.com.sg"
] | optixal@live.com.sg |
1ed4b168591196f17279caf2a87b08dc60d89464 | 7c33049c79c556af3837ed84a5e1104c76be3c96 | /Battle.py | 3ed841d54b6abecc01fe0c1af673e3f3a3921e55 | [] | no_license | Littlemansmg/RPSRPG | 6e9e51b0ef7202cd197f2dcddb9e10673a1a3476 | 0fa4f8e06c386b3aa61fa29068cd912fbf0ea178 | refs/heads/master | 2021-08-14T12:10:00.838959 | 2017-11-15T17:19:24 | 2017-11-15T17:19:24 | 109,750,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,821 | py | """
Battle.py created by Scottie Goes on 11/14/17
This file is separating the regular and the battle game to make for some cleaner code.
TODO
DONE 1. Health and Damage
DONE 2. Defence calculating
3. Advantages
4. Crits
5. Idk. probably something to do with penis.
"""
import time
import os
import Roshambo as REG... | [
"littlemansmg@gmail.com"
] | littlemansmg@gmail.com |
ede6c15f31893f176b564fe910878ba41208a9a6 | 2d968ba90874580085eaa776ac7d4c36fd602471 | /scripts/rqt_launch_editor | c6d481cf6c68c9001a5e7cdd86be8e34f5c7c1a8 | [
"BSD-3-Clause"
] | permissive | gmoberg/rqt_launch_editor | 767ead7f73e43a0ed6233fc766e88772083ff584 | db535477eec9ede703447d3e55cfb9c5684351b4 | refs/heads/master | 2020-04-05T13:39:06.646807 | 2017-08-11T21:40:20 | 2017-08-11T21:40:20 | 94,940,815 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | #!/usr/bin/env python
import sys
from rqt_gui.main import Main
main = Main()
sys.exit(main.main(standalone='rqt_launch_editor.launchtree_plugin.LaunchtreePlugin')) | [
"gmoberg@seas.upenn.edu"
] | gmoberg@seas.upenn.edu | |
cbb0e06117cb0e749a20e5ba7002cf1b29216af4 | 2bfef22889667062ec80f21ecb36e1eeec6f8d60 | /venv/Scripts/easy_install-3.6-script.py | 02b216276aa732651307c19b7507dd40d8667052 | [] | no_license | rozenarthur/Password-Manager | 56cbc21622a28c94e319066b9b9cce944e35ca0b | cb502c1bb5ccdabdbbfc6e001a8975bdc7403213 | refs/heads/master | 2021-06-24T20:26:21.630620 | 2021-04-28T04:39:49 | 2021-04-28T04:39:49 | 217,730,861 | 0 | 0 | null | 2021-04-28T04:39:50 | 2019-10-26T15:42:13 | Python | UTF-8 | Python | false | false | 478 | py | #!"C:\Users\ArthurPC\Desktop\Test Projects\Password Manager\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re... | [
"rozenarthur@gmail.com"
] | rozenarthur@gmail.com |
3fc2000fa1d6376bcd366292ea46b153067dbb38 | 9f295c23204bc85b895c58583b62e0ff17399752 | /Scripts/migrate-repository-script.py | f768895c4a897c3f69c1b68cb8f1825ba38a149e | [] | no_license | Ashllives/Microblog | bf522f4706315735284e1c6e1d0e6ec82037f2fc | b57522661d0310354f5032d5308714cf6d22fe51 | refs/heads/master | 2021-09-05T09:44:25.564832 | 2018-01-26T06:55:35 | 2018-01-26T06:55:35 | 115,194,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | #!"c:\users\che sevilla\envs\microblog\scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'sqlalchemy-migrate==0.11.0','console_scripts','migrate-repository'
__requires__ = 'sqlalchemy-migrate==0.11.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(... | [
"cecillegsevilla01@gmail.com"
] | cecillegsevilla01@gmail.com |
24bd6d4bd89b29aeb2fe58137991d7f69d4cdea4 | 711d106f4b979b08c79427d43cf973a297559901 | /workout/models.py | 06628f8e3dfc18a2947d1cd3c1ae7c9f35bb0fef | [] | no_license | regilkent123/OJTPROJECT | c657b9750632e397c078e55f7e0bfe4af187e050 | c1ee21811e96cc3d435863becf7527f787c8747e | refs/heads/master | 2020-03-11T13:39:45.588848 | 2018-06-04T09:54:49 | 2018-06-04T09:54:49 | 130,031,192 | 0 | 0 | null | 2018-06-04T09:54:50 | 2018-04-18T08:37:40 | CSS | UTF-8 | Python | false | false | 695 | py | from django.db import models
class Workout(models.Model):
workout_name = models.CharField(max_length=200)
AEROBIC = 1
STRENGTH = 2
BALANCE = 3
FLEXIBILITY = 4
workoutType = (
(AEROBIC, 'Aerobic exercise'),
(STRENGTH, 'Strength exercise'),
(BALANCE, 'Balance exercise'),
... | [
"regilsembrino@gmail.com"
] | regilsembrino@gmail.com |
e6aa15e135ddfd13f0d01ad53482b212ffce72c8 | 64d550fac80b813833d799db281c7d1cd4f3590a | /tools/_init_paths.py | 1dcc2f7908029951404255c278ce361f1dd67637 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | wzj5133329/faster-rcnn-easy | b74cdd5acc35419303007027876c2ddeb944e5e8 | b0ebacc54119316bb231e76ec4c7f6b0c8390299 | refs/heads/master | 2021-05-26T01:09:22.591157 | 2020-04-08T07:06:29 | 2020-04-08T07:06:29 | 253,994,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | #coding=utf-8
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Set up paths for Fast R-CNN."""
# 将需要的自定义模块加入到sys中 后面... | [
"1073093374@qq.com"
] | 1073093374@qq.com |
0042c28b18289c9c2f7158c742f81ed1744a49fc | c88c2224dbf87226cef041b4e228c070e1eb2ba1 | /driver.py | 30aedd4958076294a94bdb55bfd9d3e8c984b91a | [] | no_license | dgillis91/comp4 | c3746bc650cb4edb17efffcf2e11b475d79ee157 | 711934dd307b103ba49f99f686dc76d7fe55a15c | refs/heads/master | 2022-07-16T16:35:56.827333 | 2020-05-12T10:48:13 | 2020-05-12T10:48:13 | 262,637,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | from __future__ import (absolute_import, division,
print_function, unicode_literals)
import argparse
from fsa import initialize_scanner
from parser import parser_func
from tree import print_tree
from staticsem import semantic_analysis
from generator import code_generator
from writer impo... | [
"dgillis91@gmail.com"
] | dgillis91@gmail.com |
3bfd0f28ba277e393000a71c1308dee534790150 | d57148c74b79954ff762ce3a02c1b0ef3e79d6a1 | /libs/smartmeshsdk-REL-1.3.0.1/libs/VManagerSDK/vmanager/models/user_list_element.py | bcb914e1417f2a8286c6556ef01fbd45bcd0d182 | [
"BSD-3-Clause"
] | permissive | realms-team/solmanager | 62fb748b140361cf620b7dd8ff6df755afd42bbe | 95fa049df041add5f8d37c053ef560d0e5d06dff | refs/heads/master | 2020-04-11T10:00:21.086457 | 2018-11-20T15:49:27 | 2018-11-20T15:49:27 | 40,271,406 | 0 | 0 | BSD-3-Clause | 2018-11-20T15:49:28 | 2015-08-05T22:15:39 | Python | UTF-8 | Python | false | false | 3,057 | py | # coding: utf-8
"""
Copyright 2015 SmartBear Software
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 applica... | [
"twatteyne@gmail.com"
] | twatteyne@gmail.com |
d6bf95c21fddc999194bb12a05edb9c1c0d457aa | 2ed6e49f6bb841a36f51e7562a71788682f2f282 | /backend/backend/git_utils.py | 56837bde860f73ea789a3c21d8e06a4b3571e8bf | [
"Apache-2.0",
"MIT",
"CC-BY-4.0"
] | permissive | arthur-flam/qaboard | 7fcaf3c351bd94d457dd14b9f9c6793a583d6841 | 7a11c3c2279595f87bc113c7d383d11241d83946 | refs/heads/master | 2022-10-07T13:55:13.356189 | 2020-06-05T07:07:05 | 2020-06-05T07:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | from git import Repo
from git import RemoteProgress
from git.exc import NoSuchPathError
class Repos():
"""Holds data for multiple repositories."""
def __init__(self, git_server, clone_directory):
self._repos = {}
self.git_server = git_server
self.clone_directory = clone_directory
def __getitem__(s... | [
"arthur.flam@samsung.com"
] | arthur.flam@samsung.com |
018d27696822f15dcbb49fbe780b80ce176e0824 | cc19cb516bb47a482dd8bb6ad5e954b68abb8a5d | /elegy/model/__init__.py | efa916fa17c4fdbbe322919420289e58611f1ff7 | [
"Apache-2.0"
] | permissive | alexander-g/elegy | b86840e8db7fed8398520113dda5d1fbbdb56193 | 124683fd4238d871ffa1e94d25890d9ab34b9b3a | refs/heads/master | 2023-04-01T00:53:44.523949 | 2021-01-22T14:41:11 | 2021-01-22T14:41:11 | 310,647,569 | 0 | 0 | Apache-2.0 | 2020-11-25T07:38:04 | 2020-11-06T16:21:44 | Python | UTF-8 | Python | false | false | 122 | py | from .model import Model, load
from .model_base import Optimizer
__all__ = [
"Model",
"Optimizer",
"load",
]
| [
"noreply@github.com"
] | alexander-g.noreply@github.com |
026f3e98de13a43d57459b656dd38b3518418ba9 | d5a7bbc51eb085fff1d1a8db79c6e2fc4f5c674d | /349 Intersection of Two Arrays.py | da77bf3585a35cd86ab6b1935e40a269c656dd4d | [] | no_license | di-wendy/Leetcode-Python | d39ae9a842121061141c281dc444a225ed85de0f | 1fac4d4b87b75e68afd9928054c3e40e2da1d1b5 | refs/heads/master | 2021-06-18T01:05:33.052094 | 2017-06-17T03:28:57 | 2017-06-17T03:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | class Solution(object):
def intersection(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: List[int]
"""
#built dict1 to hold numbers in array 1
#result to hold result
#array2 is as filter
dict1 = {}
... | [
"noreply@github.com"
] | di-wendy.noreply@github.com |
d6922a8c30675933f85e75cadc718b465e3f1613 | 9d3171d191914bb980f8fea2b895de79d9893db6 | /scikits/statsmodels/regression/tests/test_glsar_gretl.py | ce868ff7a5f89edae46b86e3484832ef3478e887 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | takluyver/statsmodels | 2d3ba11035501bd1e35f23daf27bca823eec2cb5 | 3f1aeba98cd4bc2f326f9c18c34e66c396be99cf | refs/heads/master | 2023-06-19T18:51:28.464440 | 2012-02-29T16:24:25 | 2012-02-29T16:24:25 | 3,585,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,803 | py | # -*- coding: utf-8 -*-
"""Tests of GLSAR and diagnostics against Gretl
Created on Thu Feb 02 21:15:47 2012
Author: Josef Perktold
License: BSD-3
"""
import numpy as np
from numpy.testing import assert_almost_equal, assert_equal, assert_approx_equal
from scikits.statsmodels.regression.linear_model import OLS, GLSA... | [
"josef.pktd@gmail.com"
] | josef.pktd@gmail.com |
b6355082ce50ee549503dd1d2d1078abf3fecdd5 | 271ddd43f2566c2d1e5bc35e8c599f9c5ec7a26c | /PYSNMP_MIBS/Printer-MIB.py | b98886c19e189c90d32e2f16d66bb52ff64e5ad7 | [] | no_license | chetan009/snmpd | e8b1268e70497d7300617a3bb3bffb2561f923ad | 17be5051b930ae3c74fb05f990a19dabbf7a86ef | refs/heads/master | 2021-07-07T12:37:50.642533 | 2018-11-28T07:35:57 | 2018-11-28T07:35:57 | 158,779,449 | 0 | 1 | null | 2020-07-26T08:30:15 | 2018-11-23T04:07:19 | Python | UTF-8 | Python | false | false | 128,997 | py | # PySNMP SMI module. Autogenerated from smidump -f python Printer-MIB
# by libsmi2pysnmp-0.1.3 at Mon Apr 2 20:39:29 2012,
# Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0)
# Imports
( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "... | [
"chetan.sh009@gmail.com"
] | chetan.sh009@gmail.com |
de6191ae738875a1356e2687dd99e7f380e715fb | da3753e6d93a260442502c89a0dbc1718fed58a1 | /OnlineCourse/settings.py | 40e538ef7384520e4a4d16c019b61e90cc08c7b1 | [] | no_license | stepbystep999/OnlineCourse | 64e44bf84cd630155bde68c7e8e846f6bba4ac66 | 769afec34a0f1d5d7a3875ce95967506eaec2b46 | refs/heads/master | 2021-05-08T05:18:14.614831 | 2017-11-02T23:13:19 | 2017-11-02T23:13:19 | 108,440,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,675 | py | """
Django settings for OnlineCourse project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | [
"stepbystep6037@163.com"
] | stepbystep6037@163.com |
9254d9688bf09016bb2da20222a8382e55e09309 | 22d4bdff084db5becb8c76d5d8c3ce6ea095d3d8 | /tcapy/vis/computationresults.py | a9064c413d1e8b0f07ce94559ac9eeb040c73b7c | [
"Apache-2.0"
] | permissive | sbnair/tcapy | 1768220657bdd4d3bdc0f2e8248e971c76ed4953 | 380d49139d7af9fd4cf63d406029833c9a41cc70 | refs/heads/master | 2021-05-17T14:13:22.206884 | 2020-03-27T17:10:06 | 2020-03-27T17:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | from __future__ import print_function
__author__ = 'saeedamen' # Saeed Amen / saeed@cuemacro.com
#
# Copyright 2018 Cuemacro Ltd. - http//www.cuemacro.com / @cuemacro
#
# See the License for the specific language governing permissions and limitations under the License.
#
import abc
from tcapy.util.utilfunc import ... | [
"saeedamen@hotmail.com"
] | saeedamen@hotmail.com |
a74d2f981d3af22b80dfd2637fd66240f655a8e6 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/mysensors/test_light.py | 8d4ce445779881be401c869f41257377a2583ea5 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 8,086 | py | """Provide tests for mysensors light platform."""
from __future__ import annotations
from collections.abc import Callable
from unittest.mock import MagicMock, call
from mysensors.sensor import Sensor
from homeassistant.components.light import (
ATTR_BRIGHTNESS,
ATTR_RGB_COLOR,
ATTR_RGBW_COLOR,
DOMAIN... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
86f3d5ae18ef37d0b4f46848c915f4a00804a4cf | b9fd66a95741c78441cd4f202abe0964afb4b67c | /api/tests/upload_file_before_inference/test_upload_file_before_inference.py | 3cc3a361883bb81fb07acf4c5d165de59eb7f80f | [
"Apache-2.0"
] | permissive | zhampel/FakeFinder | d8896ea59027116b4d337bda9e00284db7cf8d0e | 2891a8649acc1dabdef07554d6acb346dd23dbae | refs/heads/main | 2023-07-07T04:03:24.576134 | 2021-08-16T02:31:41 | 2021-08-16T02:31:41 | 343,505,168 | 0 | 0 | Apache-2.0 | 2021-03-30T03:13:10 | 2021-03-01T17:45:17 | Python | UTF-8 | Python | false | false | 525 | py | import requests
import json
def test_upload_file_batch_mode_no_split_ntech():
url = 'http://localhost:5000/uploadS3/'
# Additional headers.
headers = {'accept': 'application/json'}
files = {"file": ("file_test_4000.mp4", open("./file_test_4000.mp4", "rb"))}
resp = requests.post('http://localho... | [
"mgogia@iqt.org"
] | mgogia@iqt.org |
dcabca991e405722f266c26a79a6218eee88a8e5 | bcda330eab528871da7fe007851f9554f2e19e66 | /dfp/get_orders.py | 839da7a3b615c878b631f55ed7c0aa7da9f8bd90 | [
"MIT"
] | permissive | gmalta/dfp-prebid-setup | 2b80cc6ac53240c8e2caec6abadb6df349ada6ae | d965f9a70e56a8444ecd80566028f09964b51d04 | refs/heads/master | 2023-08-19T02:02:30.265693 | 2021-09-22T19:47:17 | 2021-09-22T19:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
from googleads import ad_manager
from dfp.client import get_client
logger = logging.getLogger(__name__)
def get_order_by_name(order_name):
"""
Gets an order by name from DFP.
Args:
order_name (str): the name of the DFP order
Returns:
a... | [
"kevin.jennison1@gmail.com"
] | kevin.jennison1@gmail.com |
13734c8205d0fc42832305e07767c62444c1b0fe | ba86191e2ae448b308f72e815c03342ff5b47028 | /pyconar2019_conociendo_las_baterias_de_python/data/data_for_presentation.py | 9979630cef4d5a0184e4db3e20a7522ef7759906 | [] | no_license | malderete/talks | 9b8d1fac65b6f1d31ee030c4c87dc3756f686d94 | bdd52bcfb258fd5f8556c84347adfac00ce19096 | refs/heads/master | 2020-09-26T02:24:50.249616 | 2019-12-09T18:53:35 | 2019-12-09T18:53:35 | 226,141,364 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | ids = [1 , 2, 3, 4]
languages = [
'Python',
'Javascript',
'Golang',
'Rust',
'C',
'Smalltalk'
]
twitter_data = [{
"created_at": "Thu Jun 22 21:00:00 +0000 2017",
"id": 877994604561387500,
"id_str": "877994604561387520",
"text": "Creating a Grocery List Manager Using Angular, Part 1: Add ... | [
"malderete@gmail.com"
] | malderete@gmail.com |
913c73054ad10b76bf8406d00c60574961dbddf4 | 1a78196b3896437b63610b33e941a6191036bda7 | /Projects/P4/BinaryCSP.py | 7580cc3cf1c0a2834e26c0c24c4ed173b4d848d9 | [] | no_license | xiataoyue/VE492-AI | 948ac8a54e5a4822414a61aa8982f745b13b0255 | c7d82a1493f135a869ca6d7d0593bb10f885bc53 | refs/heads/master | 2023-07-13T14:51:41.790496 | 2021-08-23T13:05:04 | 2021-08-23T13:05:04 | 399,103,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,662 | py | # Hint: from collections import deque
from Interface import *
from collections import deque
# = = = = = = = QUESTION 1 = = = = = = = #
def consistent(assignment, csp, var, value):
"""
Checks if a value assigned to a variable is consistent with all binary constraints in a problem.
Do not assign value to... | [
"44740675+xiataoyue@users.noreply.github.com"
] | 44740675+xiataoyue@users.noreply.github.com |
6bfb94809a4fa378e579c636cc5d1a1b89dae1de | 61a193cbc16b77efd2ee08f0b7c5939704c37f54 | /venv/bin/easy_install | 64a8a9f3f68d2231c05514339f3cf112f9a6f4ef | [] | no_license | ziemowit141/PythonCheckersAI | 0cf53e0b6dcfe80fe5f5a32f4612ca5a2a4d6f6a | e1d77ecd088c87f4a3127f33c29f11143c08eebf | refs/heads/master | 2020-05-26T13:45:15.427902 | 2019-05-23T14:43:45 | 2019-05-23T14:43:45 | 188,251,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | #!/media/twojmistrz/MistrzowskiDysk/PROJECTS/PythonCheckers/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scri... | [
"ziemowit141"
] | ziemowit141 | |
4810d242a20a65365d2b0598b4331eff88559d1d | 9718d6a2fcdd97535d6b16f86a6c14b428a386a8 | /Array/MaximumSubarray.py | a6cc01e19c91904c74f11705bf2df5f0a9c5608d | [] | no_license | sclmaomao/Data-Structures-and-Algorithms | 5e7a2cb3e66610b5784c28bd91b58d2c90f9c9c2 | d621d023eb14d0143921157dba71c55c84c46ec5 | refs/heads/main | 2023-04-11T11:35:30.775347 | 2021-04-21T04:40:02 | 2021-04-21T04:40:02 | 350,562,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | class Solution:
"""
@param nums: A list of integers
@return: A integer indicate the sum of max subarray
"""
def maxSubArray(self, nums):
#prefix_sum记录前i个数的和,max_Sum记录全局最大值,min_Sum记录前i个数中0-k的最小值
min_sum, max_sum = 0, -sys.maxsize
prefix_sum = 0
for num in nums... | [
"noreply@github.com"
] | sclmaomao.noreply@github.com |
c4234ab04a2c3bd8cd293c0976ab4348b3648376 | 00ebd49298b67142709706834804ebc5cdc41c0c | /exercitiul5.py | 6be907644fcad8ef7802a1b0b2f2c68dff0b0d3e | [] | no_license | AndreiApopii/exercitii-si-probleme | a20beb0fd18a51403dffbf807b612f89690c9d0e | 01a6fe809512787f695922a1b9158c2c93834802 | refs/heads/main | 2022-12-29T20:04:02.173832 | 2020-10-18T17:51:30 | 2020-10-18T17:51:30 | 305,058,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | ac=int(input("dati anul curent"))
lc=int(input("dati luna curenta"))
zc=int(input("dati ziua curenta"))
an=int(input("dati anul nasterii"))
ln=int(input("dati luna nasterii"))
zn=int(input("dati ziua nasterii"))
if(ln>lc):
print((ac-an)==1,"ani")
else:
print((ac-an),"ani") | [
"noreply@github.com"
] | AndreiApopii.noreply@github.com |
a746f71e9ee4c18469795b3e3e30818995be0b21 | 7c6eee1aaefc92c216c31bb6e96b29f75bd4db9f | /파이선기초/listvariety.py | 8b2e849a2ec9cf9f461c82aa9d3e3ebb0a9af53c | [] | no_license | JaeHunShim/phythonStudy | de043b93073f5dc6cba1da95024354b01bff27b2 | 16165913ae4050e51ec42b6d4e10eb695bd1f9de | refs/heads/master | 2021-05-05T07:18:38.652027 | 2018-02-06T08:59:21 | 2018-02-06T08:59:21 | 118,863,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | #리스트의 다양한 기능 활용해보기
list1 = [123,456,78,657,234]
#특정한 인덱스의 위치를 알려줄때 .index
print(list1.index(456))
#없는 값을 넣으면 오류가 난다. ValueError
#print(list1.index(57))
print(50 in list1) #먼저 검사하고
if 50 in list1:
print(list1.index(50))
#list끼리 서로 붙이는 함수 extend
#일반적인 방법
list2 = [1,2,3] + [4,5,6]
print(list2)
#extend 활용
print(... | [
"jaehuniya@gmail.com"
] | jaehuniya@gmail.com |
65837fe0fa38a44d96ddeb2ef1f74ed692cc0f06 | fa14db78eac812bed2acf5801f4cbae87753d5aa | /setup.py | 003a7ee178ac36569d02a6cea310d9bc66e5f341 | [] | no_license | rogerlew/dictset | 61abcf14313d29150d4e320c4a28fce73bcaa8ca | 97ece69bf4ceb265c36f6ea79f98b6553b9ccc1c | refs/heads/master | 2016-09-03T07:41:45.098506 | 2011-05-13T19:41:57 | 2011-05-13T19:41:57 | 32,486,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | # Copyright (c) 2011, Roger Lew [see LICENSE.txt]
# This software is funded in part by NIH Grant P20 RR016454.
##from distutils.core import setup
from setuptools import setup
setup(name='dictset',
version='0.3.1.2',
description='A specialized Python container datatype for managing collections of sets.... | [
"rogerlew@gmail.com"
] | rogerlew@gmail.com |
1ae47a6c06119358f672cef93499e3b76d81acf6 | 4860bf2c276f02cdd302cd7ff1e324f43dec3934 | /test/test_add_group.py | 1ae56ffc305fa0ae15947fb08be8fdc85f6ba8dd | [] | no_license | AnSick/python_training | dbdb6454a5cd840ced1cf762c1cf94c33c3f27fc | e17f1e872cad2b56041f474f8f519cf7e2a0c00d | refs/heads/master | 2021-04-29T06:45:37.002758 | 2017-02-16T19:56:45 | 2017-02-16T19:56:45 | 77,966,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | # -*- coding: utf-8 -*-
from model.group import Group
import pytest
def test_add_group(app, db, json_groups, check_ui):
group = json_groups
with pytest.allure.step('Given a group list'):
old_groups = db.get_group_list()
with pytest.allure.step('When I add a group %s to the list'... | [
"ansickne@gmail.com"
] | ansickne@gmail.com |
50c9c369eff22c7fafe3a5d45e31e6be6b8bdff1 | bbbb764d0e4371f79b2c94d3a627873773bc9d5e | /main.py | ba9224eecfb556d8394d2bfc5fa9186064d25d4e | [] | no_license | milonimittal/YouTube-Comments-Analysis | e80e321f007891d65deec05bc4d9e0177ccee243 | f01f77e62ee08198bcf44a3e013f23c48cc7c86d | refs/heads/master | 2022-12-02T09:14:27.574866 | 2020-08-14T17:53:41 | 2020-08-14T17:53:41 | 264,735,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | from youtuberAnalysis import YoutuberAnalysis
channel_title = input("Enter the channel name: ")
youtuber_obj=YoutuberAnalysis(channel_title) | [
"milonimittal2015@gmail.com"
] | milonimittal2015@gmail.com |
941a8ed9f167888e06aa2095f8a84c61fc451edc | c562074792d1cf7b5487886927e3d3245405d9bf | /accounts/models.py | 06d2c16d128ee5fbfa90f63c1029cbf294986cf2 | [] | no_license | chimback/django-starter | 5039d87521291ef81bae234e5c1503f129a32392 | 6412717e9a9ad47de6667d958fcf885a585bd25c | refs/heads/main | 2023-03-17T07:39:53.420719 | 2021-03-02T12:20:22 | 2021-03-02T12:20:22 | 340,431,647 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | import pytz
from django.conf import settings
from django.db import models
from django.core.mail import send_mail
from django.core.validators import RegexValidator
from django.urls import reverse
from django.contrib.auth.models import (
BaseUserManager,
AbstractBaseUser,
PermissionsMixin,
)
from django.utils... | [
"noreply@github.com"
] | chimback.noreply@github.com |
b29d46d67515ee23705eb310fb408f45835fb865 | 10079a6cf80ce917159a87f09f4dcc939bfe5436 | /oldboy/thread lock/share_memory2.py | fdcad02c513942a687a736a14e9cc85fd1c460da | [] | no_license | w1033834071/qz2 | 27b89a48a8eb4e86e30f252a92ead28dd46fcd81 | 4d8664bc714bbd134d26cf31d16b942c925cedf3 | refs/heads/master | 2021-01-01T06:13:00.267460 | 2017-10-02T12:01:26 | 2017-10-02T12:01:26 | 97,381,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#共享数据的方式2
from multiprocessing import Process, Manager
def func(d,l):
d[1] = 1
d['2'] = 2
d[0.25] = None
l.reverse()
if __name__ == '__main__':
with Manager() as manager:
d = manager.dict()
l = manager.list(range(10))
p = Proc... | [
"2232339224@qq.com"
] | 2232339224@qq.com |
e955f96713a44733da4b31bb06747fa8d3a6e015 | d844572e1a69dd08a31744754b7c336b93cef045 | /test.py | 1065e7de72fd207440b26b382caedb6316d2763f | [
"MIT"
] | permissive | Kyria/EFTParser | 2ffe2a55777dc22367491f959830b66e5ce7683d | 59420dc69cc3083f81205d17d897ecb482b3aed2 | refs/heads/master | 2021-01-02T09:02:23.395417 | 2013-12-23T15:31:50 | 2013-12-23T15:31:50 | 15,377,000 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,376 | py | import unittest
from eftparser import EFTParser
class EFTParsingTestCase(unittest.TestCase):
def setUp(self):
self.standard_fit = """
[Naglfar, TestFit]
Siege Module II
6x2500mm Repeating Artillery I, Arch Angel EMP XL
6x2500mm Repeating Artill... | [
"anakhon@gmail.com"
] | anakhon@gmail.com |
0cb245788346e0b45443fb0467bff1996d841633 | 8908c45329d8db00687a88d6691ef558762f554a | /2.Odev.py | c0270f6caf671440c3f8031cd8d275c5aa36aea3 | [] | no_license | slckmndl/11-HAFTA-OOP | f94c1332cc3da92a8b68d7dbbcabc9a8a46d1268 | cf179c94a6081d2234b85ffab0487cfe22c7c5c2 | refs/heads/master | 2020-07-11T05:30:38.393369 | 2019-08-29T13:15:31 | 2019-08-29T13:15:31 | 204,456,846 | 0 | 0 | null | 2019-08-26T10:59:53 | 2019-08-26T10:59:52 | null | UTF-8 | Python | false | false | 1,444 | py |
#Programi direk calistirip deneyebilirsiniz..
import time
class telefon():
def __init__(self,marka,model,uretim_yili,tel_no):
self.marka = marka
self.model = model
self.uretim_yili = uretim_yili
self.rehber = tel_no
def rehber_goruntuleme(self):
print("Rehber Goruntu... | [
"slckmndl@gmail.com"
] | slckmndl@gmail.com |
9bf3cd89b721e09898dae7d8d160953bb889a6ba | 6385930422a5fe1824d9e96d4d470080cae8795e | /plot.py | 89ddcad457651ff50106546016890e5f779296a8 | [] | no_license | spica095/Boxy-disky-parameter-of-E-galaxies | 35ecab02c5bb321c7b8afa1b152c2c89913f0211 | 88ae50673cb68299397a35204ecf2e2a580763a9 | refs/heads/master | 2021-01-21T21:26:03.709329 | 2017-06-22T12:57:32 | 2017-06-22T12:57:32 | 94,841,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | """
Created on Tue Jun 20 12:22:45 2017
@author: Hyeonguk Park
"""
#%%
from matplotlib import pyplot as plt
from matplotlib import ticker
import numpy as np
a4 = np.zeros(20)
with open("../images/bendera4.dat") as BENDER:
i=0
for line in BENDER:
a4[i] = line
i += 1
def plot_result(ng... | [
"spica095@snu.ac.kr"
] | spica095@snu.ac.kr |
a0d82e7ae61658d33ffb49e54a1090dd1f822a35 | ccfaab455a91989ce2d4b6c900f45c187e228fe1 | /migrations/versions/4c40a317b7af_.py | 88a382ecdb1017059156669bd859191c44b1b6cd | [] | no_license | cmartin-cay/Twitter_Flask | cc582dd3ccf70e919a47a1488f6365bcdd83696c | edb09cf328da5f8854d17d21d9510586cce2424e | refs/heads/master | 2021-01-19T21:28:45.687348 | 2017-04-03T02:41:16 | 2017-04-03T02:41:16 | 82,506,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """empty message
Revision ID: 4c40a317b7af
Revises: c968c6cabada
Create Date: 2017-02-19 12:02:01.900567
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4c40a317b7af'
down_revision = 'c968c6cabada'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"colin.martin@gmail.com"
] | colin.martin@gmail.com |
5e1edbad5b9b0d65fe8c072c42a50a7e6841d387 | c0f364a3607153fbdaf2addef6c6dda09b8a730d | /legacy files/PostCtrlWriter.py | 00ad9854a8bcebc0ccfeccdad497a05ab9fb7347 | [] | no_license | jrhmanning/Music_python | ac9496f736048333f81b2b97165d5e815179419f | 158d36f733c0f588136001331e2c2de47deb90af | refs/heads/master | 2020-07-01T05:49:27.464393 | 2019-11-28T11:08:24 | 2019-11-28T11:08:24 | 201,065,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,218 | py | ######This python script takes in some simulation information, and spits out a music_post control file to get an isotherm
#It requires the following variables:
#species - the name of your sorbent species. Since we're making a map, this is actually one of your sorbent elements
#framework - the name of your MOF (or o... | [
"noreply@github.com"
] | jrhmanning.noreply@github.com |
8ab7d9ece44abf02b1fb56b26d96e4047d980c42 | f006f08904b70ef27dbf4afb09306cc8b660e16b | /mrmud/blog/migrations/0001_initial.py | 2530953ccaf7861ae60c334185e527d29bd0b944 | [] | no_license | nihilistBoi/my-first-blog | 7a728726523a0bf1adbcb12d295818f4bfb20d9d | 25386e3723df083522a6495092dfea4fa1057c20 | refs/heads/master | 2020-05-19T15:26:53.214847 | 2019-05-05T21:34:58 | 2019-05-05T21:34:58 | 185,084,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # Generated by Django 2.0.13 on 2019-05-05 21:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AU... | [
"rjds.001@gmail.com"
] | rjds.001@gmail.com |
6b2ade8b2aa98e601fa28c1b55102c615dc4d64b | e06e0f3a58ab25cfd94ffc8ca4446928746a68b8 | /print_model.py | 1a6ce65ecd868db7e26f7757a71efb21414cafa8 | [] | no_license | redhog/argentum | ee4b3b33a64a28daca89f4dd3342a1c015934d72 | 14dfbfb7f43b52e943aa38b3781b364215e0ba6d | refs/heads/master | 2020-12-24T18:23:13.068809 | 2013-04-06T21:16:34 | 2013-04-06T21:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,589 | py | #! /usr/bin/env python
from __future__ import with_statement
import cx_Oracle
import Argentum
import types, time, cgi
import elixir
calc_perf_data=True
model_name = "Greencycle.Model"
views = {}
global_counter = 0
model = __import__(model_name)
for item in model_name.split('.')[1:]:
model = getattr(model, item)... | [
"nooslilaxe"
] | nooslilaxe |
901ad43444f6873fb83d0ace9c22d9ac6afe311c | 57f9bc55ea31bf88c9cb8f6adb8db1024bb65091 | /code/205-isomorphic-strings.py | d5aa3270fc6dec0dc62c4f3b37a5a0755526ad3a | [] | no_license | ReinaFeng/LeetCode-Notes | e462cba0ce1b68aeda6e10d09ef90a6c9f0a709b | 1becd6db1b57941d8f67c73f069f00d3ae001162 | refs/heads/master | 2022-01-05T13:59:50.777727 | 2019-07-21T18:39:17 | 2019-07-21T18:39:17 | 198,088,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #205. Isomorphic Strings
#My solution
class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
dic = {}
for i in range(len(s)):
if s[i] in dic.keys():
if dic[s[i]]!=t[i]:
return False
else:
if t[i] in dic.... | [
"noreply@github.com"
] | ReinaFeng.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.