blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5fd06e2db99d7b1ac0e485ea5df4f198d3d33b3c | deb07bdfe74e7680b75a68a03920cb5700551525 | /corpusCreator.py | f8d01202cb2703bd725daf6b9e520375fbb0c979 | [] | no_license | Tzvi23/Hierarchical-Summarization-Part1 | dcb2be6dd5bfb01efb9dff0087b840d6801aa9ab | d4645c1a22ff938d025836ba5e97f685b4749a21 | refs/heads/master | 2022-12-04T12:29:33.581258 | 2020-08-29T13:56:42 | 2020-08-29T13:56:42 | 254,397,090 | 3 | 0 | null | 2020-08-29T12:26:15 | 2020-04-09T14:40:06 | Jupyter Notebook | UTF-8 | Python | false | false | 4,219 | py | """
!!! This file is not used in the project anymore
"""
# TODO check if can be deleted
import xml.etree.ElementTree as ET
import os
import copy
import pickle
def get_jaccard_sim(str1, str2):
a = set(str1.split())
b = set(str2.split())
c = a.intersection(b)
return float(len(c)) / (len(a) + len(b) - ... | [
"tzvi23@gmail.com"
] | tzvi23@gmail.com |
9733eca28b6e292fb6b0767730696d4de44b3fc9 | 43b4cf47d85e0306b92bbbe044eb74960f34a7c9 | /core/migrations/0015_auto_20191118_1451.py | 2f6bfee7b477233e3d81cf4000360124db8e4cec | [] | no_license | Alexanader/eCommerce-site | d84f06cb29c6f6be4ed8e4259cd1d6150b93b985 | b62e66184b28df43ec940983612a636bc9aaec90 | refs/heads/master | 2020-12-15T15:00:20.720901 | 2020-01-20T16:39:53 | 2020-01-20T16:39:53 | 235,148,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | # Generated by Django 2.2 on 2019-11-18 14:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0014_auto_20191118_1450'),
]
operations = [
migrations.RenameField(
model_name='billingaddress',
old_name='countries',... | [
"berestok6797@gmail.com"
] | berestok6797@gmail.com |
cd979cf383863e27fac2a067d8e949630956d387 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/io_scene_md2/quake2/bsp.py | fd4a108bf3ac3eaa8e59362e0ea2f1064605f00e | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,530 | py | """This module provides file I/O for Quake 2 BSP map files.
Example:
bsp_file = bsp.Bsp.open('base1.bsp')
References:
Quake 2 Source
- id Software
- https://github.com/id-Software/Quake-2
Quake 2 BSP File Format
- Max McGuire
- http://www.flipcode.com/archives/Quake_2_BSP_File_Format.shtm... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
55a4e8e8c4aa91e9545e39a617b5c10879c37d07 | 33eb4fd807c1a641f52f7124ec7b256ce07612f1 | /test/optimization/test_converters.py | ceb47854904a2313fb0dfe0c2ea5d0555a45b620 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | levbishop/qiskit-aqua | 9ee27da1533cbb9746fe5ff5255533bd9742faa5 | 50e4d935241452bb76296cea6144a9fc452c5e2c | refs/heads/master | 2022-12-04T01:48:18.477406 | 2020-08-11T19:25:03 | 2020-08-11T19:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,877 | py | # -*- coding: utf-8 -*-
# This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modif... | [
"noreply@github.com"
] | noreply@github.com |
393fd65ff6acb3f16a103c6786941faa450a1e7f | 293720158f0836140cb7a417980f04272445a787 | /day22.py | d04ac87c99c95d0c09412aa66fba62fcc4f5958f | [] | no_license | Chicken-Bones/AdventOfCode2020 | cc01c7136a1b19fbbcbb367dd7a3d4dc8f82466a | 62c82002a9f99c960407e70552028fce2755e666 | refs/heads/master | 2023-02-06T07:20:11.493262 | 2020-12-24T06:20:57 | 2020-12-24T06:20:57 | 318,743,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | import re
if __name__ == "__main__":
with open("input/day22.txt") as file:
p1, p2 = file.read().split("\n\n")
p1 = [int(s) for s in p1.strip().split("\n")[1:]]
p2 = [int(s) for s in p2.strip().split("\n")[1:]]
while p1 and p2:
a, b = p1[0], p2[0]
if a > b:
... | [
"mehvids@gmail.com"
] | mehvids@gmail.com |
6447b4421e3a2256c272226eb874c95411fda479 | 8dffff5ff7f2645a50fd9846198e12e4c96a91da | /18-letter-count.py | ab86a66578554a66e0cb43fd008cdfbc21744bb6 | [] | no_license | akshaypawar2508/Coderbyte-pythonSol | b233c5ee0c34e0413a26b24b423dae45342b9ade | 5c7d2028fe09fd02aad7808f88abc40fdea0f81e | refs/heads/master | 2022-01-03T09:44:18.635060 | 2014-07-31T13:32:08 | 2014-07-31T13:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | def LetterCountI(str):
for word in str.split():
for i in range(len(word)):
if word[i] in word[i+1:]:
return word
return -1
# keep this function call here
# to see how to enter arguments in Python scroll down
print LetterCountI(raw_input())
| [
"xzhu15@illinois.edu"
] | xzhu15@illinois.edu |
7bfaa576b5ff7ed6b4637b78badfbcb70b512d1f | 78edacedb86c5ed0570849839825be35f394a954 | /python/DS_Academy/DS_Academy_Num01.py | c94ec9694164c91405d7f5e8969fb944653f21a4 | [] | no_license | jihunsuk/ACMICPC | c0540a6f77d2d8ce835ba3c67d63e0c81b283e48 | 66849944be19b8614f9708e81e4674c26f3b94e6 | refs/heads/master | 2020-03-15T04:34:02.382779 | 2019-01-08T12:19:05 | 2019-01-08T12:19:05 | 131,968,665 | 0 | 0 | null | 2019-01-08T12:19:06 | 2018-05-03T08:57:53 | Java | UTF-8 | Python | false | false | 2,657 | py |
def bfs(list, start_Node, End_Node):
if start_Node == End_Node:
return True
else:
index = list.__len__()
Edge = [[0] * 100 for i in range(100)]
for i in range(0, list.__len__(), 2):
Edge[list[i]][list[i + 1]] = 1
visited = [start_Node]
Queue = [start... | [
"tjrwlgns1198@gmail.com"
] | tjrwlgns1198@gmail.com |
dce48e066e8527b6a473d65b0a855e2f56d76723 | c70c8bded973de280235a86290684eac8ecf296a | /cgi-bin/rsp_survey.py | 6efe2112b2e554526c36dc3d911ede77e6dc2a52 | [] | no_license | LewB/Surveyor | 85fe9233258dea4304ba939f30dd6b21df88ca04 | bf8d390922198e223b86eabce46f86afbea5fe14 | refs/heads/master | 2021-01-13T02:16:58.772874 | 2015-06-08T23:36:07 | 2015-06-08T23:36:07 | 32,690,111 | 0 | 3 | null | 2015-04-01T16:45:31 | 2015-03-22T18:57:07 | JavaScript | UTF-8 | Python | false | false | 11,880 | py | #!/usr/bin/env python
""" This Program returns the Data for the Header and Body Elements of a
Dynamically Generated HTML Survey Called by index.html"""
# -*- coding: UTF-8 -*-
import os
# use the cgi library
import cgi
# enable debugging
#import cgitb
#cgitb.enable()
# use JSON encoding
import json
# use pytho... | [
"lew@burridge.us"
] | lew@burridge.us |
b1a8ca498ec8f78dd664b8dbd97f237e390a7b1c | 499a6a8f078dc337f109f84142d1c16b8b613415 | /1. poglavlje/5.py | 6811ace14eee6a0be36f840b6d22e628a4a38906 | [] | no_license | renatasokol/Srce-D460 | ff92a80eaf63bdd69465e5a2d11888b58040b707 | 6ab9f0373885d968dcd2a008f02f46e79d8099d3 | refs/heads/master | 2020-08-18T11:39:31.657164 | 2019-09-02T16:04:41 | 2019-09-02T16:04:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | broj = input("Unesite broj: ")
broj = int(broj)
print("Paran!") if (broj % 2 == 0) else print("Neparan!")
| [
"marko.hruska@gmail.com"
] | marko.hruska@gmail.com |
b14e46e32da98ddb6e1b28c189f1bf4d9b85ba5c | 017f49596bba7f16c2e35a34c5b5c0546ca3eb8f | /AutoNav/autonav.py | f081bcd48e97ada88572207240beba7cce26229c | [] | no_license | MichaelCStrauss/ECE4078_Lab | f349b4f47abdd0bd2b5fa3b43feeef342f59b5de | 43bc39e34c5ffef9cb91da2ff35c459bf556269b | refs/heads/master | 2023-01-11T03:41:35.615187 | 2020-11-08T10:49:14 | 2020-11-08T10:49:14 | 286,386,837 | 0 | 0 | null | 2020-08-10T05:45:08 | 2020-08-10T05:45:07 | null | UTF-8 | Python | false | false | 25,835 | py | # Manually drive the robot inside the arena and perform SLAM using ARUCO markers
# TODO:
# - increase turning speed greatly
# - maybe increase forward speed (calibration)
# - add to readme that we don't use FPS and use real time instead
# - maybe investigate glitching??
# Import packages
import numpy as np
... | [
"michael.strauss@live.com.au"
] | michael.strauss@live.com.au |
0b3eeb02095fbf2030db653bc03576071c4a956a | 9672fa478478085b69c7ef8f02eaa7fa0bc7767b | /symphony/cli/pyinventory/graphql/fragment/service_endpoint.py | f22a4f54006c151f24a0aaab059869fd9813ff4f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | julianchr/magma | 437a1d86490ff5f1d279cf2cd3243bbd3f22f715 | f0b2ed7e08314208133cf722921d6e6ab7853825 | refs/heads/master | 2022-09-21T21:45:14.678593 | 2020-05-28T22:47:52 | 2020-05-28T22:49:52 | 267,723,888 | 0 | 0 | NOASSERTION | 2020-05-29T00:07:02 | 2020-05-29T00:07:01 | null | UTF-8 | Python | false | false | 1,352 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass
from datetime import datetime
from gql.gql.datetime_utils import DATETIME_FIELD
from gql.gql.graphql_client import GraphqlClient
from gql.gql.client import OperationException
from gql.gql.reporter import FailedOper... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a3919176104aa7e4ed4715c1d81b7406891c3a72 | 21e1c5f2065b8be5589e9b5c98881a23dc0964fc | /src/account/forms.py | 045a71275e8f6960fd9ce95535d9b84bdccea21c | [] | no_license | ognanshissi/vgc-stock | 1f6e898e0dcbbfe77df5589f055bb98bb7503d60 | a97ede4718688c2adc4328eeacd6d1282b473be2 | refs/heads/master | 2020-03-11T19:00:17.344933 | 2018-04-19T09:49:33 | 2018-04-19T09:49:33 | 130,194,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | from django import forms
from django.contrib.auth import get_user_model, authenticate, password_validation
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from django.utils.translation import ugettext as _
from django.utils.text import capfirst
User = get_user_model()
class AccountLoginForm(forms.For... | [
"bazieambroise@gmail.com"
] | bazieambroise@gmail.com |
a8457deb62460f59eaaa8c13dd0a6738551e24f2 | cdb2160523b3742ea058ab5c22ebf6e44cb7f87d | /Python/boj/boj11866.py | 65d12b9f021991c749ccadce75963e33fb24b098 | [] | no_license | ryul99/algorithm-study | 68193471264a8bb249e047c922c2f66144eed6a7 | d64c388ca7d0c3b01e8e8a480f5fc435772f154b | refs/heads/master | 2023-03-06T14:44:24.498487 | 2023-02-23T21:16:35 | 2023-02-23T21:16:35 | 149,987,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | N, K = map(int, input().split(' '))
idx = 0
people = list(range(1, N+1))
print('<', end='')
while len(people) > 0:
idx += 1
tmp = people[0]
if idx == K:
people = people[1:]
idx = 0
print(tmp, end='')
if len(people) > 0:
print(', ', end='')
continue
peo... | [
"cmchoi9901@gmail.com"
] | cmchoi9901@gmail.com |
c0b7851ecfde2f392ff517edc359887e19ed383e | 58e53ecfc5c58259e27d91cc1307c0477d47f1f1 | /build/global_planner/catkin_generated/pkg.develspace.context.pc.py | 7256f45fd0d85eb13ec52021c39744000bca24f4 | [] | no_license | Abdu-lybot/AdvanDiptera_VIO | 3f0deb7b749b558f08a7d7c8b9f99e3a012d9fbd | 8aee5b9de6af4288b2c4489bc00dc1d4894c33cc | refs/heads/master | 2023-07-17T00:31:53.680172 | 2021-09-06T18:14:05 | 2021-09-06T18:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/lybot/AdvanDiptera_VIO/devel/.private/global_planner/include;/home/lybot/AdvanDiptera_VIO/src/navigation/global_planner/include".split(';') if "/home/lybot/AdvanDiptera_VIO/devel/.private/global_... | [
"Abdussalam.alajami@upf.edu"
] | Abdussalam.alajami@upf.edu |
4ab7a3b3bff2c4d4dabc96b292f269a32f107769 | 25bd9825dddab4b1d8b03dfa665d5705f8574e23 | /config/settings/base.py | 044092a877cfabc01088822eebe2ece7a4666412 | [
"BSD-3-Clause"
] | permissive | rasmus-storjohann-PG/pathways-backend | 7466e99c8fcc5effbb008b909d16e5a650d4124e | 524ba43cb85adbc000e4317c9b3e238001ed591b | refs/heads/master | 2021-05-16T12:47:36.045957 | 2017-12-21T17:41:19 | 2017-12-21T17:41:19 | 105,317,742 | 0 | 0 | null | 2017-09-29T21:14:37 | 2017-09-29T21:14:37 | null | UTF-8 | Python | false | false | 6,132 | py | import environ
# Three levels up from pathways-backend/config/settings/base.py gives pathways-backend/
ROOT_DIR = environ.Path(__file__) - 3
APPS_DIR = ROOT_DIR.path('main')
env = environ.Env()
READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False)
if READ_DOT_ENV_FILE:
# Operating System Enviro... | [
"rasmus@peacegeeks.org"
] | rasmus@peacegeeks.org |
1d26fc16271d8e9c4e023fb8d0548a2c7769d925 | 3adfa973d3c61b4f5c8ffb2e9cf7e2e7b95fe171 | /1/4/9/1.4.9.py | 03fe3ae71c3bfbddf9d2a4803cce1ccb1f18292a | [] | no_license | bletzacker/alyra | 12b173c218a4f4d399055e2aa39e841d932169fc | 30990fa823720d3555d44a0719cd46f944cc4efe | refs/heads/master | 2020-04-19T12:30:04.869363 | 2019-03-16T12:31:37 | 2019-03-16T12:31:37 | 168,193,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Utilisation de l'API de https://blockchain.info/
# pip install blockchain
from blockchain import blockexplorer
import time
now = time.strftime('%Y-%m-%d %H:%M:%S UTC', time.gmtime())
height_latest_block = blockexplorer.get_latest_block().height
print("Nous pouvons cal... | [
"laurent@bletzacker.io"
] | laurent@bletzacker.io |
fe09defdd2aac833ad3b706a687edfb9fd1caf69 | 6603c222871b2dd4df4cad5522cd1ffb764d7276 | /scripts/test_params_train-1-svc_testing_kernels.py | 24d8c400d6201e17dc6e7c5d23376f1f986e044a | [] | no_license | Sandman1705/Relevant-Images-in-HTML | 5264c9fa078c37e2ef69b3898460f251453e9c4c | 75c441f6d4262e224af38e870aaf8df7a13284b9 | refs/heads/master | 2020-03-16T02:09:31.330421 | 2018-10-04T16:21:34 | 2018-10-04T16:21:34 | 132,458,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import sys
sys.path.insert(0, '../src')
import os
dir_name = os.path.dirname(sys.argv[0])
if(len(dir_name)!=0):
os.chdir(os.path.dirname(sys.argv[0]))
from svc_models import kernel_test
import pandas as pd
def main():
data = pd.read_csv("../data/imgdata_train.csv", index_col='page')
results, best_params, (f1_scor... | [
"sandman1705@gmail.com"
] | sandman1705@gmail.com |
e13ddc0768f370a0fc0c229b13b9ff5493444676 | 9ba7138ce81f6ceb2581cb8868ebb102e4c1b31a | /other_dependency/test/test_module.py | dc18758bf81df9812dc53a45058d4560d03173fa | [] | no_license | syev/dependency | a787e0de4901872e2ae34fbb3256e6218e63b49e | 38e92d198fe0cf60d7ae57b5ef631e00a083ae32 | refs/heads/master | 2020-04-02T03:19:22.769554 | 2016-07-15T15:47:23 | 2016-07-15T15:47:23 | 62,855,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | """Unit tests"""
import unittest
import other_dependency.depmodule
class TestModule(unittest.TestCase):
def test_something(self):
self.assertEqual(other_dependency.depmodule.function(), 1)
| [
"yves.duhem@mongodb.com"
] | yves.duhem@mongodb.com |
39de5d7854f8fa71836130cc2bb246841e7677be | 7ba87be3b62ebd3647762984d7190d4c0abc4aa1 | /primeall.py | 0e1daa4c7aeedd3b04f650688f14317ba82fc2dc | [] | no_license | pradeepdevloper1/Learn_Python_CN | 7ca0d70e2cb5050bff2e090ec08cf97e4c38da2e | cf2978f52c68511cb93c03922aecae570ae9b009 | refs/heads/main | 2023-02-03T23:39:17.738748 | 2020-12-22T18:29:58 | 2020-12-22T18:29:58 | 323,703,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | n=int(input())
k=2
while k<=n:
Flag =False;
d=2;
while d<k:
if k%d==0:
Flag=True
d+=1;
if not(Flag):
print(k)
k+=1; | [
"pradeep.kumar@worldfashionexchange.com"
] | pradeep.kumar@worldfashionexchange.com |
f5d319d69486e544284d5a391d18304dd20f00fe | d29fd8ac20bf53f366821892bf5a80005a9cef36 | /tests/apps/pages_directory.py | 2d096f87c51ae88ef0ebd1ac72dc6772f44a26cb | [
"MIT"
] | permissive | T4rk1n/dazzler | d325ff664c6e310374f08cea84bd53aa1ca2ca43 | 69c49422dc19c910445ab265b1d3481041de8f43 | refs/heads/master | 2023-02-11T02:39:08.423597 | 2021-12-06T03:16:49 | 2021-12-06T03:34:25 | 191,060,792 | 19 | 7 | MIT | 2023-01-23T11:02:57 | 2019-06-09T22:16:59 | Python | UTF-8 | Python | false | false | 146 | py | from dazzler import Dazzler
app = Dazzler(__name__)
app.config.pages_directory = 'page_dir'
if __name__ == '__main__':
app.start('--debug')
| [
"t4rk@outlook.com"
] | t4rk@outlook.com |
837a50e4b9f8e97ec8f304adc9d057df7917293e | dad67bd2b3bcd2e5d7db630d5ded744e57b9b57e | /algorithms/compression.py | 0225e69ec47035893bde0ef98eb2fbd65804f4a8 | [
"MIT"
] | permissive | jcarreiro/jmc-python | 1affb26757b8df530a345c8995e6c758e7c3e2af | 979c67ca489d4e80e6be96d23f8bcecacabbee59 | refs/heads/master | 2021-06-06T17:58:39.311612 | 2019-05-17T14:13:11 | 2019-05-17T14:13:11 | 14,427,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | ##############################################################################
# Basic compression algorithms
##############################################################################
# Prefix Codes
#
# 1. Every message is a leaf in a binary tree.
#
# 2. The code is encoded in the path from the root to the le... | [
"jcarreiro@fb.com"
] | jcarreiro@fb.com |
14f38006d15d26343d7b1e21b00a34643f5619b1 | db12d20e1e9329503af280104929de63a622b6bd | /photos/admin.py | e20da248833c7b00555a7ef4613382e20cf9c81b | [
"MIT"
] | permissive | dorothymuhonja/Gallery | 61b5aee21859f563f24736d38bc8ca20df737a75 | 422b760fe64b6ff91398fe92edfc240817a0bce4 | refs/heads/master | 2023-03-29T11:11:15.572123 | 2021-03-24T11:37:25 | 2021-03-24T11:37:25 | 349,353,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.contrib import admin
from .models import Category, Location, Image
admin.site.register(Category)
admin.site.register(Location)
admin.site.register(Image)
| [
"dorothymuhonja7@gmail.com"
] | dorothymuhonja7@gmail.com |
18a0227d98d52769dace79cf55d75fa631b7d570 | 9e7c04bd4543261e4427b9f3cfa383c22ec59598 | /Vistas/migrations/0008_auto_20201028_1947.py | 95a4b134318d4ec39a7f25bb456855b0feb2d0c0 | [] | no_license | GustavoJimenezV/PythonERP | 0325a3292c65380be3ed997063a1eb64598201b8 | b31e55ad5f5867debe65a0cb3dd7753289bda5d5 | refs/heads/master | 2023-01-10T14:26:05.040550 | 2020-11-05T06:19:02 | 2020-11-05T06:19:02 | 301,633,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | # Generated by Django 3.1.1 on 2020-10-29 01:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Vistas', '0007_auto_20201028_0207'),
]
operations = [
migrations.AlterModelOptions(
name='mobiliario',
options={'ordering': ... | [
"dmx_gt@live.com.mx"
] | dmx_gt@live.com.mx |
f2c72470a67ccb4f7257c63cbb56e7e57a4e2ecd | 655b5d91011e5ac6361441b32c8b6c893815cf28 | /Trees/getting_started/Level_Order_Binary_Tree_Traversal.py | 4cf1707af6b06daf7cb31082bd7f6a7fde921ca8 | [
"MIT"
] | permissive | abhaydhiman/Pyalgo | 1bdc02d6326022ac832e20c581700d7875638380 | 69efdd937041548234bf67a2bd0b962b6e60a556 | refs/heads/main | 2023-05-10T17:56:06.005156 | 2021-05-19T16:38:22 | 2021-05-19T16:38:22 | 318,769,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | class Node:
def __init__(self, key) -> None:
self.val = key
self.left = None
self.right = None
def height(node):
if node is None:
return 0
else:
lheight = height(node.left)
rheight = height(node.right)
if lheight > rheight:
retur... | [
"abhaysdhimans@gmail.com"
] | abhaysdhimans@gmail.com |
947d1a396be059afdf7d383c3ba8875ac7652ea0 | e6342576193fd70937ab1cead8d9504f5a1a0b9b | /basic_api/admin.py | 55af462e17a4184687dafcbebc6dba0b8735234e | [] | no_license | shubham1560/Django-rest-angular-frontend | 41acfad812d522c12b2f2c70931bbf882e1f5f85 | 306151ebf772b036204bb709096b0eaea0a8d552 | refs/heads/master | 2020-07-15T22:08:16.271011 | 2019-09-19T18:40:41 | 2019-09-19T18:40:41 | 205,658,813 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from .models import Summary
# Register your models here.
admin.site.register(Summary)
| [
"shubhamsinha2050@gmail.com"
] | shubhamsinha2050@gmail.com |
d32785f5251c57ca8aae7287da6d07c3ebf1e6d8 | 4dc686e8c2584585d7aaf9e27f82a77fb9177f40 | /meetups/migrations/0003_rename_participant_meetup_participants.py | 984c88b6e35497fcaccbd8b15eb156dfb2d79da4 | [] | no_license | AhmedElashmawi/DevOps-Task | d7f0cc6564de265d70259d0599e7f31415ef40d4 | 0f56104c21f71be2fa289f43ce031618e1a5fd41 | refs/heads/master | 2023-07-27T02:07:09.011033 | 2021-09-09T23:38:28 | 2021-09-09T23:38:28 | 404,090,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 3.2.6 on 2021-08-25 20:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('meetups', '0002_remove_emolyees_slug'),
]
operations = [
migrations.RenameField(
model_name='meetup',
old_name='participant'... | [
"ibmwork22@gmail.com"
] | ibmwork22@gmail.com |
76abc4ed71db0aea0bfe5dd5c7b26debda40e245 | b0b6f5e9c5af597c1f0943d60aef49dd3b52dd3d | /videos/decorators.py | 6b1d82b5cc36fcb4737cb469cd5e5eb356b54ac6 | [] | no_license | dan214/Elimisha | 1c917f0b3c123bcf8e328083281c035478cf4467 | 2c179a0bb503d3ee00fb1179444abf140d3c28cf | refs/heads/master | 2021-09-26T05:15:25.566148 | 2021-09-16T20:40:05 | 2021-09-16T20:40:05 | 139,483,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from django.contrib.auth import REDIRECT_FIELD_NAME
from django.contrib.auth.decorators import user_passes_test
def student_required(function=None, redirect_field_name=REDIRECT_FIELD_NAME, login_url='login'):
'''
Decorator for views that checks that the logged in user is a student,
redirects to the log-in... | [
"danielmiji@gmail.com"
] | danielmiji@gmail.com |
fab2693211dbd0c2a860cc76f9c6560b088a2410 | 3486e643dc826b68fd3c7d895a8d3216492c5b66 | /Tests/test_context_menu.py | 9dc01ebb6e256d08e176ec392b6833319ddf2b6b | [] | no_license | maheshkafle/The-Internet-Example-Solution | 773d29eee5ef62c800780c7b54608766cdb701f2 | 298794dbb843aeee8709aeb87bd672da5ccce51a | refs/heads/main | 2023-06-16T12:09:40.729174 | 2021-07-17T21:08:36 | 2021-07-17T21:08:36 | 383,881,268 | 0 | 0 | null | 2021-07-17T21:08:36 | 2021-07-07T17:49:03 | Python | UTF-8 | Python | false | false | 587 | py | from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
"""
Test Context Click Menu or Right Click Menu
"""
URL = "https://the-internet.herokuapp.com/context_menu"
driver = webdriver.Chrome(Chrom... | [
"mahesh.kafle@smarsh.com"
] | mahesh.kafle@smarsh.com |
c77de50c1bc3274824ecd3f3cc23faa27d6840d7 | 4c3dd270440c48a0a8e87d1937844371476f7cef | /resource_wrangler/scripts/download_mods.py | cb42130c64e1983371fe8880c460d6c88f9945b7 | [] | no_license | Soartex-Modded/Resource-Wrangler | f84726bf5ffb246d8562149fb6cc0a613a4f4043 | 36c6f7059bb876e034c99d5e02fca1cf81888dac | refs/heads/master | 2023-01-25T00:34:22.900581 | 2020-11-29T23:00:35 | 2020-11-29T23:00:35 | 309,116,894 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,085 | py | import json
import math
import os
import requests
from sqlalchemy import Table, Column, Integer, String, MetaData
from sqlalchemy import create_engine
from sqlalchemy.sql import select
def download_mods(mods_dirs, database_path, mod_limit=100):
"""
Collect the top mods from CurseForge into mods_dirs
:pa... | [
"shoeboxam@gmail.com"
] | shoeboxam@gmail.com |
c72e3c3dcb8a88238fa6b42cb63e1df026e8c669 | d2d6bbb76fd92ad596b0476b37ac8dd5cf08df14 | /1.9 LISTAS.py | a97405df71a8abca906f6bf2d182f2441b9b24db | [] | no_license | edneyefs/curso_python | b917d8f2c405173af901287dab86264ff937aaa6 | 2c862ad62223b7c3bd0ea7d7410a9b69c38d814d | refs/heads/master | 2022-12-14T21:29:59.875637 | 2020-08-21T12:42:07 | 2020-08-21T12:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | lista = []
print(type(lista))
print(dir(lista))
print(help(lista))
print(len(lista))#contador
lista.append(1)
lista.append(5)
print(len(lista))
nova_lista = [1, 4, 'Ana', 'Bia']
#print(nova_lista)
nova_lista.remove(4)
#print(nova_lista)
nova_lista.reverse()
print(nova_lista)
lista = [1, 5, 'Rebeca', 'Guilherme', 3.14... | [
"edneysilva20@hotmail.com"
] | edneysilva20@hotmail.com |
e2543c1d836b4e07c2c56809cb5ccd62c0e46a2c | 6c7412abde7b4e65b751b6862f7ea66f0a24b9f0 | /pf_tests.py | d91a5b790db378d1db5539cfddc47cc9b53e97a2 | [] | no_license | SundropFuels/project-finance | c030112b015a6c2c82d74b8c78b4ba37d773383b | 5a49c7c9885f453828b5e43cd27564e3f4c95b23 | refs/heads/master | 2021-01-20T10:56:37.159616 | 2015-04-25T19:59:04 | 2015-04-25T19:59:04 | 10,133,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | import unittest
from capex_tests import *
from loan_tests import *
if __name__ == "__main__":
unittest.main()
| [
"chris.perkins@sundropfuels.com"
] | chris.perkins@sundropfuels.com |
311b92c0e6dd038422f4fe578243ed511d7603e1 | 3d5e26af890495bf1ed137af789dc61e4a61442f | /prestamo/migrations/0001_initial.py | 4c71cb423e43354399e55e3bea08d8f036310492 | [] | no_license | andchaves/recursos | 187ba4bfa5ced1531526c763eea2a72f9b70d3d6 | 6f98cc83a1b0e8524e516a28e65d94cb903608fd | refs/heads/master | 2021-08-20T09:22:07.303926 | 2017-11-28T19:16:43 | 2017-11-28T19:16:43 | 112,377,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-11-25 20:55
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"andchaves@umariana.edu.co"
] | andchaves@umariana.edu.co |
c009a684dee20066dc3b9eb52828169dc7772e13 | 908bd9a40dd34c788595643586e7231c5aa32d76 | /learning_logs/migrations/0010_auto_20190326_2207.py | 3a0dab48978800b18290417c835523c568088bf5 | [] | no_license | tpchencn/myweb | 625257541ec3c874ff9839c370e274f5887987ad | 8915857873d6a52b0803cbb19fe5fe7e123b366a | refs/heads/master | 2020-05-01T15:23:58.271045 | 2019-04-28T14:14:58 | 2019-04-28T14:14:58 | 177,545,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # Generated by Django 2.1.7 on 2019-03-26 14:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('learning_logs', '0009_remove_entry_text'),
]
operations = [
migrations.CreateModel(
name='Books',
fields=[
... | [
"tim.chen@mobilemd.cn"
] | tim.chen@mobilemd.cn |
d469fbea7eb9b0326c4fae0374ee749cb83bf42b | 8adea6649ec3d5b62477db4b65367fca889cc650 | /hello.py | 2fb572ac053d7628b1ed6e2f1a32631a28a18f74 | [] | no_license | hshar94/devopssol | ad0d0c95d62281f30cab4b81afcafb5bcd61f400 | 2903101220a9c170c925ad5659d1156f3b8ab330 | refs/heads/master | 2023-05-22T21:44:31.283234 | 2021-06-13T10:29:03 | 2021-06-13T10:29:03 | 375,890,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from flask import Flask
from flask import render_template
from flask import request
app = Flask(__name__)
@app.route("/", methods=['GET', 'POST'])
def hello_world():
return "<h1>HHHello World from intellipaat!!@@ from Kubernetes from github!</h1>"
if __name__ == '__main__':
app.run(host='0.0.0.0', port=80,... | [
"hemantsharma@Hemants-MacBook-Air.local"
] | hemantsharma@Hemants-MacBook-Air.local |
548980782c09a047bbcc43b0e12a6dae822cdcc6 | ed1d841dbd836f5a02a8b2c22bcc92380f28d11b | /seed.py | 9b08aa64301e4ced1c79ad9d8a6e7a7e4658118c | [] | no_license | GraceDurham/ratings | b063389f368f0b3994f0771ca4cac46555a04a10 | 2e628c2a824ca5a10879a15282cd60e21695322b | refs/heads/master | 2020-05-23T07:59:29.310561 | 2017-02-03T02:00:36 | 2017-02-03T02:00:36 | 80,483,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | """Utility file to seed ratings database from MovieLens data in seed_data/"""
from sqlalchemy import func
from model import User
from model import Rating
from model import Movie
from datetime import datetime
from model import connect_to_db, db
from server import app
def load_users():
"""Load users from u.user i... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
ce74869dfba1ac197d3fa552de5a0282de7b1254 | 53f8d420057b7f7d403b29e7f1f827df9d422b6b | /Solver.py | df2fdc813406b58432dad9f76aec07f90861e100 | [] | no_license | won2930015/PyCharm_test2 | 3fc403fef278d5a5e8168cba5cdc8c32f0788f2e | 11ec6f8ef103d6be63e7090f9003f58778616024 | refs/heads/master | 2020-04-09T22:29:36.792077 | 2018-12-19T03:33:36 | 2018-12-19T03:33:36 | 160,629,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import math
class Solver(object):
# <editor-fold desc="Description">
def demo(self, a, b, c):
# a = int(input('a:'))
# b = int(input('b:'))
# c = int(input('c:'))
d = b ** 2 - 4 * a * c
if d >= 0:
disc=math.sqr... | [
"58769598@qq.com"
] | 58769598@qq.com |
f613a28a68ddb2b2e13f560c935d205ae1a933bc | e124468b63af504f0a52d8c23a7b4d5441104c21 | /ecommerce/store/views.py | c1765c582c3640559d8662a9e7797f49fff52cae | [] | no_license | arpitgupta30/Ecommerce-Website | 568d1fe6c7a089686b5796e4b84a5bbf8f2d147b | 39777cf843dab375765e5a646e44afea2af349a7 | refs/heads/master | 2022-11-05T02:04:15.249516 | 2020-06-18T10:27:17 | 2020-06-18T10:27:17 | 269,936,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | from django.shortcuts import render
from django.http import JsonResponse
from .models import *
import json
import datetime
from . utils import cookieCart, cartData, guestOrder
# Create your views here.
def store(request):
products = Product.objects.all()
data = cartData(request)
items = data['items']
... | [
"arpitofficial123@gmail.com"
] | arpitofficial123@gmail.com |
6ceb6080895456a03be17937d08324d6464f3e4f | f15f4e4ae7861e8a854c6bc10a47c4c0aaebe712 | /scripts/dist-git/pkgdb_gen_gitolite_conf.py | 255ad05146ffd01bf524d2d10c2af8fd8161deee | [] | no_license | asamalik/dist-git | 825c5e225e714ec89737ac4cacbb574fecfd95c5 | 71fea916ab829d19f6c11fcfe49a8cd31f813ccb | refs/heads/master | 2020-12-25T19:15:14.620146 | 2015-04-27T18:48:29 | 2015-04-27T18:48:29 | 32,317,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | #!/usr/bin/python -t
#
# Create an /etc/gitolog/conf/getolog.conf file with acls for dist-git
#
# Takes no arguments!
#
import grp
import sys
import requests
from ConfigParser import ConfigParser
def _get_conf(cp, section, option, default):
if cp.has_section(section) and cp.has_option(section, option):
r... | [
"asamalik@redhat.com"
] | asamalik@redhat.com |
b36df7b0192a1496fa338fe4bd31bcf8c9822f46 | d60e23026d717942466dd363e4822da7b00f6320 | /web/tests/apps/partner/test_views.py | 52cd9892c46eb5eeb0d9cd68330792801dddae95 | [
"BSD-3-Clause"
] | permissive | sidneijp/zedev | 190f59d9b5551137eabe948d0bf816c32fcb7782 | 75d6a83d08febb795f862627811925ea18f89fca | refs/heads/master | 2023-01-01T20:59:41.942026 | 2020-10-23T23:01:12 | 2020-10-23T23:01:12 | 303,247,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,777 | py | import json
from django.contrib.gis.geos import Point, GEOSGeometry
from django.urls import reverse
import pytest
from apps.partner import factories, views, models
class TestViews:
def setup(self):
self.point = Point(15.0, 10.0, srid=4326)
self.coverageArea = GEOSGeometry(json.dumps({
... | [
"sidi.jp@gmail.com"
] | sidi.jp@gmail.com |
38af83d170297d348201ba84ec024ff6782f1b88 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/admin_custom_urls/urls.py | 12f440e54206905c1883af69161ca4715a9ff7be | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/admin_custom_urls/urls.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
ca016bd689fb246e19dc877a574e00c0cd0e1ec1 | 2b6e1b7bd7065229054b4cdecd40daa5e251c22d | /src/models/dqn.py | 4195fc5933776981002b4d8d68a69c1ac3b934bb | [] | no_license | raufer/deep-q-learning | b9be99c41829e8d62cd350cd279e5ddc135e7809 | c31b8803a45bcf1f22f1c4552daf48b9a284dd5c | refs/heads/main | 2023-06-19T06:01:49.867163 | 2021-07-20T13:35:30 | 2021-07-20T13:35:30 | 379,271,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from src.config import config
class DQN(nn.Module):
"""
Assumption: the environment is deterministic
so all equations presented here are also formulated deterministically for the sake of simplicity.
In the reinforcement learning lite... | [
"raufer92@gmail.com"
] | raufer92@gmail.com |
0c7ea9ab5c864e9b66250d7cbbd2983cbb8b51a7 | 6b9e271dd425396c9cbc617e47f5065de2d1fef1 | /tmplr/__init__.py | 60519e68d78e107bd2776ea0e455ec007229936f | [
"MIT"
] | permissive | joshleejosh/tmplr | 0cb236f185a82abad28380f0c5ddd0cc02fdb731 | 19209bb43ce40a307eecf2faf6dae8ccc8b0c9db | refs/heads/master | 2020-04-04T09:48:05.418311 | 2019-01-06T18:14:34 | 2019-01-06T18:14:34 | 42,019,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | # -*- coding: utf-8 -*-
"""
Yet another static site generator.
"""
| [
"josh@floor.is"
] | josh@floor.is |
814dd18821eebcb7889c382aedbef546353c54a2 | b1ebf9c399477b6aa15627208a31b39cf673ffe4 | /testes/cadastro2.py | 8baf70ab154ea3236492fdd78d7462c31cd86f78 | [] | no_license | srclayton/Python-uDemy | 170a0ca88e4251abe2105fe4b2a797f0e33e353b | cff915da30edfc61647588431d52d32cf08c22bc | refs/heads/main | 2023-01-21T17:23:33.581235 | 2020-11-28T14:32:34 | 2020-11-28T14:32:34 | 308,778,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # -*- coding: utf-8 -*-
arquivo_original = open("cadastros.txt", "r")
arquivo_copia = open("cadastros2.txt", "a")
#for linha in arquivo_original:
# valores = linha.split()
# count=0
# while count < 11:
# arquivo_copia.write(valores[count] + " ")
# count+=1
# arquivo_copia.write("\n")
arquivo_2 = open("cadastros2.txt"... | [
"56970620+srclayton@users.noreply.github.com"
] | 56970620+srclayton@users.noreply.github.com |
f7c2105bdadbd86b2600eff80773427f74aa8d3b | 525f39ec2fe53bcd65ff13b87c7a900358e30c1c | /Lab3B/1C.py | a539436e5493292aab72694f459c7520aa9e2d66 | [] | no_license | abdullah2808/ENGR_102 | fc2cbda672c407d8cf24c14238c2354516c8d7d7 | 6b3080e01c162e16b207df0099427368ab231af9 | refs/heads/master | 2022-12-14T23:49:56.090186 | 2020-09-13T21:31:12 | 2020-09-13T21:31:12 | 295,239,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # By submitting this assignment, I agree to the following:
# “Aggies do not lie, cheat, or steal, or tolerate those who do”
# “I have not given or received any unauthorized aid on this assignment”
#
# Name: ABDULLAH AHMAD
# Section: 518
# Assignment: LAB 3B - 1C
# Date: 13/9/18
Days = int(input("Please enter ... | [
"noreply@github.com"
] | noreply@github.com |
bd22959ea01a76d8407594d4c290cda432b2a95e | e5b902979133b8bbc9abcec53d0b8486518a15cd | /test.py | 1ee5ef72813f59f202037bda85b34a129ab2b0e0 | [] | no_license | fly2016git/MyBot | 51838b37d0fcf81547b1e3a6a31b6bf8dbd107b1 | 66aad51dadda9d054159822ba58b57dded3eb272 | refs/heads/master | 2021-01-19T09:03:15.621776 | 2017-05-17T14:53:24 | 2017-05-17T14:53:24 | 87,713,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | '''
Created on 2017年4月9日
@author: zpf_s
'''
ls = [1,2,3,4,5,6]
for _ in range(5):
print(_) | [
"zpf_s@DESKTOP-L2STAU4"
] | zpf_s@DESKTOP-L2STAU4 |
b4838aea4ebb660fe5f294da900b8d93a5ba1f09 | 2a671de9ff13e2d82de0abbffa1712000a5c53e6 | /selenium/Website/testcase/model/testutil.py | f1f3b0daca07106b384c17d22f00e0307a46e3fb | [] | no_license | asdf27901/auto_selenium | eddb28ed60cb8238bc5f742f66ddd972e0a518d0 | f669a222e102c1737966d8863e4a74650403e379 | refs/heads/main | 2023-03-27T01:08:07.695555 | 2021-03-14T18:31:40 | 2021-03-14T18:31:40 | 347,719,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import unittest
from driver.driver import *
from Website.config.data_config import *
class SetStartAndEnd(unittest.TestCase):
def setUp(self) -> None:
self.driver = get_driver()
self.driver.maximize_window()
self.driver.implicitly_wait(timeout)
def tearDown(self) -> None:... | [
"noreply@github.com"
] | noreply@github.com |
c885620223bab7b3b759d52fbf738145d6690444 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/rtctrl/setrtmetricdef.py | f5d55b1458f3e0a5d0f447271471db818060c777 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,969 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
4c2f407d9154816cb619874628717ae82b0805bf | 300cc8404005086b5a576f3e5572dbafd0cfe362 | /Dashboard/urls.py | aca2dafd68b55b94d38abbb071d9ef81158f3b7e | [] | no_license | TabaPesaMc/Blocks-Management-System | 4a92f64fbfaa0940146edf9ef5427c575583ea54 | 35d966fac0623b56c7674c6a1c837491276b5725 | refs/heads/main | 2023-04-29T21:15:19.106450 | 2021-05-12T06:22:45 | 2021-05-12T06:22:45 | 366,617,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | """STOCK_MANAGEMENT_PROJECT URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"ntabarigwapastory@gmail.com"
] | ntabarigwapastory@gmail.com |
5a7acb02c1f18590c52ef7d5b38a3033044bf2a1 | 366ad2700f4b5627fdd7ade2696a4901b3ec74bf | /A2/src/Load.py | 8d740e599aeda93b748eea6be541285be307acdf | [] | no_license | HaoyuanFu/qualifiedAssignments | f9f4f3dbaf72228ae3e30cdb7a5361e415a75bdc | 834715694956073e082c690be6ba3ef2e3f56b41 | refs/heads/master | 2020-04-24T04:53:14.390586 | 2019-02-24T00:49:22 | 2019-02-24T00:49:22 | 171,718,332 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | ## @file Load.py
# @author Harry Fu
# @brief Provides the Plotting methods
# @details Provides the Plotting methods with the assumption:
# The input file will match the given specification.
# @date 2/14/2018
from Data import Data
from CurveADT import CurveT
## @brief Reads data from file
# @param s Th... | [
"harry@haoyuanfus-MacBook-Pro.local"
] | harry@haoyuanfus-MacBook-Pro.local |
2d886b361371b93476368c2a749027b3942e7f7d | 9dd5d19773720756e57b8f14bf92e848fca3f8ec | /TP5/makedatabase.py | 18a130683ffeaaa9ea726351a736ecced56e4774 | [] | no_license | JermanKell/TPs_Python | 12afd2c9817705d6d419d38285d3045a4197e3f4 | ed4bb958230d181146f08f6936586feffbd2bf15 | refs/heads/master | 2020-03-29T09:25:36.313313 | 2018-11-25T18:42:05 | 2018-11-25T18:42:05 | 149,757,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | import sqlite3
def create_database(nom_db):
conn = sqlite3.connect(nom_db)
c = conn.cursor()
c.execute('''CREATE TABLE if not exists Communes
(code_dpt text, code_com text, nom_com text, pop_tot integer)''')
c.execute('''CREATE TABLE if not exists Departements
(code_... | [
"xzeno@orange.fr"
] | xzeno@orange.fr |
22cc35da3867ed7a1af79ff958254f07c2be73d2 | 8a4e89fb0c84b2303b2835c1bd9cd258ea587278 | /model.py | 559b16ed3aa304efbfb4d5633b96e0c47e7c5141 | [] | no_license | zhangyipin/bi-lstm-crf-ner-tf2.0 | 8b1135c1b02ec419ec1f69884e29b80dee3321d5 | 375dd59c9883a7cdcdf1d9cdd70877d709b3c95c | refs/heads/master | 2020-12-10T06:53:28.896139 | 2019-12-05T13:17:03 | 2019-12-05T13:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2019/12/3 7:15 下午
# @Author: wuchenglong
import tensorflow as tf
import tensorflow_addons as tf_ad
class NerModel(tf.keras.Model):
def __init__(self, hidden_num, vocab_size, label_size, embedding_size):
super(NerModel, self).__init__()
sel... | [
"wuchenglong126@126.com"
] | wuchenglong126@126.com |
ad308c53f59ee98a390a36b7b4555d40025649d2 | f15aa508749bc7c7f89221f40eee4fba9a7e22cb | /tests/test/test_server.py | 3f23339e62a4c551bb22db5196a76a0ee9535a83 | [
"WTFPL"
] | permissive | kamilion/StarryPy3k | 275064b82f2ad617915b6a6c69330ab43429b37d | 0440fa86886618035345628bb4f2315a0b0e3e6c | refs/heads/master | 2021-01-18T10:32:02.592891 | 2015-02-05T07:35:25 | 2015-02-05T07:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import asyncio
from server import ServerFactory
def start_server():
serverf = ServerFactory()
yield from asyncio.start_server(serverf, '127.0.0.1', 21025)
class TestServer:
def setUp(self):
self.loop = asyncio.get_event_loop()
def tearDown(self):
self.loop.stop()
def testTest(... | [
"Patrick.E.Shanahan@gmail.com"
] | Patrick.E.Shanahan@gmail.com |
5f77a760ce54a8b9ecb7cd4edda181f8739a0f38 | 608ff19dabe0cac3eb13839fc3ec094766ccfed2 | /domainmodel/author.py | bbac8ff433a5b28d665f17592dc43d8a6fb4c19c | [] | no_license | cko780/235_A1 | e2fb35ee113ec803f483a26f997632c84f30afec | 639ee42cd3d7d56ac015da11185a6bc60f959183 | refs/heads/master | 2023-07-06T09:02:14.035983 | 2021-08-16T21:33:51 | 2021-08-16T21:33:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | class Author:
def __init__(self, author_id: int, author_name: str):
if not isinstance(author_id, int) or author_id < 0 or not isinstance(author_name, str) or author_name.strip() == "":
raise ValueError
self.__author_id = author_id
self.__author_name = author_name.strip()
... | [
"68049051+SamDosado@users.noreply.github.com"
] | 68049051+SamDosado@users.noreply.github.com |
326c83debde341e94a5a0e096d92b9a3d2265ca5 | aa47269c81411b60778fcec4b541f794d34bf8fe | /python_scripts/extract_by_attributes_and_mask.py | 8b0af96c414d7dc825554d26ce42613a2540f99a | [] | no_license | arhwiegman/SpatialTools | a1c525d97689874d0f10dcbd02087c737c8172f8 | 9693de55c3e9813b4c84856fbb9350af4c5fc2dd | refs/heads/master | 2022-06-15T00:02:59.854343 | 2022-06-02T16:43:13 | 2022-06-02T16:43:13 | 118,836,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,181 | py | # This script selects raster pixels by attribute value and then extracts another raster by the selected values as a mask
# Requirements: Spatial Analyst Extension, Numpy, os, glob
def main(interactive=False):
'''
# SETUP ---
# Loading modules and setting up directories
'''
dirs = setup_workspace(int... | [
"adrian.wiegman@uvm.edu"
] | adrian.wiegman@uvm.edu |
b012ab34e45cf798f99a340e8c758fb3f8756f97 | d7e3d78e5eee5454e06e0eab3798a7ce94128267 | /Pfundamental Lab/Lab 5/Task 2.py | 02670ec88701aa661dfecfd6eb067d6f3c90c69a | [] | no_license | AbdulMoizChishti/python-practice | f1f001cdeb63112025703650cb72f8471733de38 | 379d117f66abee5e8b619e38a59533138aaaa1e7 | refs/heads/master | 2023-02-04T08:32:37.162350 | 2020-12-19T15:29:03 | 2020-12-19T15:29:03 | 322,878,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | num = 18
for i in range(1, 11):
print(num, "x", i,"=",num*i) | [
"moaiz599@gmail.com"
] | moaiz599@gmail.com |
a14be52f4c558465de5d6ef552c0bc3dfa7a71eb | c96f48986c2bb993458f9081860326756ddfe7d9 | /django_db2charts/urls.py | 4a4cd0d8a9354ced049c6eed30ef15622c1e5daf | [
"MIT"
] | permissive | Alfredx/django-db2charts | 86aabd5ea32cad74e056fdf9eca00292d68ed0a9 | 436f9bf54cc022eda821a9679b3431c2ea16eb6f | refs/heads/master | 2021-01-20T20:53:44.501410 | 2016-06-28T07:52:47 | 2016-06-28T07:52:47 | 60,136,697 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | """django_db2charts URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/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')
... | [
"alfredcameoutwithnonames@gmail.com"
] | alfredcameoutwithnonames@gmail.com |
1bd7a906e3ae3f165ff81b9124b97e9187f5bcc5 | e5202e0f36c15b8898920a461a866168fa059947 | /clirad/n2o_3.2e-07/band_3/atmpro_mls/cliradlw_1013f91/param.py | 33924bb8f70d78d9230fd85569d18e1186ba5363 | [] | no_license | qAp/analysis_-_new_kdist_param | 653c9873751646f6fa9481544e98ed6065a16155 | 272dc3667030cdb18664108d0bd78fee03736144 | refs/heads/master | 2021-06-11T04:21:35.105924 | 2019-08-04T13:13:07 | 2019-08-04T13:13:07 | 136,108,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | PARAM = {'commitnumber': '1013f91', 'band': [3], 'molecule': {'n2o': 3.2e-07}, 'atmpro': 'mls', 'tsfc': 294}
PARAM_LBLNEW = {'atmpro': 'mls', 'band': '3a', 'commitnumber': '5014a19', 'conc': 3.2e-07, 'dv': 0.001, 'klin': 2.22e-20, 'molecule': 'n2o', 'ng_adju': [0, 0], 'ng_refs': [1, 2], 'nv': 1000, 'option_compute_btab... | [
"llacque@gmail.com"
] | llacque@gmail.com |
682a746c86f697e0d7d40584dfe744687ff6f502 | 934475e24c0262013a000dc0bc86fbec5e82bec2 | /jemm/transcript.py | 42be4605fbe756cc827030788351af85a5ae9b99 | [] | no_license | zhanglab-aim/JEMM | 05e2cf93b6aab4cca94d4caa23bacd5445b21ccd | 9d1d00bfe71fdb61b1f610b72a9561933d32d303 | refs/heads/main | 2023-07-25T07:56:51.173370 | 2023-07-05T18:59:31 | 2023-07-05T18:59:31 | 572,681,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,645 | py | """
This module handles reading and writing related tasks for transcript-based exon measure
"""
# Author : zzjfrank
# Date : Aug 24, 2020
import os
import pandas as pd
import numpy as np
from collections import OrderedDict
import pickle
from multiprocessing import Pool, cpu_count
from tqdm import tqdm
from .d... | [
"zzj.zju@gmail.com"
] | zzj.zju@gmail.com |
07b9d9814ac9cfa9eebb4569b73e71272a56cdc7 | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/AC_Well_U18_20210720193949.py | d1bd37fe1285363db73ceec0bfe193a13e06ef95 | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 11,089 | py | # To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'
# %%
import numpy as np
import pandas as pd
import math
import lasio
from scipy import interpolate
import matplotlib.pyplot as plt # GRAPHS
import glob
from matplotlib import rcParams
# %%
las1= lasio.read('./LAS/U18/U18_GR.las')
... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
d4b8f5989466780e1f4819d54a8447935d821ed3 | b368f0dd09a4eed97a350ca01ac170bb44347f8d | /python/oneflow/framework/tensor_str.py | 10ecfbbc8c30e7196b4c34f79684cca7d94e273f | [
"Apache-2.0"
] | permissive | opencici2006/oneflow | bb67d3475e5b85d88f7f627733af75859e431759 | 7c3b42fa5ae95823d195c077565f0c190d98e7ad | refs/heads/master | 2023-08-01T14:22:33.745620 | 2021-09-09T02:52:54 | 2021-09-09T02:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,715 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | noreply@github.com |
e52168c2053ab542fa265c652cd8e6681ca39760 | 3061e43d2d90bae124e6ee32d41b9db4f9275805 | /task_based_analysis/fmri_fsl_noSmooth.py | 376726d29f8e6745cca096f41393ff7c91450997 | [] | no_license | orduek/kpe_task | cfc1a904944c79270d3a41aa9c78e0c616e7bccf | 5c84ff8963980ea7940d99cec7e45c63e1b18483 | refs/heads/master | 2021-06-22T06:33:31.669078 | 2021-02-18T09:23:05 | 2021-02-18T09:23:05 | 188,063,421 | 1 | 1 | null | 2020-12-06T10:04:46 | 2019-05-22T15:13:36 | Jupyter Notebook | UTF-8 | Python | false | false | 8,728 | py | #!/usr/bin/env python
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
Created on Wed Dec 4 14:29:06 2019
@author: Or Duek
1st level analysis using FSL output
In this one we smooth using SUSAN, which takes longer.
"""
#%%
from __future__ import pri... | [
"orduek@gmail.com"
] | orduek@gmail.com |
31cd84d71b99be36816d823a9e04178b834ca8b0 | a13153cb5a915c760586e8a45db338a08901028b | /shangchengxitong.py | 810d4e891c718a9535ebb69c4de6150fa5511e01 | [] | no_license | 18730325640/store | 092627e5e5e94276e54033004ae95da1c5f7d2aa | 086c847f4a91fd67eedaa221e36ef4a9b3874842 | refs/heads/master | 2023-06-01T07:19:00.504648 | 2021-06-25T08:13:28 | 2021-06-25T08:13:28 | 378,825,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | print("hello world!")
print("-日期 服装名称 价格/件 库存数量 销售量/每日-")
print("-1号 羽绒服 253.6 500 10 -")
print("-2号 牛仔裤 86.3 600 60 -")
print("-3号 风衣 96.8 335 43 -")
print("-4号 皮草 135.9 855 63 ... | [
"1527031669@qq.com"
] | 1527031669@qq.com |
0248493f86a691fd2dad48155858dec716040d67 | 2018b20688fcedc6a4f274ca77d71e03b54da609 | /user/models.py | 48875f6448257414a52afcea22a8aaf4c666514d | [] | no_license | harshithpabbati/django-graphql | 968ef28c9045e6db87a38383c00d0427ba336723 | 3b98528f805339035e841a178d56c48cdee0442d | refs/heads/master | 2022-06-16T01:59:12.207097 | 2021-07-21T13:42:01 | 2021-07-21T13:42:01 | 229,286,190 | 3 | 0 | null | 2022-05-25T02:56:43 | 2019-12-20T15:09:25 | Python | UTF-8 | Python | false | false | 825 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from framework.utils.cornflakes.decorators import model_config
@model_config()
class User(AbstractUser):
# id of the user, generated by cornflakes
id = models.AutoField(primary_key=True, null=False)
# email to communicate wi... | [
"pabbatiharshith@gmail.com"
] | pabbatiharshith@gmail.com |
d6421366ead0444f243530ea7171288c4fd74f01 | 3f85a2b5ebaf040d295bd5d98c49b59e9ea82643 | /extract_delf.py | d8911a4ee35ad704974c37e18e3ef631c5868f09 | [
"Apache-2.0"
] | permissive | vcg-uvic/image-matching-benchmark-baselines | 6b69d0db384c4af90b431f421077aa0f8e1ec04f | 01510c4d2c07cad89727013241a359bb22689a1b | refs/heads/master | 2021-01-04T00:35:04.375020 | 2020-10-01T17:19:54 | 2020-10-01T17:19:54 | 292,169,250 | 19 | 1 | Apache-2.0 | 2020-10-01T17:19:56 | 2020-09-02T03:29:45 | null | UTF-8 | Python | false | false | 9,403 | py | # Copyright 2017 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"ducha.aiki@gmail.com"
] | ducha.aiki@gmail.com |
98eb6a81f0078231ee88127e1e12dcc23b2cec74 | c17b2e12ce50446b3be07a218781475c8cc79825 | /constants.py | db7d619f0a0c6136f4173936ac737bc33b01d820 | [] | no_license | miscott/3G-AMP | 33e94bd5e020d608deb186014f39819a847a7b0f | 97a1b3277d32a4e0973476b1b0b688c3ca6018f3 | refs/heads/master | 2020-06-13T18:20:15.968666 | 2019-06-17T04:55:42 | 2019-06-24T04:55:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py |
# Some constants used for reading layers and layer properties from CFG file
LAYER_CONVOLUTIONAL = 'convolutional'
LAYER_UPSAMPLE = 'upsample'
LAYER_ROUTE = 'route'
LAYER_SHORTCUT = 'shortcut'
LAYER_MAX_POOL = 'maxpool'
LAYER_YOLO = 'yolo'
LAYER_NET = 'net'
LAYER_LEAKY = 'leaky'
LAYER_RELU = 'relu'
LAYER_LINEAR = 'line... | [
"darshanmehta17@gmail.com"
] | darshanmehta17@gmail.com |
c0066fdbc9fdf711682287e1178d71f95464a27c | 68ebfad0c7968a27fc22b0fa1ec493dd7090cf7d | /ats_log_parser/__init__.py | a4a96f7b3aa4426f223570f26fc1fd9b03a733d2 | [
"Apache-2.0"
] | permissive | hong142101/ats_log_parser | 1697c398046c61fc0846732a1386c1d303a0b754 | bb91138fb670698568cd9dd28c4977e8cc0ba09c | refs/heads/master | 2021-01-25T06:49:20.518355 | 2017-07-13T08:39:11 | 2017-07-13T08:39:11 | 95,871,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,448 | py | import datetime
import logging
from .log_analyst.settle_process import SettleInformation
from .log_analyst.settle_process import __get_position_csv_name
from .log_analyst.settle_process import push_positions_and_trades_into_database
from .log_analyst.settle_process import summary_daily_trades
from .check_and_settle.ch... | [
"hongxing@liangyiinvestment.com"
] | hongxing@liangyiinvestment.com |
cda6fe910843971d4f9e396af4d64eb51229db8a | 9dc245909c30483263f68ad21e32ff0ab558bbcb | /api/serializers/students.py | 1de45c0ffffc2280f4e26e5083b0d92e88d9b827 | [] | no_license | katsos/ems-pgp | 36c8f521957d1b809c717be90eff80f8b5fc24ec | 687017f60f68133e677252efaab31d847587ea69 | refs/heads/master | 2023-02-09T22:34:29.358937 | 2020-09-04T15:45:22 | 2020-09-04T15:45:22 | 138,284,866 | 0 | 0 | null | 2023-01-26T01:18:54 | 2018-06-22T09:40:14 | JavaScript | UTF-8 | Python | false | false | 499 | py | from rest_framework.serializers import ModelSerializer
from api.models import Student
from .payments_shallow import PaymentSerializerShallow
from .circles_shallow import CirclesSerializerShallow
class StudentsSerializer(ModelSerializer):
circle = CirclesSerializerShallow(read_only=True)
payments = PaymentSeri... | [
"nikoskatsos101@gmail.com"
] | nikoskatsos101@gmail.com |
135f69897b740742d615a59e60256e99b761d86d | 1346ea1f255d3586442c8fc1afc0405794206e26 | /알고리즘/day24/babygincompare.py | 0506c4570d0fcac76a84ab75a16604fe95dd74ec | [] | no_license | Yun-Jongwon/TIL | 737b634b6e75723ac0043cda9c4f9acbc2a24686 | a3fc624ec340643cdbf98974bf6e6144eb06a42f | refs/heads/master | 2020-04-12T00:41:03.985080 | 2019-05-01T07:55:25 | 2019-05-01T07:55:25 | 162,208,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | def player1babygin():
for i in range(len(player1_data)-2):
for j in range(i+1,len(player1_data)-1):
for k in range(j+1,len(player1_data)):
candi=sorted([player1_data[i],player1_data[j],player1_data[k]])
if (candi[1]-1==candi[0] and candi[1]+1== ca... | [
"dmdmdkdk@daum.net"
] | dmdmdkdk@daum.net |
df113094854ba04a033632a46969612a2810a824 | aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4 | /Q03__/04_Range_Sum_Query_2D_Immutable/Solution.py | 5a36350496b38c5b518c880e49d6cd71aaf91e13 | [
"Apache-2.0"
] | permissive | hsclinical/leetcode | e9d0e522e249a24b28ab00ddf8d514ec855110d7 | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | refs/heads/main | 2023-06-14T11:28:59.458901 | 2021-07-09T18:57:44 | 2021-07-09T18:57:44 | 319,078,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | from typing import List
class NumMatrix:
def __init__(self, matrix: List[List[int]]):
self.matrix = matrix
self.n = len(matrix)
if self.n != 0:
self.m = len(matrix[0])
else:
self.n = 0
def sumRegion(self, row1: int, col1: int, row2: int, col2: int) -> i... | [
"luhongisu@gmail.com"
] | luhongisu@gmail.com |
53fc8b0f4b4edd08561c3807270f46137ef31875 | fdedcfc5242a375bb08e0ec7e206d5560ce36f65 | /mmctools/windtools/windtools/SOWFA6/postProcessing/probeSets.py | a56818c48f189c242a32d90f566f12115d14a425 | [
"Apache-2.0"
] | permissive | DriesAllaerts/mmctools | 2069fe02e0c7417cfbf6762d2db6646deb43123c | b5f88556c1df3935d1d36260c59e375423df6f1d | refs/heads/master | 2022-12-01T13:56:32.192494 | 2022-09-14T03:10:21 | 2022-09-14T03:10:21 | 187,232,582 | 0 | 0 | Apache-2.0 | 2019-05-29T20:19:52 | 2019-05-17T14:40:10 | null | UTF-8 | Python | false | false | 12,448 | py | # Copyright 2020 NREL
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software distribu... | [
"eliot.quon@nrel.gov"
] | eliot.quon@nrel.gov |
92d365a4e83436e037e955767a5d9e4ff75eb574 | 8de1d184bfe93977d394531c17e7ad6828e4fec6 | /pythoncode/continue.py | 0c343caf173a97f6f3348e325ce898cf4da76be5 | [] | no_license | sabeethaB/python | ae3d88fec4fb93e948e9a8d975bd30d33ca2768a | e9f1c6929e116031510ecffa7743308b70b37f59 | refs/heads/master | 2020-03-29T01:35:00.038536 | 2018-09-19T05:21:38 | 2018-09-19T05:21:38 | 149,395,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | i=1
while i < 6:
i+=1
if i==3 :
continue
print(i)
| [
"sabeetha@fixnix.co"
] | sabeetha@fixnix.co |
35db51cf348a96de0146b863044a28316676b0a6 | d972aa228eaea8c2ec938f6402c8a4238f846e5d | /rl/utils/general.py | 274b3d31177240a2b75bfc6aacd980e31c6329a8 | [] | no_license | austospumanto/ateam-project | 33243df80d045fde2895d2917b123f204d04214c | 2a1e13f462e904750da09dd54fc1e3b3248cd52e | refs/heads/master | 2020-12-30T13:27:50.127193 | 2017-06-10T05:13:57 | 2017-06-10T05:13:57 | 91,215,463 | 5 | 2 | null | 2017-06-01T01:36:13 | 2017-05-14T02:42:32 | Python | UTF-8 | Python | false | false | 5,476 | py | import time
import sys
import logging
import numpy as np
from collections import deque
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
def export_plot(ys, ylabel, filename):
"""
Export a plot in filename
Args:
ys: (list) of float / int to plot
filen... | [
"austin@hemmeter.com"
] | austin@hemmeter.com |
a9e9db890f03852b409988c69a8c137775b9b5b9 | b164b758ef009926a9c864259111476a98f3d289 | /utils.py | ce49c7684349c44515166e4b0ba065272eaf920f | [] | no_license | FireBrother/ai_challenger_caption | 297e4cb176ebe737ac790d230c352d302558c019 | 459a3047f04b67a8d052377491655a453a22109f | refs/heads/master | 2021-06-26T22:22:36.735266 | 2017-09-17T09:06:25 | 2017-09-17T09:06:25 | 103,229,515 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | import time
import numpy as np
import redis
global_redis = redis.Redis(host='162.105.86.208', port=6379, db=1)
def timeit(method):
def timed(*args, **kw):
ts = time.time()
result = method(*args, **kw)
te = time.time()
print '%r %2.2f sec' % \
(method.__name__, te - t... | [
"wuxian94@pku.edu.cn"
] | wuxian94@pku.edu.cn |
1c25fdc3c71bd1c13e880d528341cc4b0e788efd | f54d702c1289b2b78f423850d7fedba6c9378126 | /Mathematics/Fundamentals/handshake.py | b505905cd0327f05e06069e006057674fa76dc6a | [
"MIT"
] | permissive | ekant1999/HackerRank | 81e6ac5bec8307bca2bd1debb169f2acdf239b66 | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | refs/heads/master | 2020-05-02T09:19:10.102144 | 2016-10-27T04:10:28 | 2016-10-27T04:10:28 | 177,868,424 | 0 | 0 | MIT | 2019-03-26T21:04:17 | 2019-03-26T21:04:17 | null | UTF-8 | Python | false | false | 243 | py | # Python 2
# Enter your code here. Read input from STDIN. Print output to STDOUT
t = int(raw_input())
for i in range(t):
n = int(raw_input())
handshakes = n*(n-1)/2 # Note this is nC2 i.e. n "choose" 2
print handshakes | [
"ugali_guy@hotmail.com"
] | ugali_guy@hotmail.com |
0ffe61f0c5fc6dd5c9c0e340692739b892566dc0 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/Juniper-TSM-CONF.py | 71fad16c3643ce9206c5564ee369544ce182b392 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,237 | py | #
# PySNMP MIB module Juniper-TSM-CONF (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Juniper-TSM-CONF
# Produced by pysmi-0.3.4 at Wed May 1 14:04:34 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
64ec13558b432a040fa4e609ba98721aafdcbb3f | 5baa6fd1d751efdd80eaaf1675e17fd15ae674a1 | /demo_dot_matrix_phat2.py | 2cbefd08cfc8882c5eeadf68dd43d6cc031d1be2 | [
"MIT"
] | permissive | gexpander/demo-py-examples | 2bd7d9aa98b050eeef1977f4c248d5babdd530af | 9f6f2eb198c2329cba5a957e51dc50294555c17c | refs/heads/master | 2020-03-20T20:56:54.592936 | 2018-06-18T05:57:09 | 2018-06-18T05:57:09 | 137,715,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,799 | py | #!/bin/env python3
import random
import gex
import time
# This is an adaptation of the micro dot phat library
# - the only change needed was replacing the smbus class with the GEX unit driver
ADDR = 0x61
MODE = 0b00011000
OPTS = 0b00001110 # 1110 = 35mA, 0000 = 40mA
CMD_BRIGHTNESS = 0x19
CMD_MODE = 0x00
CMD_UPDATE ... | [
"ondra@ondrovo.com"
] | ondra@ondrovo.com |
0454b62193300ff28a1bdd135773765f3d05fb2d | 85fe1f98bc12739ab87b8474c284d65ce96d32bd | /src/paquerette_0.py | 3b162a8b2dbcbf18328de5516352cab40e029771 | [] | no_license | nojhan/aapssfc | d7405e883d907c29ce32b3ff38a1515d58de5458 | dfd9c869d525d71bd2d38e461559cbfdf3c2d757 | refs/heads/master | 2016-09-06T01:32:05.657091 | 2015-03-03T14:56:44 | 2015-03-03T14:56:44 | 3,401,502 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,922 | py | #encoding: utf-8
import math
import Image
import ImageDraw
import ImageColor
# Propriétés de la scène
width = 500
perspective = width # Déformation due à la perspective
cameraZ = -width # Recul de la caméra
zBuffer = {} # « Calque » pour gérer les points superposés
# Création d'un objet image vide où dess... | [
"nojhan@gmail.com"
] | nojhan@gmail.com |
621037ff80da3805acd5ade5aed482567c5cf97d | ffa402b321ad11b79ba977149b563c73f5c141a9 | /examples/taint/spec.py | c9c8de368b1ada24b77fe905c6e055b93c12779f | [] | no_license | uw-unsat/nickel | 151bfa76ba0e75fbc710eed68cbed830f9dbad85 | 8439aedd75b48ebf9b5344eebfc2a0c70b4eb73d | refs/heads/master | 2021-07-23T11:08:50.663555 | 2020-03-16T23:53:14 | 2020-03-17T05:29:51 | 247,836,078 | 2 | 0 | null | 2021-04-20T19:26:43 | 2020-03-16T23:24:37 | C | UTF-8 | Python | false | false | 1,517 | py | import z3
import errno
import libirpy.util as util
import datatypes as dt
def sys_get(old):
cond = util.Cases(
default=old.procs[old.current].value
)
return cond, old
def sys_get_level(old):
cond = util.Cases(
default=util.If(old.procs[old.current].level == dt.TAINTED, util.i64(1),... | [
"helgi@cs.washington.edu"
] | helgi@cs.washington.edu |
3fda8b094dee0a7b6f1190ab84ed0c644134fbe0 | f96f6b0a833699eecdfce07d28ae680532e49dc4 | /train.py | f98b6777dbab7c7b088137ea90061755f25d8c53 | [] | no_license | wangyan841331749/Cats_vs_Dogs | cdfb234605a4493a085b6bc251159e55f37b2b57 | 4d77a4f34d2667e2d678acfea1ab62c5ac12704e | refs/heads/master | 2022-01-17T11:36:19.965026 | 2019-07-18T07:08:51 | 2019-07-18T07:08:51 | 197,531,871 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import time
from load_data import *
from model import *
# 训练模型
def training():
N_CLASSES = 2
IMG_SIZE = 208
BATCH_SIZE = 10
CAPACITY = 200
MAX_STEP = 10000
LEARNING_RATE = 1e-4
# 测试图片读取
image_dir = 'data/train'
logs_dir = 'logs_1' # 检查点保存路径
sess = tf.Session()
train_... | [
"841331749@qq.com"
] | 841331749@qq.com |
b7d52baf5895acc3d0840eb2a3c78d0501ff2381 | d328c348fa5c4d14272a4fc7be0ead9c74704d41 | /Petrinetze/excercisedolly.py | 4782d86a5a9ca10d06ae12baaa77f0dbf6918619 | [] | no_license | Patminton/Projektarbeit | 5ab00222442ea30592105754010f63cbaeca5f09 | 51c413cddd8c377132663cec6a251d6325a55fa2 | refs/heads/main | 2023-05-28T18:03:07.477089 | 2021-06-11T16:17:45 | 2021-06-11T16:17:45 | 332,723,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | import snakes.plugins
from snakes.nets import *
snakes.plugins.load("gv", "snakes.nets", "nets")
n = PetriNet("N")
n.add_place(Place("Bestellung", [3]))
n.add_place(Place("Kran", [1]))
n.add_place(Place("Bauteile", [2]))
n.add_place(Place("freie Dollys"))
n.add_place(Place("volle Dollys"))
n.add_place(Place("Dolly in... | [
"s8matrau@uni-saarland.de"
] | s8matrau@uni-saarland.de |
0bc13510485468d6d5279a6f4ad60543485096c0 | 99ed9567e6308022389f882304ceda5f31e18b86 | /study-note/python相关学习记录/pickle-test.py | 2ecfad985f60435ad9810b516f79dabb344ac288 | [] | no_license | Lsn800/Paper | d700f8be5e1a4971440184bb76973dd94309dd23 | e564f3e1fbf216b6e73892b4021c1130dc1f7015 | refs/heads/master | 2023-03-21T00:14:53.504885 | 2020-03-17T10:48:12 | 2020-03-17T10:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
import pickle
def p():#将字典转换为pickle存储
sss = {'1':'a','2':'b','3':'c'}
#使用dump()将数据序列化到文件中
fw = open('dataFile.txt','wb')
pickle.dump(sss,fw)
fw.close()
def ss():#将pickle文件中存储的数据还原出来
fr = open('dataFile.txt','rb')
data = pickle.load(fr)
print(data)
if __name__... | [
"13591644403@139.com"
] | 13591644403@139.com |
b917646bb432dc0d2a45523b30c766eda00a592f | 84dde7692f4a7155c28d2517ea9ee3342263856d | /utils/dataset.py | c7079978217f004fa0b56d3735e78bb14cecd90d | [] | no_license | cyins/YOLOv5-SGBM | c4e26db1e66865909cd6a4f05857d24428518a52 | 8280136ca7357a37aa52be511cf1603050ea59f1 | refs/heads/master | 2023-08-22T02:39:32.767267 | 2021-07-26T01:38:39 | 2021-07-26T01:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,612 | py | '''
Author : Noah
Date : 20210408
function: Load data to input to the model
'''
import os,sys,logging,glob,time,queue
from pathlib import Path
from itertools import repeat
from multiprocessing.pool import ThreadPool
from threading import Thread
import threading
import numpy as np
from utils.general import confirm_d... | [
"yichongyangbit@163.com"
] | yichongyangbit@163.com |
501ce999fd6452c28544240627deb50e62312876 | fce83f1b55b8894afab9eb58ae8b4ba2e26eb86b | /examples/GAN/DCGAN.py | e9df6b36319476aea07fd240e26005c998a75385 | [
"Apache-2.0"
] | permissive | PeisenZhao/tensorpack | b65d451f6d4a7fe1af1e183bdc921c912f087586 | 6ca57de47e4a76b57c8aa2f0dad87c1059c13ac0 | refs/heads/master | 2021-05-05T01:46:05.209522 | 2018-01-31T05:29:37 | 2018-01-31T05:29:37 | 119,641,372 | 1 | 0 | null | 2018-01-31T05:52:07 | 2018-01-31T05:52:06 | null | UTF-8 | Python | false | false | 5,554 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: DCGAN.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import glob
import numpy as np
import os
import argparse
from tensorpack import *
from tensorpack.utils.viz import stack_patches
from tensorpack.tfutils.scope_utils import auto_reuse_variable_scope
from tensorpack... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
cbba52bd311c263ff7f9db112294be548e2b79a3 | 5a5067ef89e0d0e618fa00cbf037eda29df64135 | /env/bin/python-config | 3f06b82c5f1dff2454094cb77d79598e225c80c9 | [] | no_license | leandrovaladao/TddTraining | 8bee73480000305afd21053d0cde633d557b6183 | 268a69495430642a676ec12f58596e14ca9f0004 | refs/heads/master | 2020-03-20T06:40:04.839541 | 2018-06-13T18:38:04 | 2018-06-13T18:38:04 | 137,256,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,347 | #!/home/ezvoice/TddTraining/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info... | [
"costavaladaol@gmail.com"
] | costavaladaol@gmail.com | |
483db4217063a3ca57b15543b683ac4c80e5c4ee | d47ed9550468b360a54a4fe8e3cfe63bf15c1ddb | /ProgrammingPython/Preview/initdata.py | c53957abef9ca1ef665ef5ac0b238760cdf7d094 | [] | no_license | yuzuqiang/learnPython | 880bb1e5d40a7a4d928068ae892e9b85f84ec355 | 490c8ccf3a61b967641ec47e2f549574fe9a2fa0 | refs/heads/master | 2021-01-13T03:47:36.611964 | 2017-01-01T18:24:23 | 2017-01-01T18:24:23 | 77,197,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | #Record
bob = {'name': 'Bob Smith', 'age': 42, 'pay': 30000, 'job': 'dev'}
sue = {'name': 'Sue Jones', 'age': 45, 'pay': 40000, 'job': 'hdw'}
tom = {'name': 'Tom', 'age': 50, 'pay': 0, 'job': None}
#Database
db = {}
db['bob'] = bob
db['sue'] = sue
db['tom'] = tom
#As shell run
if __name__=='__main__':
for key in db:... | [
"noreply@github.com"
] | noreply@github.com |
c11fb072314ba1347f7220d63fc2c4cb07bfa3ed | 6e808ac510567907cb1069bd85bbebdcb2ed3c05 | /old/breed.py | 19c979abfe71a1cf3e13c9643deb4c50cebeee34 | [
"MIT"
] | permissive | lesterwilliam/neural | ba0c30fde27ed9800f37f71f32611990919a349c | a9fd081fee0c969359476d447015712a60529187 | refs/heads/master | 2020-04-11T13:25:28.537273 | 2019-01-23T13:11:34 | 2019-01-23T13:11:34 | 161,815,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # prototype
import random
import numpy as np
# test data
#parentA = [0,0,9,0,0,0,0,0,1,5,8,7,9,5]
#parentB = [1,1,1,1,1,1,1,1,5,9,4,8,5,5]
# Mixes genes from parents and returns created child
def breedChild(parentA, parentB):
if len(parentA) != len(parentB):
return 0
child = np.zeros((len(parentA),1))
for item ... | [
"adrian.schwizgebel@gmail.com"
] | adrian.schwizgebel@gmail.com |
0949cfa4f0046cc18f1408130d1843880b0d6b73 | 47bc9db111566405c916683c9de9dd81ab905dc6 | /app/forms.py | a2834252f84c7d50cb183d7427d6e5369ea101c7 | [] | no_license | fjb930822/blogs | 18786578ca160a3fb415c53984cad40360ec4caf | 198b1e0c0814a74f65036398e57a2489e2bb2439 | refs/heads/master | 2023-02-18T14:54:18.468594 | 2021-01-22T07:57:32 | 2021-01-22T07:57:32 | 327,336,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # coding: utf-8
# Author: fengjianbo@wifipix.com
# Creadted Time: 2021/1/6 17:54
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField
from wtforms.validators import DataRequired
class LoginForm(FlaskForm):
username = StringField("Username", validators=[Data... | [
"fengjianbo@wifipix.com"
] | fengjianbo@wifipix.com |
86c2d4bce79ae370a56b5625bbf3d57ab84635f1 | e508cf8db6bc3626ee412f8bbbac20aee4103def | /mysite/settings.py | ccecb5befde17aa93032b49dd00c92678f3d53a7 | [] | no_license | dennis-zhong/my-first-blog | 53829fb04927ff766154541af21b0eaf1fc69975 | 80f62359b7c75b3841883059affc345b6073de57 | refs/heads/master | 2023-06-16T17:35:51.072793 | 2021-07-14T00:48:59 | 2021-07-14T00:48:59 | 383,627,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.24.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"dennis@thecorp.org"
] | dennis@thecorp.org |
9e6d61a3743d70fc652f40ee1dce7897a9019284 | 0000c8f4a481000676463f81d55c2ea21862cbd5 | /not-yet-done-examples.py | d2d8e2a9c2d8f5293eea6153628712f8ddbc0858 | [] | no_license | robertej19/813 | b5ca9b51504e002189861bc0e1230bd43c5f6005 | f1417f05e9d08d5693d6ecd8363d1dd7552d2e12 | refs/heads/master | 2022-12-18T14:36:26.644424 | 2020-09-21T13:58:06 | 2020-09-21T13:58:06 | 292,097,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | Here is my code for doing the fit and plotting:
8:51
popt, pcov = curve_fit(gauss, xval, yval, sigma=yerror,p0 = [100, 3300, 140],absolute_sigma=False)
xx = np.arange(xmin,xmax)
plt.plot(xx, gauss(xx, *popt), label='fit')
One line method to load a CSV data file into python with numpy
import numpy as np
data=[*zip(*np... | [
"robertej@mit.edu"
] | robertej@mit.edu |
8fe491ed92ae2422c3f08061149a7dfc244cc882 | 8848d3b74511e918a5d0c49480f500d4084197f6 | /Pizzer/modulo_autenticacao/models.py | 13f27ee077120b99a3f5ab52ee756aa60d8bf147 | [] | no_license | giulyflash/mozzarella | 6574bf776e602f36942cc7c430e4609835adb25c | 7ab077895c32e0fa87c758489749e00eea36dacc | refs/heads/master | 2021-01-10T11:21:31.780188 | 2010-06-09T01:49:45 | 2010-06-09T01:49:45 | 53,130,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | # -*- coding: utf-8 -*-
from django.contrib.auth.models import User, Group
from django import forms
from django.forms.widgets import PasswordInput
class UserCreateForm(forms.ModelForm):
password = forms.CharField(widget=PasswordInput)
password_r = forms.CharField(widget=PasswordInput)
class Met... | [
"dmail07@8169190b-fedb-79aa-6a5a-a987b9c8a9c4"
] | dmail07@8169190b-fedb-79aa-6a5a-a987b9c8a9c4 |
18a1ef9adc1cffb62a94ab625de750a18568e630 | ea544b339809095d2c383b542248f530990c31d5 | /env/lib/python3.6/site-packages/pip/_vendor/html5lib/treewalkers/base.py | ba04ae2bb9cec5cf9fc1e3ea2a220624ca47aea1 | [
"BSD-3-Clause"
] | permissive | 724686158/NosqlEXP3 | 5fab1a9e131c6936b5b61e0f1c86eea2c889294a | e29f2807f075831377456b47cf8c9ce0c8d65c30 | refs/heads/master | 2020-04-09T01:40:54.370782 | 2019-01-25T13:04:04 | 2019-01-25T13:04:04 | 159,912,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,476 | py | from __future__ import absolute_import, division, unicode_literals
from xml.dom import Node
from ..constants import namespaces, voidElements, spaceCharacters
__all__ = ["DOCUMENT", "DOCTYPE", "TEXT", "ELEMENT", "COMMENT", "ENTITY", "UNKNOWN",
"TreeWalker", "NonRecursiveTreeWalker"]
DOCUMENT = Node.DOCUMEN... | [
"solitarius.holic@gmail.com"
] | solitarius.holic@gmail.com |
f619edee72bba9795ba459de6a8842ce400d1686 | 0e3dc8881b8412e2abc0ffa2b949c0890d9d77ef | /leetcode-notes/easy/DP/70_combining_stairs.py | 0e6f7419bc97e84483717925826cf5a361ee7d9c | [] | no_license | kevinsu628/study-note | 8d8ec55ef43eabc7221ebebb6684f4d42bc961be | 674d8afde62a1cf690a6172dad677b284ba076df | refs/heads/master | 2021-10-06T11:21:18.196879 | 2021-10-05T01:34:59 | 2021-10-05T01:34:59 | 207,233,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | '''
70. Climbing Stairs
Easy
2217
81
Favorite
Share
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
Note: Given n will be a positive integer.
Example 1:
Input: 2
Output: 2
Explanation: There are... | [
"sulang628@gmail.com"
] | sulang628@gmail.com |
19ab53b9fb8e8ae04ef27d28f4226bc9349430e4 | 3633d36e8fad6c661ad2db46da81f3bcc76c544f | /conandgen/convertors/forms.py | 1d69cdbd9f8d127bc317e4fcc42fc28fc1c72269 | [] | no_license | rpankaj853/Converters-generators | f6cb9ff9acd27ead72a9f6808e6ddee8f62df21c | caa422b6ba6246e89f7cae7fe7c06e8221108ddd | refs/heads/main | 2023-03-10T03:33:31.914267 | 2021-03-04T07:19:12 | 2021-03-04T07:19:12 | 344,382,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from django import forms
class Contactform(forms.Form):
amount = forms.IntegerField()
category1 = forms.ChoiceField(choices=[('INR','INR || INDIA'),('USD','USD || USA'),('EUR','EUR || EURO'),('JPY','JPY || JAPANESE'),('GBP','GBP || BRITISH POUND'),('AUD','AUD || AUSTRALIAN DOLLAR'),('CAD','CAD || CANADIAN DOLLAR')... | [
"rpankaj853@gmail.com"
] | rpankaj853@gmail.com |
93301ec1206f85f5ae49d4031fa40f3d41d273c6 | 6e6873e7081c72f03c22e059b05dd0127520dd2c | /spiral_order/spiral_order.py | 9e2c6fe009dc3436bdafff0238a5e0d25a908576 | [] | no_license | byd913/leetcode | 53e20259bd9aab89dd0cfaf20bbb7463a079b273 | 4a686dc3507a8a500b774a6e94399101e82e3017 | refs/heads/master | 2020-12-24T18:42:24.933131 | 2019-01-21T15:15:58 | 2019-01-21T15:15:58 | 57,128,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py |
class Solution(object):
def spiralOrder(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[int]
"""
result_list = []
height = len(matrix)
if height == 0:
return result_list
width = len(matrix[0])
min_w = min(width, hei... | [
"baiyoudong@didichuxing.com"
] | baiyoudong@didichuxing.com |
0acd983de466d61f498fa59db7369e203f1b6137 | 54f97354744cf8a5e3b3fba11200d6c6a4ec16e0 | /tests/ikpy_test.py | eedd0d07870b5a2701d90f7a8fbce5cee317767c | [] | no_license | mikevanis/ColourBodyTracker | 3bdfaf9a0db0ce3e9228b16daf7fa8f74481b774 | f257ff6e8a17e69424e50d34535e1bbf9b404ab2 | refs/heads/master | 2020-03-22T15:38:45.343334 | 2018-09-24T15:31:17 | 2018-09-24T15:31:17 | 140,266,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,820 | py | from ikpy.chain import Chain
import ikpy.geometry_utils as geometry_utils
import matplotlib.pyplot
from mpl_toolkits.mplot3d import Axes3D
from ikpy.link import OriginLink, URDFLink
import numpy as np
left_arm_chain = Chain(name='left_arm', links=[
OriginLink(),
URDFLink(
name="shoulder",
translati... | [
"hello@mikevanis.com"
] | hello@mikevanis.com |
edcfc0d4e49299c92d30291e455d7e22103cd7dc | 6903225919020d862e7403f94926ab241605083b | /OrderAux.py | c184f51c7b79ee1243bd84ec7271dc923decf3ef | [] | no_license | nandozanutto/TSP-With-restrictions | 602eb0f4aeccdb457027815481994ed6db2c2a10 | 3b78f3af38e9d7eb852763cc713307d56757dc66 | refs/heads/main | 2023-02-10T22:06:08.718813 | 2021-01-02T23:50:49 | 2021-01-02T23:50:49 | 301,243,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | def checkOrder(order):
for item in order:
for item2 in order:
if(item == item2):
continue
if(item[0] == item2[1] and item[1] == item2[0]):
return True
return False | [
"nando.zanutto@gmail.com"
] | nando.zanutto@gmail.com |
35889e57cfde9a2d0c586a094664618e9a1813af | 1b23f77f8a615ff563e9b9b6ad0da93dfa3ad8d6 | /afk.py | 8cfe0868c82112813d7cbdacfa94a16983708b6a | [
"MIT"
] | permissive | Dark-PRINCESS/Dark-PRINCESS- | 14a8d7fc81374bfbdc37241c72f7b87d97f32ad5 | 0ad9c67960c8f88745442d264fdcd113b9925807 | refs/heads/main | 2023-01-24T09:16:27.018838 | 2020-11-14T10:52:00 | 2020-11-14T10:52:00 | 306,575,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,483 | py | """AFK Plugin for Friday
Syntax: .afk REASON"""
import asyncio
import datetime
from telethon import events
from telethon.tl import functions, types
from userbot.utils import admin_cmd
global USER_AFK # pylint:disable=E0602
global afk_time # pylint:disable=E0602
global last_afk_message # pylint:disable=E06... | [
"noreply@github.com"
] | noreply@github.com |
83744ea1d35b107112afb263efd99bc61cee11ff | 7e75d3349bba67bdee36809c541a867272ccdaec | /pari_dispari.py | 4788d31931dbe0719f90fd47e48826f9948ad72e | [] | no_license | Forz70043/script | a797a984c2b9b1d3592bfd9a24ed3f5b3b190aec | 9352fc2108f219a54164edc961152d40df02ce9e | refs/heads/master | 2021-06-20T07:51:24.973904 | 2021-04-15T10:15:12 | 2021-04-15T10:15:12 | 205,554,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py |
n = int(input("Numero:"));
if n % 2 == 0:
print("Il numero", n, "e' pari")
else:
print("Il numero", n, "e' dispari")
| [
"alfonso.pisicchio@libero.it"
] | alfonso.pisicchio@libero.it |
356f5b9b375921b9d31feda5c0570ba11f5000e6 | c85a3738bb121a63cb56164d2fb46373f63ff2c4 | /employee_controller.py | 0f2b228870cc249673964cd46faa640a6bd58c9e | [] | no_license | shiromabruno/Python_API_MYSQL | 0f6497197cc7452c518803497e64b12f2ed8106a | ee3f14712bcfe2142152ca10b77fa389bda9b893 | refs/heads/master | 2023-06-22T23:12:29.562036 | 2021-07-20T01:07:57 | 2021-07-20T01:07:57 | 387,305,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,104 | py | from flask import Flask, request, jsonify
import json
import mysql.connector
from mysql.connector import Error
from datetime import datetime
import database_service
app = Flask(__name__)
@app.route('/')
def welcomed():
return "Welcome to API using MYSQL"
def db_connection():
connection = None
try:
... | [
"bruno_shiroma@hotmail.com"
] | bruno_shiroma@hotmail.com |
19b16de0ef065f3a8c63d1aa8b0c09605b54ea69 | e44b2754d3cd9dbd7e419c44ca9f2a9efe00cb0b | /tictactoe.py | e93e54a52029b78dfc92ff4aa24629bfd543ef71 | [] | no_license | litannalex/JetBrains-Academy-Projects | 00126a4a9aef505fff79595c60fb9621e2dd74b9 | 896a38cfaee63bf5eaf7d7dcecef2fc1885f59b2 | refs/heads/master | 2022-11-11T09:19:04.019728 | 2020-06-27T00:09:19 | 2020-06-27T00:09:19 | 267,681,774 | 0 | 0 | null | 2020-06-29T17:45:19 | 2020-05-28T19:47:09 | Python | UTF-8 | Python | false | false | 2,863 | py | ROWS = 3
COLUMNS = 3
# takes 2 coordinates for a move,
# returns corresponding 1 coordinate in the list
def coordinate(c, r):
new_c = c - 1
new_r = ROWS - r
return new_r * COLUMNS + new_c
# takes list with symbols, prints out the battlefield
def print_field(l):
print("---------")
for i in range(... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.