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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a74a29995ff38d8248e33eb1ea0c4866318702c0 | 9e4875e14163ac36df01dd55d16569ea3cfc6c15 | /courier/urls.py | f9de696eea5b0db58dc8f1d16c8cca03faedb904 | [] | no_license | iamlaboniraz/e_courier | cdb51528352a2e364aa5c41b5b6981d676e06ba8 | 1f9ef5d6b882e038104b9fba94b72982fca9e435 | refs/heads/master | 2020-05-19T08:36:07.327860 | 2019-05-05T06:17:48 | 2019-05-05T06:17:48 | 184,924,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | """courier URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"sharif.bkash2019@gmail.com"
] | sharif.bkash2019@gmail.com |
355ea3438068cb566e9bb686ad11c0e9bbcbe658 | 20f86ba7febb3233516f0e2161bc98604c302cc4 | /tests/acceptance/page_model/base_page.py | 165ad2e4da698093c6351465a36d33bb5fb659c4 | [] | no_license | LukaszMalucha/Machine-Learning-Dashboard | 5369270ff39710f2c6545ea0828f01265d7e797f | 3ee29498d7d74365a2cd33547795ddfe9573dac4 | refs/heads/master | 2022-12-10T05:08:52.693425 | 2019-03-14T11:15:54 | 2019-03-14T11:15:54 | 126,514,014 | 8 | 3 | null | 2022-12-08T01:33:30 | 2018-03-23T16:52:05 | Python | UTF-8 | Python | false | false | 1,023 | py | from tests.acceptance.locators.base_page import BasePageLocators
class BasePage:
def __init__(self, driver):
self.driver = driver
@property
def url(self):
return 'http://127.0.0.1:5000'
@property
def title(self):
return self.driver.find_element(*BasePageLocat... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
9074864fdeb2c55bd6d26974e16e43289c93fea1 | dcba7c6df1a6560c66e0fb86d0659d160f2b3308 | /prog2-master-konyv/Malmo/SteveOkos.py | 043d2d016aa401e49ca00a6b887dc281c75bdbc0 | [] | no_license | RubiMaistro/prog2 | 9be1a7dde0190b79b5cc4524c3ce881ea523ab59 | 2b1743ea251b81b7de089d3fdbf7b9b59dc08377 | refs/heads/master | 2023-01-30T19:53:29.259291 | 2020-11-30T19:12:25 | 2020-11-30T19:12:25 | 297,921,633 | 1 | 0 | null | null | null | null | ISO-8859-2 | Python | false | false | 15,206 | py | from __future__ import print_function
# ------------------------------------------------------------------------------------------------
# Copyright (c) 2016 Microsoft Corporation
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files ... | [
"talingermark@gmail.com"
] | talingermark@gmail.com |
5ef5a1070dca06e738ce73db72454c583ffa8acc | ddda9924134a94d54a1ed65f813846126fc7b3da | /.local/share/Trash/files/0003_remove_earnings_jan_code.py | ec4e78a3fe190c6e8b2e24a3c60abe9e5d82a313 | [] | no_license | MONTAINI/Jihanki | 27b6443b180096bf059733274a33ee0d99945a3c | 001258b951d6147509c5e3fef0b67b9f28f0748b | refs/heads/master | 2022-10-11T20:11:18.276496 | 2018-05-08T10:21:59 | 2018-05-08T10:21:59 | 132,592,296 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-24 02:49
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jihanki', '0002_auto_20180124_1129'),
]
operations = [
migrations.RemoveField(
... | [
"kd1223626@st.kobedenshi.ac.jp"
] | kd1223626@st.kobedenshi.ac.jp |
49d527238fc069e4b21c3acafe4fa68c4da3bffe | 8a5051b14a5030b3c3c39a548784cbcc0023db80 | /Practice/Pra0720/htmlRunner.py | 70f4ec54dd5c91028cc612e67e449b39159a27b9 | [] | no_license | Anapplewj/Learn_ceshi | 468b20e51727edf6f61a6480e968414b299c40e2 | 34cc5fe3514529eb56fccc1fb47103151d093ecb | refs/heads/master | 2023-06-26T13:38:39.687151 | 2021-08-02T14:17:11 | 2021-08-02T14:17:11 | 387,635,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,227 | py | # 测试报告
import HTMLTestRunner
import os
import sys
import time
import unittest
def createsuite():
discovers = unittest.defaultTestLoader.discover("../Pra0720", pattern="testbaidu*.py", top_level_dir=None)
print(discovers)
return discovers
if __name__=="__main__":
#1,创建一个文件夹
curpath = sys.path[0]
... | [
"2648175705@qq.com"
] | 2648175705@qq.com |
103422c3c7919d61071b76587342ae3776906b3b | 75c6e20dd5d8a43264c9d050e61f0069af995be6 | /src/metrics/meteor.py | 872da5dbfb19b4e2e47e0205949136f27d01910b | [] | no_license | armor-ai/RRGen | 0f480b558fe250658b6036b7ce48456a8b9de912 | 182ae87adf2a03818e3da000770e0f878f1f3534 | refs/heads/master | 2021-11-27T12:50:23.584628 | 2021-11-16T12:23:23 | 2021-11-16T12:23:23 | 204,915,823 | 10 | 6 | null | 2021-11-16T12:23:24 | 2019-08-28T11:28:28 | Python | UTF-8 | Python | false | false | 4,107 | py | #!/usr/bin/env python
import subprocess, threading
from scorer import Scorer
from reference import Reference
class MeteorError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class MeteorScorer(Scorer):
"""
Python wrapper for the... | [
"gcyydxf@gmail.com"
] | gcyydxf@gmail.com |
fc4dd2aeebba0b006b2c867b0c71b235f777c216 | 4737df4162bee6abc7b78d1e8b4930d2cb542d6b | /graphgallery/nn/layers/pytorch/conv/dagnn.py | 24f060cea3fb5cf39695a42498b8ea286a211594 | [
"MIT"
] | permissive | freebird3366/GraphGallery | d1aa4ff291753ccf0ac4a8e024d18c59d2db8aa8 | f3294dad35ca0e14a525ed48f18feae2e9af661f | refs/heads/master | 2023-02-23T20:04:30.316450 | 2021-02-01T16:06:03 | 2021-02-01T16:06:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import torch
import torch.nn as nn
from graphgallery.nn.init.pytorch import uniform, zeros
from ..get_activation import get_activation
class PropConvolution(nn.Module):
def __init__(self,
in_channels,
out_channels=1,
K=10,
use_bias=False,
... | [
"cnljt@outlook.com"
] | cnljt@outlook.com |
1ae07b33347f44bf3c60562333c44393cefdf74d | 28d5198225147b8600f95e131019a207ecb4b5f6 | /src/basic_graph_generator/analysis.py | ef2cbf1a8294180f35611470c974cfe0304ad718 | [] | no_license | YIWANG3/Movie-Network-18755 | 17cd52eca8b9280d4bc3e22d9ecfdf5198535ecc | fe355f15653ed224f5d3de95bd14679917f37805 | refs/heads/master | 2023-01-27T20:19:23.994568 | 2020-12-07T19:08:20 | 2020-12-07T19:08:20 | 301,864,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import pandas as pd
import networkx as nx
actors_edges = pd.read_csv('actor_edge.csv')
# actors_nodes = pd.read_csv('actor_nodes.csv')
#init Graph
G = nx.Graph()
G = nx.from_pandas_edgelist(actors_edges,"Source","Target")
#betweenness centrality
bet_centrality = nx.betweenness_centrality(G, k = 1000)
#small-world
s... | [
"liangkui.liu@west.cmu.edu"
] | liangkui.liu@west.cmu.edu |
1ab873bd85061445bdf41740d3ceb7fe395a363d | 2ca866397a281bdcb6e756b7874c4bb648f6091d | /Firecode.io/Find the Transpose of a Square Matrix/code.py | 729736f70ba724d60f44b57ce833f3eadbfb92be | [
"MIT"
] | permissive | therealmaxkim/Playground | 68588def5477607185e02ef3a0927791b3100e2a | 29c3513464bee07efaac1e41686bf391b52d475d | refs/heads/master | 2020-04-27T15:27:11.501967 | 2019-03-15T04:50:35 | 2019-03-15T04:50:35 | 174,446,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | '''
Questions
1. Can the matrix be empty?
2. By "square matrix", does that mean that the length of x and y length of matrix is the same?
3.
Observations
1. x and y length of matrix are the same
2. transposing is just rotating the matrix 90 degrees clockwise.
3. must be done in place - which means we will have to swa... | [
"noreply@github.com"
] | therealmaxkim.noreply@github.com |
d01b19407f11e44934d9ccff64821499dbe7fd5d | 8c9318f6d8a9ad688cb5129ded786c9045bf17a8 | /Conversion/AutoChangeJson/pylib/e_create_BattleTable.py | 294d1e420d19234f7e6af3d090c3e0610e98f723 | [] | no_license | MiYanLiang/GameCommon | b0ab92fc2f0bc4c0fc35eb783c3882cdcec36b37 | ab72e930bd5a798b5e9e2fa9c697d505603bfad4 | refs/heads/master | 2020-08-01T20:50:01.307345 | 2020-01-30T14:00:40 | 2020-01-30T14:00:40 | 211,109,723 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,480 | py | #encoding : utf-8
from e_base import *
def export_json(xls, fn):
f = create_file(fn)
if f != None:
reader = xls_reader.XLSReader()
cfgs = reader.GetSheetByIndex(xls, 14, 1)
if cfgs != None:
f.write("{\n")
s = "\t\"BattleTable\": [\n"
for ... | [
"39160433+MiYanLiang@users.noreply.github.com"
] | 39160433+MiYanLiang@users.noreply.github.com |
0180fb50fcc9a71e70b3ccce51b1092d8db51019 | 09ecd5f17ff36896c141db58563de3887d3f627d | /src/accounts/forms.py | ce6f9e63345af563ce7d020d907191aa2146429a | [] | no_license | samirthapa20/tweetme | df9b43bc8be4975343a54cceebba0f259ab6a6dd | 23d77575b85f8f6ff5d8993d3bbbf3898c1e6671 | refs/heads/master | 2021-05-23T15:32:18.136662 | 2020-09-09T14:18:37 | 2020-09-09T14:18:37 | 253,362,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | from django import forms
from django.contrib.auth import get_user_model
User = get_user_model()
class UserRegisterForm(forms.Form):
username = forms.CharField()
email = forms.EmailField()
password = forms.CharField(widget = forms.PasswordInput)
password2 = forms.CharField(widget= forms.PasswordInput)
def clean_... | [
"samirthapa021@gmail.com"
] | samirthapa021@gmail.com |
3b7127815c49008171e48bd701f138836b011151 | af0d79499d11eb66a8e6be94668dfb1743282e6f | /probemon.py | 6637919e55ddf1d4765b69e149e580e9e2e1c491 | [] | no_license | ericlee123/protecc | 9404f573b430aaea2cd64b4a87b635215d3c046c | 5d1796e1485df47c2a607db34835004ae6a1676c | refs/heads/master | 2021-09-03T20:27:13.139980 | 2018-01-11T19:25:47 | 2018-01-11T19:25:47 | 112,278,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | #!/usr/bin/python
import time
import datetime
import argparse
import netaddr
import sys
import logging
from scapy.all import *
from pprint import pprint
from logging.handlers import RotatingFileHandler
NAME = 'probemon'
DESCRIPTION = "a command line tool for logging 802.11 probe request frames"
DEBUG = False
def b... | [
"ericlee123@gmail.com"
] | ericlee123@gmail.com |
fc83b5353e23b602a769fcad442dc78a846bd780 | 0a4da495a82d50499c62da53b2b14b3f00435930 | /bachelor's degree thesis/code/undirected/training and validation/MergeVectorsDicts.py | ed0e4018f0e2fff281c0ed992865b2426bbcbe4c | [] | no_license | honkaLab/LinkPrediction | b45b87c48dce01182716e30d12d8ef21165a0376 | 56ae9eee3c976cf156b753d1f61aa559f20a521b | refs/heads/master | 2021-01-21T09:33:57.745217 | 2015-04-23T12:37:21 | 2015-04-23T12:37:21 | 34,158,007 | 0 | 0 | null | 2015-04-18T08:12:01 | 2015-04-18T08:12:00 | null | UTF-8 | Python | false | false | 867 | py |
import InitialData
import pickle
# ###merge 9####
# #filesNames, fullFilesNames = InitialData.FileWalker("./temp data/Vectors1970_1985/9")
# vectorsDict = {}
# for fullFileName in fullFilesNames:
# vectorDictFile = open(fullFileName)
# vectorDict = pickle.load(vectorDictFile)
# for i in vectorDict:
# if i not in... | [
"khuanghonka@gmail.com"
] | khuanghonka@gmail.com |
50e19834c25fc3ed009d2f1c8b61258d6d2a5c71 | 2b11437bdb92aff2e5d9298024ffe0d14bf29b2a | /Support/Python/run.py | 43c9b7409b5331c534100ba92f46363d7fdda021 | [] | no_license | LibreCrops/cdef | a1f15bec1354fc9a620cf1045ad337d0d55be169 | 6d7c4ea84f5312710075a27a26acee578a226e9c | refs/heads/master | 2020-04-09T21:25:17.329401 | 2018-02-03T05:35:44 | 2018-02-03T05:35:44 | 42,525,476 | 17 | 5 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/env python3
import sys
from pdbxml.session import Session
s = Session()
for i in sys.argv[1:]:
s.load(i)
s.write_header()
| [
"rectigu@gmail.com"
] | rectigu@gmail.com |
7fb4f71a9ccc64dc5c65d6bf095c6e49af56ef7a | 6820e74ec72ed67f6b84a071cef9cfbc9830ad74 | /plans/migrations/0008_auto_20150401_2155.py | dbca0bd39f59f421e402b58652c15b1cbd599a57 | [
"MIT"
] | permissive | AppforallHQ/f5 | 96c15eaac3d7acc64e48d6741f26d78c9ef0d8cd | 0a85a5516e15d278ce30d1f7f339398831974154 | refs/heads/master | 2020-06-30T17:00:46.646867 | 2016-11-21T11:41:59 | 2016-11-21T11:41:59 | 74,357,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import jsonfield.fields
import plans.models
class Migration(migrations.Migration):
dependencies = [
('plans', '0007_auto_20150330_0046'),
]
operations = [
migrations.CreateModel(
... | [
"hi@appforall.ir"
] | hi@appforall.ir |
daa48e468031bfb45e4ab8ba1f2c4bb486c569e9 | 23efd02cdfd781df6b7bd8f7c168094ca78621f4 | /tf_object_detection/Object_detection_video.py | 45dde01a4c93f123988187d0df85cd2235235188 | [] | no_license | chrisharrisengineer/blood_machine | ed15ae9031d537f571b0046d762349bb53c1b9c7 | 62a7d63de87f2563b5e3f4521cc5b7b5f7475ca1 | refs/heads/master | 2020-09-03T19:45:58.534976 | 2020-02-27T22:11:59 | 2020-02-27T22:11:59 | 219,550,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,888 | py | ######## Video Object Detection Using Tensorflow-trained Classifier #########
#
# Author: Evan Juras
# Date: 1/16/18
# Description:
# This program uses a TensorFlow-trained classifier to perform object detection.
# It loads the classifier uses it to perform object detection on a video.
# It draws boxes and scor... | [
"noreply@github.com"
] | chrisharrisengineer.noreply@github.com |
efae6ca9511c27c47979a9cd69c00bb20507e76c | 68ba4b270dd0e781395a0f2da8bc2ffd46694e4e | /dashboard/migrations/0008_remove_bookings_end_date.py | 058ca4e64684db00593bb18111f9d11b75a94d3e | [] | no_license | KENNOH/dhabiti-Constructors | 3a19e876fd6c099f9eb1278b183c1ea32c6c095c | 16c33641143e4a1f0c7736573ea95881334fffb8 | refs/heads/master | 2020-12-18T11:21:08.693199 | 2020-03-10T08:13:43 | 2020-03-10T08:13:43 | 235,361,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # Generated by Django 3.0.2 on 2020-02-17 12:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0007_bookings'),
]
operations = [
migrations.RemoveField(
model_name='bookings',
name='end_date',... | [
"Kennoh Muriithi"
] | Kennoh Muriithi |
dfe8824b3c6790359bf3a97fe707d836c42659c1 | d44cf6869d8285546862b224c9c12ec07bb4becb | /python/PE025.py | 90cd48cd4175380836b4faaacd9297c947e0a254 | [] | no_license | jaehaaheaj/ProjectEuler | 3c25ab0abb9bf11bd9a4f0f68271f0fad8978523 | 6d5b1f8d4c3ecf9cbeca1aaf9eca2d6fcdf912c1 | refs/heads/master | 2021-01-19T20:50:31.155252 | 2018-10-07T14:03:45 | 2018-10-07T14:03:45 | 88,565,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | index = 2
(f1, f2) = (1, 1)
target = 1000
while(len(str(f2))<target):
(f1, f2) = (f2, f1+f2)
index+=1
print(index) | [
"jaehaaheaj@gmail.com"
] | jaehaaheaj@gmail.com |
05732ad356ad1ac90bd6b8ad5e17dd86b79f84a3 | 8daf711629d2895e9bccd2216356cc6584485d91 | /venv/bin/f2py3 | 1ef32b5ed12c2d914e8c0b2a43a3f4a6d5dcd567 | [] | no_license | Jolium/OpenCV_Python | 518c6fc85c03b04b3a328c4ea373ae7db6ad3642 | eac213e6333e8538fece21a9fe17752b9fd9060f | refs/heads/master | 2022-09-25T17:41:40.904882 | 2020-06-04T17:57:31 | 2020-06-04T17:57:31 | 269,428,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/joao/PycharmProjects/OpenCV_Python/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"joao@example.com"
] | joao@example.com | |
04bb85ca1bdd439c34b6adc124e725772daf1bad | d22a2fbb9adb82644c5665242661bad172550552 | /venv/Scripts/easy_install-3.7-script.py | e05bf4e5e8b133bdefcaf94f129dcc7bb1a6c3db | [] | no_license | felipemanfrin/Python-Zero-ao-Zeno | e98ba3e4b974e88801b8bc947f461b125bc665b8 | d6d08aa17071f77170bbd105452b0d05586131c8 | refs/heads/master | 2022-07-29T19:38:41.729178 | 2020-05-25T01:02:18 | 2020-05-25T01:02:18 | 265,356,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | #!C:\Users\Felipe\PycharmProjects\666\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__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'(-script\.pyw?|\... | [
"felipemanfrin@gmail.com"
] | felipemanfrin@gmail.com |
16093e48e8ea6d2c734900b39e59e698fffa2edc | 29bec83fc600720533ad2bcf17fc90cd9ca385b7 | /0x06-python-classes/prueba_OOP.py | 19e79b242fb1d7fd13ef39f02007e7cc9e743a28 | [] | no_license | VictorZ94/holbertonschool-higher_level_programming | 73a7f504cde583f43f641e18e692e062610870a4 | ad512a1c76dc9b4c999a0ba2922c79f56206dd98 | refs/heads/master | 2023-03-25T04:38:12.708766 | 2021-03-24T01:08:47 | 2021-03-24T01:08:47 | 291,826,914 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!/usr/bin/python3
class coche():
largochasis = 250
anchochasis = 120
ruedas = 4
enmarcha = False
def arrancar(self):
self.enmarcha=True
def estado(self):
if (self.enmarcha):
return "El coche está en marcha"
else:
return "El coche está parado"
m... | [
"zrvictor@outlook.com"
] | zrvictor@outlook.com |
e481e895d5ff00e83038d323d64c822c1dabc1f8 | b84ed844e81757a27b00d2ac2a471617f130abff | /studyNotes/grammar/tuple-test.py | ad807912946e042a08d8a2092b196d294027b220 | [] | no_license | hurtnotbad/pythonStudy | 530e353dd7b3c6e02e5fd63bada95dd2442f94a6 | 19062fc006fac6b9f9cc638fcedad8bacca8433f | refs/heads/master | 2020-03-19T11:35:20.509148 | 2018-07-24T15:20:34 | 2018-07-24T15:20:34 | 136,463,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | """
元组(tuple):和数组很类似,区别在于:
1、元组的数据不能修改(类似于java枚举)
2、定义的时候用() 而列表用[]
例子:
info_tuple = ("ZhangSan", 18, 1.75)
使用场景:
1、 函数的 参数 或 返回值,可任意传入和返回多个数据
2、格式化字符串
3、让列表不可以修改,类似枚举
"""
def tuple_test(test):
if not test:
return
info_tuple = ("ZhangSan", 18, 1.75)
print(type(info_tuple))
print(info_tuple[2]... | [
"1181942512@qq.com"
] | 1181942512@qq.com |
2c6be602e4b5ffaada4af8308a8ad2a9193bfc78 | 382cb993cd97d8b4b59261b4179b76532678190a | /WindowsApplication/11Sep19_WinAppGrid.py | 70144ce529b686243b97136e3819351d02c60ae0 | [] | no_license | skumardotpython/JulyBatch | 4d0dd315a3532aa6c2970b64f6eede3cb1286138 | 42623fa58360b087fcca552013a6929339d9358f | refs/heads/master | 2022-10-25T12:05:12.476477 | 2019-09-13T03:00:23 | 2019-09-13T03:00:23 | 198,754,742 | 0 | 1 | null | 2022-10-03T15:21:13 | 2019-07-25T04:03:07 | Python | UTF-8 | Python | false | false | 315 | py | # !/usr/bin/python3
from tkinter import *
root = Tk( )
def Calculalte():
pass
e1 = Entry(root)
e1.pack
var = 0
for r in range(3):
for c in range(3):
var = var + 1
print(c, end=' ')
Button(root, border=1, text=str(var), command=Calculalte).grid(row=r, column=c)
root.mainloop() | [
"skumard30@yahoo.co.in"
] | skumard30@yahoo.co.in |
611712fc838ebdb37c0fba3d0011a518d63cb5ca | 48f3d3a9eedb747234aa32a32128679c7cd4cd5a | /fitenv/bin/pyrsa-sign | 74c5ac59d6436e90c392c90c45a4f6ca683712e0 | [] | no_license | WhiteLedAnn/MGPUFitTrack | 2352a74d546d65ad60ed28994e7446cb12eabdb8 | db44032ba3022c57530da8871b5b058e830941e7 | refs/heads/master | 2021-05-18T14:53:48.211561 | 2020-09-29T13:19:45 | 2020-09-29T13:19:45 | 251,286,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/home/wl/Projects/MGPUFitTrack/fitenv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import sign
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(sign())
| [
"nonameyetithink@mail.ru"
] | nonameyetithink@mail.ru | |
24a052014b0230933cb2040245f58f4c8c21cb35 | 1378937ff05a4353c71df49fea75f04bc1f70fc9 | /tests/test_shrink.py | f4eb7d61b06177d3802cb5f885f809ede71c5e4a | [
"BSD-3-Clause"
] | permissive | h-bryant/funcsim | a37c15aca88a17ac3c02f961db106393dc4b5f39 | 6f0ec2365e3ed6d9478e2f92e755cebafaf6528d | refs/heads/master | 2022-12-22T18:42:07.474869 | 2020-09-25T14:55:14 | 2020-09-25T14:55:14 | 113,094,901 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | import numpy as np
import sys
import os
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)),
"../"))
import shrinkage
def test_shrink():
targets = [shrinkage.target_a, shrinkage.target_b,
shrinkage.target_c, shrinkage.target_d,
shrink... | [
"h-bryant@tamu.edu"
] | h-bryant@tamu.edu |
44063120d777dd88864c0a6de49ff0d427fb3fb0 | f29c36c5795fae33bf9b1d32c6694331a6531bb5 | /w13_Main.py | ec8a70682a106a532369e14348570e93b8508ba2 | [] | no_license | cbg293/p2_201611115 | c366c0af838e566e225f8eb71b38ea49aff7239c | e3bdcfc3981d28059d2438e5a33cc2ed04652d9a | refs/heads/master | 2021-01-21T14:12:33.378036 | 2016-06-04T09:02:53 | 2016-06-04T09:02:53 | 54,975,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py |
# coding: utf-8
# In[1]:
def File():
try:
fin1=open('python.txt','a')
fin2=open('outputNum.txt','r')
for line in fin2:
fin1.write(line)
fin1.close()
fin2.close()
except Exception as e:
print e
# In[2]:
import turtle
wn=turtle.Screen()
t1=turtle.... | [
"cbg293@naver.com"
] | cbg293@naver.com |
0961a0b1331e9e7e09b2a6a22ba077513ecbaf9f | e53502f629fb04445d08a05273307933434a6791 | /app/models.py | a102a210317707a6ee2adac1978427f21c7cdde7 | [] | no_license | kamilsamaj/microblog | e0834135a4ecc140c2ac0bd5f6d9b9ec2475f693 | f60187c5dd526f9b3b37e0b89edcfd80c77d9d24 | refs/heads/master | 2020-04-17T14:54:42.669557 | 2019-02-18T21:41:55 | 2019-02-18T21:41:55 | 166,677,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,614 | py | from app import db, login
from datetime import datetime
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from hashlib import md5
# followers association table
followers = db.Table('followers',
db.Column('follower_id', db.Integer, db.Forei... | [
"kamil.samaj@accolade.com"
] | kamil.samaj@accolade.com |
41783475f6c5ea8a57e1088072cd1d5ac561a09d | 201c7cc46313bc00ac43be72dcfc83cd8ea579f2 | /python/ray/experimental/workflow/tests/conftest.py | 3635aa02a7f8045f1231f05401fde1229984348a | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | PAL-ML/ray | a975b07a1b18825fab87d7a5aa8690a5e2d50ff4 | 6d884f1442c271329829ff0bceae588f3cd49d7d | refs/heads/master | 2023-06-23T12:00:41.013114 | 2021-07-22T14:59:50 | 2021-07-22T14:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | import boto3
import pytest
from moto import mock_s3
from mock_server import * # noqa
from ray.experimental.workflow import storage
@pytest.fixture(scope="function")
def filesystem_storage():
# TODO: use tmp path once fixed the path issues
storage.set_global_storage(
storage.create_storage("/tmp/ray/w... | [
"noreply@github.com"
] | PAL-ML.noreply@github.com |
d77adb64bb20f92e58ed5875f77951bd2db36b07 | c76c7a6b46dbe5e7d650307687743928724e49f9 | /setup.py | 3ba968b00cf7fd7f439f5de147f05c9cfee2fecd | [] | no_license | AGhost-7/snipsnip | fcbda1dce60421764bbd29c36519eef634a63404 | 802d2875f9c16f4c13574fac4050cd7c934de290 | refs/heads/master | 2021-04-27T12:29:14.606943 | 2019-06-06T23:45:27 | 2019-06-06T23:45:27 | 122,420,256 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from setuptools import setup
setup(
name='snipsnip',
version='0.8',
description='Remote mac clipboard',
url='http://github.com/AGhost-7/snipsnip',
author='Jonathan Boudreau',
author_email='jonathan.boudreau.92@gmail.com',
license='MIT',
keywords=['clipboard'],
zip_safe=False,
in... | [
"jonathan.boudreau.92@gmail.com"
] | jonathan.boudreau.92@gmail.com |
4dac38843a9e85e0789d5d2c2c36cb7ac02e1f60 | 02839adf12b107962f44ac08f52448d261c59fcf | /modules/logic/wires_complicated.py | 2aa8b43f051e6eaa77603b28855a3f994f5ba77b | [
"MIT"
] | permissive | AngelOnFira/keep-botting-and-no-one-explodes | cd34416e36a231c808d4b18af986e4a1c93060df | 1d096de714dabe9e40c66cdec364101957caa1ca | refs/heads/master | 2022-04-28T05:35:12.508830 | 2020-04-30T19:21:49 | 2020-04-30T19:21:49 | 207,931,287 | 0 | 0 | MIT | 2020-04-30T19:21:50 | 2019-09-12T00:32:14 | Python | UTF-8 | Python | false | false | 1,693 | py | # primary attributes: colors
# secondary attributes: star, led
# tertiary attributes: 2+ batt, parallel, sn even
has_two_plus_batt = lambda **kwargs : kwargs['two_plus_batt']
has_parallel = lambda **kwargs : kwargs['parallel']
is_sn_even = lambda **kwargs : kwargs['sn_even']
is_true = ... | [
"wizcardforest@gmail.com"
] | wizcardforest@gmail.com |
b04357c78c9053445018acd984f13ce64032f783 | d5ea3aa5a9e342ff7b21ea13599c4475e892c003 | /wheresit/apps/items/migrations/0001_initial.py | ccc34c09c9b4e3edf1e1669e75b8fc1e228db475 | [] | no_license | matthewstevens/wheresit | 5e1fabae6eee5297ef4533aa2182db5d940ad667 | 4257ef3b13f0bd49ee5e125fb4680882fb4cdb6b | refs/heads/master | 2021-01-01T15:55:18.439608 | 2012-07-11T13:55:42 | 2012-07-11T13:55:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Item'
db.create_table('items_item', (
('id', self.gf('django.db.models.fields.Au... | [
"matthew.stevens@gmail.com"
] | matthew.stevens@gmail.com |
57faab3f28289f33f49f08a7a6f053607e1d1ba1 | 7ffcf7db715030ba0828ca97985c21dcb05b9750 | /app.py | a60fde5540cf32a70c372e6661edb08389995e01 | [] | no_license | 54microlong/USCholar | 98a35522708b2d89c70808ef7e2f1222a5e618a7 | 9c70e019faa2b175d8aaf7684984453baa0fa7bb | refs/heads/master | 2021-01-01T17:22:38.833194 | 2015-02-25T07:36:12 | 2015-02-25T07:36:12 | 31,302,218 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #coding:utf-8
import os
from USCholar import uscApp
## when deploy to heroku please comment this line
from config import *
if __name__ == "__main__":
uscApp.config.from_object(__name__)
# [Heroku]load DB environment from env
#app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']
uscApp.r... | [
"chenlong888@gmail.com"
] | chenlong888@gmail.com |
567713e54a8b7ca1a7d471366010f3aa3eb7088e | 728246fec461917951f5120043684ab1c69e597a | /Nand2tetris/07/vm_translator.py | caedf0e175b09d678b8e8cb37868261287e5c989 | [] | no_license | cxphoe/Introduction | ef7ea43c2b0f24a682c32e31c6abaf19f1fba01b | 5e27cb58aedaa2fab0ebe84d44240585d1d76a02 | refs/heads/master | 2021-09-11T00:54:57.536229 | 2018-04-05T05:34:57 | 2018-04-05T05:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | """The vm_translator module provides translate function to translate vm language
to hack language in another file."""
import os
from Parser import Parser
from CodeWriter import CodeWriter
from vm_definitions import *
def is_vm_file(filename):
return filename.endswith('.vm')
def retrive_files(path):
has_sys_i... | [
"562818991@qq.com"
] | 562818991@qq.com |
f291b36dfe1dc4721cca244d642a6d64163db8bb | 4553718880fe8ab3af86fba4a4fe6b410f438061 | /siteprofile/__init__.py | 22a03455a9e93c6c8debcd8b9192386fc94097b7 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pombredanne/fiee-dorsale | 8b8d565faebd79837a1eddef3472d08e3e7fbd69 | bca22cb5004643ad1919e126871c558c827dd0b6 | refs/heads/master | 2021-01-23T21:53:56.434152 | 2012-04-23T19:44:25 | 2012-04-23T19:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.utils.translation import ugettext_lazy as _
verbose_name = _(u'Site Profile')
verbose_name_plural = _(u'Site Profiles')
| [
"hraban@fiee.net"
] | hraban@fiee.net |
be247b21442bf84509ccf1b97ee94c774aba4625 | e42e1973b5f15a4ddd45cc0edc2e4f0e23575e71 | /0531.py | fbc134431d4e10b076ffcd2f1d2a5b4bcf0d53f3 | [] | no_license | ChuckData/Coding_the_Matrix | 4cd7a4bc7de1b50fbbaa55d247097e95beeaf593 | eda969dd943cadd2abac365c71e8bc3e521a509b | refs/heads/master | 2020-04-02T06:32:16.659249 | 2016-07-18T21:11:27 | 2016-07-18T21:11:27 | 62,667,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | L = ['A','B','C']
keylist = ['a','b','c']
list2dict = {k:l for k, l in zip(keylist, L)}
print(list2dict) | [
"noreply@github.com"
] | ChuckData.noreply@github.com |
5dc5a139e36ad7492c36c661704cc142e8eb14e8 | 68d685257d353c84cc55de21dd0606f65c798484 | /crawler/crawlers/rieltor_ua/locators/flats_list_locators.py | 3d3a30e786fb00f52f5ac72b559b5c3ef819bb40 | [] | no_license | Justk1dd1ng/Estify | 310229c8cd93e1ff790e175e4ba3092d035bebec | 8164ff460d9175d2ed7771d9d71620b1c9ab4ec1 | refs/heads/master | 2023-06-30T05:22:57.236460 | 2021-08-03T11:53:30 | 2021-08-03T11:53:30 | 384,156,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | from crawlers.abstract import FlatsListLocators
class RieltorFlatsListLocators(FlatsListLocators):
FLAT = 'div.catalog-item'
| [
"tantiarella@gmail.com"
] | tantiarella@gmail.com |
4ea263d263d66803cb0cd23c94ec021162f2117d | 329c20b232f562e63d19318adcde483cc14d3afb | /03_poo_python/exercice/06_ex_heritage_animalerie/Exo06_Refuge/program.py | 04828ca2cae44e13ec671a0d3d1e3e5822d0e24e | [] | no_license | Nicolas1936/bstorm_ai | 459103f2f94e1774a055d9582990d23008e83211 | 7fcc473d7200fd5abaa20e833ee406b734e70f6f | refs/heads/master | 2023-06-20T02:56:30.592184 | 2021-07-17T05:49:11 | 2021-07-17T05:49:11 | 363,119,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | import datetime
from models.refuge import Refuge
from models.chat import Chat
from models.chien import Chien
r = Refuge("AnimalBel", 20, "Rue de bruxelles", 42, "Namur", 5000)
le_chat_1 = Chat("LeChat", 5, 0.3, "F", datetime.date(2017, 1, 1), True, "Calin")
le_chat_2 = Chat("Garfield", 10, 0.7, "M", datetime.... | [
"blanchard.nicolas@hotmail.com"
] | blanchard.nicolas@hotmail.com |
87d2f76d0c0ee7029fec4859b4f68ebf14088ef2 | 8c931730efec158421dc4f1bf70e273d7e8dfc51 | /code/tflearn/tflearn/estimators/base.py | 919c0ff541ef9de04057663876e298ac385290bd | [
"MIT"
] | permissive | SunnyMarkLiu/FRU | 69bb74b2b35566629a65a74cc6214121ffbd8bc4 | 010b3994f2758a7d06dec39061fce357cda1a10d | refs/heads/master | 2020-03-23T19:22:18.496073 | 2018-07-19T21:37:12 | 2018-07-19T21:37:12 | 141,972,722 | 1 | 0 | MIT | 2018-07-23T06:42:55 | 2018-07-23T06:42:55 | null | UTF-8 | Python | false | false | 4,770 | py | from __future__ import division, print_function, absolute_import
import os
import tensorflow as tf
from tensorflow.python.ops import resources
from ..utils import validate_func
class GraphBranch(object):
""" A graph branch class used for building part of an Estimator graph.
"""
def __init__(self, input_... | [
"yibolin@utexas.edu"
] | yibolin@utexas.edu |
bb5630d590dfe6c1e987d8698e11bff0633d156d | 7a803cd0c16ff676e3d7ecc33ec5e7af2c42d026 | /hello.py | f3123c66e088b6ec25c1b96a658855cae387ee88 | [] | no_license | emetowinner/VGG-Internship-Assignments- | ddc798da4c91572455d4f69b0a0524def13be268 | 67fa5b345b0981dd43694b72d5fc61f45d431c19 | refs/heads/master | 2020-12-15T03:40:37.321894 | 2020-03-05T00:46:39 | 2020-03-05T00:46:39 | 234,981,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #Learning Integer Literals
birth_month = input('Enter birth month: ')
if type(birth_month) == str:
print('Not an integer')
if type(birth_month) != int:
print('Converting to int now.........')
int(birth_month)
print('....................')
print('Now is of int type') | [
"emetowinner@gmail.com"
] | emetowinner@gmail.com |
6230181b39936aa1fefe1fa09f2dd52d16319752 | ed5c909afab4715d2b5f6af3c485511b8e2da03e | /venv/bin/pip3 | 4c7a8667f9ab812e075ebe9045394289356ff54e | [] | no_license | Jashwanth-Gowda-R/django_polls_app | 3b8b4761f051bc214e453938a0dfe1d8914ad74f | 9d9d3323abc4bc688ad350ab1cf65b019e8ffc37 | refs/heads/master | 2022-12-27T14:03:08.501097 | 2020-10-19T21:18:31 | 2020-10-19T21:18:31 | 303,642,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | #!/Users/jashwanth/PycharmProjects/djangoProjects/FirstProject/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$',... | [
"jashwanth.go@gmail.com"
] | jashwanth.go@gmail.com | |
c2fedc67cd4a6be00f098dfd061d67b0bab3d711 | fedabeac2d3460c6a0c8a6ddaf5ed50ebc947ffb | /tests/test_get_method.py | a319d001792e48ddb15f59d14eb7231684d6594e | [] | no_license | dnovichkov/FiddlerSessionReplay | cdda25a043e943c22b5fa74e96c751c425a69635 | 46a05290bdd1c58376611870592aea51e5d2c765 | refs/heads/master | 2023-05-27T09:39:38.746714 | 2023-04-18T06:49:12 | 2023-04-18T06:49:12 | 266,951,666 | 0 | 0 | null | 2023-05-22T23:28:51 | 2020-05-26T05:22:46 | Python | UTF-8 | Python | false | false | 371 | py | from fiddler_session_replay.data_extracters import get_method
def test_get_method():
method = get_method('GET url POST')
assert method == 'GET'
method = get_method('GET url ver')
assert method == 'GET'
method = get_method('POST smth else')
assert method == 'POST'
method = get_method('So... | [
"dmitriy.novichkov@gmail.com"
] | dmitriy.novichkov@gmail.com |
373176a61e53376daeb20dc28693612b50a51e2b | cbafa8e6b9fb98beb86effbbf68fd06a8951ad2d | /html_downloader.py | 2ead61d328f3574c3b8ea147cd93ee841f7c94c6 | [] | no_license | ym754870370/Python-crawler | f6550e3ded4181c35ee59eb727464f8c0b2cfc7d | 6b9553b02534e96d30a1320df4babf1cfb365346 | refs/heads/master | 2021-01-13T12:34:29.851447 | 2017-01-15T09:36:57 | 2017-01-15T09:36:57 | 72,544,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | #coding: utf8
import urllib2
class HtmlDownloader(object):
def download(self, url):
if url is None:
return None
response = urllib2.urlopen(url)
if response.getcode() !== 200
return None
return response.read()
| [
"wawa754870370@qq.com"
] | wawa754870370@qq.com |
e6549a914956babd4616fd1c41f0ff0a74a2d029 | 6d8ba0ccf79911b91b5288aae4a3e26ccc4c8ba9 | /ui/uartsearch_ui.py | ab5d3dbcb11ef6613270ccecae0e0e104a08db33 | [] | no_license | McHummer1/qt-com-term-sample | 94ef6b21a870f20a24d38dd26a7392048c037a49 | 46ac62e0770ce48d23105fb939a6728293b47bcb | refs/heads/master | 2021-01-03T10:42:54.047541 | 2020-02-12T15:25:50 | 2020-02-12T15:25:50 | 240,045,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'uartsearch.ui'
#
# Created by: PyQt5 UI code generator 5.14.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow)... | [
"noreply@github.com"
] | McHummer1.noreply@github.com |
f41efd65e95eea56a6234df8008ffccd64907272 | 49763096a59300e8b796a8873e3166c711db6e5a | /covid/bin/pip3 | 6f6b0c94401bbdbd45fb00e61ba98e731b8b927e | [] | no_license | sulik011/tg_bot_covid | 1fab4b59392fe3231a71216494e81a8d87defcd3 | 1b505086c12a40eebe5ec1fe8e0f996f730b73bc | refs/heads/master | 2022-12-08T12:48:05.714161 | 2020-09-05T08:29:48 | 2020-09-05T08:29:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/sultan/tg_bot/covid/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"myrzakanovsultan0@gmail.com"
] | myrzakanovsultan0@gmail.com | |
b24b30c78b67e40110375021b6898570d97b0cf0 | aa32e247ee53706de91bf0c3aa98cc7af5c07c48 | /WPlusJets/8TeV/WJetsAnalysis/TreeMaker/NTupleAnalyzer.py | 6bc2c08e61284f5d6d7f27713a1313a79857934a | [] | no_license | darinbaumgartel/usercode | ddff50ce21fc3a40519da1883e337dd41e2ef07c | 730dff45371d6695446146b454d7b82ae7c49e53 | refs/heads/master | 2021-01-02T23:07:15.163446 | 2013-10-15T15:49:08 | 2013-10-15T15:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,278 | py | #!/usr/bin/python
from datetime import datetime
import sys
sys.argv.append( '-b True' )
from ROOT import *
import array
import math
from optparse import OptionParser
startTime = datetime.now()
tRand = TRandom3()
from random import randint
import os
######################################################################... | [
""
] | |
840a5373373a5c2a4d1b1753bc46c5cc17f1a2c9 | 042bdb1872d8cfe6bac371858073b699eed4dbfd | /Menu2Recipe/lib/attribute.py | 72b322204c21ae95ab52fdb451a06f8a3b03833b | [] | no_license | denglixi/Menu2Recipe | f2abdea4b2f18745bbe085e9780a19cc63757c21 | 7c60d452bc6b3d8d0d05f97b1e8ce69b817d55b9 | refs/heads/master | 2020-08-03T07:44:56.048734 | 2020-02-26T06:17:14 | 2020-02-26T06:17:14 | 211,673,029 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | import json
import re
import pandas as pd
def read_attribute_from_csv(attribute_path):
attribute_data = pd.read_csv(attribute_path, error_bad_lines=False, encoding='utf-8')
attribute_data = attribute_data[:6000]
# id, source, food name, entity, shape, taste, cooking method, other, type
at... | [
"denglixi.cs@gmail.com"
] | denglixi.cs@gmail.com |
6fe1fbf9bd37922b103cd568ec4742b8c96c13e6 | b36440e3a824e13a1fb02c97bed9f3cd26e7bcac | /Цикл while/python while/A.py | 82ba090b84749962fa2b30f6be046a3134d6f487 | [] | no_license | StaroKep/Python | 6f0af02a18a91bc2d0adaeb66e775eb0de329480 | 9c387bfacb0c80545a306edced4a0568b4a51068 | refs/heads/master | 2021-05-13T17:12:10.838734 | 2020-05-09T07:49:02 | 2020-05-09T07:49:02 | 116,814,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | n = int(input())
i = 1
while(i**2 <= n):
print(i**2, end=' ')
i += 1
| [
"kirill.eremins@gmail.com"
] | kirill.eremins@gmail.com |
a09763f482d6d5084cb5c84d19ff3eb0a1ff88e6 | 98b99b048e678b713bca6c132a98817672c3a7c6 | /ex13.py | af403c6054a052ee86abe2ad740a6a2395488c53 | [] | no_license | jfletcher/lpthw | 13374fe5561d5bac13c3cbe8b145c501bc875619 | 1a9494a799c178d91b34d083b7d9690957d515da | refs/heads/master | 2021-03-12T23:43:33.184415 | 2014-10-10T14:13:02 | 2014-10-10T14:13:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from sys import argv
script, dogs, cats, birds = argv
print "The script is called:", script
print "Your first variable is called:", dogs
print "Your second variable is called:", cats
print "Your third variable is called:", birds | [
"jamiemfletcher@gmail.com"
] | jamiemfletcher@gmail.com |
983ccfa9baf0620bdd9be3d518892d35ae0a5317 | 358de8b4d12a57405e47826547052bc9afd804f8 | /common/__init__.py | d0caaf7b31cd279f73708f36d0bb9622969bc7ec | [] | no_license | flagrama/guessing-game | bae1071b3aa0116f64daf7519f470294863294d5 | 6613776c878a6266bf7be5979dfd87e87701ab05 | refs/heads/dev | 2022-02-26T07:18:01.138238 | 2019-04-19T05:07:45 | 2019-04-19T05:07:45 | 168,276,745 | 0 | 0 | null | 2019-10-21T18:40:00 | 2019-01-30T04:01:45 | Python | UTF-8 | Python | false | false | 117 | py | from . import listeners
SubscriptionListener = listeners.SubscriptionListener
ListListener = listeners.ListListener
| [
"v.cunningham@flagrama.com"
] | v.cunningham@flagrama.com |
80942bf10851ef7ec9d1f1bd97721c31500f2bfd | e8bdb331b2b753beeaf7ef973fc5eafa0e36b3d3 | /python/snippet.py | 2646ce0fd2b8882489659382e46b5fe900272f34 | [] | no_license | ZiminPark/CodeSnippet | 3a3bb1a390b4fb588b0f0d457cdd8b1aa6c7694b | 6ed1813084ee21c80886009920823f1bff7670d1 | refs/heads/main | 2023-02-17T22:22:42.092981 | 2021-01-22T00:57:24 | 2021-01-22T00:57:24 | 304,079,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import os
from random import random
import numpy as np
def set_python_seed(seed: int):
random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)
np.random.seed(seed)
| [
"48933016+ZiminPark@users.noreply.github.com"
] | 48933016+ZiminPark@users.noreply.github.com |
db7981da24fec5ec3aad85b65db3fefcb9c98ca8 | 6b81d527f1d92cec060f393d33d79381081e4837 | /pythonchallenge05.py | df22bedf2c49628516c4fef300abfdfe33eb5540 | [] | no_license | jlyu/Pythonchallenge | 31491576611e693bfaa85081092efab8799bfcf0 | 09f51aeafd80cb6de82bc70aab813b5a4ec03e58 | refs/heads/master | 2020-04-20T12:02:41.999067 | 2012-04-19T06:28:59 | 2012-04-19T06:28:59 | 4,070,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import cPickle as p
content = p.load(file('banner.p'))
f=file('result.txt','w')
for line in content:
f.write(''.join(map(lambda x:x[0]*x[1], line))+'\r\n')
f.close()
| [
"chain119@ymail.com"
] | chain119@ymail.com |
7f36dfe12b290d0c7e0a59226859e5c910bd361b | caa16b9e3aa58e75a1885b540d7ea7979bad0920 | /Lesson2/task_2_substring.py | 3a477e12d9e0563a9e1917e9511a6847bc7f6954 | [
"MIT"
] | permissive | LPetrova/Python | 91f239b4947cce2b6591191b664ba966045dec5a | 0be5939ecfc5f0fecce33fee314bfe534aed8efd | refs/heads/master | 2020-12-24T20:32:58.960177 | 2016-05-23T08:37:35 | 2016-05-23T08:37:35 | 59,465,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | first_text = input('Enter first string: ')
second_text = input('Enter second string: ')
find_text = first_text.find(second_text)
if find_text == -1:
print(first_text)
else:
print(first_text[find_text + len(second_text):])
| [
"lidiq880908@gmail.com"
] | lidiq880908@gmail.com |
316c071aa0f42d4c8a145727f39807d9c5472d9f | f7bf605fc61fb32fee6f1bcb876412528cabdfe2 | /models/helper.py | 43c1fc3ec96aa7735d208658eff52a39460617ce | [] | no_license | dameyerdave/mongo_change_tracker | ee1519b537a21c09848864dcca5b478cd84aaaf0 | e4dd00f3f5810dbc7590efc05fb365f4ebc5c959 | refs/heads/master | 2023-05-30T15:37:51.038932 | 2021-06-01T13:52:59 | 2021-06-01T13:52:59 | 315,612,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | def flatten_json(y):
out = {}
def flatten(x, name=''):
if type(x) is dict:
for a in x:
flatten(x[a], name + a + '.')
elif type(x) is list:
i = 0
for a in x:
flatten(a, name + str(i) + '.')
i += 1
else:
... | [
"dameyerdave@gmail.com"
] | dameyerdave@gmail.com |
39f10dc8fd74b3886a2d525993e7c0f9b3061dbd | 697e762b65b091cdc95250bbb638b20fdd8f542c | /greysqale/pool.py | 97ddbe05844498579be51adc922dc03b07659723 | [] | no_license | clueless-skywatcher/greysqale | 6c6df519b1ff5a8551f9a9338bd30351270dead9 | cb4bfff108505dd71598cd38e0ba7359168ed4d5 | refs/heads/main | 2023-07-01T21:10:48.608869 | 2021-07-22T05:40:22 | 2021-07-22T05:40:22 | 387,848,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | from psycopg2.pool import SimpleConnectionPool, ThreadedConnectionPool
class GSQLPoolmaker:
def __init__(self, minconn, maxconn, db, user, password, host, threaded = False) -> None:
self.minconn = minconn
self.maxconn = maxconn
self.db = db
self.user = user
self.password = p... | [
"somichat@gmail.com"
] | somichat@gmail.com |
4aeb41f78d945aca9081a90c0cbaee43ac0f7f36 | b688fe5c3b565067bd84a7b6d0b9d00971a0bfa0 | /wow_python/wow/src/wow.py | b7e6c8d16c8a64c1fd664a4aaa9ce28f431dbfa7 | [] | no_license | timotheeguerin/archive | d81e830b688d7e690d18a744053ef9afe2afc799 | 0dbe1a734d499b52d21955d2fc342d1cc15693ae | refs/heads/master | 2021-05-28T02:20:45.391697 | 2014-06-19T21:41:15 | 2014-06-19T21:41:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | from src.action.build.builder import Builder
from src.action.push.uploader import Uploader
from src.action.extract.extractor import Extractor
from src.action.uninstall.uninstaller import Uninstaller
class Wow:
options = {}
def run(self, options):
self.options = options
if options['extract']:
... | [
"timothee.guerin@outlook.com"
] | timothee.guerin@outlook.com |
156a46d0724c96b05f4385c7cfff71c90aef2f0d | 374c4e05e61fc5af136705e06e219c93d131acb9 | /Undergrad/CK0154 - SISTEMAS DISTRIBUÍDOS/SocketVsMQTT/Sockets/client_sensors.py | b04d977f3da10761d392ff3f3445ee2f9e222f40 | [] | no_license | TioMinho/UFC_Courses | af8b3ad1f9ea79f7ff2ff5ce93321436b05e269b | 66f8c6f068b0e1b9612d7984db1da3cdb9fc01c0 | refs/heads/master | 2020-07-12T05:56:11.825637 | 2020-02-09T04:31:09 | 2020-02-09T04:31:09 | 204,736,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from equips.Sensor import Sensor
from random import random, uniform
from time import sleep
sensors = []
sensors.append(Sensor("Temperatura", "Sala", 24.0, "C", [-99,99], "127.0.0.1", 33000))
sensors.append(Sensor("Temperatura", "Sala", 24.0, "C", [-99,99], "127.0.0.1", 3... | [
"minhotmog@gmail.com"
] | minhotmog@gmail.com |
7abf3ba062755a3465f207dc24afbd08d30c8e91 | c00138a1e147aaec6047b763dd9747f54575b7ee | /config.py | 0d308794f842b81c6f9a972a3f662d164f064f09 | [] | no_license | hjalmar99/review-site | 50bf49b331b278780fd58b57ecc5d7bab64f1df6 | b2a88ce4e7c3965a0c10b8b69dadb0cff6849556 | refs/heads/master | 2021-01-24T20:40:12.614920 | 2018-05-25T13:19:30 | 2018-05-25T13:19:30 | 123,255,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config():
SECRET_KEY = os.environ.get('SECRET_KEY') or 'very hard to guess string'
SQLALCHEMY_TRACK_MODIFICATIONS = False
@staticmethod
def init_app(app):
pass
class DevelopmentConfig(Config):
DEBUG = True
SQLA... | [
"hjalmarniemi@hotmail.com"
] | hjalmarniemi@hotmail.com |
0a94b29872442b7ac0be1a53efbe3f54e5eb093c | 0220a954c8d85532cb8a1e3e010760fd3ce3fc3f | /A3-COVID19-Tracker/src/config.py | cf6eff99b908004e2f1a090706db72907d58d236 | [] | no_license | pchen2134/ECE1779-Cloud-Computing | 1abd530467ca0f75505ac680fbb58654aa17be9e | cb1fcad277f16b29d010d4ff0a9f98d60fec25b1 | refs/heads/master | 2022-12-08T00:31:38.577376 | 2020-08-26T01:15:40 | 2020-08-26T01:15:40 | 290,349,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | SECRET_KEY = 'A3'
COUNTRY_STAT_URL = 'https://corona.lmao.ninja/countries?sort=country'
GLOBAL_STAT_URL = 'https://corona.lmao.ninja/v2/all'
MAPBOX_TOKEN = 'pk.eyJ1IjoicGNoZW5nMTEiLCJhIjoiY2s4d2lpMDE0MHVsbzNlcWhvaTUwbWJvaCJ9.EokT9cbv_067a6-jMCUO4w' | [
"noreply@github.com"
] | pchen2134.noreply@github.com |
7de09a9222326952cb90dafda60f11d2ddd3059b | 6dbdf2fba718f909116e5df14c6681cf3b7caa4f | /src/predict/Gradient_Boosting_Regressor.py | 41d9c94cba95f6119b5e294c36b4e366bd29c104 | [] | no_license | abtpst/Home-Depot | fd30999ae4154f3d92803c6833679e19e5b1fc47 | 326af73d6fe0289bde4b6cc73342882b0615b02a | refs/heads/master | 2021-01-18T23:59:25.953140 | 2016-11-17T16:52:51 | 2016-11-17T16:52:51 | 72,806,177 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | '''
Created on Oct 31, 2016
@author: abhijit.tomar
'''
import warnings
warnings.filterwarnings('ignore')
import time
import pandas as pd
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.metrics import make_scorer
from sklearn import grid_search
import random
random.seed(2016)
import Helper_Tools
im... | [
"abhijit.tomar@Abhijits-MacBook-Pro.local"
] | abhijit.tomar@Abhijits-MacBook-Pro.local |
24728b5f65466078cfed81969e8b513e5db0886a | 0f94ebbee84cda7e8f87c2369ee48280dc144752 | /Algorithm/spsict_test/test5.py | 19c8baec19b2e3734a1f3ca1c4ff5e974bd0dbce | [
"MIT"
] | permissive | zionhan/TIL | 8def3247a8534bc5cb9e01bf1f793ad1a115bf5d | 2b74bf3f977ead3432bde64e9826f505af58de26 | refs/heads/master | 2020-09-01T10:22:36.341420 | 2020-01-10T06:39:31 | 2020-01-10T06:39:31 | 218,939,145 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | def solution( participant, completion ):
answer = ""
dic_com = {}
for name in completion :
if( name in dic_com ) :
dic_com[name] +=1
else :
dic_com[name] = 1
for name in participant :
if( name not in dic_com or dic_com[name] == 0 ) :
... | [
"zionhan0708@gmail.com"
] | zionhan0708@gmail.com |
db90f94cd66581b090cd255f3e2bded1ea8a0beb | 5d3b2d500ebad108d8f340fb08beee597ec31133 | /details.py | 71c2e1dc1a4b165d202ea564c6e4a0b8041eeb1f | [] | no_license | chrisjpurdy/scalping_bot | d7e9948e16a1b787ce44aeed16e8f8bbc93bfcc9 | bd02bb6c2b978fa15a53b59946a06abab56c39b6 | refs/heads/main | 2023-04-27T06:09:29.861310 | 2021-05-12T16:16:11 | 2021-05-12T16:16:11 | 366,775,585 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # Fill these with IG developer details
IG_USERNAME = ""
IG_API_KEY = ""
IG_PASSWORD = "" | [
"psycjpu@exmail.nottingham.ac.uk"
] | psycjpu@exmail.nottingham.ac.uk |
df3d824b534e4d65e2aea4874bd8c57c0fa1cddf | 28739dd69d94f676a106404135cdd87e72fd1df7 | /LeetCode/151_Reverse_Words_in_a_String.py | 26b584cb372db94a5c61366ba6bc37ce9cf75db0 | [] | no_license | HappyRocky/pythonAI | 74962bbf7e88b0f968214062ea5de8bc79d2c158 | a1e624f0afc24ea5f159fa66fed178aa61bb0179 | refs/heads/master | 2022-12-09T15:03:02.426104 | 2020-10-29T01:56:47 | 2020-10-29T01:56:47 | 115,279,044 | 2 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,752 | py | # -*- coding: utf-8 -*-
"""
Given an input string, reverse the string word by word.
Note:
A word is defined as a sequence of non-space characters.
Input string may contain leading or trailing spaces. However, your reversed string should not contain leading or trailing spaces.
You need to reduce multiple spaces between... | [
"gongyanshang1@jd.com"
] | gongyanshang1@jd.com |
f9a6eabc73126f9743000ab270f10142912b7210 | e5e3f0609704b2eba76648d7e51106f2a3c9aa53 | /tests/test_assert_remover.py | 1a1ee0134588c8c61d2d77dea9e359028f150462 | [] | no_license | leonardt/ast_tools | 43aca6e6f849f028397d861991e532b52a8c664a | 3cf9151463db286d7ec16de1ba73062625f5045d | refs/heads/master | 2022-06-20T07:19:25.225353 | 2022-06-14T20:31:42 | 2022-06-14T20:31:42 | 198,655,150 | 17 | 7 | null | 2023-09-13T22:24:35 | 2019-07-24T14:46:57 | Python | UTF-8 | Python | false | false | 418 | py | from ast_tools.passes import apply_passes, remove_asserts
import inspect
def test_remove_asserts():
@apply_passes([remove_asserts()])
def foo():
if True:
assert False
for i in range(10):
assert i == 0
assert name_error
foo()
assert inspect.getsource(foo... | [
"donovick@cs.stanford.edu"
] | donovick@cs.stanford.edu |
68d80aabd964ecc0c03b3c58dbb4409ea535aea0 | 9381d2a25adac95fab9fc4b8015aadd6c7bed6ca | /ITP1/8_A.py | cf8098d7b4993f62b0cc1f7fe90d16e436e1b142 | [] | no_license | kazuma104/AOJ | e3ca14bd31167656bcd203d4f92a43fd4045434c | d91cc3313cbfa575928787677e5ed6be63aa8acf | refs/heads/master | 2023-03-20T22:16:22.764351 | 2021-03-18T10:38:08 | 2021-03-18T10:38:08 | 262,047,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | def solve():
S = input()
T = ""
for i in range(len(S)):
if S[i] >= 'a':
T += S[i].upper()
else:
T += S[i].lower()
print(T)
if __name__ == '__main__':
solve() | [
"kazuma@info.nara-k.ac.jp"
] | kazuma@info.nara-k.ac.jp |
ee9de5bfd33d645b63200dc5993c74631349a6e6 | 62be73d655965905202fd859131ebe3effd9c823 | /onewireMonitor_py3.py | 4aa09fbd466b9e4090872a24156a47d44c03897a | [] | no_license | SkullKill/onewireMonitor | 3b930bba2d2b6796100b86a490e398db90b93000 | c763207a679483b77069d24e78cd94081970f913 | refs/heads/master | 2020-07-17T08:08:10.654482 | 2019-09-03T03:58:57 | 2019-09-03T03:58:57 | 205,980,572 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,657 | py | #!/usr/bin/python3
#########################################################################################
#
# oneWireMonitor
#
# Written by Simon Kong for the Raspberry Pi
# V1.0 03/09/2019
#
# Monitor onewire temp directory and hard reset power to the DS18B20 if folder is not present.
import signal
import RPi.GPI... | [
"noreply@github.com"
] | SkullKill.noreply@github.com |
755c8410856fd9a634ed73e87e50ec135313c22b | 1f3bed0bb480a7d163dab73f1d315741ecbc1072 | /vtkplotter_examples/pyplot/plot7_stream.py | 04cb003af2b8799fd539ccebed6d1317312814c5 | [
"MIT"
] | permissive | ismarou/vtkplotter-examples | 1ce78197182da7496b016b27f1d5eb524c49cac6 | 1eefcc026be169ab7a77a5bce6dec8044c33b554 | refs/heads/master | 2021-03-11T18:43:22.313457 | 2020-03-03T22:11:25 | 2020-03-03T22:11:25 | 246,551,341 | 4 | 0 | null | 2020-03-11T11:18:48 | 2020-03-11T11:18:47 | null | UTF-8 | Python | false | false | 672 | py | """Plot streamlines of the 2D field:
u(x,y) = -1 - x^2 + y
v(x,y) = 1 + x - y^2
"""
from vtkplotter import *
import numpy as np
# a grid with a vector field (U,V):
X, Y = np.mgrid[-5:5 :15j, -4:4 :15j]
U = -1 - X**2 + Y
V = 1 + X - Y**2
# optionally, pick some random points as seeds:
prob_pts = np.random.rand(... | [
"marco.musy@gmail.com"
] | marco.musy@gmail.com |
fcdb40fc418ba887744f4884cf220c01f70a7fe4 | 0a1175e7c117161be37332f5377eb3cbb9704d92 | /tests/test_args.py | fadd6d50df1c4cc86259f470d65909da899d3b22 | [
"BSD-2-Clause"
] | permissive | charnley/rmsd | 3897276339f32f59557852d76ee14646e535816e | dcca78e7abb4ab605871074044ceb0ae31ba9409 | refs/heads/master | 2023-04-08T23:23:44.450248 | 2023-01-06T17:03:02 | 2023-01-06T17:03:02 | 9,659,218 | 432 | 133 | BSD-2-Clause | 2023-01-06T17:01:22 | 2013-04-24T22:46:14 | Python | UTF-8 | Python | false | false | 2,096 | py | import pytest
from rmsd import calculate_rmsd
def test_formats() -> None:
args_ = "filename.xyz.gz filename2.xyz.gz".split()
args = calculate_rmsd.parse_arguments(args_)
assert args.format_is_gzip
def test_legal_arguments() -> None:
args_ = "--rotation kabsch --ignore-hydrogen FILE_A FILE_B".spl... | [
"noreply@github.com"
] | charnley.noreply@github.com |
7c945592d39eb2f6680b846f93d8f8921188613c | 0ed9a8eef1d12587d596ec53842540063b58a7ec | /cloudrail/knowledge/rules/rules_loader.py | 443b78c547b07c45631f401fffc28e2ebc664574 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cbc506/cloudrail-knowledge | 8611faa10a3bf195f277b81622e2590dbcc60da4 | 7b5c9030575f512b9c230eed1a93f568d8663708 | refs/heads/main | 2023-08-02T08:36:22.051695 | 2021-09-13T15:23:33 | 2021-09-13T15:24:26 | 390,127,361 | 0 | 0 | MIT | 2021-07-27T21:08:06 | 2021-07-27T21:08:06 | null | UTF-8 | Python | false | false | 1,710 | py | import functools
from typing import Dict, Optional
from cloudrail.knowledge.context.cloud_provider import CloudProvider
from cloudrail.knowledge.exceptions import UnsupportedCloudProviderException
from cloudrail.knowledge.rules.base_rule import BaseRule
from cloudrail.knowledge.rules.aws_rules_loader import AwsRulesL... | [
"ori.bar.emet@gmail.com"
] | ori.bar.emet@gmail.com |
5b13e1e596d6f5f2c2723a35aa5e5af013c3fe2c | 6205c3d3d6eb47d3b067dcca5d2e6a785a53cce4 | /handlers/Fork_of_Stops_or_Numbers.py | 7a2c9cbeae4e69b27acb6c8934533e1304caa1c7 | [] | no_license | Neferpitou1337/BusSheduleTelegram | fa538e958309f574a516e139dd42163a3dbe8125 | 49a78e92d9934ec1ae2f8a3cd95702bcf802fbd0 | refs/heads/master | 2022-12-20T01:49:07.767453 | 2020-10-18T13:32:50 | 2020-10-18T13:32:50 | 292,309,073 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | import hashlib
import logging
from telebot import types
import RefreshDB
import etc
import userTableWorker
from etc import bot
"""
Fork
"""
# пришлось делать функцию здесь потому что питон выдавал ошибку насчет рекрсивного импорта с backresetreplybutton
def GetBackResetMarkup():
markup = types.ReplyKeyboard... | [
"isachenko.foxrider@yandex.by"
] | isachenko.foxrider@yandex.by |
0b19decd4e28ad7ce7fbc924f2cd55619c3ede35 | 2140f3476db805c4a0f437da903b3b71799f5c95 | /hack_assembler/h_parser.py | a6c0a218177e313053135a9717fd6caa57941f2c | [] | no_license | andren/fhl_hackathon_2020_hack_assembler | fd5333df91064cc260dd1a5388a7f376eada243e | 607ddf1191208de9d0d3b80fa6fafc9afb0a6b5c | refs/heads/master | 2023-02-02T06:16:42.998788 | 2020-11-06T13:05:17 | 2020-11-06T13:05:17 | 310,599,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,533 | py | import os
from pathlib import Path
import re
from enum import Enum
#from hack_assembler.hack_command_factory import hack_command_factory, HackCommandType, HackCommand
import h_command_factory as h_fac
class Parser:
"""Breaks each assembly command into its underlying components.
Encapsulates access to the inpu... | [
"40470926+andren@users.noreply.github.com"
] | 40470926+andren@users.noreply.github.com |
6b8f766ca5c36c08d991f16d786e1e5eb5988a2f | 24c7a7a8ec30708ef5151a78d6b8b2fea4a89169 | /backend/accounts/views.py | 621ae2c5294f8632f584d73227e0123a97dd620f | [] | no_license | CatalinAtanase/VeganApp | bb90a0e1c2e848afca6963db3953acfebcec14e5 | 2997bab7ff80c07061e8bd58500f6e3693c90f9c | refs/heads/main | 2023-02-12T02:57:35.319911 | 2021-01-07T18:44:40 | 2021-01-07T18:44:40 | 305,431,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,167 | py | from django.conf import settings
import jwt
from rest_framework.generics import CreateAPIView, UpdateAPIView
from accounts.utils import generate_access_token, set_refresh_token, generate_refresh_token
from django.shortcuts import render
from rest_framework import viewsets, exceptions, status
from rest_framework.respons... | [
"atanasecatalin20@gmail.com"
] | atanasecatalin20@gmail.com |
ca2ebc824317a711c5118a6cd2c5ee8dd9062f25 | c130290d880fa15c8a6e8e7e0c33e40e4e91aa45 | /forwarder/main/urls.py | 01d4b5bdfd0e4463c7dbccc4045fe2d3bc6670b1 | [] | no_license | agamova/url-forwarder | df6eac0a1517ef8b35ae84762bac0006e374f28c | a557056affe798c2c7f3c8a5f944e94657d6dabf | refs/heads/main | 2023-06-22T04:18:54.875562 | 2021-07-11T12:41:38 | 2021-07-11T12:41:38 | 383,585,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.urls import path
from . import views
urlpatterns = [
#path('', views.index, name='index'),
path('<slug:slug>/', views.forwarder, name='forwarder'),
] | [
"evgenia@agamova.ru"
] | evgenia@agamova.ru |
18d0046b2f0225fe6b04fe89ec0db7e296019405 | bfea8126df0a258714089634d26acec0b9e49e0d | /apipipeline/__init__.py | ab5a556b16109aa3dc68dc7054bb83edfcaeeba0 | [] | no_license | general-programming/tumblrpipeline | bc5860aaa38a56eda1d8efac623787b04a59ce2c | 89d7404eda7d6c1e712eb113b0bfbf6ed6a99950 | refs/heads/master | 2020-04-11T16:53:15.118953 | 2018-12-18T09:39:41 | 2018-12-18T09:42:01 | 161,940,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import os
import logging
# Initialize Sentry before importing the rest of the app.
sentry_sdk = None
if "SENTRY_DSN" in os.environ:
import sentry_sdk
sentry_sdk.init(
dsn=os.environ["SENTRY_DSN"],
)
if "DEBUG" in os.environ:
logging.basicConfig(level=logging.DEBUG)
else:
logging.basicCon... | [
"support@generalprogramming.org"
] | support@generalprogramming.org |
8fa999908e6e1e5ccdf32537ba7b2911586b09ce | e16fb30d185ed9c8df379ac78c401ae82aec726c | /A1Part3.py | 897be1af4eb6b8027ceafd33c465157c96cd0cd8 | [] | no_license | kasunator/testRepo | 6b065df4882b46cda43ba7cca9bf45838802f5a6 | e38ce37d1d64cf2972bf4420a726c1d42da164b7 | refs/heads/master | 2021-01-12T04:48:39.089006 | 2017-01-01T22:25:30 | 2017-01-01T22:25:30 | 77,797,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | """
A1-Part-3: Python array indexing
Write a function that given a numpy array x, returns every Mth element in x, starting from the
first element.
The input arguments to this function are a numpy array x and a positive integer M such that M < number of
elements in x. The output of this function should be a numpy ... | [
"bitcraze@bitcraze-vm.unassigned-domain"
] | bitcraze@bitcraze-vm.unassigned-domain |
8f9f14c6e253a488eaf68d83a462898ba45b140a | 921503111718f11ef04a3873cd527406938ee4a9 | /7-Histogram.py | 851222ad845d7a651b9dc4e42081eaa097597cba | [] | no_license | cnntglylmz/coronavirus-data-analysis | 211a1f192576132e5e6523634f01269d4ff81230 | 83814d68ee64ee6df6e518534a49168b6d4b3e17 | refs/heads/main | 2023-09-03T05:56:39.026260 | 2021-10-07T10:41:40 | 2021-10-07T10:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 11 21:28:31 2021
@author: Cennetgül Yılmaz
"""
import pandas as pd
import matplotlib.pyplot as plt
df=pd.read_csv(r"C:\Users\asus\Desktop\Yapay_Zeka_Proje\coronavirus_dataset\covid_19_data.csv")
turkey=df[df["Country/Region"]=="Turkey"]
italy=df[df["Country/Region"]=="I... | [
"cnntglylmz@gmail.com"
] | cnntglylmz@gmail.com |
64974390c8d0616bfe589e88a1236eee0b20d4c5 | 4983dd3aa6c29a4ce5ef3a0f04ff742d0c18ed78 | /dash/migrations/0005_lessonprogress.py | 02aafdd646d57e82c0efb708de16920d37ab1d9e | [] | no_license | adonnelly759/codecontroller | c3eb3cba2a7062b638085fad457041df88f706a1 | 70fd20389eb5c4adb53ae954a23eb1f70e79cd6e | refs/heads/master | 2022-12-13T06:01:14.128477 | 2020-03-08T23:28:54 | 2020-03-08T23:28:54 | 244,388,524 | 0 | 0 | null | 2022-11-23T07:46:13 | 2020-03-02T14:16:11 | CSS | UTF-8 | Python | false | false | 1,119 | py | # Generated by Django 3.0 on 2019-12-21 23:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('dash', '0004_auto_20191221... | [
"adonnelly759@qub.ac.uk"
] | adonnelly759@qub.ac.uk |
ad6c2adee224ae22367d1f19f5ca3eb32d8cc05c | 3ede0bb9bb0d8ea31a16c852e13773601fffd739 | /common/__init__.py | 577ff06f5887b154a5ad83977f1154e579d5ed87 | [
"MIT"
] | permissive | fieri/imgdupes | 39918cfb424cd54f1eb6b94dc2f378114ee78666 | a70a4edc6d3d3cb15376c2b68bbb13ca36c24888 | refs/heads/master | 2020-06-16T14:07:56.758356 | 2019-06-20T14:51:05 | 2019-06-20T14:51:05 | 195,603,190 | 0 | 1 | null | 2019-07-07T02:52:29 | 2019-07-07T02:52:29 | null | UTF-8 | Python | false | false | 18 | py | name = "imgdupes"
| [
"knjcode@gmail.com"
] | knjcode@gmail.com |
7530f15912d33b1d01108d59225addf86e9e09cf | d3d109ee9afb4b785004becff5964c6b80da1745 | /app/models.py | 08b0733783cca73493d99974595a6123e263ce8e | [] | no_license | matbarPL/Distributed-application | 56097c6a337daf12ea8c9928ff2b55d115c5e073 | 68709d25b391f92f53990c2a6d6e5625ca182cb2 | refs/heads/master | 2023-01-23T09:11:01.897677 | 2020-05-31T00:52:23 | 2020-05-31T00:52:23 | 245,972,833 | 0 | 0 | null | 2023-01-06T04:32:38 | 2020-03-09T07:45:12 | Python | UTF-8 | Python | false | false | 1,073 | py | from werkzeug.security import generate_password_hash, check_password_hash
from datetime import datetime, timedelta
import os
from flask_jwt_extended import (create_access_token)
from flask import g
from app import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.S... | [
"mateusz.baryla.1996@gmail.com"
] | mateusz.baryla.1996@gmail.com |
f6b845b799f3e15e52f10efd5b2ba60a4d5e1fb8 | da687718aa8ce62974090af63d25e057262e9dfe | /cap12-dicionarios/10_fromkeys_method.py | 59b1594ed08737b3f91bb025905c1d9639f0eab5 | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python3
"""retorna um novo dicionário cujas chaves são os elementos de uma sequencia e cujos
valores são todos iguais ao argumento valor.
Sintaxe: dict.fromkeys(seq[, value])
"""
seq = ['name', 'age', 'sex']
dict = dict.fromkeys(seq)
print('Novo dicionario: {}'.format(str(dict))) # nenhum valor foi... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
f84617d4b0d250050638a579c3f99cc59697e6ce | 4b6a0ac0ab52ae1f2819f7a4368e34db5383c9fd | /api/utils/explainer.py | 58cad004d3277ede180742b585084554a589b269 | [] | no_license | jinwoo1990/ml-streamlit-app | 410e56d166a1ab18c94e0f40ec18782722675779 | b9d428e7225fb9219fab2d644fd34c6cb0484db5 | refs/heads/master | 2023-07-26T00:07:41.619254 | 2021-09-08T17:54:21 | 2021-09-08T17:54:21 | 398,511,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | import shap
from loggers import logger
def generate_shap_explainer(fitted_model):
"""
shap 값을 계산하기 위한 explainer 와 train data 의 shap 값을 반환하는 함수
:param fitted_model: 학습된 모델 객체
:return: shap explainer, train 데이터 shap values
"""
logger.info('## Generate shap explainer')
explainer = shap.TreeE... | [
"jinwoohong77@gmail.com"
] | jinwoohong77@gmail.com |
04f201d9ffc95af7193be3b65f3977c721df4bcc | c61872b4d9fd6f7caf4fbbbcb914405b75b30866 | /venv/lib/python3.6/site-packages/zope/component/tests/test_registry.py | 39f9f3c5580a05e31c7928ed4f085e322cddcf46 | [
"MIT"
] | permissive | ThomasGarm/portfolio-cv | f7140f618ef4b4bd680186ed1a5f1157fcb7fbe7 | 2d3abb51c9dc991a05939255f39c339ad152b51c | refs/heads/master | 2022-12-08T03:00:25.075362 | 2020-04-30T14:56:11 | 2020-04-30T14:56:11 | 244,865,394 | 1 | 0 | MIT | 2022-12-05T11:40:16 | 2020-03-04T09:58:53 | Python | UTF-8 | Python | false | false | 5,172 | py | ##############################################################################
#
# Copyright (c) 2012 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"thomas.win@gmail.com"
] | thomas.win@gmail.com |
46118d4edf67b4b6ba7d31735eda41de9fca5bbd | 3ee8c47a2115db04c53cbe900cd7318273ce91e6 | /src/client/TCP_test.py | fa13c15582cece9d08571703726293b235a2239c | [] | no_license | kmintae/CITE | e805ea90147ce7bf7110f1aad2a2de78eff1fbfb | ce09634a7aca3148e8cf62fb32abb898e24a3e6d | refs/heads/master | 2022-10-08T21:29:15.910006 | 2020-06-06T18:57:00 | 2020-06-06T18:57:00 | 269,110,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | from socket import *
# from C_RobotArm.RobotArmClient import armClient
import yaml
import time
# from C_Motor.Car import Car
# Configurations
config = yaml.load(open("config/client.yaml", 'r'), Loader=yaml.FullLoader)
MAX_BUF_SIZE = 1024
def run_client():
# numInst: Calculating # of Instructions
numInst = 0... | [
"shsesther928@postech.ac.kr"
] | shsesther928@postech.ac.kr |
7767947cdfb29b1f5344a3ea65c042a25690e0cd | fb141b63e8d3e52e364b9eadc0dbadb42f6a5266 | /prepare_data.py | 6598c365f00831b02dd522ac1420fa8ef96870c7 | [
"MIT"
] | permissive | alexeyev/glyphnet-pytorch | c51c338ab535f4d8f2d2795efcd2c06f557283e6 | 7fd229dc780779a72731085b3a77de38da3cb552 | refs/heads/main | 2023-05-22T13:43:19.409291 | 2022-09-06T06:57:25 | 2022-09-06T06:57:25 | 431,622,962 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,757 | py | # coding: utf-8
"""
Building the dataset trying to follow `glyphreader` repository
as closely as possible; dataset is constructed and split using Pool there,
so the exactly the same split as in `glyphreader` does not seem
to be reproducible; hence we do our own splitting.
"""
import hashlib
import shut... | [
"anton.m.alexeyev@gmail.com"
] | anton.m.alexeyev@gmail.com |
eb01f51a86372e61aefb726d9f46b6e7df7b77a1 | d9cf731cf37a3dc056ec5e45f862ac75a6cf6ba1 | /petSearch/apps.py | 3f8155c5114550723e7c305903a750b1ed42bb2f | [] | no_license | zhizhengyang/pet | ac6c499146f3b320cd25c489acf9849eb280517b | 12bea10ea399cdce8c3d58e13e2a426739838a68 | refs/heads/master | 2020-04-06T18:04:42.694866 | 2018-11-21T10:09:57 | 2018-11-21T10:09:57 | 157,684,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class PetsearchConfig(AppConfig):
name = 'petSearch'
| [
"413064943@qq.com"
] | 413064943@qq.com |
b2f6ba810f56fe21e915805b75b08d7c0443d9fc | 8fb7a7b4fb09ce457ad413d19191235cf4805851 | /notes code/detection of fail/object_only/scan_mark1/find_thing_on_print_bed.py | 1a6610a59ee5df617f1a2396d94b2e6a3a5120ce | [] | no_license | clambering-goat/honner-progect | df8ab2e22c223cf0f8cb59b93b132eea3d9030f2 | ea996ea34ac13867dea6d4935f9760c6915b206f | refs/heads/master | 2020-04-15T19:32:57.303438 | 2019-05-13T17:51:56 | 2019-05-13T17:51:56 | 164,954,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py |
import numpy as np
import cv2
data=np.load("data.npy")
iamge = data.astype(np.uint8)
for Ycount,y in enumerate(iamge):
for x_count,x in enumerate(y):
if iamge[Ycount][x_count]==255:
iamge[Ycount][x_count] =0
cv2.imshow("frame",iamge)
cv2.waitKey(20000)
| [
"camerondrain@gmail.com"
] | camerondrain@gmail.com |
9179210109a8fa035ce59bb29a6582ddd74d25fd | d9d9a203a27bd28fe9afc72ecc613b186b33d673 | /06_MultipleForm/mainform.py | fe80a611cdf948f4f13e439c5959ffe08d143681 | [] | no_license | wildenali/Belajar-GUI-dengan-pyQT | 378951fcf0e172f48bf71ec46d887599cf5e09ed | 06ebbcbf57bec8a6a63fbb6d5397a7e2ab7c9ef9 | refs/heads/master | 2020-04-06T10:51:58.582049 | 2018-12-31T10:37:56 | 2018-12-31T10:37:56 | 157,395,034 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from PyQt5.QtWidgets import QWidget, QPushButton
from otherform import *
class MainForm(QWidget):
def __init__(self):
super(MainForm, self).__init__()
self.setupUI()
def setupUI(self):
self.resize(300, 500)
self.move(400, 200)
self.setWindowTitle('Form nya ada DUA')
... | [
"wildeeeeen@gmail.com"
] | wildeeeeen@gmail.com |
2181b9b489be977497f5bf973402ba2f939eb01b | 9d0359f43168640175eecd00d045aed4b82b9271 | /DjangoWebProject1/myApp/migrations/0004_auto_20191209_1423.py | e82ed9ccf71ddea4c76be4b96ea1312297a1f4fa | [] | no_license | elya-bar-elya-zhoq/project | 35e036f29bf0639bc8ca35886ebd27cfeb4480cd | bab8696fab9f9883a0b47e23f5e7c6616c9ab5c6 | refs/heads/master | 2020-09-28T07:16:10.301237 | 2019-12-09T12:09:23 | 2019-12-09T12:09:23 | 226,721,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Generated by Django 3.0 on 2019-12-09 08:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myApp', '0003_auto_20191209_1412'),
]
operations = [
migrations.AlterField(
model_name='suggestion',
nam... | [
"noreply@github.com"
] | elya-bar-elya-zhoq.noreply@github.com |
28598f36e66c74da10b429d228ad8e96cb136f00 | aaf9df2f15ec9bbfb7d98c2239db940117bc6762 | /Algorithmic-Toolbox/covering_segments/covering_segments.py | e33a1707cc450ddd489122ddb82f546ec7713987 | [
"MIT"
] | permissive | ugaliguy/Data-Structures-and-Algorithms | db50a0f4b39908d17fa125ca70c0616f52d895d2 | 4bcbd1b0cff66f442a03d06393f654f8e3a61ded | refs/heads/master | 2021-01-21T14:08:42.127708 | 2016-07-04T00:43:38 | 2016-07-04T00:43:38 | 56,821,728 | 0 | 1 | null | 2016-07-04T00:43:39 | 2016-04-22T02:54:23 | Python | UTF-8 | Python | false | false | 854 | py | # Uses python3
import sys
from collections import namedtuple
from operator import attrgetter
Segment = namedtuple('Segment', 'start end')
def optimal_points(segments):
start_sort = sorted(segments, key=attrgetter('start'))
end_sort = sorted(segments, key=attrgetter('end'))
points = []
#write your code... | [
"ugali_guy@hotmail.com"
] | ugali_guy@hotmail.com |
4370545f8a75330aec51c5b699aada3f8df69d5c | 4e4c22dfabb1a0fa89f0f51f58737273412a30e0 | /fort_machine/wsgi.py | 640e612427bbf2c0356ea849505b08617eed3925 | [] | no_license | shaoqianliang/fort_machine | 4cb271d5ef29c924c09172ff397e2af8562ee4ba | cf7e3d4c6682831ce04bcde478930ab7e85abb01 | refs/heads/master | 2020-04-28T15:24:02.056674 | 2019-04-12T23:50:35 | 2019-04-12T23:50:35 | 175,372,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for fort_machine 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"1132424753@qq.com"
] | 1132424753@qq.com |
7a0d2bbea23f8c4ce8b1a8b641c3d88573cb63c6 | c05211611879ddce33152790488e429439676a89 | /sensehat color experiments.py | ece2fb8565108a5bd3a55b98399bf99a8ffaf8fd | [] | no_license | colinkillmer/daughter | 035ff8b6ee709b34d53b009712f01ffdac147c15 | 8dbe3f67747042401f675130622e9e89d79cab0d | refs/heads/master | 2020-05-07T00:56:57.824054 | 2019-04-09T00:13:22 | 2019-04-09T00:13:22 | 180,252,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from sense_hat import SenseHat
from time import sleep
sense = SenseHat()
sense.set_rotation(180)
sense.clear((100,100,100))
sleep(1)
sense.show_letter("K", text_colour=[255,255,255], back_colour=[20,20,20])
sleep(5)
sense.clear()
| [
"noreply@github.com"
] | colinkillmer.noreply@github.com |
fe7d0f99e3ae6e1f339a1cd8e4642a724e9016f7 | 1b1e8e73649ad1eed89556a5d479b0a549354fd5 | /opennem/db/migrations/versions/4bf86ff5c8ff_update_indicies_that_aren_t_used.py | a7a46b84637e88e727f1fe594938c21feb0ebb3f | [
"MIT"
] | permissive | zalihat/opennem | 3ea8db7246f350fb0eacf8c6078dbffa4fe9aea2 | 0f82e4fc3fd2bcfbf56a2741d89e4228d017dcf3 | refs/heads/master | 2023-02-27T15:37:47.206336 | 2021-02-08T07:28:57 | 2021-02-08T07:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | # pylint: disable=no-member
"""
update indicies that aren't used
Revision ID: 4bf86ff5c8ff
Revises: 64987ea01b57
Create Date: 2020-11-23 02:54:29.564574
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "4bf86ff5c8ff"
down_revision = "64987ea01b57"
branch_labels = None
depends_on = None
... | [
"git@nikcub.me"
] | git@nikcub.me |
c5c65961c025e5d15baca257d8eb76941fdfed04 | ae3a7a4cc51364a1a08fc532e9bb70dea797189a | /auto_annotator.py | bf6479067f03e5923dc2dc9bee504a4e8b36776a | [] | no_license | Justme21/M.Sc-2017 | 038b0871ed0f6add536d837702ea17f5db4de88a | e70f94e163942041ab905d2df3cf495a7d48ce28 | refs/heads/master | 2018-01-16T12:39:53.134126 | 2017-08-11T19:55:29 | 2017-08-11T19:55:29 | 95,567,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,051 | py | #!/usr/bin/python
import math
import matplotlib.pyplot as plt
import random
class DataStore():
def __init__(self,file_name,content_list):
self.name = file_name #This is the full address of datasource
self.file_content = [] #Will hold the desired contents from the file
op_file = open("{}".... | [
"s1674364@sms.ed.ac.uk"
] | s1674364@sms.ed.ac.uk |
a32a4c5cc53fb4c6aaab36138397a56af955a001 | 77255f8a1fefcdc1367ffa15e75081afeb5c69e3 | /Heimaverkefni/population.py | af125ac4f41af53c458df55c504ef916de191652 | [] | no_license | Mikksterinn/Python_HR_Mikki | 5a8faf47d861f72e615d3cc97aaff70bdf3bcafc | 58e80fd4442d4361033f045ec9357a7afadac1c4 | refs/heads/master | 2020-07-20T05:49:42.238648 | 2019-09-27T19:11:15 | 2019-09-27T19:11:15 | 206,584,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | ar = float(input("Years: ")) # The input is the number of years in a float format.
folksfjoldi = 307357870 # Number of people at the beginning.
sek = 31536000 # Number of seconds in a year.
sek_tot = ar*sek # Total number of seconds being tested.
ar_heil = int(ar) # Changing from float to integers for the years.
if ar... | [
"mikael.ingi@gmail.com"
] | mikael.ingi@gmail.com |
a99c4d3cb68c551d8ecf9d307608d40a13d95cd8 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0701-0800/0716-Max Stack/0716-Max Stack.py | 698d5125b3a7f7ace31abc4055e1c827e468fd5e | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 967 | py | class MaxStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.St = []
self.maxSt = []
def push(self, x: int) -> None:
self.St.append(x)
maxX = x if not self.maxSt or x > self.maxSt[-1] else self.maxSt[-1]
self.maxSt.append... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
03cdd78d3c498e9f197dee72e98fbb2d723db8b9 | c51437ecd70e2baccd064f30a4240b71058aeee3 | /mysite/urls.py | 79ceb09e2698b729b8436631e4708a624f7c2e5a | [] | no_license | mri-dula/polls | 50277715490cd55b9b9a4bd1459b72ac1e207627 | a0c7984fa59364b58080812739d8e48ab5f9cfb5 | refs/heads/master | 2022-02-24T02:13:57.744802 | 2019-07-23T08:49:12 | 2019-07-23T08:49:12 | 198,193,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | """mysite 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-bas... | [
"mridulaprabhu@Mridulas-MacBook-Pro.local"
] | mridulaprabhu@Mridulas-MacBook-Pro.local |
8d63dcaac858c907bdd17919a0f0c14d3c28595f | 129ef25f53ff1a921163e0202b7ca0421db3cb59 | /MDS2S/PyEMD/tests/test_visualization.py | 8a1dddf8065bf02aa3d8a47cd2ec3340a2896aec | [] | no_license | Askfk/MDS2SGAN | f057f21e9a43aab4f429791a7f3f38b6440ad3b0 | a32024527b0d531c418008feb6d11782c92d68e9 | refs/heads/master | 2023-03-27T18:37:14.324335 | 2021-03-24T12:51:20 | 2021-03-24T12:51:20 | 315,207,775 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | #!/usr/bin/python
# Coding: UTF-8
from __future__ import print_function
import numpy as np
from PyEMD import EMD, EEMD, CEEMDAN
from PyEMD.visualisation import Visualisation
import unittest
class VisTest(unittest.TestCase):
def test_instantiation(self):
emd = EMD()
with self.assertRaises(ValueEr... | [
"yxl1215@student.bham.ac.uk"
] | yxl1215@student.bham.ac.uk |
ef0c39c82fc23afa076ac6c52052cbcddae6e2de | e83f197765ce10ff4173741d68cedd9c31ef71d3 | /aula-11/json-2.py | 7cc24cfac4404c389e1ade1112edb9cf90bdab27 | [] | no_license | fkbral/python-pro | b1e9ec4adfed80496fab04db6a29251d48a8f86c | ba0020520763cd20f930d65ab310dc2af3625a4f | refs/heads/master | 2023-05-06T04:52:45.071186 | 2021-05-27T01:54:29 | 2021-05-27T01:54:29 | 357,371,003 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | import json
jogador = {}
jogador = {
'nome': 'Mario',
'pontuacao' : 0,
}
# jogador['nome'] = 'Mario'
# jogador['pontuacao'] = 0
stringjson = json.dumps(jogador)
print(stringjson) | [
"38699509+fkbral@users.noreply.github.com"
] | 38699509+fkbral@users.noreply.github.com |
ffaa35bbff6e5594111a59aeed63bc26897a2692 | 0b12e31cafa598c163d2cc53706df193a73e31e3 | /people/models.py | 65c21cc6090d290ebf5ac91ed163dedd5de88207 | [] | no_license | getopen/pro | 6a4dba774558e1de0419a4c6daf030ee360d68fd | 97e939d26d9fdaf54f05f3cd4a9b32a6722d0ac3 | refs/heads/master | 2021-07-06T09:35:18.077577 | 2017-09-30T16:07:06 | 2017-09-30T16:07:06 | 100,471,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,517 | py | from django.db import models
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser
from django.utils import timezone
import hashlib
import random
import string
from django.conf import settings
SALT = getattr(settings, "EMAIL_TOKEN_SALT")
class MyUserManager(BaseUserManager):
def create_user(self,... | [
"zhuoqun527@qq.com"
] | zhuoqun527@qq.com |
bc921e782b07b4e292d07092874c199f0e31459a | d500e22bd56b989e0843dc3d9370a986d825129a | /find_the value.py | 6d0f5f9f7e9a243d44b7ce26b35c4e6e5a43298d | [] | no_license | kaminee1jan/dictionary.py | e2cde2a17e0b294c9f3bb8049e4aa75fb9fe2532 | f5f74109cdaa1ea6fd41c25274d9390222c90a75 | refs/heads/main | 2023-06-27T10:34:59.497252 | 2021-07-30T05:06:56 | 2021-07-30T05:06:56 | 382,230,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | details ={
"name": "Bijender",
"age": 17,
"class": "10th"
}
for x in details.values():
print(x) | [
"noreply@github.com"
] | kaminee1jan.noreply@github.com |
0797925dc14673c3acf56f3d25a3a0549744439a | 760b5b0d38445f414211b6ee145de4a07b8e903b | /kube_hunter/conf/logging.py | bf5ed5a14a7586dec1b0296489606c847de0b976 | [
"Apache-2.0"
] | permissive | openslate/kube-hunter | 8af4c42668fa0c96f8093ba014e54b6d5ec9594e | e010b9db3c41cb02736be24d440264cca39aa6e2 | refs/heads/main | 2023-03-30T12:38:46.347162 | 2021-03-30T19:19:09 | 2021-03-30T19:19:09 | 350,756,073 | 0 | 1 | Apache-2.0 | 2021-03-30T15:17:08 | 2021-03-23T15:07:04 | null | UTF-8 | Python | false | false | 1,158 | py | import logging
DEFAULT_LEVEL = logging.INFO
DEFAULT_LEVEL_NAME = logging.getLevelName(DEFAULT_LEVEL)
LOG_FORMAT = "%(asctime)s %(levelname)s %(name)s %(message)s"
# Suppress logging from scapy
logging.getLogger("scapy.runtime").setLevel(logging.CRITICAL)
logging.getLogger("scapy.loading").setLevel(logging.CRITICAL)
... | [
"noreply@github.com"
] | openslate.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.