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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b768b58cf3721bb2f6b3a2fc866798aa78ca6847 | a990bd26d3a69d1ea6699c85efa2cea99452c3df | /problems/leetcode/rottingOranges994.py | 5388c929d4cee4a0f12199681fa2844bb927234b | [] | no_license | abecus/DS-and-Algorithms | 5f1a948a085465ae165090ec957a9d5307ce729d | 3259e8183382265a27cf8c91e37d0086175a5703 | refs/heads/master | 2022-05-05T07:07:08.194243 | 2022-04-05T16:23:39 | 2022-04-05T16:23:39 | 193,111,610 | 11 | 6 | null | 2020-11-18T16:19:18 | 2019-06-21T14:27:25 | Python | UTF-8 | Python | false | false | 1,960 | py | """
_________________________994. Rotting Oranges_________________________
Difficulty: Medium Likes: 1259 Dislikes: 170 Solution: Available
Total Accepted: 77.3K Total Submission: 164.3K Acceptance Rate: 47.0%
Tags: Breadth-first Search
In a given grid, each cell can have one of three values: the value 0
repre... | [
"insaaone@gmail.com"
] | insaaone@gmail.com |
e1b6cbccee50c959c6cedbd313d04a47b3d26b07 | 4fcc1a1261f585f955337da5f1ccd00568735093 | /8variableassignments2Assignandprint.py | 45422c40f839dfff2cfb80e4ec2c8d6856c5d1dd | [] | no_license | akilakilakil/pythonprograms | cd8b2859d7a170263befe89875d3aad2a1675d73 | 23167f5d6c63a6e4cd9d06e156a9202bfb5a9623 | refs/heads/master | 2021-05-05T21:20:24.125374 | 2017-12-27T18:34:24 | 2017-12-27T18:34:24 | 115,519,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | greeting="hello world"
first="narendra"
last="modi"
print(greeting)
print()
print(first+" "+last+" "+"won!") | [
"noreply@github.com"
] | akilakilakil.noreply@github.com |
57d10fbb4204045209819083196a47597d5fb8d6 | ff580bee72f5c215b6b1d22315124db5a20696aa | /merge_sort.py | c27ea2aaf7ed9e439c86ffd8bad1dfbdb459ed94 | [] | no_license | raghavpatnecha/Fun_with_python | e10bcd7e824665cc1a83251602bae3682ced5c3f | 59165d166ced8e4d17307ec502972b13b362b8e2 | refs/heads/master | 2021-05-03T04:29:51.540465 | 2018-06-10T09:18:39 | 2018-06-10T09:18:39 | 120,617,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | def mergesort(mylist):
if len(mylist) >1:
mid = len(mylist)//2
lefthalf= mylist[:mid]
righthalf = mylist[mid:]
mergesort(lefthalf)
mergesort(righthalf)
i=0
j=0
k=0
while i < len(lefthalf) and j < len(righthalf):
if leftha... | [
"noreply@github.com"
] | raghavpatnecha.noreply@github.com |
dd399425d76c8de76f3f47e0e593e205cbf01591 | 9d4f68edfe2b68689f27fbf8d4601b5e759c9b07 | /new/algorithm11-maximum-69-number.py | daa8f0a4280549a816b92cf705a10f4430ec8412 | [] | no_license | javerthu/demo | 8cb9a7eadadde70c3117b2d598f47d4b977450d7 | 06335132e75c4df4ee2be535e255d9bc762e0087 | refs/heads/master | 2020-08-15T01:23:38.717143 | 2020-04-02T15:36:19 | 2020-04-02T15:36:19 | 215,259,562 | 2 | 0 | null | 2019-10-15T15:31:25 | 2019-10-15T09:29:38 | Python | UTF-8 | Python | false | false | 1,285 | py | '''
给你一个仅由数字 6 和 9 组成的正整数 num。
你最多只能翻转一位数字,将 6 变成 9,或者把 9 变成 6 。
请返回你可以得到的最大数字。
示例 1:
输入:num = 9669
输出:9969
解释:
改变第一位数字可以得到 6669 。
改变第二位数字可以得到 9969 。
改变第三位数字可以得到 9699 。
改变第四位数字可以得到 9666 。
其中最大的数字是 9969 。
示例 2:
输入:num = 9996
输出:9999
解释:将最后一位从 6 变到 9,其结果 9999 是最大的数。
示例 3:
输入:num = 9999
输出:9999
解释:无需改变就已经是最大的数字了。
提示:
... | [
"867216905@qq.com"
] | 867216905@qq.com |
b3d2499cc45fea03a267a459dd73d738e8962baa | 601362aea0d323309bea046d93ef3f2abe090718 | /flog/libs/wikipedia.py | b8f67543bdc12c2b8f795d5ecf414fb4fbf6e2b9 | [] | no_license | ErikBurdett/flog | cca1d780835351b7017b993e4047d43a437c6504 | 633bd3ff95b62766fcf40d76513d27b8785870a0 | refs/heads/master | 2022-10-30T17:01:31.538700 | 2020-06-16T04:40:14 | 2020-06-16T04:40:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | import requests
def random_article():
url = f'https://en.wikipedia.org/api/rest_v1/page/random/title'
return requests.get(url, timeout=2.0).json()
| [
"randy@thesyrings.us"
] | randy@thesyrings.us |
21e5ec7379ce378487962e49e3194e013cbf8211 | a7809b4619c6fd557c654d05a76498888e539e08 | /init_instance.py | e1e41e4e99a067976ea573f0c1ee2e45a16a921c | [] | no_license | kokubum/Data-Model | e6e2f2ba298c047040220a17bdc2034e182e4ccf | d4b4f5bdc9fb139526faffbc4b21af90f632aff6 | refs/heads/master | 2022-07-17T01:29:01.201970 | 2020-05-15T18:10:29 | 2020-05-15T18:10:29 | 264,260,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | class Test:
#The __new__ method is called by the Test.__class__.__call__(Test,*args,**kwargs)
def __new__(cls,*args,**kwargs):
print("Creating instance!")
#__new__ is responsible for creating the instance of the class Test wich will be used in __init__ constructor
#Starting from python 3... | [
"eskokubum@gmail.com"
] | eskokubum@gmail.com |
bea0b9d9c683356da4d5387f4f595bbf7741ff45 | 9f8c8dd70c4c5897cc48a57e04c47c607bce2fc4 | /break.py | ff69b6f8447c87474764f9a50f58cd5db40799a5 | [] | no_license | maghelu98/corso-udemy | 403ce1fc54463a756850b724c94803fc10becd0e | e7cee0bbe4a175e835aad8ca4811025e746ea580 | refs/heads/master | 2022-12-09T07:25:52.710290 | 2020-05-03T20:57:30 | 2020-05-03T20:57:30 | 137,659,935 | 0 | 0 | null | 2022-12-08T09:46:46 | 2018-06-17T14:11:47 | Python | UTF-8 | Python | false | false | 500 | py | delta = input("delta: ")
try:
for i in range(1,20):
try:
print("i = %d ..." % (i))
j = 1.0/(delta+10.0-i)
print("i =%d , j = %f " % (i,j))
except Exception as e:
print("prima di raise: {}, per i = {:d}".format(e, i))
raise
print... | [
"giovanni.pelosi@unimib.it"
] | giovanni.pelosi@unimib.it |
1d691134309a3252a7bb156b88d6ee3a5209797e | 39e75353e5539dfbaeb64d6437ceace2d2e02d2d | /VigenereCipher.py | 9b2b56b48b492453f36447a17153b58b26442bde | [] | no_license | the-bumblebee/vigenere-cipher | 900411733292169859a735ef37a8cdf97c71b1b3 | d0e370320a203fa8136e4080fe496431a0ab7b1a | refs/heads/master | 2020-04-23T11:42:24.609381 | 2019-02-21T16:47:32 | 2019-02-21T16:47:32 | 165,599,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | import argparse
alph = list(map(chr, range(97, 123)))
def encrypt(message, key):
message = message.lower()
key = key.lower()
cipherText = ''
nonCount = 0
for i in range(len(message)):
if message[i] not in alph:
nonCount += 1
cipherText += message[i]
else:
cipherText += alph[(alph.index(key[(i - nonC... | [
"klmktu.asif@gmail.com"
] | klmktu.asif@gmail.com |
ed55f6dab42ca051e34f6202d470ba130d589aa2 | b0295c52e9b088e24c35b7d1866c31364e32ad6e | /server_sim.py | 48da7397af9c526d59b7016c008eb085576cb813 | [] | no_license | Jeremy-CH-cmyk/CZ3004 | ec1851bbb75fff1f8fb2a8227cde11bc7abd0976 | d7018f4ef22987c25d8a0dbfb34655134860e438 | refs/heads/master | 2023-06-19T11:01:58.925619 | 2021-07-04T10:58:06 | 2021-07-04T10:58:06 | 382,631,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,954 | py | #!/usr/bin/env python
"""Tornado server to run the simulation experiments
Attributes:
app (tornado.web.Application): Address mappings
clients (dict): Dictionary of active clients
settings (dict): Settings for the web-server
"""
import json
import numpy as np
import os
import time
import tornado.web as web
... | [
"zyj82073693@gmail.com"
] | zyj82073693@gmail.com |
2bab2de433e731e2c1376160a0148c2a824ea777 | 46083e01408b6bb2e05f78a38f69fd5a6881a4c3 | /autotesting/test2/testcase/testbase.py | 1611bc6797907d0c433ece866a2067286b297c17 | [] | no_license | caixinshu/api | 7601ce97ed6666cbc5995ecd1e32165605a7da7e | b75bf1bdbf4ee14f0485d552ff2f382c7991821e | refs/heads/master | 2021-01-22T05:54:14.651098 | 2019-12-17T09:09:23 | 2019-12-17T09:19:26 | 81,718,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | # -*- coding: utf-8 -*
import requests
from suds.client import Client
from config import url
from tools import readexceldata
#初始化url
class test:
def __init__(self,url,file,colnameindex,by_name):
self.url=url
self.file=file
self.colnameindex=colnameindex
self.by_name=by_... | [
"651696408@qq.com"
] | 651696408@qq.com |
876fc1a78537224343052e98af0c117e88b960b7 | 5fd6c20e54ad4bb804dda3925b5dbd22e1b78cfd | /excersise/leetcode/459_重复的子字符串.py | 6d5521e6fc009c12a2297e88af8b8300210eda46 | [] | no_license | alanlyang/learning | 6d748134bbc8786018e0d75a499aed44cec1d9c7 | dfacd79e4d5bf74db08cb95e4dd5f19df1e32393 | refs/heads/master | 2023-01-06T05:29:22.134224 | 2020-11-03T09:54:23 | 2020-11-03T09:54:23 | 287,918,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | ######################
# 给定一个非空滋肤疮,判断是否可以由它的一个子串重复多次构成
# 字符串只含有小写英文字母,且长度不超过10000
# 2020-08-24
########################
class Solution:
def repeatedSubStringPattern1(self, s: str) -> bool:
"""
设字符串长度为n , 子串长度为t,则有
1、n为t的整数倍
2、子串为原串的前缀
3、原串某个位置的字符满足 s[i] = s[i - t]
复... | [
"alanyang414@gmail.com"
] | alanyang414@gmail.com |
8153a3ae78cbde795f5f302dc726b7210de73588 | 64a5b1d69e328abb217ef2b007ab8ed6fb8d3692 | /tests/testEPVanalyser.py | 146b4f8513e2480f173afc1b24e082493031a512 | [] | no_license | markhocky/Investing | 5e5c31a34d66be65d8251475ab790451a7a6c53a | c37a048634fafaf46b9f096a906e92c9005f6164 | refs/heads/master | 2020-04-04T10:40:49.087228 | 2018-05-28T02:22:35 | 2018-05-28T02:22:35 | 55,501,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,401 | py | import unittest
import pandas
import math
import numpy as np
from sklearn.linear_model import LinearRegression
from mock import Mock, call
from StockAnalysis.Analysers import EPVanalyser, FinanceAnalyst
class Test_EstimateIncomeAndExpenses(unittest.TestCase):
def setUp(self):
years = ["2015", "2014", "2... | [
"markhocky@gmail.com"
] | markhocky@gmail.com |
3a04a77da2ee5df5107a7f1f4186b15aaa3400bd | ca08100b33a78c01bf49f097f4e80ed10e4ee9ad | /intrepidboats/apps/boats/migrations/0025_auto_20170518_1334.py | 4d0337d5918da1292d1f741df70a316bbba6feec | [] | no_license | elite0401/intrepidpowerboats | 347eae14b584d1be9a61ca14c014135ab0d14ad0 | d2a475b60d17aa078bf0feb5e0298c927e7362e7 | refs/heads/master | 2021-09-11T01:51:47.615117 | 2018-04-06T02:20:02 | 2018-04-06T02:20:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-05-18 17:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('boats', '0024_video_video_external_url'),
]
operations = [
migrations.Alter... | [
"elite.wisdom@gmx.com"
] | elite.wisdom@gmx.com |
421a3548c2d98a5e84c8119092e85a215117d19c | 64e9565bd7ca0cab875f2549fa40781061926568 | /source/countsyl.py | 781f8c24c4fca600e4dbfe0186df22cf3ebde5d8 | [] | no_license | carlyrobison/sonnetspoofer | 9dcf0a5d1193fe6623ab80c61f2b2adae2d7889f | 3b18004b9e5c6c679cb49664500b1fb878c0484d | refs/heads/master | 2021-01-20T03:17:30.783296 | 2017-02-28T01:55:56 | 2017-02-28T01:55:56 | 82,864,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | # From https://github.com/hyperreality/Poetry-Tools/blob/master/poetrytools/countsyl.py
#!//usr/bin/env python
# Count syllables in a word.
#
# Doesn't use any fancy knowledge, just a few super simple rules:
# a vowel starts each syllable;
# a doubled vowel doesn't add an extra syllable;
# two or more different vowel... | [
"sharikak54@gmail.com"
] | sharikak54@gmail.com |
f0cc895a2f838da497f08e2940e7412d4b7b2cef | 77e1db762bd012e0447b8275df6e24012a3aa82f | /gas-station/gas-station.py | 2f97eebf9959f4a7592e2c8b22af1118397bc4c1 | [] | no_license | PigsGoMoo/LeetCode | 1e9d37507b04a238347bcc693e9be3d24313a46e | a5c9bc433ac6c54bebb83b9640273216512f41b8 | refs/heads/main | 2023-06-28T12:58:57.516464 | 2021-08-03T19:49:07 | 2021-08-03T19:49:07 | 362,915,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | class Solution:
def canCompleteCircuit(self, gas: List[int], cost: List[int]) -> int:
# [2, 2, 2, -3, -3]
# [1, 1, -1]
# DP solution? Make an array of differences between cost - gas for each index
# If that array sum is <= 0, then it's possible. If >= 1, then we cannot.
# Sta... | [
"33019839+PigsGoMoo@users.noreply.github.com"
] | 33019839+PigsGoMoo@users.noreply.github.com |
433192fa2881cfd43a42000926be587693feb71b | 45b52a8019e9cd05b82e7a8393ef15a96bc9a2f3 | /src/ml/scale.py | 340adb1256d031d57c8420826a45a83e30d5ca38 | [] | no_license | adpartin/pdx-histo | be57fb9171b23fb0146d6e06caa5a7b442800698 | 52a6468034c1966e2d85024d863817804dcb387a | refs/heads/main | 2023-06-27T00:56:24.875604 | 2021-07-15T21:48:29 | 2021-07-15T21:48:29 | 317,675,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | import sklearn
import numpy as np
import pandas as pd
# from sklearn.metrics import confusion_matrix
# from sklearn.metrics import ConfusionMatrixDisplay
from sklearn.preprocessing import StandardScaler, MinMaxScaler, RobustScaler
# from sklearn.externals import joblib
# from math import sqrt
def scale_fea(xdata, s... | [
"25892264+adpartin@users.noreply.github.com"
] | 25892264+adpartin@users.noreply.github.com |
5493043be3c35aaaa1701498e246f4f8555ae5d7 | 8b2aeac35b73d03587251311fcd171e72a8fc854 | /photos/migrations/0002_auto_20180128_1207.py | 4b21b603c9fe41632188a38fc2948d97f3dcf7af | [] | no_license | mansonul/wedding | 78e273cf68b5897136c0b8ef18c664c3cfa505e2 | 3168faa79f1c223eb078e0e1941a2ddfeab903c4 | refs/heads/master | 2021-05-10T18:16:13.795886 | 2018-01-29T18:13:41 | 2018-01-29T18:13:41 | 118,626,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-28 12:07
from __future__ import unicode_literals
from django.db import migrations
import imagekit.models.fields
import photos.models
class Migration(migrations.Migration):
dependencies = [
('photos', '0001_initial'),
]
operations =... | [
"contact@dragosnicu.com"
] | contact@dragosnicu.com |
93ff2aca5849d1c9ab4f4890838447bd1918b640 | 50bb1636ce4cd745ca275c32948bc74b089127bb | /project_one/src/item/__init__.py | d22f598ff891034bd075310c9dd502c89380bdee | [] | no_license | silaslxy/sunshine | 82cc08bb3d264a39f56762998e0a9af677516e99 | 1252be429da5dfd6ad26330924ccb8407c60a52d | refs/heads/master | 2023-04-22T05:03:50.361022 | 2020-07-09T06:31:31 | 2020-07-09T06:31:31 | 277,517,964 | 0 | 0 | null | 2021-05-13T20:58:03 | 2020-07-06T10:59:44 | Python | UTF-8 | Python | false | false | 184 | py | # coding: utf-8
# ----------------------------------
# @Author: xiaosiwen
# @Date: 2020/7/6 16:44
# @Desc:
# ----------------------------------
from item.views import bp as model_a_bp
| [
"xsw@lianantech.com"
] | xsw@lianantech.com |
7b485e6c81c4efd3aac47646b1b61652249aa27d | f9b5a01d8cfeddc0c52fcbfc593fa0f31c4df1bf | /ex06/ex06.py | 6367fad5aff079d421fae75ad052baafeb043335 | [] | no_license | wogurdlek2/16PFA-2013211032 | 358154af14f65b7fd635dd9a682dd9ea22d7539e | 478616b3a090c596afba1b62f01152d468e0f014 | refs/heads/master | 2021-01-21T12:59:29.942224 | 2016-05-25T11:31:16 | 2016-05-25T11:31:16 | 53,999,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | x = "There are %d types of prople." % 10
binary = "binary"
do_not = "don't"
y = "Those who know %s and those who %s." % (binary, do_not)
print x
print y
print "I sais: %r." % x
print "I also said: '%s'." % y
hilarious = False
joke_evaluation = "Isn't that joke so funny?! %r"
print joke_evaluation % hilarious
w = "... | [
"CAD Client"
] | CAD Client |
591f5c567067bbf1a4785cce4f3aeadf302ac753 | 46279163a543cd8820bdc38133404d79e787c5d2 | /torch/fx/experimental/accelerator_partitioner.py | 43ec348d45e6d857feec35e24007b65c58eb1108 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | erwincoumans/pytorch | 31738b65e7b998bfdc28d0e8afa7dadeeda81a08 | ae9f39eb580c4d92157236d64548b055f71cf14b | refs/heads/master | 2023-01-23T10:27:33.628897 | 2020-12-06T01:22:00 | 2020-12-06T01:23:40 | 318,930,000 | 5 | 1 | NOASSERTION | 2020-12-06T01:58:57 | 2020-12-06T01:58:56 | null | UTF-8 | Python | false | false | 41,390 | py | from torch.fx.graph_module import GraphModule
from torch.fx.node import Node, map_arg
from typing import Dict, List, Set, NamedTuple, Tuple
import torch
from torch.fx.experimental.subgraph_creation_example import split_module
import operator
from torch.fx.experimental.partitioner_utils import Partition, \
Device, P... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
cc8da95fe71004d8514e3893a382112d58a95551 | ed2b2929b028f7b53f38ae72ad58d2af407c9c72 | /venv/Scripts/easy_install-script.py | bd6eda98cad82b59c89f3db92439ff31f06e7336 | [] | no_license | LiuzJY/Locust | 6a34dd089a70cceb3bc1b46e04ec02faf60cb6bf | 2ca251445fa16328eb6ff258577b5781a3547a37 | refs/heads/master | 2022-11-13T01:19:55.112076 | 2020-07-10T09:41:34 | 2020-07-10T09:41:34 | 262,478,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | #!"D:\PyCharm 2018.3.1\Workpace\locust\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"2212627962@qq.com"
] | 2212627962@qq.com |
ffac71f012dd66130a8b66b3c02ceaca9515efd0 | ee8109057287ca39a83258e0b7be3bc2430f5dd3 | /usbq/usbq/usbmitm_proto.py | 66037a50f2167693ca16dea0b4195a4c90e02692 | [
"MIT"
] | permissive | bm16ton/usbq-usbq_core | 3153b7c049b6da0743ccbc51e28a1b461d99b2fb | c289f108fcf4f16ff72540d3301b432d830dfaa8 | refs/heads/master | 2023-08-15T20:08:22.558962 | 2021-10-22T03:29:51 | 2021-10-22T03:29:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,450 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from scapy.fields import ConditionalField
from scapy.fields import EnumField
from scapy.fields import LEIntField
from scapy.fields import LEShortField
from scapy.fields import LESignedIntField
from scapy.fields import PacketField
from scapy.fields import StrField
from scapy... | [
"bm16ton@gmail.com"
] | bm16ton@gmail.com |
bb42ad482fbb2350569ef7809947d727ac99b2f2 | 9ecfba7ed75b2869b09ec3e79c1f45dab21b9640 | /others/cropimage.py | 2583ee07c70b7822aad8ceca2237d18e83ee22a9 | [
"MIT"
] | permissive | pection/Scraper-website | ca7af593e421d4f09bfc280d6ec24e6562e0f6c3 | 77ed1df5103e1d8222a055c19acf5af255ffa4aa | refs/heads/master | 2022-12-25T15:51:46.958483 | 2020-10-07T13:58:40 | 2020-10-07T13:58:40 | 315,717,273 | 1 | 0 | MIT | 2020-11-24T18:18:42 | 2020-11-24T18:18:41 | null | UTF-8 | Python | false | false | 817 | py | import cv2
import os
import sys
import numpy as np
from PIL import Image
num=1
path ="//Users/pection/Documents/Crop/"
#we shall store all the file names in this list
filelist=[]
for root, dirs, files in os.walk(path):
for file in files:
if(file.endswith(".png")):
filelist.append(os.path.join(ro... | [
"pection.naphat@gmail.com"
] | pection.naphat@gmail.com |
efc7edcca15e51d14d5224f7a0a28ee36f478f76 | d185edc1927a7ba4744af04435cfe61812596200 | /cms/views.py | 886138346b1bbf6564aac8b8fef96c76fc26c4dc | [] | no_license | PrzemyslawKuston/DjangoCMS | 51a69fba9ce781713a96641481eb5f9afe44bc22 | 35f29c5305ee179c7bb2ab845c80c053d819a110 | refs/heads/master | 2021-01-02T09:08:50.129259 | 2017-01-11T19:38:52 | 2017-01-11T19:38:52 | 75,053,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | from django.shortcuts import render, render_to_response, redirect
from django.http import HttpResponseRedirect
from django.contrib import auth
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import authenticate, login
from django.contrib.auth import logout
from notifications.models impor... | [
"Prz Kus"
] | Prz Kus |
4171f3f9288b6953d7b6ea9c6d40cec41f3b8406 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/slim/python/slim/nets/inception_v3.pyi | df9dccde040bd84ccfd994e2ec65a1450b9e965f | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | pyi | # Stubs for tensorflow.contrib.slim.python.slim.nets.inception_v3 (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.contrib import layers as layers
from tensorflow.contrib.framework.python.ops import arg_scope as arg_scope
from tensorflow.contrib.layers.python.lay... | [
"matangover@gmail.com"
] | matangover@gmail.com |
3c21a9fe28c43de3e10ee1d30def42d702d74bff | 14c4a16e75b348be31a224818c8f8db62746345a | /run_projections.py | c085dbbba2a2024156eb579c1ef871f9804ff07d | [] | no_license | BenikaH/nflstats | c43bbfd3806343b5f1a4a5e55f3ee7b1c6285dd9 | 269ee69facd280b3bd1e4f6724c7f7dfafd16396 | refs/heads/master | 2020-03-27T12:06:26.035175 | 2018-08-25T18:42:07 | 2018-08-25T18:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,876 | py | #!/usr/bin/env python3
from get_player_stats import *
from playermodels.positions import *
from ruleset import *
from get_fantasy_points import get_points
import os.path
import argparse
import numpy as np
import numpy.random as rand
# return a player from a dataframe if a unique one exists, else return None
# we could... | [
"mfclark3690@gmail.com"
] | mfclark3690@gmail.com |
8deecf9ce3bdcb7373459cff5718007aee8af798 | 751970ea93f32967f0c986b449aec415ce2140a6 | /mongologger/__init__.py | 3c6bf3cea4240c04587d83c78cbd597e67a00e60 | [] | no_license | warvariuc/python-mongo-logger | 800bef339ae96ad1ec7e767aaee5602749f1bb2f | 6ad23270427b4f627e74487da6f3593cb7bc426b | refs/heads/master | 2021-01-18T16:27:55.120227 | 2015-07-07T06:07:14 | 2015-07-07T06:07:14 | 29,913,534 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | """
Based on: https://gist.github.com/kesor/1589672
"""
from ._version import __version__
import logging
import time
import struct
import traceback
import inspect
from pymongo.mongo_client import MongoClient
import bson
from bson.errors import InvalidBSON
from bson import json_util
logger = logging.getLogger('mongo... | [
"victor.varvariuc@gmail.com"
] | victor.varvariuc@gmail.com |
8a59b938196d4b7591563206ea27e0574a9c0ec2 | b251bb2eb3b91afd2c9641ffc0abf2b43475d920 | /Lecture notes/Notes 19 - Cryptography/RSA.py | 76a2de5b22624226818730673a7e42703f091db0 | [] | no_license | maverick19910614/COMP9021 | 912dc18ea9f3002febeaebc199f41ad2ce2418e2 | 25bccce7ae094f444d1221cc1fef6c3a7d278488 | refs/heads/main | 2023-04-22T20:14:49.887272 | 2021-05-13T08:20:17 | 2021-05-13T08:20:17 | 366,661,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,297 | py | # Written by Eric Martin for COMP9021
from math import gcd
from random import randrange
def diffie_hellman(p, g):
print(f'Alice lets Bob know that p = {p} and g = {g}.')
a = randrange(100)
A = g ** a % p
b = randrange(100)
B = g ** b % p
print(f'Alice sends {A} to Bob.')
print(f'Bob send... | [
"noreply@github.com"
] | maverick19910614.noreply@github.com |
420ed41a7c05d90d86eec59a10c4788fd7143316 | 6fcd81ee329e404b8bcda2173092506663c3de93 | /Randompresent/exploit.py | 569112881b7dff1946f51dc33c8e993bf054bb00 | [] | no_license | not-duckie/RandomPwn | efe2aed9041bcd320cc75b14933aa508635e73a5 | e9a85b94239abf8ab49d03108a5c7a893d42bc3b | refs/heads/master | 2023-03-26T07:39:54.650384 | 2021-03-21T07:32:44 | 2021-03-21T07:32:44 | 195,807,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | #!/usr/bin/env python
from pwn import *
bin = ELF('./randompresent')
libc = ELF('./libc.so.6')
p = process('./randompresent')
#Stage 1 leaking
padding = "A"*40
put_plt = p64(bin.plt['puts'])
put_got = p64(bin.got['puts'])
pop_rdi = p64(0x0040077b)
main = p64(0x400676)
payload = padding + pop_rdi + put_got + put_plt... | [
"noreply@github.com"
] | not-duckie.noreply@github.com |
da63497011d0f31d066f5ff77a5e4f79c6dbbdb3 | 5b2ab5cda3d807ead96c69b126efd2574d287f95 | /entertainment_center.py | c18e181aebf8dcd68459131ebca7ca6f2ab01d0b | [
"MIT"
] | permissive | egpaul/fresh-tomatoes | 95fa771576722b075c624b6460e0bf6f98486f77 | 9bd0e024e31fed3e3de9d3f0ff0420e9d89985a4 | refs/heads/master | 2021-05-15T10:44:36.190250 | 2017-10-25T16:33:58 | 2017-10-25T16:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | import fresh_tomatoes
import media
# Goodfellas Movie: Movie title, storyline, poster image, and trailer
goodfellas = media.Movie(
"Goodfellas",
"A young man grows up in the mob and works very hard to advance himself"
"through the ranks",
"https://s-media-cache-ak0.pinimg.com/originals/17/34/15/173415b... | [
"noreply@github.com"
] | egpaul.noreply@github.com |
cbf3fc3e1c010cf4650748884952e3aa984b29ec | 6dbc183ba0c2f6722f343adc097447bcffe60934 | /index.py | 7b8ac5c47ff40ca6d17084dae07a261ffd29a357 | [] | no_license | slaytor/ODIE | ce32b0f97ba809b439f3ca3a5ff0b38ce34951e6 | 62588f663762930ee2383f3b1244795aeacf7b8c | refs/heads/master | 2022-12-14T22:49:02.024643 | 2018-06-04T16:57:05 | 2018-06-04T16:57:05 | 136,056,115 | 0 | 0 | null | 2022-12-08T01:00:27 | 2018-06-04T16:51:48 | Python | UTF-8 | Python | false | false | 1,615 | py | from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
import dash_table_experiments as dt
from app import app, server
from apps import home, jobs_app, ind_app, heatmap_app
from header_footer import header, footer
css = [
'https://cdn.rawgit.com/plotly/... | [
"noreply@github.com"
] | slaytor.noreply@github.com |
e774d1201c6a3930755f808039578edf9f6144e7 | a6d7b74046a0da8bbae2cda7d4d34deabc581445 | /Game_Server/node_modules/uws/build/config.gypi | 87ebd561d683cb97597cc7b1aafabdd9024087b1 | [
"Zlib"
] | permissive | tztz8/TSA_Game | 9b3ab36bb7018553689565157880a816dd744d79 | baaba65abb18f6c21b7df1864f970ab428c768d3 | refs/heads/master | 2021-05-09T19:05:20.688409 | 2020-04-15T18:51:52 | 2020-04-15T18:51:52 | 118,629,385 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,409 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"force_dynami... | [
"180427@cvsd356.org"
] | 180427@cvsd356.org |
f0d8f6c720eb71434eb0ba1ce0acdcdedf4ed128 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/2e033ce6e3a2cdde5174895cadb3b406b2a013729dd641fee2cebd9f7ed97879/cv2/videoio_registry.py | 0be5f4768f19952c2adff113bfb96d3a9ccf5394 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | # encoding: utf-8
# module cv2.videoio_registry
# from C:\Users\Doly\Anaconda3\lib\site-packages\cv2\cv2.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# functions
def getBackendName(api): # real signature unknown; restored from __doc_... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
ab0e5016475d187376e113b7f16bdf8f3b8390c3 | 70c724f693f5f097fa8dcc5ab4c76398fc753658 | /examples/like_and_follow_your_last_media_likers.py | 0872e03ff5f0a9a2901f41108fb862367088ebee | [
"Apache-2.0"
] | permissive | Plushkin/instabot | 9e1354f5bdd5527c34682d1e845ab3d8a6ce4255 | 757724071e6925fff42a5148da95c24caa4ed248 | refs/heads/master | 2020-05-25T22:53:44.506154 | 2017-04-01T19:19:52 | 2017-04-01T19:19:52 | 84,976,210 | 2 | 0 | null | 2017-04-01T19:19:53 | 2017-03-14T17:09:13 | Python | UTF-8 | Python | false | false | 1,158 | py | """
instabot example
Workflow:
Like and follow likers of last medias from your timeline feed.
"""
import sys
import os
import time
import random
from tqdm import tqdm
import argparse
sys.path.append(os.path.join(sys.path[0], '../'))
from instabot import Bot
def like_and_follow(bot, user_id, nlikes=... | [
"ohl.d@yandex.ru"
] | ohl.d@yandex.ru |
ed67b6e7582630336f0732062ed755324b0218de | f0ffb4276e72b1f8759bea4cbd7f711c2de54848 | /coursereg/views.py | df9e81d4c216b6e8b60b2df1eaaae9eb564eefd0 | [] | no_license | shirmino/School-management-app | 16ed86cf6a8ce678d6ff89a9d95c741f4bd51458 | 6498ef43463b4c1e302f89574052cf0fb7a06519 | refs/heads/master | 2022-11-25T09:02:10.036942 | 2020-07-19T12:55:51 | 2020-07-19T12:55:51 | 280,671,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | from django.shortcuts import render, redirect
from .models import CourseModel
from django.contrib.auth.decorators import login_required
from . import forms
from django.contrib.auth.models import User
# Create your views here.
@login_required(login_url = "/accounts/login/")
def course_create(request):
if request.meth... | [
"Uche@yahoo.com"
] | Uche@yahoo.com |
a5cd4ba759fc6e7df503e00af2402bb95ae28a44 | e7fa451c8fba591c0e0c25716d7fe72c8582345e | /Joystick ID Fixer/sdl2/cpuinfo.py | 4b6ed554ad6f0e3a917fee732251c22b77855ad5 | [
"MIT"
] | permissive | danricho/SC-Joystick-Configuration | 81d51eb3b94e70cc2b886ff92d0fa9cb7d30d764 | 7a0b463b348f7de0abad39702dae0100f9f935f0 | refs/heads/master | 2021-01-17T17:08:47.320006 | 2020-07-02T06:59:08 | 2020-07-02T06:59:08 | 62,977,107 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from ctypes import c_int
from .dll import _bind, nullfunc
from .stdinc import SDL_bool
__all__ = ["SDL_CACHELINE_SIZE", "SDL_GetCPUCount", "SDL_GetCPUCacheLineSize",
"SDL_HasRDTSC", "SDL_HasAltiVec", "SDL_HasMMX", "SDL_Has3DNow",
"SDL_HasSSE", "SDL_HasSSE2", "SDL_HasSSE3", "SDL_HasSSE41",
... | [
"noreply@github.com"
] | danricho.noreply@github.com |
36f451d7368c519828e012b9099415a08a28f862 | 21f05b45dbb43667007f3063d1a33082e122bec6 | /src/NIMSU_Modules/Test/Test_SampFormCovariance.py | 120d527539a69407c1ca020478af5c1b8c85254a | [] | no_license | DanAyres/NIMSU | 6f328f4b98a5eb34277be347fa1a2bb331bd87f0 | 6fe378c73d25aa58951de75d50841864268d389b | refs/heads/master | 2020-05-02T11:18:06.087070 | 2015-05-27T09:27:17 | 2015-05-27T09:27:17 | 34,388,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,882 | py | '''
Created on 9 Feb 2015
@author: daniel
'''
import unittest
import numpy as np
from NIMSU_Modules.SampFormCovariance import Exponential_kernel, Calculate_Covariance_Matrix, Form_Covariance_Matrix, PosDef
from StringIO import StringIO
#import sys
class TestFormCovariance(unittest.TestCase):
def testExpoKe... | [
"daiel@daiel-XPS-L421X"
] | daiel@daiel-XPS-L421X |
ace559b46e79210154608496701d451bae6e9f1d | df21c2c16ecfb4a46b1d88b0474291ac67c8a05a | /app/migrations/0003_auto_20180708_1239.py | 5d2a0d3ed37768c660d5b76e1dec863b6836cb8e | [] | no_license | aditya2222/CatchUp | 245dc4d122be7d596f8928d32a33acbbd754a4f3 | 915363faf7b59c81da070a70f9587f177a20d695 | refs/heads/master | 2020-03-22T14:21:17.689064 | 2018-07-08T14:08:24 | 2018-07-08T14:08:24 | 140,172,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Generated by Django 2.0.7 on 2018-07-08 12:39
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0002_auto_20180708_1219'),
]
operations = [
migrations.AddField(
... | [
"adityasingh222247@gmail.com"
] | adityasingh222247@gmail.com |
0b0598fdad0660c69040b729f8d2a2816d4e62e3 | b3db91714f9fcc4ebf3d41945d6f8247a747a2c5 | /webapp/news/parsers/utils.py | c0ffc729f1414fc626345d45b45dfea1df697859 | [] | no_license | Killarayne/petpj | 54fdb3d21159c2446a2dea2ba4c029f7f32c53f5 | e90b74bc00362b8ba32315fdd3e742130bc66426 | refs/heads/main | 2023-03-01T10:25:21.893944 | 2021-02-16T14:11:46 | 2021-02-16T14:11:46 | 339,421,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | import requests
from webapp.db import db
from webapp.news.models import News
def get_html(url):
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36'}
try:
result = requests.get(url, headers=headers)... | [
"saltykovnikson@gmail.com"
] | saltykovnikson@gmail.com |
d57ea15208418d0ea15cbe608a80dddf6e7f5ef2 | 94531cbb9cba199f10e603d385f7480b77a18f2b | /myBlog/migrations/0001_initial.py | dc241084329a4b8f5747d6937e1b3bc9b6a7eec3 | [] | no_license | toufiqur-rahman/django_blog | 6419892c64a4bd4130351082b4fd44451816c265 | 1b0f1189d8d60b85cc35e1b8faaeae64b94f81a7 | refs/heads/master | 2020-03-28T09:45:48.000434 | 2018-09-10T18:55:43 | 2018-09-10T18:55:43 | 148,057,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.1 on 2018-09-05 17:45
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... | [
"toufique.jami@gmail.com"
] | toufique.jami@gmail.com |
57d6937bf3629457efc49a2d6401c480d6dbdfa2 | 31021bb9d9788b132787f88db2dc8198a2686ba3 | /WorkThread.py | 9358e077ea039d629a8d9c83b74245bab20f405f | [] | no_license | yljtsgw/BootAssistant | f94846c58f6528c1c10d934be31dc9149854e9a3 | 5380d8436cdc0958ff2e344a516898dc75427355 | refs/heads/master | 2021-01-20T17:57:40.994834 | 2016-07-19T07:55:46 | 2016-07-19T07:55:46 | 63,671,555 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,810 | py | #!/usr/bin/env python
# coding:utf-8
"""
Author: --<>
Purpose:
Created: 2016/5/26
"""
from telnet import telnet
from ftp import ftpTool
from PyQt4.QtCore import QThread, pyqtSignal
import os
import config
import logging
logger_working = logging.getLogger('main.working')
###################################... | [
"393915549@qq.com"
] | 393915549@qq.com |
e372ef2a62d72abec5ba965d40ac64c52e42e1cd | 6da9c8536378131cc28d6a9bbe2d1de7de70fbe8 | /Hackerrank/_Contests/Project_Euler/Python/pe009.py | 25a6197d9d0384d61e15f5053dfd1e8bf479f99c | [] | no_license | austinsonger/CodingChallenges | 50f61330270cb6452715e6c28ae93b4595df6aa3 | 0cdc23fb909aa06a24294d923cedd37621e56a81 | refs/heads/master | 2021-04-30T13:21:36.111770 | 2019-07-16T18:49:02 | 2019-07-16T18:49:02 | 121,293,018 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | '''
Special Pythagorean triplet
Problem 9
A Pythagorean triplet is a set of three natural
numbers, a < b < c, for which, a^2 + b^2 = c^2
For example, 3^2 + 4^2 = 9 + 16 = 25 = 5^2.
There exists exactly one Pythagorean triplet
for which a + b + c = 1000.
Find the product abc.
'''
__author__ = 'SUN'
if __name__ == '__... | [
"austinvernsonger@protonmail.com"
] | austinvernsonger@protonmail.com |
7f53c10d5dbe029fa5168d836eba8d9522b3c2a5 | b551729392b06176f1b56894cb693d7fd70663cf | /mydj/settings.py | 1894bfb71c40159da9fc8b52c86c44f30137fa34 | [] | no_license | deepak-arora92/Your-Opinion-Matters-Django- | 0e3a11b6f26d4871e73b3878207435d3d0a88518 | db7b0731633d4aa77702c29c8f04ce005f95c8bb | refs/heads/master | 2022-10-21T21:28:59.171057 | 2016-03-27T17:46:59 | 2016-03-27T17:46:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | """
Django settings for mydj project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | [
"divinedeepak92@gmail.com"
] | divinedeepak92@gmail.com |
2efa465be4837e8a72faa9a4b74dfac988eb9b4f | 5cf33318ce43d5a7fbdecf33dc27bde2cca7fe10 | /userlogin/models.py | e7c8d0ede2d7dffbea21e3880fcb576d0834ee89 | [] | no_license | priyamkhandelwal/Conferenecesystem | 19efca4b1f6b91e36e47d80326b8190a96217edd | af30ae0865c62a0455ad606d89f95b48144b1845 | refs/heads/master | 2020-12-25T16:47:36.484227 | 2017-03-16T12:46:24 | 2017-03-16T12:46:24 | 66,699,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from conference.models import Conference
# Create your models here.
class ProfilePic(models.Model):
picFile = models.FileField(upload_to='documents',default=None,null=True)
class UserProfile(models.Mode... | [
"priyamkhandelwalbtp@gmail.com"
] | priyamkhandelwalbtp@gmail.com |
3e887db0012fd95d348ed1d1b493cf4547ef7a32 | 26c8f5c0c29c50566209efdc7e05b6e7454d9e20 | /solutions/40.Combination Sum II.py | 77b3b414809466b79fb434f08a135f9576267283 | [] | no_license | ZhiCheng0326/LeetCode-Practices | b47f1343db5b82693220ade4bf76ada0e79eba13 | 9ebffde8fdd1038a3e4b763f65e4b6ef58281e79 | refs/heads/main | 2023-08-24T05:25:24.423627 | 2021-10-02T11:14:50 | 2021-10-02T11:14:50 | 327,869,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | class Solution:
def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]:
candidates.sort()
ans = []
def backtrack(path, choices, cur_sum):
for ind, c in enumerate(choices):
# avoid duplicate answer
if ind-1 >= 0 and choice... | [
"zhichenglee97@gmail.com"
] | zhichenglee97@gmail.com |
6ff7b77d79410b97d84138f416f8c32691a2d8bb | 1312d27f4d2e264e7ea20cf7e76ea50d344c8dbe | /Appendix_1.py | 9e5f1ec3aadb49c99140474a3c44efe2c2a088a1 | [
"BSD-3-Clause"
] | permissive | haf001/Master-Thesis | 33c1d5e2dbc0b4070fe849bf5321aca3b1afee55 | 67af51cf5e40135f1ce4f8d71218739188232eac | refs/heads/master | 2020-05-20T05:19:29.947677 | 2019-06-12T09:20:46 | 2019-06-12T09:20:46 | 185,402,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,273 | py | from fenics import *
import numpy as np
from ufl import nabla_div
import sympy as sym
import matplotlib.pyplot as plt
def solver(f, p_e, phi, K_val, mesh, degree):
"""
Solving the Darcy flow equation for a Unit Square Medium with Pressure Boundary Conditions.
"""
# Defining the function space
V =... | [
"noreply@github.com"
] | haf001.noreply@github.com |
8c2b4fefc56bf8e29cff3454b03aa8d303777d83 | c5a7d354d9282ed0b37cbf5f990a84a3d5a64436 | /web-src/accounts/views.py | 6eb5e1eb145ff49f5f168fd2827fa20f4a265c1b | [] | no_license | harshwall/Notebook | 5bb13b50d3314db417b19c99ca73ff778d3b9d92 | 23089a3bc6d4db2c21102b01c841c293dceb92ef | refs/heads/master | 2020-04-18T02:10:08.143243 | 2019-01-20T20:10:57 | 2019-01-20T20:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | from django.shortcuts import render, redirect
from django.views.generic import TemplateView, View
from django.contrib.auth import authenticate, login, logout, get_user_model
from django.utils.html import strip_tags
from django.contrib import messages
from django.core.validators import validate_email
from django.shortcu... | [
"rohitraazanand567@gmail.com"
] | rohitraazanand567@gmail.com |
b0128b5d3d809a337ac36802f9c7f3f42460b449 | 8fd303230f4dbc5df510090a6d76b81488b4b76e | /image_service/appengine_version/__init__.py | 58ddf3ffb3c4f8c35d4301e782f7472ec60d5461 | [] | no_license | ferronrsmith/flask_projects | d1a2744b2501b26531ddbc686a4630a28ed3c514 | 4267834bf4596cf8b8a83b9ba9cbd2daa6121a72 | refs/heads/master | 2020-06-05T15:36:40.939652 | 2015-04-02T05:28:56 | 2015-04-02T05:28:56 | 3,476,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | """
Initialize Flask app
"""
from flask import Flask
app = Flask('application')
app.config.from_object('application.settings')
import views
| [
"ferronrsmith@gmail.com"
] | ferronrsmith@gmail.com |
cf33a939113ba50e04343dea146fe5038258eddf | 67a5295569a0810ae8e7082d661fce5d37b02cf9 | /listas2.py | 29e892186ad578936b01764a1c9156a7c4626792 | [] | no_license | thiagoabreu93/ed-not-2021-2 | e4b6ca8a42a0b464ad73de5555e2ccda825ca875 | 4b4b3e077c0cf86ed564b502f69854205cbc7ac2 | refs/heads/master | 2023-07-16T03:24:06.627160 | 2021-09-02T23:29:04 | 2021-09-02T23:29:04 | 391,197,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # range(): gera uma faixa de números
# range() com 1 argumento: gera uma lista de números
# que vai de zero até argumento - 1
for i in range(10):
print(i)
print('------------------------')
# range() com 2 argumentos: gera uma lista de números começando pelo primeiro argumento (inclusive) até o segundo argumento... | [
"thiago.abreu3@fatec.sp.gov.br"
] | thiago.abreu3@fatec.sp.gov.br |
a0ae8a8d5136d9398c96bd27dc8e2194c614cea3 | 19a2431f8473e063fcac3e2c787a4b2ef3903f20 | /qdtrack/models/roi_heads/track_heads/__init__.py | ce5fc1d664efc72a8e8f55c2cf18a98e1bb4984a | [
"Apache-2.0"
] | permissive | mageofboy/qdtrack | 9374ceae6bfa7d6444674e003ad56f4853419bf8 | 3458dffffb9a075852bf9d480f88a8e6f70ba9bf | refs/heads/master | 2023-07-22T17:33:44.516051 | 2021-07-17T03:55:12 | 2021-07-17T03:55:12 | 360,649,406 | 0 | 1 | Apache-2.0 | 2021-08-18T20:34:58 | 2021-04-22T18:46:06 | Python | UTF-8 | Python | false | false | 90 | py | from .quasi_dense_embed_head import QuasiDenseEmbedHead
__all__ = ['QuasiDenseEmbedHead'] | [
"pangjiangmiao@gmail.com"
] | pangjiangmiao@gmail.com |
8f0eee98f1cd65697147e3212963288dfcc6e789 | 9a32e96b5acdbed92b5a2b6eb556b9c92c0764fa | /exercises/exercise 5b.py | 5bcfb610bb022d839ccf050d46fef253e35ae892 | [] | no_license | emailman/Simulator_3 | 40d3374a7b70e46d56a7f8a5fd4b028e86acf168 | 5aa42297d9ee533ac1eb79214b2055ee4762a641 | refs/heads/master | 2020-09-22T05:30:25.518192 | 2020-02-15T16:00:43 | 2020-02-15T16:00:43 | 225,067,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from exercises.simulator import GuiApp
class MyUserApp(GuiApp):
ALL_LIGHTS = ['red', 'yellow', 'green', 'blue']
def once(self):
# Set things up here to run once
self.change_title('Turn on the light corresponding to the button clicked')
self.change_message('By Eric')
def loop(self... | [
"emailman@dtcc.edu"
] | emailman@dtcc.edu |
e86009b41457fd75b15ddc6028526a9d5f76d72b | 53271a00951b50fe33daf1cdd6e3f8eaa3c50cee | /Database2.py | 728cc6c97994f72a55111353b6f608a9aefc24e2 | [] | no_license | shohagrana64/cse716-ddbms-project | 29139a361331bb997fa1cb6efa1a863a2d7d51f6 | 5726cdd5e68c707e1c8fd4051e18f3a93e586380 | refs/heads/main | 2023-08-03T12:14:39.324121 | 2021-09-25T17:10:48 | 2021-09-25T17:10:48 | 410,208,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import sqlite3
conn = sqlite3.connect('database2_new.db')
c = conn.cursor()
print("Connection Opnend!")
print("reading commands!\n\n")
fd = open('database_latest.sql', 'r')
sqlFile = fd.read()
fd.close()
# all SQL commands (split on ';')
sqlCommands = sqlFile.split(';')
# Execute every command from the input file
... | [
"shohagrana64@gmail.com"
] | shohagrana64@gmail.com |
be7023cfd8e20ca8aa5c7262dc094051426d8610 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/935e39a6b43731383c8ecd4f86063224edc819ebd6d95bfabab328fca05f4912/cython_runtime.py | 37c3804fcd8cb40135e6b055396f17c83e3f5186 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # encoding: utf-8
# module cython_runtime
# from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\special\_ellip_harm_2.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# no functions
# no classes
| [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
097c22b3ba2d42fc913c97b1d532bd33763b4d2f | 96325a6b827816f2bdf800d5357e4edd11c9ec23 | /py_files/dataregister.py | 5527e7db0810941700c72d15eeb68d359ade42c0 | [] | no_license | prakirt/Multicycle_RISC_Processor | 24c60c865a4f434737022ec10d69270755f9e9ff | c4394aa9ceb0e60873429f8715e87ff06e42358f | refs/heads/master | 2021-06-09T15:25:21.415963 | 2016-12-05T16:41:26 | 2016-12-05T16:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | #import math
file_de = open("tracefile_dataregister.txt", "w")
k=0
d = 0
for i in xrange(0,2**10):
k = 1-k
file_de.write('{0:01b}'.format(k))
file_de.write(' ')
file_de.write('{0:016b}'.format(i))
file_de.write(' ')
file_de.write('{0:016b}'.format(d))
file_de.write("\n")
if k==1 :
d = i
file_de.close()
| [
"prakirt2203@gmail.com"
] | prakirt2203@gmail.com |
67f5c55631f312db567588bced798fff06c0dce3 | dbdc5835bd2e7c5dd924f35cdf4f66962ff2d59f | /Section-2/Simple_Linear_Regression/venv/bin/rst2html4.py | 78fc2e656b9c52a7d0a1f0b488d9c2f0fb9f47bf | [] | no_license | nikhilkumar9687/ML_code_in_Python | cdf0aafbb04b93bcefedd1350a5fe346c16ba147 | 692a43913113a6220aa6a909d83324e479757082 | refs/heads/master | 2022-10-06T12:58:36.029058 | 2020-06-08T20:25:19 | 2020-06-08T20:25:19 | 266,406,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/home/nikhil/Desktop/Machine+Learning+A-Z+(Codes+and+Datasets)/My_Code/Section-2/Simple_Linear_Regression/venv/bin/python
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the D... | [
"kumar.nikhil9687@gmail.com"
] | kumar.nikhil9687@gmail.com |
cb8c2b2d2312bb6962eeed0a36a04d06b423f648 | a12b4bd6176ab2a9bf84c919d5cdbed7e8e42a20 | /shared/common_response.py | fdafb69c8f517c3bd2674420cc0b9e5e79647e77 | [] | no_license | tsrnd/dp-world-tour | b3f82dde21faf2fa3a0cc9bd8cca23994e70b4c7 | 9fd8d4e9c40aa372bf89db05f82cf28043e9020e | refs/heads/master | 2020-04-15T20:14:21.659086 | 2019-02-15T06:46:44 | 2019-02-15T06:46:44 | 164,984,114 | 0 | 0 | null | 2019-02-20T04:36:34 | 2019-01-10T03:37:38 | JavaScript | UTF-8 | Python | false | false | 298 | py | ValidateResponse = {
"message": "validation error",
"fields": "",
}
NotFoundResponse = {
"message": "404 Not Found",
}
InternalResponse = {
"message": "Internal server response",
}
ForbiddenResponse = {
"message": "You have not permission to access this content currently"
}
| [
"hung.nguyen@asiantech.vn"
] | hung.nguyen@asiantech.vn |
22e2e2406a80d650dca9e60eae4d61b3a850429a | a3d40bd366ea747c76bd8bd40d3a3bdfe617088c | /code for call records.py | d6a1b4c773fc0dde664948c096ff5f65bca49bde | [] | no_license | sshchan/gshdata | 258033f77b946f10a5c2c865f25317592d1934eb | c217249d432936b7b3ad92b4600db242f3e9bf64 | refs/heads/master | 2020-05-05T04:56:52.367318 | 2019-04-05T18:16:03 | 2019-04-05T18:16:03 | 179,731,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Apr 4 14:31:43 2019
@author: user
"""
#
#import xlrd
#
#d = {}
#callLogsRec = xlrd.open_workbook('/C:/Users/user/AppData/Local/Temp/Temp1_GSH_19MAR2019.zip/FOR_UNCLASS/Phones (PARSED)/GSH_CallLogs.csv')
#callLogsexcel = callLogsRec.sheet_by_index(2)
#for i in ... | [
"noreply@github.com"
] | sshchan.noreply@github.com |
63b3181bdc60301fadd00b58d77e60a6de34be81 | 5805ef6884e64d715d71a495f6295b317bcb545c | /007.py | 8b23fd87158641054a1e995a081099c41e25f035 | [] | no_license | simonhessner/projecteuler | 9fac0a91b3f30809353bf45850391d916d413ca2 | 3b734a2b6f7f503909cce9528305afa275e53252 | refs/heads/master | 2021-09-07T23:48:51.228556 | 2018-03-03T15:14:51 | 2018-03-03T15:14:51 | 113,055,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/python3
# https://projecteuler.net/problem=7
import math
def primes(number):
while True:
if is_prime(number):
yield number
number += 1
def is_prime(number):
if number == 2:
return True
if number == 1 or number % 2 == 0:
return False
for div in range(3, int(math.sqrt(number)+1), 2): #skip... | [
"uldci@student.kit.edu"
] | uldci@student.kit.edu |
87484608d3e765293a94a2c87f82b381dcf74eb5 | 19e898ab83801d32c732d191d30db61c785342ad | /tweetSearch.py | a4d62222af1eb53a4ea200f49e0c16cec4075768 | [] | no_license | rchen27/htechLab4 | 5c1b80c12ab260d3f5453d44d48ee51a3260f3f6 | 7fb7c93784efe5cf6c34b00189052f2d57448d74 | refs/heads/master | 2021-01-10T05:03:55.865590 | 2016-01-21T18:18:14 | 2016-01-21T18:18:14 | 47,301,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | from TwitterSearch import *
try:
tso = TwitterSearchOrder()
#tso.set_keywords(['suffering', 'depression', 'I', 'my'])
tso.set_keywords(['the', 'a'])
tso.set_language('en')
tso.set_include_entities(False)
ts = TwitterSearch(
consumer_key = '1kj4GBRevJITV4S40kLXGHVG2',
cons... | [
"rc554@cornell.edu"
] | rc554@cornell.edu |
3c7f3313ec6b47c8cae77a82be48002ac201189d | fb4e64ebc1dc66335f25eaa63bf602fdd9ebd817 | /app/irsystem/models/helpers.py | 701f17912f15e0b96143a68d7bc4659608586904 | [] | no_license | mahin-mac568/Game-Recommender | bb90880d05dfb9ef41dc84f3982b07f8c1cc4c71 | b3e5477b86646781fa22c7b9d8f903ea2ffe18af | refs/heads/main | 2023-07-14T12:18:16.762938 | 2021-08-22T22:15:48 | 2021-08-22T22:15:48 | 398,303,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | # Methods to compose HTTP response JSON
from flask import jsonify
import base64
import json
import numpy as np
def http_json(result, bool):
result.update({ "success": bool })
return jsonify(result)
def http_resource(result, name, bool=True):
resp = { "data": { name : result }}
return http_json(resp, bool)
def... | [
"mac568@cornell.edu"
] | mac568@cornell.edu |
6f819961c414aac55a990e2f55d591fa7021693d | ffd6bc549caad10ee99ed20a13b0dac51393f24a | /audioTrackExtractor/downloader/downloader.py | fff7a0bb5dc4cf817bbd645d3a8eadbac55da9a6 | [] | no_license | giovaninppc/MC030 | 52a579290e0dcd1d28744f9ac98f49a8857ae275 | 382a60e330f1cdbb82fa8648029fa410db6a5cf5 | refs/heads/master | 2022-12-14T19:53:49.604330 | 2022-09-13T16:53:12 | 2022-09-13T16:53:12 | 208,359,198 | 2 | 0 | null | 2022-12-11T08:42:36 | 2019-09-13T22:56:44 | Python | UTF-8 | Python | false | false | 539 | py | import sys
from pytube import YouTube
class PytubeDownloader():
def downloadVideo(self, url: str, outputFilename = 'temp'):
yt = YouTube(url)
print(yt)
streams = yt.streams
# Select mp4 stream
stream = streams.filter(mime_type = 'video/mp4').first()
stream.download... | [
"giovani.x.pereira@gmail.com"
] | giovani.x.pereira@gmail.com |
7953cb9444df85fce62f70ac70bc0aeea294fb21 | f5e9f3f69094da603a5197824b6da894d79726fa | /thorlabs/spectrometer/CCS.py | 2e1be7add39f2b442be6fcf07b6ea5f143171fe2 | [] | no_license | 7joseph/pylabinstrument | 5c57225ab819417d28c8081cfef6578b975236f8 | 154240ce5ab4337129c7b118a32d97f2d080a46e | refs/heads/master | 2023-01-19T23:24:20.606216 | 2020-11-27T18:16:26 | 2020-11-27T18:16:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,761 | py | from ctypes import (
byref
)
import ctypes
from ...ctools import _visa_enum as enum
from .tools import _TLCCS_wrapper as K
from ..templates.VisaObject import VisaObject
from visa import constants as vicons
from time import sleep
import numpy as np
SCANNING = 1
PIX_NUM = 3648
class CCS(VisaObject):
def __init__(s... | [
"psk.light@gmail.com"
] | psk.light@gmail.com |
8ec13516a554596ee1f695900c29653ca4ca824a | 76c3d64fc39112fb78b14e381b7df39741534e69 | /reviews/migrations/0003_auto_20210122_1432.py | eef2ccf58ab56204b7978815bd58296e780990f0 | [] | no_license | MunnazzahAslam/newsreel | 1c10d78dfa4465aad08a71c0ec88f905c59b05ae | 43bfc524ba08675363b2a0db9788827ad9e2cfe6 | refs/heads/main | 2023-03-30T16:18:43.330509 | 2021-04-07T19:43:07 | 2021-04-07T19:43:07 | 355,568,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | # Generated by Django 3.1.5 on 2021-01-22 14:32
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('reviews', '0002_review_rating'),
]
operations = ... | [
"aslammunnazzah@gmail.com"
] | aslammunnazzah@gmail.com |
47bc571dda56b8ddb2b1676d90162a28af5f65d2 | 8401f24efc2f55c92322872a3c2e739311fb3b9b | /Homework3_2/Homework3/dependencyRNN.py | be41fcd426ca07533381a17db8522fbae25c1406 | [] | no_license | sloanchoi1124/nlp_stuff | dda16236e595c0cf6ce716e0e7284545505e8abf | 42c82f17a1bacb8b2b64c39ee149c6025719513d | refs/heads/master | 2021-01-19T18:51:02.939983 | 2017-04-16T01:55:49 | 2017-04-16T01:55:49 | 88,384,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,962 | py | import json
from math import sqrt
from collections import OrderedDict, defaultdict
import theano
import theano.tensor as T
import numpy as np
from adagrad import Adagrad
class DependencyRNN:
'''
class for dependency RNN for QANTA
'''
def __init__(self, d, V, r, answer_idxs, embeddings=None, seed=0)... | [
"xc2315@barnard.edu"
] | xc2315@barnard.edu |
246b0476cf8c2531744051a05c4b6a1b6a94b575 | 71969e3559d93efbd560265db5264b1d93ddaaa2 | /LSpider/urls.py | 9206fa2394bfa78e8e9f921e98893e22ef2bdb57 | [
"MIT"
] | permissive | morole/LSpider | e3cc28c4afd060325d12a622c587cb45841a6e6d | 1dcdd820a8c0520cc8b3c851a5ba7bd06fcbf2f8 | refs/heads/master | 2023-06-20T21:58:43.979326 | 2021-08-02T02:36:45 | 2021-08-02T02:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """LSpider URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"lorexxar@gmail.com"
] | lorexxar@gmail.com |
aba137d2ba8d09a62e8c31bd44e5e317756309e1 | 639493af246a2d00fc1ef8f17c4e666d11537677 | /Models/Deeplabv3.py | 405c8a07245f51e20436cc4f6aef3728eee90483 | [] | no_license | brillianti/Deeplabv3 | ab68ed7b5a29ccbbf8f27fec441c83f5186ba622 | f4aad6b112c2c629766ba54434ead4eb617ba0b8 | refs/heads/master | 2022-04-22T21:34:29.790094 | 2020-04-25T15:19:32 | 2020-04-25T15:19:32 | 258,806,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,086 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
from keras.models import Model
from keras.activations import relu
from keras.layers import Conv2D, DepthwiseConv2D, UpSampling2D, ZeroPadding2D, Lambda, AveragePooling2... | [
"1602881391@qq.com"
] | 1602881391@qq.com |
0d0979c507b6b380600c8f95dd37891c078b1b19 | 228604664db2a8c12ed08c7aee68e1e957d9ebaa | /Pętle.py | ad2e74c91d93ccd4ed5832cd86534b1407e0803b | [] | no_license | Dqvvidq/Nauka | 83767b08481f8e765a8d2a2bb46f30a7a903739e | a65da42b9ec422c30ebc6d1a422559d8de360fe3 | refs/heads/main | 2023-01-20T05:42:33.936406 | 2020-11-29T22:10:10 | 2020-11-29T22:10:10 | 310,408,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | #petle for
name = "Ted"
for litera in name:
print(litera)
#pętla for w liscie
list = ["banan", "chleb", "Vuda", "mleko"]
for lista in list:
print(lista)
#petla for w krotce
kroteczka = ("Masło", True, False, 101)
for krotka in kroteczka:
print(krotka)
#petla for w slowniku (wyswi... | [
"noreply@github.com"
] | Dqvvidq.noreply@github.com |
e3ccdca5abee0a3a58f7e2e3e62e2ee554307105 | f5dc531a15084a8dfa2e955b393edb9b1141bcfc | /Python Scripts/refineddmplot.py | a1be642ed5c4e3850ae27176b6c7c87d2a89978a | [] | no_license | ggrillo93/fermi-data-analysis | 2d5c368eee67df5d24855c888642836c0a7b3163 | 11728edcdfeee3565680ce6cefa6cbc14f4d2477 | refs/heads/master | 2021-09-08T15:41:49.493281 | 2018-03-10T20:36:34 | 2018-03-10T20:36:34 | 124,696,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,783 | py | #!/usr/bin/env python
import os
import pyfits
import numpy as np
import math
from pylab import *
from matplotlib import pyplot as plt
import csv
from subprocess import call
fullpulsar=raw_input('Enter pulsar name: ')
modes=raw_input('Enter modes (Crossband, Dualband and/or Inband): ')
pulsar=fullpulsar[:5]
def fullTe... | [
"ggrillo93@gmail.com"
] | ggrillo93@gmail.com |
28e9be7467b749a9f75b1304978786d2c3f3c9d7 | 756f1c2c014b928c57fc2001347abbb1f104b696 | /python/marvin/core/caching_query.py | 6c09ef2b321a6d4aef280f971b2724df5f7a9921 | [
"BSD-3-Clause"
] | permissive | sdss/marvin | ebe1e5325ed20fb46324ae6529bcc9acc220bd10 | db4c536a65fb2f16fee05a4f34996a7fd35f0527 | refs/heads/main | 2022-11-08T23:16:00.622114 | 2022-11-02T15:25:53 | 2022-11-02T15:25:53 | 71,501,855 | 56 | 40 | BSD-3-Clause | 2022-08-11T13:16:21 | 2016-10-20T20:30:15 | Python | UTF-8 | Python | false | false | 9,153 | py | #!/usr/bin/env python
# encoding: utf-8
"""caching_query.py
Represent functions and classes
which allow the usage of Dogpile caching with SQLAlchemy.
Introduces a query option called FromCache.
The three new concepts introduced here are:
* CachingQuery - a Query subclass that caches and
retrieves results in/fro... | [
"havok2063@hotmail.com"
] | havok2063@hotmail.com |
6b8edfa952b17f7a238eef9bfbc6a14d6c47eec1 | 1a19dac76dc82d4de3e6fb95b7cf84478dd41ad9 | /accounts/migrations/0004_remove_profile_status.py | 224a1ad816d867c6058e184b0d339655d6828888 | [] | no_license | Kambaulaya1234/inventory | c5715dcc1af1820797b67ecb0d7c167b491bd87a | 8c244be36a49433fd9cecae5eb36682881d33978 | refs/heads/main | 2023-04-19T21:43:33.609816 | 2021-05-06T05:43:21 | 2021-05-06T05:43:21 | 364,646,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 3.0.5 on 2020-04-24 12:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0003_auto_20200424_0930'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='status',
... | [
"mwaluandagaspa@gmail.com"
] | mwaluandagaspa@gmail.com |
aa7bdd53cc66e167cb8bf02a2be09310a99dd9f7 | 3c7ece5a516bd79c0ca8a5ecb2722119ed8f4dc9 | /Lesson_19_django2/pizza_project_ETALON/env/Scripts/django-admin.py | fecee6cf6ca80854173cead8c151345dbdae093a | [] | no_license | Bariss77/Lesson_PYTHON | 7340b2a4f8f43090b5bd8f0469230c53e9eaf306 | c90c88e13701a950d0f777858149f9bbdf9f1f9a | refs/heads/master | 2020-04-08T19:19:41.598888 | 2018-12-01T20:47:01 | 2018-12-01T20:47:01 | 158,188,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!c:\users\boris\desktop\pizza_project\env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"37667717+Bariss77@users.noreply.github.com"
] | 37667717+Bariss77@users.noreply.github.com |
0220d3837c405599a30e3ed23a1e342c7630735f | ee3e2a327a70a2800c8d2d54b5aaa1bb14e2d61f | /hc/blog/models.py | c021d9283012bab9a4ed9b2109d061240dbca7b5 | [
"BSD-3-Clause"
] | permissive | skapeyi/healthchecks | bdb1b693df1060391e633bc3e0b38e417bdaf89b | 286baa0e1b7a3ecf554c8785c4aa3dd77a9d9a4d | refs/heads/master | 2020-03-18T22:56:26.854718 | 2018-06-05T06:39:13 | 2018-06-05T06:39:13 | 135,373,769 | 0 | 0 | null | 2018-05-30T01:54:13 | 2018-05-30T01:54:13 | null | UTF-8 | Python | false | false | 1,092 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
from django.db.models import permalink
class Category(models.Model):
title = models.CharField(max_length=100)
slug = models.SlugField(max_length=100)
def __str__(self):
return self.tit... | [
"skapeyi@bitbucket.org"
] | skapeyi@bitbucket.org |
3f9f273e1fb3fa3b5e303f9f4d2789e44b45ead3 | 307da11c0b04aca15815e204be43355bf598b8b1 | /FileHandlingAssig/assig3.py | e594a99e1ad2eba132dd7aab9980dc2103f7eba6 | [] | no_license | asatiratnesh/Python_Assignment | a573e47ce6ebca8e48a5b5efc80c9fdd17eb10bf | ece2930d0f23383b9227a2d7110101fec35036e9 | refs/heads/master | 2020-04-19T10:32:41.592101 | 2019-02-01T12:40:25 | 2019-02-01T12:40:25 | 168,143,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | # convert the content of files in reverse order.
fileHandle = open("abc.txt", "r")
fileHandle.seek(0)
revString = fileHandle.read()[::-1]
fileHandleWrite = open("abc.txt", "w")
fileHandleWrite.write(revString)
fileHandleWrite.close()
| [
"ratnesh.asati@harbingergroup.com"
] | ratnesh.asati@harbingergroup.com |
e36f731f026dc6e0c20ae3cf067138808c6531d2 | 4bd1f3407a7b9d456034f62b71354d94778b7f54 | /plots_regression.py | ec256e9fc1e4149d5600c0487a77a24ed14ea7cb | [] | no_license | mgmrussell/applied-ai-msc | f2287efc51e80cb5d2a335133b60088c39859d47 | 31f6b3add6fa6cb31af737cafc451f146cc23445 | refs/heads/main | 2023-08-16T03:23:37.334422 | 2021-09-17T12:14:28 | 2021-09-17T12:14:28 | 407,523,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,076 | py | from matplotlib.colors import ListedColormap
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import pandas as pd
from scipy import stats
import constant
import numpy as np
def initialize_data():
result_df = pd.read_csv('reg_result0p2.csv')
std = pd.read_csv('reg_data_y_std.csv')
s... | [
"noreply@github.com"
] | mgmrussell.noreply@github.com |
30778759c840d8ed1e486027a1193056053b1267 | 8c3af416370dca5d7b464b486b535e4fdd205ff2 | /pygraphviz/__init__.py | a807801fc9916b7f2f1c649a0d66c69b237194f2 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | arruda/pygraphviz | 7518823737fc532d898d43bf71c26a7a5cb8c4bf | 8e448527ff9b1df79c5c42e353f19d056797d9bc | refs/heads/master | 2016-08-03T12:19:48.122491 | 2011-07-31T22:03:57 | 2011-07-31T22:03:57 | 2,175,550 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | """
A Python wrapper for the graphviz Agraph data structure.
Quick example::
>>> from pygraphviz import *
>>> G=AGraph()
>>> G.add_node('a')
>>> G.add_edge('b','c')
>>> print G # doctest: +SKIP
strict graph {
a;
b -- c;
}
<BLANKLINE>
See pygraphviz.AGraph for detailed documentation.
"""
# Copyright (C)... | [
"aric@3ed01bd8-26fb-0310-9e4c-ca1a4053419f"
] | aric@3ed01bd8-26fb-0310-9e4c-ca1a4053419f |
c9d7473a10ec6484bfb9f69df952c0a761dd359d | 7624e2cab8bcd6b7cf1d9b5c611610f7ca050dac | /internbot/view/topline_view/appendix_view.py | 20d0c7d8e6f100d9f1a28b3051769b7a63a921d8 | [] | no_license | carolinedarling/internbot | 95aaaad81f81cbbbea2f7a04a6ff819f222290df | beebc0e168e405e246392ebf91f3b01562878728 | refs/heads/master | 2022-04-01T03:14:59.929299 | 2019-12-11T18:25:02 | 2019-12-11T18:25:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,141 | py | ## outside modules
import kivy
kivy.require('1.11.1')
from kivy.app import App
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.image import Image
from kivy.graphics import Color, Rectangle
from kivy.uix.popup import Popup
from kivy.uix.label import Label
from kivy.core.text im... | [
"kathryn@y2analytics.com"
] | kathryn@y2analytics.com |
33ada4e6e7d04902f90c47195ed200e4fd0537b1 | 7700871499bc3796f188a16948481b7d467094d0 | /src/wsgi.py | 4d1f6be01fca31755c2436d8ac9681d109f7581e | [] | no_license | jasonjets/mpulse | 68995dbcb52984675d31a117b2b6726475b40457 | 1eba3a83ee073da8b3d4a2df61402fc591c73975 | refs/heads/main | 2023-02-16T04:47:48.340054 | 2021-01-03T19:31:39 | 2021-01-03T19:31:39 | 307,150,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "src.settings")
application = get_wsgi_application()
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'src.settings')
application = get_wsgi_applic... | [
"bettsjason@outlook.com"
] | bettsjason@outlook.com |
88eaf22c767ec5d231450ea9686ec6949a2023e5 | a9760e9fe6d81cfeb76044a43008eee2adf0295b | /choose_your_own/your_algorithm.py | eea887add072af15e85eb41e6eb922be2fbe7319 | [] | no_license | Valentine-Mario/Machine-learning | 9ff39e33fe6dc4a4e88efaa03b3f36ebbd3aeacc | 6a4261830057f104adbcff67c5e131707e124735 | refs/heads/master | 2022-07-18T17:37:44.582421 | 2020-02-03T18:14:14 | 2020-02-03T18:14:14 | 223,941,245 | 0 | 0 | null | 2022-06-21T23:32:48 | 2019-11-25T12:15:51 | DIGITAL Command Language | UTF-8 | Python | false | false | 2,084 | py | #!/usr/bin/python
import matplotlib.pyplot as plt
from prep_terrain_data import makeTerrainData
from class_vis import prettyPicture
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import accuracy_score
from sklearn.ensemble import AdaBoostClassifier
from sklearn.ensemble import RandomForestClas... | [
"valentine13400@gmail.com"
] | valentine13400@gmail.com |
2de2010bec76a55f68fd7df8729f7d83ce87a3ea | fe8360d9284d8156cd557d3a757645c11849cdd9 | /models/address.py | 3c11b1443ea2136894676b06698d4e57f8b4cd02 | [] | no_license | hvanreenen/fhir-rest-server | 5a1a5bcb9a3477d9f9d133c263f61ba202db5741 | 36ae55706aba0fdfcf084dbb24bd8c73929b3e0f | refs/heads/master | 2021-01-10T23:45:06.793874 | 2016-10-20T09:57:04 | 2016-10-20T09:57:04 | 70,390,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,973 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/Address) on 2016-10-07.
# 2016, SMART Health IT.
from . import element
class Address(element.Element):
""" A postal address.
There is a variety of postal address formats defined ar... | [
"henk-jan.van.reenen@nlhealthcareclinics.com"
] | henk-jan.van.reenen@nlhealthcareclinics.com |
e4ffd83343645d489fd7f0901317a07d4bdea4b1 | c0a25bd77d98e6087c745d5fa2862c4a715a8f59 | /standupmeeting/settings.py | 241a863296e0a608133996cb32846d82c37359a1 | [] | no_license | codyowl/standupmeeting | a84f356b611bd87956b9aa15c58a6ca63fbffebc | bd2a782406901f492f54c1780e1d85d07fe51c20 | refs/heads/master | 2021-01-21T15:18:49.137211 | 2017-06-17T17:47:40 | 2017-06-17T17:47:40 | 91,837,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | """
Django settings for standupmeeting project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build... | [
"codyowl@gmail.com"
] | codyowl@gmail.com |
26b88be88e55b48918a20c0c1005f2cb756ce5e6 | b23a50e14a7b13b58a04c34f54e9438fa1d0a877 | /code/JobAdmin/Job/migrations/0009_auto_20210415_1010.py | 59e1fd3fb500bd28a10cbcf8ff7146eeb6de6eda | [] | no_license | IamZY/StudentJobAdmin | 648bf3e9160b888b0b2349c8724ea43d1b69c53c | 60fc509a48d0fd49afb44ba3fbb796a33ed4aa5b | refs/heads/master | 2023-05-02T13:07:18.879989 | 2021-05-24T00:33:09 | 2021-05-24T00:33:09 | 367,892,392 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 3.1.7 on 2021-04-15 02:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Job', '0008_resume'),
]
operations = [
migrations.AddField(
model_name='resume',
name='name',
field=mode... | [
"562018301@qq.com"
] | 562018301@qq.com |
d5e93ff63e27e52cc36be5db20e4b14098d39c90 | 0be496ab33e732c8e25557a6fadba70b305d90b9 | /Task_Four/Ques6.py | aa2c48c3d16395664e1631cd0ce38df4fead0126 | [] | no_license | DharaTandel/Python | a7bbd7a4794b2c7e844de3127fa2ea5e9321e99c | a33d8237817e63ad1fe4f1f9579de16f0a8c984e | refs/heads/main | 2023-03-30T00:40:41.921856 | 2021-03-29T00:15:19 | 2021-03-29T00:15:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | def Sum(a,b):
S= int(a)+int(b)
return S
x="10"
y="20"
print(Sum(x,y)) | [
"noreply@github.com"
] | DharaTandel.noreply@github.com |
b216a687cf570621fe06b237e2f4af8888a5bd8f | 4acd0d1561e057ac312b6f62a5504fef8a9b8d1a | /attacks/fast_gradient.py | 334df07c4deb1a8f30dfa25f6ed35066dd55c5d3 | [] | no_license | ValamogulisZ/DS_FoolingCNN | 810bd8435752dbba2060901097aaf50d48e4eb08 | b576f3efeea7bc0a841d833472a81e009fac84dd | refs/heads/master | 2022-12-03T03:44:17.889915 | 2020-08-25T01:39:35 | 2020-08-25T01:39:35 | 290,056,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,115 | py | import tensorflow as tf
__all__ = [
'fgm', # fast gradient method
'fgmt' # fast gradient method with target
]
def fgm(model, x, eps=0.01, epochs=1, sign=True, clip_min=0., clip_max=1.):
"""
Fast gradient method.
See https://arxiv.org/abs/1412.6572 and h... | [
"wenda@uab.edu"
] | wenda@uab.edu |
7b480b508fc082bd44699b3765985666f6a32593 | 0db91f8a6b295ff72b0cb3e7e6b1ddf2a39f7c1e | /moorse_code1.py | f433dfc4a9f97cbca0af9d7b52f7771d0375f5d9 | [] | no_license | alphabetz/dailyprogrammer | 3fb239a3ae8bfb1ce7886584b479e8d5075f671a | ce78ef4f18b409cf8659f9ebe21fb672abe920b4 | refs/heads/master | 2020-07-11T22:56:47.111546 | 2019-09-05T08:18:34 | 2019-09-05T08:18:34 | 204,661,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # r/dailyprogrammer
# easy #380
# Smooshed Morse Code 1
# write Moorse code generator
def smorse(text):
code = {
'a' : '.-',
'b' : '-...',
'c' : '-.-.',
'd' : '-..',
'e' : '.',
'f' : '..-.',
'g' : '--.',
'h' : '....',
'i' : '..',
'j' : '.---',
'k' : '-.-',
'l' : '.-..',
'm' : ... | [
"rm.ratthapong@gmail.com"
] | rm.ratthapong@gmail.com |
3a7267565f9ff70b2e81cefb0c86b27fd8f3b565 | f62007cbfe69b169bc6fac79c143856e027af46c | /Day1/length.py | 5c774bd03af217463c727630ea0a611cebc618b9 | [] | no_license | nithishkumar98/100-days-of-python | 272bff29d85cf99a54358fe79ab44fe63ea0870a | def3089ab482a70a2cc12fad28ef65bc6de6a6be | refs/heads/master | 2023-06-25T00:42:33.873203 | 2021-07-20T18:19:30 | 2021-07-20T18:19:30 | 386,530,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | name = input("What is your name?")
length = (len(name))
print("The length of the "+name+" is " + str(length))
| [
"nithishindians@gmail.com"
] | nithishindians@gmail.com |
1b6a2aa29c25d01d109682bef2c4e146e7d3ae9a | 7b4cc3814338b600db560324e615cf5c3a02bff5 | /test/test_inline_response20019_ranks_sum.py | 7c843351bb5fea0cf90e0166453b3ff6628bd10a | [] | no_license | wood-run/opendota-client | 58ea278c94d3edad0daf695438d5ec2a3d90fe08 | 2cd7defca67c7efde4ee414e9dcd8685245cd167 | refs/heads/master | 2022-12-29T02:17:26.862289 | 2020-10-13T08:29:06 | 2020-10-13T08:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # coding: utf-8
"""
OpenDota API
# Introduction The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays. You can find data that can be used to convert hero and ability IDs and other information provided by the API from the [dotaconstants](https://github.com/od... | [
"chujiyang@gmail.com"
] | chujiyang@gmail.com |
17ed53f882b6351a4dfc34a6cd9a6c7e3bcc5816 | 95d7e59587cbe49e9b2cd54b9b7d1d7bd0e2d73a | /爬虫/code/抖音无水印下载.py | d4a779d2b6f2cd73d286ed8c633db581ce8bcd63 | [
"MIT"
] | permissive | oncesimple/heima_python_learn | ddba1428c52cd3029019aad085ff79e8b0ebed0e | e4a2ff7e4f95ed910d54888d6ed79b315d0f148b | refs/heads/master | 2023-03-29T08:17:17.476068 | 2021-04-10T10:17:39 | 2021-04-10T10:17:39 | 356,540,341 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #!/usr/bin/python3
# -*- coding:utf-8 -*-
__author__ = 'hyh'
__date__ = '2020/7/4 21:07'
import re
import requests
"""
TODO 声明
脚本仅仅提供学习使用,拿来盗别人视频,或者商业用途,后果自负作者不会承担任何责任。。
"""
def request(url):
headers = {
"user-agent": "Mozilla/5.0 (Linux; Android 5.0; SM-N9100 Build/LRX21V) > AppleWebKit/537.36 (KHTML, ... | [
"once_simple@outlook.com"
] | once_simple@outlook.com |
2b264b55b123a8cd5b282f6bb7e18cab92f2e684 | e533a0ed04ef500d394d2a36131214109fd09925 | /test_04_11_4.py | e7eabac535b0302c5edab0f859e6061f397171c5 | [] | no_license | rocmc/Python_edu_171216 | 03a20ada87fbb6af00794d44b1c677840b95fdeb | f704211c96d75bef0a8b26c1d91227076b2f73ca | refs/heads/master | 2021-03-19T15:38:59.719369 | 2017-12-23T08:16:20 | 2017-12-23T08:16:20 | 114,445,355 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 427 | py | #coding: euc-kr
import sqlite3
db = sqlite3.connect("test.db")
cursor = db.cursor()
# 삭제 SQL
cursor.execute("""DELETE
FROM PHONEBOOK
WHERE EMAIL=?""",
("visual@naver.com",))
# 반드시 커밋을 한다
db.commit()
cursor.execute("""SELECT NAME, PHONE, EMAIL
F... | [
"corea811@gmail.com"
] | corea811@gmail.com |
1c1ae64bcd0ef9585b622bcc72dcfe53e29a844d | 733a9f7fb141db20c9286e6971d59dc22f1a96c3 | /plot.py | 18aa40480148505fe7216e4af38773a4457eac1f | [] | no_license | MartinBCN/DeepRL | ca888dfe1a22a65abc597f34bd933965d2f86872 | 8394a373936a6fc1b77c1fb6762371f70bac8a1f | refs/heads/main | 2023-04-20T07:34:21.619209 | 2021-05-16T13:07:39 | 2021-05-16T13:07:39 | 361,625,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import streamlit as st
st.set_page_config(page_title='RL Reacher', page_icon=None, layout='wide')
import pandas as pd
import json
from pathlib import Path
import numpy as np
import plotly_express as px
p = Path('runs/reacher')
batch = pd.DataFrame()
epoch = pd.DataFrame()
configs = pd.DataFrame()
for path in p.glob... | [
"martin-cleven@gmx.net"
] | martin-cleven@gmx.net |
aff99ca9c0437f8148335598643af70076e96820 | aeb215ecd792ab99c722e864728d388fe69c545f | /templeB.py | a49bf3a6e3c1b0169646c01890bc40f785317d31 | [] | no_license | kcho/templeBehavioural | d07e9b4aaf0123de5c3504d78e3f3b45fbfb7c9c | b8b9d386671b31be1d2f138c547d264434c28d30 | refs/heads/master | 2020-05-19T10:04:53.869137 | 2014-07-24T13:25:42 | 2014-07-24T13:25:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,276 | py | #!/Users/admin/anaconda/bin/python
import unicodedata
import re
import codecs
import os
import csv
import argparse
import textwrap
import pandas as pd
import numpy as np
def findBehaviourDir(directory):
# find 'Behavior_Data'
behaviourDir=[]
for root,dirs,files in os.walk(directory):
if re.search(... | [
"cke8671@hotmail.com"
] | cke8671@hotmail.com |
ffea677591747dfafae0220b0d5104dd324b6948 | 6f45267c7e5e3167bc5c552ff57b1bb934c6911b | /load/save_load_xcm.py | 15c70ceb20f11eed3a16928ec1c8e86f5526a215 | [] | no_license | evandromr/pyxspec | d9c443680dfd508f2c6458157b3ade85b448fb66 | 410f1c457f2671cf11740d3bad4138bd04193939 | refs/heads/master | 2021-01-18T06:45:42.571328 | 2015-07-15T12:24:03 | 2015-07-15T12:24:03 | 39,135,887 | 0 | 1 | null | 2015-07-15T12:36:10 | 2015-07-15T12:36:10 | null | UTF-8 | Python | false | false | 3,891 | py | # pyxspec
def save_as_xcm(filename,s_type="all"):
'''saves stat,method,abund,xsect,cosmo,delta,systematic,model and parameters to an xcm file'''
if len(filename.split("."))>1 and filename.split(".")[-1]=="xcm":
ext=""
else:
ext=".xcm"
fw_xcm=open(filename+ext,"w")
fw_xcm.write("statistic "+str(Fit.statMethod)+... | [
"nocturnalastro@users.noreply.github.com"
] | nocturnalastro@users.noreply.github.com |
4c05a7c1bbc996ad2ea1c67b8c197f53b49ee881 | cf84ec58efa63846d09592a6b3d98f9ba31aba0a | /day01/Interaction.py | 3543fe16091c1ade96d5a645c2634d360ee4d799 | [] | no_license | EvanMi/s14 | cedd3837d0bb87209a31e17467fc723c3b4d7041 | 186d3a471bfc5ac4edc888d1b2d0b65206b62803 | refs/heads/master | 2020-03-30T07:34:47.382925 | 2018-09-30T08:55:10 | 2018-09-30T08:55:10 | 150,950,275 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | # -*- coding:utf-8 -*-
# Author: Evan Mi
name = input("name:")
age = int(input("age:"))
job = input("job:")
salary = input("salary:")
# %s %f %d
info = '''
---------- info of %s --------
Name: %s
Age: %d
Job: %s
Salary: %s
''' % (name, name, age, job, salary)
info2 = '''
---------- info of {_name} --------
Name: {_na... | [
"1157015566@qq.com"
] | 1157015566@qq.com |
75a51dcedafba4f54f170bc433e959f80f46a919 | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/test/functional/too_many_nested_blocks.py | 47dbf441bd71b32547d4d652a501a6d3189ff396 | [
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"Apache-2.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 2,259 | py | """Checks the maximum block level is smaller than 6 in function definitions"""
#pylint: disable=using-constant-test, missing-docstring, too-many-return-statements
def my_function():
if 1: # [too-many-nested-blocks]
for i in range(10):
if i == 2:
while True:
... | [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
aa5c179f6a82ed1c371e89ee709949f9a08fcf6f | 7c42e938f896729b04ebb19ed6222083841c66c0 | /tetris/ui.py | a5ac41cc480f2429c5eb5ada0397dd2533269c2d | [
"MIT"
] | permissive | xmye/games | 6586805d94b452a604fe977773a7a1402e704930 | 4239022cf4f144dbf22b46baf51368a408faa97b | refs/heads/master | 2021-04-03T08:56:26.637072 | 2018-03-05T22:01:33 | 2018-03-06T22:01:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,653 | py | from PyQt5.QtCore import Qt, QTimer, QSize, QPointF, QRectF, QPropertyAnimation, QEasingCurve, \
QParallelAnimationGroup, QAbstractAnimation
from PyQt5.QtWidgets import QWidget, QFrame, QMessageBox, QGraphicsScene, QGraphicsView, \
QGraphicsObject, QGridLayout, QStyl... | [
"vojta.molda@gmail.com"
] | vojta.molda@gmail.com |
6df584caf2711d3e2e7ace2cad2cdc746637d3a9 | 7f591f2c5921a35b1ee86c134e6f76ccbe91eb53 | /login/app/forms.py | 24d77e0c69aec135095db84b303528e5728b3b66 | [] | no_license | prashanthchaduvala/Myproject | cb91f7a6701927a847043c08f0512bc5f8deb2b4 | 2fa04185e7b53154e6b132ed28dfc462cc267929 | refs/heads/master | 2020-09-26T14:33:54.331103 | 2019-12-06T07:59:07 | 2019-12-06T07:59:07 | 226,274,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django import forms
from .models import loginpage
class LoginForm(forms.ModelForm):
class Meta:
model=loginpage
fields='__all__'
widgets={'password':forms.PasswordInput} | [
"54631863+prashanthchaduvala@users.noreply.github.com"
] | 54631863+prashanthchaduvala@users.noreply.github.com |
667786d0de27d6e59c028abbd242e1f9687c6d97 | c1a7a020f950e0e80f4b63793eae458a068ed552 | /src/uav_flight/src/python/drone_hunter.py | 806a5ef803b938f65095be34991906460435d4e7 | [] | no_license | Isaac-Seslar/uav_avoidance | 504c4c244a8ae5a1da151f270fa6aa1103400ddb | 5dbef1c9eb527a267f5afd9996a576043413b952 | refs/heads/master | 2023-01-05T04:15:09.082301 | 2020-10-29T16:46:46 | 2020-10-29T16:46:46 | 265,355,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,564 | py | #! /usr/bin/python
####################
# Import libraries #
####################
import math
import numpy as np
import rospy
import mavros
import std_msgs
import tf
import sys, select, os, tty, termios
from geometry_msgs.msg import PoseStamped, TwistStamped, TransformStamped, Point, Vector3
from mavros_msgs.msg im... | [
"isaaciscool19@gmail.com"
] | isaaciscool19@gmail.com |
49d6d7963eb1e7251d939d8c77a74178713656ce | 9148efb07cb949e686b8c1017460526b74c16319 | /topic/migrations/0001_initial.py | be704877ef5a83f8ba906836a1463a856f940208 | [] | no_license | kangsgo/pineapple | af5277144395135bc018552bcef2237a8c1cd011 | d6f95eb1cf3cc30d97157a9b6fe35ad1889f6a82 | refs/heads/master | 2021-01-12T15:52:03.496417 | 2016-10-06T11:47:59 | 2016-10-06T11:47:59 | 70,171,425 | 1 | 0 | null | 2016-10-06T16:20:18 | 2016-10-06T16:20:18 | null | UTF-8 | Python | false | false | 1,422 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-13 05:09
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('comments', '0001_initial'),
migr... | [
"tonnie.lwt@gmail.com"
] | tonnie.lwt@gmail.com |
e68500422dcce2cd1da8991f72a686ab537ad639 | c87a2aa3752d51b2191e6d3fe09fd982b3d40f6d | /ABC105a.py | 815275dcc7669d23cc6e40f980ac6864c5bed261 | [] | no_license | kairyu33/atcoder | 54df0eea2f1c61f516ec2dbb4b62eeeb59903269 | 61f76826ebaaf2604bfa0ce016e3de52d0a10f39 | refs/heads/main | 2023-06-14T21:52:33.208802 | 2021-07-09T15:14:06 | 2021-07-09T15:14:06 | 376,199,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | def main():
n, k = map(int, input().split())
if (n % k == 0):
print(0)
else:
print(1)
if __name__ == '__main__':
main()
| [
"kairyu333@gmail.com"
] | kairyu333@gmail.com |
921edfd522099ada4d11a5a777e54f9d2dca360b | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.16/3/1569573269.py | 7413ac80608e26f988f405d4836f82d6a23f8641 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import functools
import typing
import string
import random
import pytest
def leap(j: int) -> bool:
if j % 4 == 0 and (j % 100 == 0 and j % 400 != 0):
return False
elif j % 4 == 0 and (j % 100 == 0 or j % 400 != 0):
return True
else:
return False
####################################... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
0f386418ae2dc0fc5c9218cff9565de3b2531ec0 | c8cfc8f3e3e1c0a4a856355ff90cceca3191ba77 | /web-client/slycat/web/client/dac_tdms_util.py | 136a011e4bb6fbd2c30e33ffa9eef052f01c2c29 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | sandialabs/slycat | 8fb41164c74a78f645ba3c4db6cb5e33e9b515c8 | 1af9aa38c7ffa5d3f02101cc057e5d2ff20897c0 | refs/heads/master | 2023-08-17T19:30:16.277591 | 2023-08-09T19:49:29 | 2023-08-09T19:49:29 | 11,371,048 | 69 | 24 | NOASSERTION | 2023-08-31T15:22:37 | 2013-07-12T14:50:39 | JavaScript | UTF-8 | Python | false | false | 11,283 | py | # Copyright (c) 2013, 2018 National Technology and Engineering Solutions of Sandia, LLC.
# Under the terms of Contract DE-NA0003525 with National Technology and Engineering
# Solutions of Sandia, LLC, the U.S. Government retains certain rights in this software.
# Module defining Dial-A-Cluster .tdms parser, options,... | [
"smartin@sandia.gov"
] | smartin@sandia.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.