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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
995f17f49f0cc20090ed4da3fc31fdabd4c2e5df | 6a61ef12621c8a917d160db62415487fe2c469f7 | /aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/DeleteJobGroupRequest.py | 6edfb7caf350c296ba47360d1600bde52a8e0e09 | [
"Apache-2.0"
] | permissive | zhangwp-cn/aliyun-openapi-python-sdk | f0b15369665a956490534c942676ed15410196f7 | a560e38f97351db05d13f0588f7bdfb4292ed3ae | refs/heads/master | 2022-09-08T13:31:26.842867 | 2020-06-04T03:23:30 | 2020-06-04T03:23:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e5d45aba73ee5b13499f51e053f224648be79b3d | 4905ea775218db882f23188df256ab036b182ea7 | /fortytwo_test_task/migrations/auth/0001_data.py | 3f22f4f6761315f074469f9ae28041965fd4b4d8 | [] | no_license | pmorhun/FortyTwoTestTask | b57f4597003f45e9a59f0a934d6648229c9cbf01 | b27c70593a027e62e8ea32b0527caf2c7ff71926 | refs/heads/master | 2020-04-03T12:39:19.750194 | 2016-03-09T14:25:59 | 2016-03-09T14:25:59 | 51,739,394 | 0 | 0 | null | 2016-02-15T07:55:31 | 2016-02-15T07:55:30 | null | UTF-8 | Python | false | false | 3,869 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
user = orm['auth.user'](
username="admin",
is_active=True,
... | [
"petermorhun@gmail.com"
] | petermorhun@gmail.com |
5f54f73fc5ddac26d7fa0c7409af8935051d4dd7 | 7c3c01c8d3a88890c17b4746279adc470dee325f | /ordersapp/models.py | 225a2aa025ee0baca4f90756a80c2af82c6dd6f3 | [] | no_license | Raider992/django_opt | c729eb462902b7b49a79ea87f53df2a026ff7f60 | 69516b57875c2eec91ea99d2ab9fe1ca6d113c74 | refs/heads/master | 2023-02-28T18:44:22.411815 | 2021-02-09T07:00:53 | 2021-02-09T07:00:53 | 329,073,703 | 0 | 0 | null | 2021-02-09T07:00:54 | 2021-01-12T18:16:36 | CSS | UTF-8 | Python | false | false | 2,288 | py | from django.db import models
from django.conf import settings
from django.db import models
from cartapp.models import Cart
from mainapp.models import Product
class Order(models.Model):
FORMING = 'FM'
SENT_TO_PROCESS = 'STP'
PROCESSED = 'PRD'
PAID = 'PD'
READY = 'RDY'
DONE = 'DN'
CANCELLE... | [
"19stargazer92@gmail.com"
] | 19stargazer92@gmail.com |
8c7b6551a5d0d94ccfa765dd315c04805e05d3a0 | f85834b22f47c5af0fea7ecd68beea7daaa45ff5 | /scripts/machineLearning/hyperparametar_tuning.py | 7df3837b34ce832384fb4c7faef95c2cac423300 | [] | no_license | cocacolabai/YogaPoseDetection | ab906525b2dfc8e83eca9d9e8abf5e10044a0cda | 37588c211eb6b508a6a5f75c2917397acea81694 | refs/heads/main | 2023-04-13T13:12:55.826543 | 2021-04-21T08:36:58 | 2021-04-21T08:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | from sklearn import svm
from sklearn.gaussian_process import GaussianProcessClassifier
from sklearn.gaussian_process.kernels import Matern, RBF, DotProduct, RationalQuadratic, WhiteKernel
from sklearn.neural_network import MLPClassifier
from sklearn.tree import DecisionTreeClassifier
from scripts.helpers.data_manipula... | [
"43848253+LucaPomer@users.noreply.github.com"
] | 43848253+LucaPomer@users.noreply.github.com |
c79d246f78d0b2e6d4233b6f292eca9186fe7eb2 | 820325f03118f4d3c541c180e7564b578795cbed | /projects/compiler/compilation_engine/ExpressionFactory.py | fa0cff31519e0354a2c618fea274248a3f4605ff | [] | no_license | brendonsoto/the-elements-of-computing-systems-projects | e8e33be50cdaab2382a43d16566863e886212a90 | 6cabc9ccbd34fcfc0a838d866b16b276c45fd10b | refs/heads/master | 2021-04-12T03:42:05.114630 | 2018-07-20T16:32:15 | 2018-07-20T16:32:15 | 125,767,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | from TokenIterator import TokenIterator
unary_operators = '-', '~'
operators = unary_operators + ('+', '-', '*', '/', '&', '|', '<', '>', '=')
keywords = 'true', 'false', 'null', 'this'
'''
get_expression
input: a list of tokens
output: a dictionary representing an expression
'''
def get_expression(tokens):
tok... | [
"bsoto@nhl.com"
] | bsoto@nhl.com |
d8c8d2c42a59c105d4f913aba3832a91e2e0b1dc | 802521e9463d7a99e5a95210b666aea79b9856bc | /hello_world.py | 90a9efa702ba0d0abc98db393068781b808de834 | [] | no_license | sasha-e-k/git_intro | 009b00870b12c205be6ab247473769537fa6924c | 67006b4d0e78a15d83e57c5fd03c41159c8fcaf1 | refs/heads/master | 2023-08-15T10:13:43.302372 | 2021-10-13T11:42:25 | 2021-10-13T11:42:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | # a useful script
print("hello world")
# made in branch
| [
"qi20129@bristol.ac.uk"
] | qi20129@bristol.ac.uk |
2bbd5c8c3393d9a998515b3902ca992a554e3546 | 3ca7e3ec69f5b454a96fcd1b63aba601e829d4e2 | /fractal_tree.py | 22ee31ea21f767e8f76b9a10f546f5deb91c3944 | [] | no_license | pysprings/lsystems | 2a6b5c6c45355c87ef4d0833b1d8bcd3cd932c72 | 28396c3cdf738216266f8806c5f5652f7f25b6e7 | refs/heads/master | 2020-03-17T16:39:37.521017 | 2018-05-17T04:12:17 | 2018-05-17T04:12:17 | 133,757,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | import numpy as np
from math import pi, sin, cos
import random as rand
from pyglet.gl import *
import sys
AMOUNT_TO_SHRINK = rand.uniform(0.50, 0.75)
# Becareful of setting this too high as it will take longer to create the tree the higher you put it.
# At values higher than 15(2^15 branches) is where you will notice ... | [
"ryan.freckleton@gmail.com"
] | ryan.freckleton@gmail.com |
7a6ca8b3501bb379c131dccca76387873b61b714 | 3ed490a74e3952dbd5d611b1166ce6e227c9b6cf | /a1d05eba1/components/settings.py | f69d317a58dbb45737e183bc8b2013371e68a122 | [
"ISC"
] | permissive | dorey/a1d05eba1 | 771539b5c1e3c11a0d600326fe5d0241b2025f9d | eb6f66a946f3c417ab6bf9047ba9715be071967c | refs/heads/main | 2023-08-07T03:54:12.576554 | 2020-08-25T23:36:08 | 2020-08-25T23:36:08 | 273,079,242 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | from ..utils.kfrozendict import kfrozendict
from ..utils import kassertfrozen
from ..utils.kfrozendict import shallowfreeze
from ..utils.yparse import yload_file
from ..schema_properties import SETTINGS_PROPERTIES
from .base_component import SurveyComponentWithDict
_standardize_public_key = lambda pk: ''.join(pk.spli... | [
"dorey415@gmail.com"
] | dorey415@gmail.com |
b1c06b4f2309fc8aaaf3b6ce7edbcf6c31ace1aa | e456ec1f174091a1024dd0ebd7c8f011b3399367 | /Test.py | 0045530c15143de17da121041d45b4836a662166 | [] | no_license | Gummy27/Forritun | 414e98c0020bdf71a8c2a9b3757ece19c0d01172 | 6a312db6e5a451fac1e6830d7e249663739f15f2 | refs/heads/master | 2023-02-15T03:01:00.307741 | 2021-01-07T11:01:37 | 2021-01-07T11:01:37 | 177,342,511 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | s1 = "1"
s2 = "2"
print(f'Hérna kemur númerið 1: {1}') | [
"brimir27@outlook.com"
] | brimir27@outlook.com |
0b4681cbbbd15b1ae82f979dfb0855a484f541fc | 8e3b452b08139f25be824fae2b8b7aabb158d888 | /6.00.1.x/Week3/Lecture5/lectureCode_Lec5-towers.py | 13861370c38b6bf6a8bbf93b0af680633678f9d6 | [] | no_license | prasannabe2004/MITx | d38a11e38a0abb73ffa37dccb363f779011155ab | 1954b5fc31004c94f46fc8194b7fa773108c4493 | refs/heads/master | 2020-05-16T19:14:00.963550 | 2015-08-07T18:50:12 | 2015-08-07T18:50:12 | 25,537,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | def printMove(fr, to):
print('move from ' + str(fr) + ' to ' + str(to))
def Towers(n, fr, to, spare):
if n == 1:
printMove(fr, to)
else:
Towers(n-1, fr, spare, to)
Towers(1, fr, to, spare)
Towers(n-1, spare, to, fr)
Towers(5, 'f','t','s') | [
"prasannabe2004@gmail.com"
] | prasannabe2004@gmail.com |
570a9b0f72a1466c0ddd8b2558a7b4b206941056 | 025107917dd1275fd7b5570b8184e6ef8db16b27 | /mhkit/tests/dolfyn/test_time.py | 960f7adcad49e399d985981eb15169f249c00417 | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | MRE-Code-Hub/MHKiT-Python | 20c61dd8662c045120a9db54f91f99a3dc5b3f42 | e5916004ff0413f32f9559790582c95193acdd24 | refs/heads/master | 2023-08-17T02:56:29.182830 | 2023-02-10T17:56:27 | 2023-02-10T17:56:27 | 253,630,523 | 0 | 0 | BSD-3-Clause | 2023-08-31T19:38:20 | 2020-04-06T22:31:16 | Python | UTF-8 | Python | false | false | 1,797 | py | from . import test_read_adv as trv
from . import test_read_adp as trp
import mhkit.dolfyn.time as time
from numpy.testing import assert_equal, assert_allclose
import numpy as np
from datetime import datetime
import unittest
class time_testcase(unittest.TestCase):
def test_time_conversion(self):
td = trv.d... | [
"noreply@github.com"
] | MRE-Code-Hub.noreply@github.com |
118d4a7d7f9daf9efaf09bc6317c9ba339801087 | dd90dceb15ff3552667da8b91210f0fbcc3ee658 | /src/client.py | c5dab9294d51b9937f04a1eea3e07fbb6d1da1d6 | [] | no_license | faizmaricar/ibtrader | 10e4e32c762cb988384682b7ac60bb9ad5c854eb | 8fe3374dbc3077bb38e91fc592e590a196a8c4cd | refs/heads/main | 2023-08-28T23:59:08.550329 | 2021-10-26T08:59:09 | 2021-10-26T08:59:09 | 417,083,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from ibapi.client import EClient
class Client(EClient):
def __init__(self, wrapper):
EClient.__init__(self, wrapper) | [
"faizmaricar@sistic.com.sg"
] | faizmaricar@sistic.com.sg |
e8a046b3192b247fef53416f9af9d159ee31704b | 95b2c204293341a1033284fbf376a53cf8a7a54e | /single/interpret_tree.py | 74d0217b8933d7fbdb16786017f27e5eb623f18a | [] | no_license | amaswea/code | 17f3ae337c18f6a73b2466d8f6b1638fa1945726 | c5a0d49be7187a047847f0b69a6ed9c4c18a16fb | refs/heads/master | 2021-09-14T12:34:41.657660 | 2018-05-14T01:13:58 | 2018-05-14T01:13:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | '''
This is the file where you will implement
your logic for interpreting a Prefab
tree.
The methods here work like event handlers:
each method is executed by Prefab when certain
events occur.
interpret is called when:
Prefab is given a new screenshot to interpret
process_annotations is called when:
(1) An annotati... | [
"mdixon.github@gmail.com"
] | mdixon.github@gmail.com |
3eca144dbdf237601709ad5381d9aff1751bd7d8 | 6730145fe637cc91c3bfd85f1551d6fa942de370 | /Content Sharing App/node_server.py | e0c2a35e43ef217146f2569a86b814a995e8b416 | [] | no_license | yasasmahima/Blockchain-Learning | c31522d5eb5b6061eb83bd596ceee1ac36d08d06 | cafa2b2d58c3f22bff0b06a81e0450da5aa11cda | refs/heads/master | 2021-05-22T22:47:23.089031 | 2020-10-02T02:03:07 | 2020-10-02T02:03:07 | 253,130,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,058 | py | from hashlib import sha256
import json
import time
from flask import Flask, request
import requests
class Block:
def __init__(self, index, transactions, timestamp, previous_hash, nonce=0):
self.index = index
self.transactions = transactions
self.timestamp = timestamp
self.previous... | [
"yasasymahima@gmail.com"
] | yasasymahima@gmail.com |
5bcf6011e0f7c74069e6d1d8c3ec7e61f97c9de6 | eccb5ca401b3a737b7c88a417cd0e1fbd916b6db | /settings.py | 2aa76360139244baf5934b12a0e8d562d1af3248 | [] | no_license | andreychyuko/guestbook | b07c5dc066ec232d70fb6826514479423a172f76 | 7b322fa21e7d5d6fbd70dae0c22653ece8dbcc16 | refs/heads/master | 2022-12-22T22:53:46.072879 | 2020-09-23T16:18:15 | 2020-09-23T16:18:15 | 272,920,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | import os
from dotenv import load_dotenv
load_dotenv()
# COMMON
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
print(BASE_DIR)
DEBUG = os.getenv('DEBUG') == '1'
SECRET_KEY = 'td=222=rhm2r(!f#h+k6ocz&+@#o0tg1n$z$a08b#s!l3*p_89'
ALLOWED_HOSTS = ['andreychuyko.ru']
# POSTGRES
POSTGRES_DB = os.get... | [
"andreychyuko@gmail.com"
] | andreychyuko@gmail.com |
97154d734ad322d59ad5c14a9e6ac7dc4eee02e5 | 90eb57f3c0eb3a39144038d144d3fab43ea09299 | /flaskr/base_xss/models.py | 9bb065b0dab8db733471a642f3eac82286f52dc3 | [] | no_license | minight/comp6443-lecturectf-xss | 2e096b190d3475d76ee1c47a4ee2aa8da0280c8c | 23a30efc512baff1248353e73ed21d2674f7f5bf | refs/heads/master | 2021-01-23T01:34:57.602922 | 2017-03-23T07:38:02 | 2017-03-23T07:38:02 | 85,920,408 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from ..main import db
class Xss(db.Model):
id = db.Column(db.Integer(), primary_key=True)
title = db.Column(db.UnicodeText(500), index=True)
content = db.Column(db.UnicodeText(500), index=True)
| [
"sean.yeoh1@gmail.com"
] | sean.yeoh1@gmail.com |
a8f609b70b6b1dd02c881af65a5d5389e0591310 | 4faeb88e4451dc5f0e7e2314a6323beb630d99f0 | /src/run.py | fdc2bfb2c8c4a7d2ec77cc9e7306f738a333f802 | [
"MIT"
] | permissive | Fitilbam/TC-Bot | 17ee2d6ac01a29733c297a494e94e8110d4a8072 | 89deb4c0ba94e25bb44eff5c05eaab9125bf9254 | refs/heads/master | 2021-01-23T06:05:26.546654 | 2017-03-14T20:43:20 | 2017-03-14T20:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,414 | py | """
Created on May 22, 2016
This should be a simple minimalist run file. It's only responsibility should be to parse the arguments (which agent, user simulator to use) and launch a dialog simulation.
Rule-agent: python run.py --agt 6 --usr 1 --max_turn 40 --episodes 150 --movie_kb_path .\deep_dialog\data\movie_k... | [
"yvchen@linux7.csie.ntu.edu.tw"
] | yvchen@linux7.csie.ntu.edu.tw |
2e9e653a3ba5f6b2d39e8bc2a9b81531627f0d53 | be5c86e8fe3f5836b7d2097dd5272c72b5b28f15 | /binary-search/Python/0069-sqrtx(调试代码).py | 34fb4dc1e8fd789b231dfc3dc042a189448bc516 | [
"Apache-2.0"
] | permissive | lemonnader/LeetCode-Solution-Well-Formed | d24674898ceb5441c036016dc30afc58e4a1247a | baabdb1990fd49ab82a712e121f49c4f68b29459 | refs/heads/master | 2021-04-23T18:49:40.337569 | 2020-03-24T04:50:27 | 2020-03-24T04:50:27 | 249,972,064 | 1 | 0 | Apache-2.0 | 2020-03-25T12:26:25 | 2020-03-25T12:26:24 | null | UTF-8 | Python | false | false | 1,303 | py | class Solution:
def mySqrt(self, x: int) -> int:
if x == 0:
return 0
left = 1
right = x // 2
while left < right:
# 调试代码开始:为了仔细观察区间左右端点,我们每进入一次循环,让线程休眠 1 秒
import time
time.sleep(1)
print('调试代码,观察区间左右端点、中位数,和进入的分支: left = {}... | [
"121088825@qq.com"
] | 121088825@qq.com |
06c0dbfe0bbb879d1f90f6a8109b9356f8922abb | e9e4182ab5c6fc07b9090923b85b487a8d140be4 | /ilp/database/__init__.py | 165a886de5ca9776041c41459074ee17ed2b732a | [] | no_license | slowpoketail/ilp | 2c68cd48c560e6e8e24fa99fb125519f3d297ed8 | db1681aede0c507003453c055a0427b9b9659082 | refs/heads/master | 2020-04-17T17:13:22.839052 | 2015-07-06T16:20:21 | 2015-07-06T16:20:21 | 38,626,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Kirschwasser - a tag based file indexer
#
# Author: slowpoke <mail+git@slowpoke.io>
#
# This program is Free Software under the non-terms
# of the Anti-License. Do whatever the fuck you want.
from ._api import DatabaseAPI as API
from ._shelvedb import ShelveDB
| [
"mail+git@slowpoke.io"
] | mail+git@slowpoke.io |
21e37b4f7a6e38423629ff7f88949c775997a74a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02536/s375378291.py | 93ecd40e03e6ad422973faf79ca95508b26c6569 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | import sys
sys.setrecursionlimit(10 ** 9)
class UnionFind():
def __init__(self, n):
self.n = n
self.root = [-1]*(n+1)
self.rank = [0]*(n+1)
def find(self, x):#親となる要素を探索
if self.root[x] < 0:
return x
else:
self.root[x] = self.find(self.root[x])#再帰... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c1f51bda93c447b50b5b61dece51c0c3bc2b7faf | 044bb913a4d1e1056b1e5f7a4c127b630de51af7 | /AlexReceitas/asgi.py | d6f8ec566796de044326333fc24f33b3791e7bb2 | [] | no_license | alexpb1/AlexReceitas | a5c77a52af7434afc6db5845c1715da0e9da730f | e4bf6931f5ccf75bfe8309b04c26f3fbf8497b57 | refs/heads/main | 2023-08-02T08:24:15.189132 | 2021-09-19T23:25:01 | 2021-09-19T23:25:01 | 387,615,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for AlexReceitas project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"alexsandropb3@gmail.com"
] | alexsandropb3@gmail.com |
e978d5eca5c736f3b8f826507cd71ef790771729 | f6ed068e6035987d71c17d27e630af0f4b92370e | /Validacion_Surface/valSurface.py | c8f76a3671883e4bd0782c19e322c1ad889ed053 | [] | no_license | LuisFelipeArteaga/Reconstruccion | b61e50cf0f8b27989f2d898967a5537409d63a5c | 3ae222e5cc2f9ada476892f933c273faa3885708 | refs/heads/master | 2023-01-24T12:09:19.770548 | 2020-11-15T00:24:29 | 2020-11-15T00:24:29 | 114,788,374 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,681 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Feb 26 09:33:33 2019
@author: felipe
"""
import numpy as np
#import matplotlib.pyplot as plt
#import time
#import nibabel as nib
#import cv2
import open3d as opd
import os
import itertools
from functools import partial
from multiprocessing import Po... | [
"noreply@github.com"
] | LuisFelipeArteaga.noreply@github.com |
d34d5c5575b66e420737645c5c908346ca17c1d5 | 8b20ede3175df4fe3329ce6f5bc6c608d4066bd9 | /2016-05-11-LDW-Selenium-facebook-select.py | a60a386019e78d8fa599851d4c071a200a5ca8c5 | [
"MIT"
] | permissive | lukexyz/Selenium-Examples | 487b048a41732eaf22b9f42397bcc325321b151f | 70ec3f85a84e4657b5c275a74270d22aefe47e72 | refs/heads/master | 2021-01-01T05:11:06.483365 | 2016-05-17T10:59:07 | 2016-05-17T10:59:07 | 58,638,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support.select import Select
import unittest
import time
class LoginTest(unittest.TestCase):
def setUp(self):
# Define driver
self.driver = webdriver.Chrome()
self.driver.get("htt... | [
"lukedwoods@gmail.com"
] | lukedwoods@gmail.com |
e1508f8201b4113f896bf0ace8208bf541a2431b | de4d88db6ea32d20020c169f734edd4b95c3092d | /aiotdlib/api/types/sponsored_message.py | d0baa01e34edffdfdd0b1242e871c3ddd8921c86 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | thiagosm/aiotdlib | 5cc790a5645f7e4cc61bbd0791433ed182d69062 | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | refs/heads/main | 2023-08-15T05:16:28.436803 | 2021-10-18T20:41:27 | 2021-10-18T20:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | [
"pylakey@protonmail.com"
] | pylakey@protonmail.com |
1cfb6f95e2751534279008265249d4fcd99135a7 | 477b9d178fa0a5b60a234e845692c1b3ac42f20c | /python-basics/input-output/files-directories.py | 3e6a3790d242079545837131a37e1518fd78757b | [] | no_license | DMS-online/python3-for-beginners | 95c4a6036bf82f4f2991ca76ad3cdd448c9c8b6f | 7721a8173187ae38792743d22c4e8565a60cb152 | refs/heads/master | 2023-03-16T02:02:01.378995 | 2020-04-17T03:20:46 | 2020-04-17T03:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | #Working with files and directories
import os
#Create a directory
if (not os.path.isdir(os.getcwd() + "/files")) :
os.mkdir("files")
#Place a file in the directory
with open ("files/test.txt", "w") as data:
data.write("This is a test file")
#Rename file
os.rename("files/test.txt", "files/test2.txt")
#Delete ... | [
"leeassam@gmail.com"
] | leeassam@gmail.com |
58735fe65a67b7f724a8be2f26ad1e17b44edd41 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03285/s132035467.py | cb2b23dc5e61a4328b3cff2153a67f2c568cb830 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | n=int(input())
for i in range(n):
for j in range(n):
if i*4+j*7==n:
print('Yes')
exit()
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
46653a9c57737b49f529a02867c747ffd19fc874 | 9b1323e7a3b14159a7de17cb76b5650c00ea3957 | /train_data_resize.py | c2433805d7aade128cfa16cfbb8322315b7cc4f9 | [] | no_license | amit-iiitm/ANPR | 96f089c0088a07f84de4a8482e8d5753cedeefdc | 3ae6bd3d313777688ee872d2603719d665106e20 | refs/heads/master | 2021-01-10T13:44:59.424946 | 2015-10-27T22:34:27 | 2015-10-27T22:34:27 | 45,073,727 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from multiprocessing import Pool
from PIL import Image
import os
import os.path
#p=Pool(5)
def process_fpath(path):
#listing=os.listdir(path)
#im=Image.open(path1+path)
inc=1
im=Image.open(path)
im=im.convert('L')
imw=im.size[0]
imh=im.size[1]
pix=im.load()
start=0
flag=0
... | [
"akumar4850@gmail.com"
] | akumar4850@gmail.com |
24d5f241df7f107b548f10c64a50f3693ad6b648 | bad9e83194cf042eb06e7c13f64520bbaeafa0a2 | /lib/rosgraph/impl/__init__.py | 6e2ea2e90c5c4f25417096a0f7076e21a3b6be99 | [] | no_license | moocoder/MsgRouter | e0cddc0fde1a36184d6b4e46174e59d647a186ac | 0c9305208696e2fb62fc7f4b67b6e6e4d2b3c1b4 | refs/heads/master | 2021-01-10T06:09:50.121985 | 2016-03-21T14:42:40 | 2016-03-21T14:42:40 | 53,139,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | # Software License Agreement (BSD License)
#
# Copyright (c) 2009, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code must retain the above... | [
"clouderow@gmail.com"
] | clouderow@gmail.com |
ed63d950e87ed10e96578f8dbf94561087eac0f7 | cc7349f85a1eac68729acfc0118d59a3fac56181 | /applications/TransactiveEnergy-eioc/ControllerAgent/controller/controllerAgent.py | 6bc8c9287b413dd545faef71eabc1bc5958fddd5 | [] | no_license | YingyingTang111/GOSS-GridAPPS-D | cb5fd9e6dab39263fe1eb30c8b55bb8be1b26e6c | 5a08a5592c6fc1fe83ba3e630957578c77d38aac | refs/heads/master | 2021-09-10T14:19:29.766291 | 2018-03-27T17:01:45 | 2018-03-27T17:01:45 | 105,942,437 | 0 | 0 | null | 2017-10-05T21:29:34 | 2017-10-05T21:29:33 | null | UTF-8 | Python | false | false | 71,996 | py | import datetime
import logging
import sys
import uuid
import math
import warnings
import json
from volttron.platform.vip.agent import Agent, Core, PubSub, compat
from volttron.platform.agent import utils
from volttron.platform.messaging import topics, headers as headers_mod
from matplotlib import cm
utils.setup_loggi... | [
"Thomas.McDermott@pnnl.gov"
] | Thomas.McDermott@pnnl.gov |
cf25d98d80195e4a85904cdae8c075d9d448de2e | e6cf76a21b532a28d5093abe0638e730453b900a | /hirednot/hired.py | ebf7a21b25e1c6110948c5f2915150e6e7af3612 | [] | no_license | chinmay002/HiredorNot | 0b7e326e6cbbbb53ef28c9756c674aaba73a325b | 18653ec74e29084dc01f43d121f503c4dcdfdacb | refs/heads/master | 2023-03-23T23:47:53.588580 | 2020-08-14T09:31:12 | 2020-08-14T09:31:12 | 284,063,487 | 0 | 0 | null | 2021-03-20T04:59:36 | 2020-07-31T15:04:32 | HTML | UTF-8 | Python | false | false | 2,058 | py | import pickle
from flask import Flask,render_template,request
import sklearn
app=Flask(__name__)
model = pickle.load(open('model_upd.pkl','rb'))
@app.route("/")
def home():
return render_template("basic.html")
@app.route("/predict", methods = ["GET", "POST"])
def predict():
if request.... | [
"noreply@github.com"
] | chinmay002.noreply@github.com |
5d7a0f8526dc63f238a3f6f2206db5b31e8b70c5 | e999e5618ca462ddcbc41baae4edec91fc92ab87 | /HNews.py | f370b9a173bdca77b5ade0636235f545812172ff | [] | no_license | maadpeal/DC_Hnews | 0b8758168b3103724cb4620439d29bc14930b577 | 48cb5d5d5b7ac2140e679ed21258ab982d32336a | refs/heads/master | 2020-07-29T23:49:35.664557 | 2019-09-21T15:15:19 | 2019-09-21T15:15:19 | 210,006,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | from csv import reader
import datetime as dt
opened_file = open('hacker_news.csv')
read_file = reader(opened_file)
hn = list(read_file)
ask_posts = []
show_posts = []
other_posts = []
#In this step we're going to separated the publications
for row in hn:
title = row[1].lower()
if title.startswith('ask hn'):
... | [
"matuteaa@globalhitss.com"
] | matuteaa@globalhitss.com |
7c58225e0298f0eb97d46880cdce6e151cba4249 | 3fe710bc9480a938255520fc565a2b0364064df7 | /test/client.py | 08fc96c58bc29fbe41f34b4034658886048ae154 | [] | no_license | jakearmendariz/loadbalancer | 7c4b6ad4cdcd995a5ca7b42c9ceeb99df0b485a8 | 5cc4e62a2afb5c14459df3482aad0e1af90fb473 | refs/heads/master | 2022-12-01T05:51:47.836249 | 2020-08-07T22:30:11 | 2020-08-07T22:30:11 | 271,505,536 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | #Load Balancer timer
import time, os, threading, sys
def single_run():
tm = time.time()
command = "curl localhost:1234/httpserver > out"
result = os.system(command)
if result == 0:
return time.time() - tm
else:
return -1
file = open("results."+sys.argv[1], "w+")
def closed_loo... | [
"jakearmendariz99@gmail.com"
] | jakearmendariz99@gmail.com |
cc22eb65548658c38744428507dca2a687dfba3f | c8dd7d899d0fe203b9bf29ccc3e979b853285fc0 | /myGUI.py | 77a7ee1c40c1913b619a5714d6bd566569ebd5f3 | [] | no_license | HankSeametrics/AutoDocumentation | 988e79df2d9ca923d4196d88e0889eb882b4dbd1 | b51803391c1a44f9ca4c98aca57d77f869c16510 | refs/heads/master | 2020-06-20T09:36:14.359120 | 2019-07-17T01:49:11 | 2019-07-17T01:49:11 | 197,079,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,863 | py | #----------------------------------------------------------------------
# Bench Issue Documentation Generator GUI
''' author: Henry Beck '''
# date: 07/16/2019
# email: hbeck@seametrics.com
#----------------------------------------------------------------------
#-------------------------------------------------------... | [
"hbeck@seametrics.com"
] | hbeck@seametrics.com |
4ad8afc10d1dee60125ddd7a1ab867ca80fbc3ec | e9d37df3750fac7a39bcb4a5ce6e5e22f9487998 | /1295FindNumbersEven.py | 01b1f1838923587e4fd5f2bc76e80d14fa6c2f76 | [
"MIT"
] | permissive | vkaushik189/ltcode_solutions | cf985d2b2f47406f2a0cc108f9e127dba2ce9da7 | 035a74ee51d636989aa183e16c6ebb81dfccf74c | refs/heads/master | 2021-07-03T12:50:32.470448 | 2020-08-05T02:44:22 | 2020-08-05T02:44:22 | 132,412,974 | 0 | 0 | MIT | 2020-07-23T03:02:15 | 2018-05-07T05:48:32 | Python | UTF-8 | Python | false | false | 196 | py | class Solution:
def findNumbers(self, nums: List[int]) -> int:
count = 0
for num in nums:
if len(str(num)) % 2 == 0:
count += 1
return count | [
"noreply@github.com"
] | vkaushik189.noreply@github.com |
ac26164832c46775f5a84e39ca503cf215374a68 | 98e4f7d2d7e7813d4029acdab76d08161eeac240 | /tests/utils/test_requirements_utils.py | f7162a97b20d3185af1c91ee93a27ee014a8082c | [
"Apache-2.0"
] | permissive | dmatrix/mlflow | dd013c1bb9dd8cacd163024e42cec37b821ca3ae | c2aeec21298fa05006a7a0030651d27ad578fae7 | refs/heads/master | 2021-08-29T09:41:36.776475 | 2021-08-17T02:06:47 | 2021-08-17T02:06:47 | 144,213,366 | 2 | 1 | Apache-2.0 | 2018-08-09T23:30:59 | 2018-08-09T23:30:59 | null | UTF-8 | Python | false | false | 9,122 | py | import os
import sys
import importlib
from unittest import mock
import importlib_metadata
import pytest
import mlflow
from mlflow.utils.requirements_utils import (
_is_comment,
_is_empty,
_is_requirements_file,
_strip_inline_comment,
_join_continued_lines,
_parse_requirements,
_prune_packa... | [
"noreply@github.com"
] | dmatrix.noreply@github.com |
4e2d2adc4f5b779288b87fd7bdab986597cd7602 | f4a9d5937d2dde264a61a53e6b5c79f25bd12c28 | /a1.py | ed7ea5edb284de92a14914a12a6e2422fe517b34 | [] | no_license | iloveinter/test | a48b2e88454aa541968303fac86be43eefc21e5c | 3fda1f53112b5acd21c9226e13e0a65e826b4af3 | refs/heads/master | 2020-06-25T11:47:12.339544 | 2019-07-29T03:28:40 | 2019-07-29T03:28:40 | 199,299,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | x = 4
y = 7
for i in [5,6]
z = x + i
| [
"zhanghouyu@vip.126.com"
] | zhanghouyu@vip.126.com |
0ef410590b36a0a2e7c27fb05736d468f2304c6f | fe90fafd4068434e02fe7914c9c075d15bfacab3 | /app/adminServer/adminServer/wsgi.py | 3d19d4b4c350d91ca76da8e93ad020c9e945bbe1 | [] | no_license | 3d1th3/SSMainServer | a79d248cc3d6646fdc0d16a46e41681366e6327f | a4d73448a9f08f3a93897eac8547ef887d157319 | refs/heads/master | 2023-06-04T11:15:27.403988 | 2021-06-03T16:42:04 | 2021-06-03T16:42:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for adminServer project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"cachecuas1@gmail.com"
] | cachecuas1@gmail.com |
8cb517e17f1399beeb39c3f9372acbde15424e42 | 51c8fd9ad4549bab9af4b607cb876310ee6050f0 | /hidden_node.py | 96a5bcd43c5737fa8c7f5519266898ceee80384b | [] | no_license | JacobPimental/trolleybot | 81669dba4e0fbad002e490e1734b069d5036ff8f | c77e3365073bd83ea48d02d685f2ccb4fdeea5c6 | refs/heads/master | 2021-01-23T01:01:26.066505 | 2017-04-19T18:16:22 | 2017-04-19T18:16:22 | 85,862,383 | 1 | 0 | null | 2017-03-31T21:34:30 | 2017-03-22T18:27:02 | Python | UTF-8 | Python | false | false | 672 | py | class HiddenNode:
synapses = []
act_func = None
data = 0.0
act_data = 0.0
def __init__(self, synapses, act_func):
self.act_func = act_func
self.synapses = synapses
def retrieve_data(self, data):
self.data += data
self.act_data = self.act_func( self.data )
... | [
"jacob16682@gmail.com"
] | jacob16682@gmail.com |
4a8fb408dfd1ca0f114e51d0ba49e0064d154c51 | 3e17a2cb4757143806efc2bbcfb66a7221a103a6 | /algoritmo.py | 26e1fdf78df4f82cb289bd981ff988c48a5de519 | [] | no_license | ibioesc/Algoritmos | 3387aab670a8fb243e2b78ebbcfa2be152079363 | 5b3de0b7fd4c63ca2bf9043bd012a767eeb33a04 | refs/heads/master | 2023-06-07T02:49:36.909005 | 2021-06-26T16:26:34 | 2021-06-26T16:26:34 | 380,533,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py |
def canBeSplited(vec):
try:
lis = vec
left = sum(lis[:len(lis)//2])
right = sum(lis[len(lis)//2:])
if len(lis) == 0 and left == right:
return print(0)
elif left == right:
return print(1)
else:
return print(-1)
ex... | [
"ibiotec30@gmail.com"
] | ibiotec30@gmail.com |
c0f6fee505ed37fe55dbc1ab1c29ce732cbbde75 | 8596de9a476244adde04e775096835b1b24c15a4 | /rrc/migrations/0002_rrc_user.py | 7553cbb24477481bc4a810e057322d112e988510 | [] | no_license | freeznet2012/mini | 10cc3e4ccec08835aaebf15788332e571f9b7683 | ee89b9e05d5d14d8661be40c8624964e907e85cb | refs/heads/master | 2021-01-23T06:01:13.196614 | 2017-04-06T15:27:25 | 2017-04-06T15:27:25 | 86,328,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-01 20:25
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"praveenbenny007@gmail.com"
] | praveenbenny007@gmail.com |
2ee682a7aeb5da3c8da1a515f601d0cfcd6425e1 | 85d3c54d7de44e06ffc00c3c891e4651765316e4 | /DataInfo.py | 3f857ae8e36f7171d0b0e350d9c58c903716b48a | [] | no_license | fernando801/DataScienceCourse | c7bfd00250c4da5532d9c120f680cd9920a679b3 | fe8eabe7351b94e40a4653db758f07276f5f4be6 | refs/heads/main | 2023-05-15T09:40:19.826443 | 2021-06-02T02:08:43 | 2021-06-02T02:08:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | def getstatfunction(name,df):
if name == 'Name':
return lambda column:column
elif name == 'Mean':
return lambda column:df[column].mean()
elif name == 'Median':
return lambda column:df[column].median()
elif name == 'Range':
return lambda column:df[column].max()-df[... | [
"resendizbautista801@gmail.com"
] | resendizbautista801@gmail.com |
7c6459642e6c2d0c2421f04964632102c8d273d6 | bf3b3bcf36b13ea0b2ebc3f8dfd5ceaa1fbd6ad4 | /Split_rename-employee-pdfs/split_rename-employee-pdfs.py | 4c583f300737c3cca922ca611e895a0d01610d1b | [] | no_license | dankaygit/random-stuff | 2fb9ead376e9ea61abd015c2cb57053260ff39ca | f24c8bd86a560f49e9f1a325610131a6ab860e6c | refs/heads/main | 2023-06-02T16:11:07.120908 | 2021-06-24T12:19:55 | 2021-06-24T12:19:55 | 379,861,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | #!/usr/bin/env python
import os
from PyPDF2 import PdfFileWriter, PdfFileReader
# Does this script run with user input or not?
# If yes, set to True.
interactive = False
#Info about the PDF we need to edit
## Get all pdfs from the "source" directory and put the file names in a list called input_files
input_files =... | [
"dankaygit@gmail.com"
] | dankaygit@gmail.com |
af66f3e9667cc2d7a9aca8543be26bbdbeffb849 | af9c0aafa10b7901533de0b32177ab80b4782d3f | /notes/code/youtube/comments_one_video.py | 0ae8f2715bd2cd2765d7e2162e6561247db18f41 | [
"MIT"
] | permissive | Akramz/msds692 | d1d33298b7599950e95838c0fc9ddbd47a98ed5b | 42f4c2a0dc7569152bac2439e9b6385f2f101f7b | refs/heads/master | 2023-01-25T00:44:11.197544 | 2020-12-05T22:05:14 | 2020-12-05T22:05:14 | 319,362,758 | 1 | 0 | MIT | 2020-12-07T15:31:12 | 2020-12-07T15:31:11 | null | UTF-8 | Python | false | false | 708 | py | import sys
from googleapiclient.discovery import build
DEVELOPER_KEY = sys.argv[1]
YOUTUBE_API_SERVICE_NAME = "youtube"
YOUTUBE_API_VERSION = "v3"
video_id = "gU_gYzwTbYQ" # bonkers the cat
# code from https://developers.google.com/youtube/v3/docs/comments/list
youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_... | [
"parrt@cs.usfca.edu"
] | parrt@cs.usfca.edu |
5efe2bfb891bf6d1fce5182ffa9a94977080f203 | 16241fa0befde2fb5baf09b81399a070df4024d2 | /GridWorld/trainer.py | dae4adf1f1b29de21a6910c8690cd636aa7c2466 | [] | no_license | LorenzoPinto04/RL-Transport | e5365143186e0197ddba6f5551ea4f9fa69d8d54 | 465a230b74eaacb5967829bbd6f5b7cbf0b135e0 | refs/heads/master | 2021-04-23T04:16:51.512977 | 2020-04-20T08:55:12 | 2020-04-20T08:55:12 | 249,896,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,083 | py | from functions import *
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import os
os.environ["CUDA_VISIBLE_DEVICES"]="3"
import random
import gym
import numpy as np
from collections import deque
from keras.models import Model, load_model
from keras.layers import Input, Dense, Lambda, Add, Conv2D, Flatten
fr... | [
"lorenzo-pinto@hotmail.it"
] | lorenzo-pinto@hotmail.it |
cba3377a4bbbe906d3d124243bae0ea0f4854a4b | ad3b71aca0cc0b897b8d0bee6e5f4189553754ca | /src/ralph/scan/facts.py | 6080abec40aa74e6f9208d995080ee400d886961 | [
"Apache-2.0"
] | permissive | quamilek/ralph | 4c43e3168f469045f18114f10779ee63d8ac784d | bf7231ea096924332b874718b33cd1f43f9c783b | refs/heads/master | 2021-05-23T07:57:34.864521 | 2014-05-27T08:51:32 | 2014-05-27T08:51:32 | 5,523,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,267 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import hashlib
import re
from lck.django.common.models import MACAddressField
from ralph.discovery.hardware import normalize_wwn
from ralph.dis... | [
"andrew.jankowski@gmail.com"
] | andrew.jankowski@gmail.com |
1b14e0893000f94e90a7478eb66d700400cb0141 | 7882860350c714e6c08368288dab721288b8d9db | /1일차/if(8번문제).py | 9db67865be7d0871db81bafb600eeaa1d088a3f2 | [] | no_license | park-seonju/Algorithm | 682fca984813a54b92a3f2ab174e4f05a95921a8 | 30e5bcb756e9388693624e8880e57bc92bfda969 | refs/heads/master | 2023-08-11T18:23:49.644259 | 2021-09-27T10:07:49 | 2021-09-27T10:07:49 | 388,741,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | result=[]
for i in range(100,301):
a=int(i/100) # int로 해야함
b=int(i/10)
if(a % 2 == 0 and b % 2 == 0 and i % 2 == 0):
result.append(str(i))
print(",".join(result))
| [
"cucu9823@naver.com"
] | cucu9823@naver.com |
e4af460962dfe88532b86a2b00a0a1b9f6e8c649 | db5f301e1d2ee17ffd8ba009606eb82f4729b112 | /bot.py | be86223c6e466f349a3433ad194a33cbfa85d87a | [] | no_license | RomanSarnov/Bot | 5c96fc66e42ac44b37c870fbe5a6498fe04efcac | 11a278af325dde75142590418a169e391a4457cf | refs/heads/master | 2022-12-08T17:25:35.320742 | 2020-02-19T19:06:19 | 2020-02-19T19:06:19 | 240,790,736 | 0 | 0 | null | 2022-12-08T07:04:34 | 2020-02-15T21:32:24 | Python | UTF-8 | Python | false | false | 10,304 | py | import telebot
from telebot import types
import os
import psycopg2
from psycopg2.extras import DictCursor
DATABASE_URL = os.environ['DATABASE_URL']
con = psycopg2.connect(DATABASE_URL, sslmode='require', cursor_factory=DictCursor)
cur = con.cursor()
cur.execute("""CREATE TABLE address(
Id SERIAL PRIMAR... | [
"rsarnov@mail.ru"
] | rsarnov@mail.ru |
358d9bc1ccaf0bf357a55881ad1d1e04df66e992 | 721f95317a4ca3837ee509de60b346d37fbd5b9d | /towhee/tests/engine/test_engine.py | bee06ea75ace7691684abb1bf3d8675db163bbc9 | [
"Apache-2.0"
] | permissive | yanliang567/towhee | 5dbb3c544823f5aafc7b56b4a2c03e5364bfd346 | b3d39dd11793244e655112b10bc15950c215d64a | refs/heads/main | 2023-09-01T02:35:13.953830 | 2021-10-13T12:34:27 | 2021-10-13T12:34:27 | 411,902,421 | 0 | 0 | Apache-2.0 | 2021-09-30T02:55:21 | 2021-09-30T02:55:21 | null | UTF-8 | Python | false | false | 4,358 | py | # Copyright 2021 Zilliz. 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 agree... | [
"noreply@github.com"
] | yanliang567.noreply@github.com |
fcdf112105ed9d68ed566939f6c55ea04625c5e8 | 7f8188f35d0d4f80b6e37b5d2108010348996f16 | /news/api/models.py | 8df397659a510f852dc99b377bdc3e3669d82e5a | [] | no_license | Denarzan/DevelopsToday-test | 83c8f76907344a93c21ebddce2898a0ae5f8839d | 2a9f1c9c1af05c82e11d10cd30b510d6ac7569d4 | refs/heads/main | 2023-03-09T05:07:55.139352 | 2021-03-02T22:17:10 | 2021-03-02T22:17:10 | 343,865,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | from django.db import models
class Post(models.Model):
"""Model for creating posts."""
title = models.CharField(max_length=255)
link = models.CharField(max_length=255, unique=True)
creation_date = models.DateTimeField(editable=False, auto_now=True)
amount_of_upvotes = models.IntegerField(editable... | [
"dakhnonazar@gmail.com"
] | dakhnonazar@gmail.com |
76283425866e43198277a6f4f43dcc74ae590214 | e1009433697344f0ce6ec953f086be698fa4e6c4 | /parsmodel.py | 10d1dbeb9a2e033a4397f7c7bf345fec03e56af2 | [] | no_license | bladas/online-store | 7e848bad1137cf7886cec6bf7563867e5f8f5e36 | 6fd68e0d1318b796b05a94fa5547d5e87a2b0172 | refs/heads/master | 2023-05-02T07:11:55.614313 | 2020-01-06T14:20:19 | 2020-01-06T14:20:19 | 216,340,778 | 0 | 0 | null | 2023-04-21T20:38:49 | 2019-10-20T10:00:46 | Python | UTF-8 | Python | false | false | 2,339 | py | import json
from home.models import Category, UnderCategory, Product
def create(json, Category, UnderCategory, Product):
with open('citrus.json', 'r') as json_file:
data = json.load(json_file)
for elem in data:
print(elem.get('name'))
print(elem.get('category'))
... | [
"dashkevich_v@ukr.net"
] | dashkevich_v@ukr.net |
56d37d047190975695cb0168c225c11656be6066 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /routing_transformer/routing_tf_api.py | ddc35172d2adda48e5cb8cb0ef32aaa4146d4629 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 7,727 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
62ad7ab2952d9267e0c46642ae083f48150e7885 | 56ff291cbddacda6cac8e1041df4159a9f715813 | /base/admin.py | 1fb73fe70a5975410c11a5fd0d7edaafee4076fd | [] | no_license | roopak1997/YT_API | 4bb761841dde930ed63df58016cfa28946c9ed78 | 0bf226b27b79978340908e897e9596f867aef1dc | refs/heads/master | 2023-05-06T11:33:55.613972 | 2021-05-29T14:45:17 | 2021-05-29T14:45:17 | 371,979,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from django.contrib import admin
from base.models import Video, Thumbnail
from django.contrib import admin
admin.site.register(Video)
admin.site.register(Thumbnail)
| [
"roopaksrinivasan@gmail.com"
] | roopaksrinivasan@gmail.com |
8365348c8c8d72df578af246b3fea656a5feed86 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/labels/bundle_to_label.runfiles/com_google_fhir/external/pypi__apache_beam_2_9_0/apache_beam/runners/direct/bundle_factory.py | 032aadc4fe49359d4995e2916d7a25262bdded85 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 154 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__apache_beam_2_9_0/apache_beam/runners/direct/bundle_factory.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
bfd1c49315015eb94a929c27688e920b79adaa3e | 2c2a9948ad2885f85576e9fc852515d43ed7054c | /backend/music/migrations/0002_auto_20210714_0213.py | c40873543f9e5e67180f4cd14d69f7b4db644f4b | [] | no_license | Park-JE/NoraeChuchun | fcee711465e80c5109bb0022a106622f978c6ff4 | 3d1ffcafa872454fb8af1457ec7cf8ad8fc5a135 | refs/heads/main | 2023-06-29T20:15:51.044111 | 2021-08-03T16:04:30 | 2021-08-03T16:04:30 | 376,422,286 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # Generated by Django 3.2.4 on 2021-07-14 02:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userplaylist',
name='desc',
f... | [
"jieun.fs@gmail.com"
] | jieun.fs@gmail.com |
8a82ec6cc56d3bbe1891aaccaffd1ec003e7f305 | f9cb33c458429ba9b3c4b5956d65d2bac4d0d5e3 | /python/lab13.5 pre final finish/Majority Element.py | 5d0efcea9ca56978ab7699a652f1965cbc15caad | [] | no_license | BIRDDYTTP/elabProgrammingConcept | 4d49c8f9715cc59edf9dbc4d9a2760be96cd5470 | 64b1bd96ef11d090c089430e712f3063decac0dd | refs/heads/master | 2020-03-27T00:04:05.858680 | 2018-12-05T18:42:53 | 2018-12-05T18:42:53 | 145,590,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | num = int(input())
lsA = []
for x in range(num):
st = str(input())
lsA.append(st)
checkls = []
for x in lsA:
if ord(x) in checkls:
pass
else:
checkls.append(ord(x))
countchc = []
char = []
for x in checkls:
count = lsA.count(chr(x))
countchc.append(count)
char.append(chr(x))
... | [
"thitipong.ha@ku.th"
] | thitipong.ha@ku.th |
921e1b272e52e944ebf83d4db20d7640c81d2453 | 0fb68fce93c7fefdef491eb3da5a2a147b35dba8 | /simulacoes/cenario4.py | 8236c82da133380195678eecb3416748123c7f03 | [] | no_license | mandoju/trabalhoAD | 187a7f2c23e17ad0c1c2660b21fdd6b34be20ddb | a720dc3f95e5aac4d19ba119fe6ae3e6a4bbef1f | refs/heads/master | 2020-03-27T00:20:31.317138 | 2015-08-24T23:30:59 | 2015-08-24T23:30:59 | 39,862,671 | 0 | 1 | null | null | null | null | ISO-8859-1 | Python | false | false | 3,202 | py | # -*- coding: latin-1 -*-
__author__ = 'Rodrigo'
import matplotlib.pyplot as plt
import numpy as np
from scipy.interpolate import spline
def simula4():
#parametros
numero_ciclos= 1
tempo_simulacao = 1000000
u=[]#lista para plotar
valor=[]#lista para plotar
##TODO: melhores nomes para as var... | [
"jorgezin@gmail.com"
] | jorgezin@gmail.com |
dbb1f628f7a710240e42d0872d1f4720c17b1f93 | 31f090ee6707817164a2514993e92882e2220670 | /app.py | 3a68958515690552cacba7d24d13795bc27f094c | [] | no_license | Nandan26/Internship | 0397589c099822ded1c8c3ce6d460640020f82db | a416c0fb3995428554d40e8f4c71554eeeb42d47 | refs/heads/main | 2023-06-17T11:55:23.736400 | 2021-07-07T11:42:52 | 2021-07-07T11:42:52 | 383,768,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | from flask import Flask, request, render_template
import sklearn
import joblib
import pandas as pd
import numpy as np
import statsmodels.api as sm
from flask_cors import cross_origin,CORS
#for enable cross platform communication
app = Flask(__name__)
#for Next day prediction
scaler= joblib.load('scaler.pkl... | [
"noreply@github.com"
] | Nandan26.noreply@github.com |
7e00da9fc16b52f90cc97d91dacdb51b2ecbfb55 | 90c07b483649784e202c67d66e19fad82e7f68de | /test/fixture/vl53l0x-long-output.py | 2669a93463cf15ef98065bdab3525ea745259f14 | [] | no_license | mlenkeit/balcony-server | 67142a3b6113c43a27f93a8e7c392f5498969a3c | 7e20d9139e92512ea5982a0815a8e4bbf7603eaa | refs/heads/master | 2021-01-02T22:59:22.143355 | 2017-08-13T13:35:23 | 2017-08-13T13:35:23 | 99,431,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | print """Creating tof...
Start ranging...
VL53L0X Start Ranging Object 0 Address 0x29
VL53L0X_GetDeviceInfo:
Device Name : VL53L0X ES1 or later
Device Type : VL53L0X
Device ID : VL53L0CAV0DH/1$5
ProductRevisionMajor : 1
ProductRevisionMinor : 1
VL53L0X_LONG_RANGE_MODE
API Status: 0 : No Error
Timing 33 ms
743 mm, 74 c... | [
"maximilian.lenkeit@sap.com"
] | maximilian.lenkeit@sap.com |
f951e1cff4773f3d7bbafa8a8da8f51e39292a6b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /cyzbSvpfSzDjGi4TB_6.py | 3dc41e9ce3d55a84ccef17f3ab0f837b05e5f6c6 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py |
def harmonic(n):
return round(sum([1/x for x in range(1, n+1)] ), 3 )
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
cb05b353fe6c3caabc51970a0c30c56d9c656422 | 8ac6d0a2c9008b40809cd82acb5b2aa7ebb02c32 | /mne_nirs/tests/test_examples.py | e22ac7b3291636b1749997d0df71984250b20367 | [] | no_license | seapsy/mne-nirs | da75e4d9d5f2392d056f4df9d11f9e636e4cb8de | a229f8e8f93d950f5b3791575f73b5c949651127 | refs/heads/master | 2023-01-29T01:15:48.542632 | 2020-12-09T06:26:19 | 2020-12-09T06:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | # Authors: Robert Luke <mail@robertluke.net>
#
# License: BSD (3-clause)
# This script runs each of the example scripts. It acts as a system test.
import os
import pytest
def examples_path():
if not os.path.isdir("BIDS-NIRS-Tapping"):
os.system("git clone --depth 1 "
"https://github.c... | [
"noreply@github.com"
] | seapsy.noreply@github.com |
ec3322af4a258e119685102a357e04305f55bd12 | faf7110bbfb970ae9a66d2e52a1be2fcd73a7a0c | /settings.py | 95b1f2a77ecf4f07b305b0136e71164299a163d7 | [] | no_license | willsouza04/Radar | 45f79a7d57250e77491fbfaa323cce5a059bc9eb | 114b5383edf07355301c7103919ae536c4f038f1 | refs/heads/master | 2020-12-20T14:19:09.680784 | 2020-01-25T00:14:56 | 2020-01-25T00:14:56 | 236,105,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | class Settings():
def __init__(self, screenSize):
# Configurações da tela
self.screen_width = screenSize[0]
self.screen_height = screenSize[1]
self.bg_color = (100, 100, 100)
# Configurações do retangulo
self.rect_color = (150, 150, 150)
self.rect_width = 3... | [
"willsouza04@gmail.com"
] | willsouza04@gmail.com |
452c423ba680971cc37cb2c6c4d90ab016e7bf81 | 38958483cc2dbeb35497b8d091e32e42c9c90f07 | /day17/app.py | 853de8840b5a54f54ae1cd99f35ede495af05370 | [] | no_license | jonthornton/adventofcode2020 | 3fb7204dd224b81884ea2217dd7beb1c3eb30349 | ba8f67cfebb04b4441ca79e7efe25f0287eb02b9 | refs/heads/master | 2023-02-17T18:32:36.820428 | 2021-01-19T03:47:28 | 2021-01-19T03:47:28 | 326,104,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | # coding: utf-8
"""
:copyright: (c) 2020 by Jon Thornton.
"""
def main():
input = []
with open('input.txt', 'r') as file:
input = [line.strip() for line in file]
s = Solution()
# print(s.part1(input))
print(s.part2(input))
class Solution:
def part1(self, input):
active_bl... | [
"thornton.jon@gmail.com"
] | thornton.jon@gmail.com |
874ca0ff5a45005438735f04ecf861ffa29707b7 | 36b012177eba594326ce29c5d9e2808b1c075775 | /venv/lib/python3.6/copy.py | cc7a3f7877ea349643e3e6a9df840c5ac5a7a5dd | [] | no_license | JoshCrusader/ResidencySystem | 0000125c5ccb4ee5dea1394fcd197614bb5a631a | 98a120b3ff8dec447d4d0df032aa5eb188b19e99 | refs/heads/master | 2020-12-03T03:37:21.334321 | 2017-07-08T13:57:01 | 2017-07-08T13:57:01 | 95,750,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | /Users/drjeoffreycruzada/anaconda/lib/python3.6/copy.py | [
"joshua_cruzada@dlsu.edu.ph"
] | joshua_cruzada@dlsu.edu.ph |
cfeccc1e4f8c10c38e839b7a51e2a6fa60edb50d | 2464974c859fcae1c665c4220f98906ccd06b89f | /kjo/wsgi.py | 83689a7bf379ff75845c2d3e2b0a91be173e0674 | [] | no_license | wlsdh85/django_practice | 91562675f7ed57e3ebfe0ef4eff28e711fa03248 | 761d24dfc3bd53167957c932a4aeebb3740ab262 | refs/heads/master | 2023-01-11T00:03:30.020750 | 2020-11-10T11:39:20 | 2020-11-10T11:39:20 | 311,635,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for kjo project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"wlsdh85@gmail.com"
] | wlsdh85@gmail.com |
9435de26e438527194333e88e18880da7357c9db | d637a0a76e65c5498ab41a01e423ab4a69ff0e5c | /src/RL/ex.py | 94fb6ca867df2df5b5d60b65547019d34b57bad2 | [] | no_license | webclinic017/DART_Crawling | 1d8ae692ecdd8ac95cf5334c7ed0bb23375c4a54 | 6937f48cab218dd6a2ec27338d37aca88ba368b4 | refs/heads/master | 2022-11-30T14:16:50.865420 | 2020-08-11T03:25:00 | 2020-08-11T03:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # import gym
# env = gym.make('CartPole-v0')
# env.reset()
# for _ in range(1000):
# env.render()
# env.step(env.action_space.sample()) # take a random action
# env.close()
import gym
env = gym.make('CartPole-v0')
for i_epoisode in range(20):
observation = env.reset()
for t in range(100):
env.r... | [
"wnstjd117@naver.com"
] | wnstjd117@naver.com |
77d38137276897f4d2a3390e678b2c33e68f0437 | a8425bd731abfaa2c7bc797ce1b4d00aa8b46fa2 | /anytree/node/anynode.py | 82c5b0a7e1c956192ff369fb7eb9c0410dfdcdd7 | [
"Apache-2.0"
] | permissive | nline/anytree | 45103dea6b4ce397711a33bb873b3478fc48cd20 | 73492fb96d77a6973f3c48489064a12452646965 | refs/heads/master | 2023-02-14T03:42:42.853455 | 2021-01-04T20:41:06 | 2021-01-04T20:41:06 | 287,288,337 | 0 | 0 | Apache-2.0 | 2020-08-13T13:30:56 | 2020-08-13T13:30:55 | null | UTF-8 | Python | false | false | 3,469 | py | # -*- coding: utf-8 -*-
from .nodemixin import NodeMixin
from .util import _repr
class AnyNode(NodeMixin, object):
def __init__(self, parent=None, children=None, **kwargs):
u"""
A generic tree node with any `kwargs`.
Keyword Args:
parent: Reference to parent node.
... | [
"c0fec0de@gmail.com"
] | c0fec0de@gmail.com |
494e0d4136694286e0c11714a7c34d8c62b349d7 | 07c62636b2e88d235200cf3bf2d7948d5ab9f288 | /old archives/ip-cam/wan/remote-opencv-streaming-live-video-master/client.py | 89a7654af909dab40d88d299ec237e67ec1f6287 | [
"MIT"
] | permissive | Whiron/Realtime-object-detection | a52bf3703e7c1525a69de1ef3b3aa6ff2f16f54d | ac5cf1ceec3dafb094685edec6ae9c6999a1df79 | refs/heads/master | 2020-12-15T06:17:24.615617 | 2020-01-20T04:24:12 | 2020-01-20T04:24:12 | 235,018,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import cv2
import numpy as np
import socket
import sys
import pickle
import struct
#from io import StringIO
import io
import json
import base64
cap=cv2.VideoCapture(0)
clientsocket=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
clientsocket.connect(('localhost',8089))
while(cap.isOpened()):
ret,frame=cap.read()
... | [
"sarthak.thakkar16@gmail.com"
] | sarthak.thakkar16@gmail.com |
d7cc9563938c88b61d3a40cd101d1af903cb8f89 | a06337aeb77809e8f39ebf56b4ec2c2dfcd87ede | /apostrofo.py | 4645161ca7ae9690d39516f61ded5bda40092676 | [] | no_license | jessicameira/python | ee43b85043559d6fda8e10d4cb1928cc0f6cac10 | 9504c49fca7555318b0660beb086b8d43f23c2a4 | refs/heads/master | 2020-07-05T09:35:21.295091 | 2019-08-20T13:23:28 | 2019-08-20T13:23:28 | 202,610,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | message = "One of the Python's strenght is the diversity"
print(message) | [
"noreply@github.com"
] | jessicameira.noreply@github.com |
8cecebde482ccbac8c83a02a31aae64cf3aa2af3 | 640608dc02fcfa9334be5abaa7146d8134df489a | /7. Reverse Integer.py | 30b2b882229e31633995f5535deb2da3e0fce011 | [] | no_license | lingqinx/leedcode | 698835d925eeaa4fea84086fcf8413dd28b90ef1 | b3ba70ed100cd5207f7649266d48cf30a9f600e5 | refs/heads/master | 2021-07-02T13:29:40.114567 | 2019-04-04T07:14:24 | 2019-04-04T07:14:24 | 106,343,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | class Solution(object):
def reverse(self, x):
"""
:type x: int
:rtype: int
"""
oper = 0
if x > 0:
oper = 1
reverse=int(str(x)[::-1])
if x < 0:
oper = -1
reverse = int(str(x)[1::-1])
reverse =... | [
"noreply@github.com"
] | lingqinx.noreply@github.com |
d01c60729dde3704ca76f6163bb970a349a73025 | 2ee66e6485f0c68adb6367b3697c4a3cb32c9b7e | /tests/test_mpi.py | b945048d2f32120065d20655192115c3e52a001e | [
"MIT"
] | permissive | yuriyi/devito | 8836f741b360946ce2b439b88b78bf267279e90b | d0a29b3ad3653c20f88b35c2780471cef107b7a2 | refs/heads/master | 2020-04-01T05:49:17.221770 | 2018-10-13T18:34:46 | 2018-10-13T18:34:46 | 152,920,977 | 0 | 0 | MIT | 2018-10-13T22:52:12 | 2018-10-13T22:52:12 | null | UTF-8 | Python | false | false | 38,484 | py | import numpy as np
import pytest
from conftest import skipif_yask
from devito import (Grid, Constant, Function, TimeFunction, SparseFunction,
SparseTimeFunction, Dimension, ConditionalDimension,
SubDimension, Eq, Inc, Operator)
from devito.ir.iet import Call, Conditional, FindN... | [
"f.luporini12@imperial.ac.uk"
] | f.luporini12@imperial.ac.uk |
f766a764745a6648551a3f64259734cd74a93643 | e347f2ca9b3623031e3825a86ed5f99f543f201c | /foodtasker/foodtaskerapp/social_auth_pipeline.py | e07da3eab1f4ff05ea3c302d7e0bdda879c6a116 | [] | no_license | miachenberkeley/FoodDeliverySwift | 4262c6a009cd2da89647ed019cf3490f05187bde | fb535112af0289f2962bdee22abd0a50bade35a6 | refs/heads/master | 2021-01-22T07:47:12.872641 | 2017-02-20T16:56:10 | 2017-02-20T16:56:10 | 81,844,368 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from foodtaskerapp.models import Customer, Driver
def create_user_by_type(backend, user, request, response, *args, **kwargs):
request = backend.strategy.request_data()
if backend.name == 'facebook':
avatar = 'https://graph.facebook.com/%s/picture?type=large' % response['id']
else:
avatar = ... | [
"70664914@qq.com"
] | 70664914@qq.com |
6ecd7aef7feeaf0c0a1b5b863f5a9956e43c4838 | 99094cc79bdbb69bb24516e473f17b385847cb3a | /58.Length of Last Word/Solution.py | 6a986db084927025fd5e816d63158989ce2edd7a | [] | no_license | simonxu14/LeetCode_Simon | 7d389bbfafd3906876a3f796195bb14db3a1aeb3 | 13f4595374f30b482c4da76e466037516ca3a420 | refs/heads/master | 2020-04-06T03:33:25.846686 | 2016-09-10T00:23:11 | 2016-09-10T00:23:11 | 40,810,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | __author__ = 'Simon'
class Solution(object):
def lengthOfLastWord(self, s):
"""
:type s: str
:rtype: int
"""
li = s.split()
if li:
return len(li[-1])
else:
return 0 | [
"simonxu14@gmail.com"
] | simonxu14@gmail.com |
6c495150425895f7bf1ff1899d6791c5c2caf44a | bdf3183327bf2baed43f4ce0d9151d9285d3d707 | /new_database3.py | e33865b5425044ff46dcf75338ba4bbced5690ad | [] | no_license | SanketBhave/BE-Project | 757e00f33ae7d80ea9a199eafac1711ce7589ab1 | f79abca3bf0c364b305c741e1c392b95b87ff82b | refs/heads/master | 2021-07-13T21:02:59.371882 | 2018-02-01T08:00:59 | 2018-02-01T08:00:59 | 95,019,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | import cv2,math
from skimage import feature
from scipy import ndimage,signal
from pre import preprocess
import numpy as np
from numpy import linalg as la
from pymongo import MongoClient
from itertools import izip
#import numpy as np
#import cv2
import skimage
from skimage import filter
client=MongoClient('localhost'... | [
"noreply@github.com"
] | SanketBhave.noreply@github.com |
e072a7a9583e09391630a836cd7ad19fcc54c685 | b597f3767f5027e26f0f83d83c9756ac7c001e97 | /train_multimodal_model.py | 4b4eb9c2ce5d3bdeb80f5c478d45285c654c47d4 | [] | no_license | sandropezzelle/mtl-amodal | 9d1d878e4b36b8f8ec8f81af37bda19e50dde884 | 7b505070924c2d6eae86f979f2f70a78eb926a06 | refs/heads/master | 2020-03-17T20:45:53.094196 | 2018-07-10T17:42:56 | 2018-07-10T17:42:56 | 133,927,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,139 | py | import argparse
import os
import pickle
import numpy as np
import utils
full_images = {}
ratios = {}
r_dict = {}
data_path = ''
def read_ind_files(path):
"""
reads the indices of the images for a given file
"""
fin = open(path, 'r')
links = []
for line in fin:
links.append(data_path... | [
"claudio.greco@unitn.it"
] | claudio.greco@unitn.it |
56f0bbe6de6c31d891e2dfb2024dcb94c61d0693 | c50eb81b57f3dac7c0273d1781e4ce5ba9c41584 | /petBookApi/petBook/urls.py | 81eb4935208c3a84ba07f577ac99f51978181a3f | [] | no_license | rsbabcock/pet-book | 474b7c6ffb27a2765cbda359b796e089ccc78f45 | ccd548f119fcad93ee85415dddcd3b6c9f1d94d9 | refs/heads/master | 2020-03-27T08:57:34.884012 | 2018-10-13T19:06:47 | 2018-10-13T19:06:47 | 146,301,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | """petBook URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"rachael.s.babcock@gmail.com"
] | rachael.s.babcock@gmail.com |
f4269fd9d2329fc2e30627a2658cf2964f61b129 | a45e3ce2690db6e059721c496acf52dd7728fd0c | /main.py | 4000f042dffbc043bf40e36f5e344752c8ae9466 | [] | no_license | Kaminari84/GCloud-ReflectionSlackBot | e08ae860737450b70bb87bd63c767e26915affd4 | b694b3f57d793c60a5cb8daee0f40a5babc3d01f | refs/heads/master | 2022-12-09T22:50:50.905166 | 2017-07-21T03:04:39 | 2017-07-21T03:04:39 | 97,900,123 | 0 | 0 | null | 2022-12-07T23:58:09 | 2017-07-21T03:02:58 | Python | UTF-8 | Python | false | false | 4,471 | py | # Copyright 2015 Google Inc. 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 a... | [
"kocielnik@HW0972.local"
] | kocielnik@HW0972.local |
5b23cf8b083f27bfba637e09ee48d567a1020f20 | c54a41e62946758c60e175c2ee70a0a3a15823d4 | /test2.py | 0a222fcb6da5f299189e3aba07d73d40a5765e14 | [] | no_license | NienkeUijlen/Oefenen | d226327e22071c1c855dbebcd97a8613c88b13ab | 3bae72f9032d3f5271b02c244fbe0efbdcebb21a | refs/heads/master | 2021-01-23T13:56:47.056881 | 2015-05-18T19:12:00 | 2015-05-18T19:12:00 | 34,312,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | eerste_rij=list(input())
tweede_rij=list(input())
derde_rij=list(input())
a=int(eerste_rij[0])
b=int(eerste_rij[1])
c=int(eerste_rij[2])
d=int(tweede_rij[0])
e=int(tweede_rij[1])
f=int(tweede_rij[2])
g=int(derde_rij[0])
h=int(derde_rij[1])
i=int(derde_rij[2])
if a==b==c:
if a==1:
print("Player 1 wins")... | [
"n.m.uijlen@students.uu.nl"
] | n.m.uijlen@students.uu.nl |
8a9097cb3320d30e788a574515548ffd3d9a74c7 | 5894528e86efcc243febb3e37d1f6322fe0c7baa | /CodeJam2018/PracticeSession/numberGuesses/testing_tool.py | aeb3e13131420c80ea480a45a00bf68bc0575f61 | [
"MIT"
] | permissive | paolodelia99/google-code-jam-challenges | d758bf5da05e72165698d140ab37495d7c92a292 | 98945ab6c21a78225674bfae0ac3574cb20967c3 | refs/heads/master | 2022-04-28T20:16:33.451203 | 2020-04-21T12:32:12 | 2020-04-21T12:32:12 | 246,570,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | """ Python script for local testing (compatible with both Python 2 and Python 3)
Disclaimer: this is a way to test your solutions, but it is NOT the real judging
system. The judging system behavior might be different.
"""
from __future__ import print_function
import subprocess
import sys
USAGE_MSG = """
Usage:
Linux... | [
"paolo.delia99@gmail.com"
] | paolo.delia99@gmail.com |
ff44601100038aba800c66cb8d18e73458d7b4df | bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0 | /venv/Lib/site-packages/twisted/application/runner/_runner.py | 66f1f11ee0f27fe0b61e6dfa8b9fee0befdaa03b | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | DuaNoDo/PythonProject | 543e153553c58e7174031b910fd6451399afcc81 | 2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c | refs/heads/master | 2020-05-07T22:22:29.878944 | 2019-06-14T07:44:35 | 2019-06-14T07:44:35 | 180,941,166 | 1 | 1 | null | 2019-06-04T06:27:29 | 2019-04-12T06:05:42 | Python | UTF-8 | Python | false | false | 5,763 | py | # -*- test-case-name: twisted.application.runner.test.test_runner -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Twisted application runner.
"""
from os import kill
from signal import SIGTERM
from sys import stderr
from attr import attrib, attrs, Factory
from twisted.logger import (
... | [
"teadone@naver.com"
] | teadone@naver.com |
b281ebdf28c8bde7e6a4084edef77face71533da | bf97e5177e2a23292cf06750c52df5d008efb1c8 | /videos_monitor/run.py | 08330379e6fe4186e9c442aa39ea6396c982726d | [] | no_license | blingmoon/monitor | da962ba8a63f05c7dfd0f30486e9f3e5a46f4664 | 7ddf198ace064525cf1276836b74321f4facbb01 | refs/heads/master | 2020-12-14T23:25:01.514898 | 2020-01-24T14:16:15 | 2020-01-24T14:16:15 | 234,908,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*- coding:utf-8 -*-
# @Time : 2020/1/19 11:05
# @Author : zhouliang02
# @description :
import os
import time
from videos_producer.main import OpenCVProducer
from videos_transponder.main import ServerTransponder
def main():
product = OpenCVProducer("/tmp", 10)
# transponder = ServerTransponder()
... | [
"zhouliang02@qianxin.com"
] | zhouliang02@qianxin.com |
9de3288ac7c9aef6e29ff490754ebd5512e2a0ce | 093e828b4e72b53cf7d5ac9217d8fd7172f3e4cc | /Framework/Evaluator.py | bbaaa1867f58dcbd901551ee38ac13574ac05a90 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | uboni/Project-B-Movie-Recommender-System | 0a19d45040c8a032bb601ef85e5c67807f7f8d8e | 77390637a71b112651fcf92b767e27ca0d3ee8c7 | refs/heads/master | 2020-09-22T05:28:55.830719 | 2019-12-05T17:00:01 | 2019-12-05T17:00:01 | 225,067,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | '''
Author: Uday
Date:29-NOV-2019
License: Free. Please modify it if needed
'''
from EvaluationData import EvaluationData
from EvaluatedAlgorithm import EvaluatedAlgorithm
class Evaluator:
algorithms = []
def __init__(self, dataset, rankings):
ed = EvaluationData(dataset, rank... | [
"noreply@github.com"
] | uboni.noreply@github.com |
2f6c2bce524bc945e8b1906c4fd08726bca5888c | 41dc19883789f45b6086399a1ae23995f53b4b2c | /BayesMadeSimple/distribution.py | dea353cbb2da5a315f6990d03872b1985e04638a | [
"MIT"
] | permissive | sunny2309/scipy_conf_notebooks | f86179ddcd67168b709c755cc01862ed7c9ab2bd | 30a85d5137db95e01461ad21519bc1bdf294044b | refs/heads/master | 2022-10-28T17:27:42.717171 | 2021-01-25T02:24:05 | 2021-01-25T02:24:05 | 221,385,814 | 2 | 0 | MIT | 2022-10-20T02:55:20 | 2019-11-13T06:12:07 | Jupyter Notebook | UTF-8 | Python | false | false | 16,338 | py | """
Pmf: Represents a Probability Mass Function (PMF).
Cdf: Represents a Cumulative Distribution Function (CDF).
Copyright 2019 Allen B. Downey
MIT License: https://opensource.org/licenses/MIT
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from scipy.interpolate im... | [
"sunny.2309@yahoo.in"
] | sunny.2309@yahoo.in |
279bc30399e52b6a4f952a964584f2866955791d | da4cdfab90215fb8c9b7e873740161b8f8e865d4 | /course4/week3/tracks.py | 7928da2ad0e972fafef83e138f10d640c0d4a083 | [] | no_license | cauequeiroz/py4e | 98d7ca53af099b1ee50af2ce094810641c9411a7 | 9e3d487d1031c621d66ac7bdfd38ac419b098293 | refs/heads/master | 2022-12-06T08:41:14.013133 | 2020-08-26T21:46:07 | 2020-08-26T21:46:07 | 275,848,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | # This application will read an iTunes export file in XML and produce a properly normalized database
import xml.etree.ElementTree as ET
import sqlite3
# Parse xml
# --------------------------------------------------------
def get_item_content(items, label):
found = False
for item in items:
if item.t... | [
"cauenqueiroz@gmail.com"
] | cauenqueiroz@gmail.com |
56058f10629781f94c27d67b43249ebd00812591 | 0d43b36da35dc97239e665dedfa6f5dd6812986e | /tfpipe/modules/bedtools/__init__.py | c60c4c4ab0ceaa0f31437e800c9ba459936f9445 | [] | no_license | PaulCotney/tfpipe | 39be244b46a531fbac3a41cf606e957dde6e02e7 | 88008c80c48ccf91527311c7f7ac801c4b0dd0c3 | refs/heads/master | 2021-01-22T09:48:54.127534 | 2018-08-22T13:48:31 | 2018-08-22T13:48:31 | 63,611,894 | 0 | 0 | null | 2017-05-15T16:22:14 | 2016-07-18T14:54:04 | Python | UTF-8 | Python | false | false | 87 | py | """ """
from format_conversion import BamToBed, BedToBam, Intersect, SortBed, MergeBed
| [
"eklundke@gmail.com"
] | eklundke@gmail.com |
81b8109d9545af784d646f5b27b16704a9b99af5 | 41d2730917ef44323e9d534cc6df8dab0c32788a | /2-Computer-control-terminal/Raspi端/Main_raspi_client.py | 322db3faa14b3148228ab781cb2578d85fbe61ba | [
"Apache-2.0"
] | permissive | thinker-niu/Home-management-platform-and-home-robot | cc73f498291a720c6f55ed3405bf7b835244989c | 597349e261bfb8e37ef7da5a698ca2dd4696aed9 | refs/heads/master | 2023-03-19T12:45:29.962477 | 2020-09-03T23:53:20 | 2020-09-03T23:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | #!/usr/bin/python3.7
# coding=utf-8
#客户端与上一个没有任何改变
from socket import *
import threading
import time
import robot_contro_main #串口控制
address="192.168.43.10" #8266的服务器的ip地址
#address="127.0.0.1" #8266的服务器的ip地址
port=6424 #8266的服务器的端口号
buffsize=1024 #接收数据的缓存大小
s=socket(AF_INET, SOCK_STREA... | [
"noreply@github.com"
] | thinker-niu.noreply@github.com |
af7f3350737682e5f14e67fac76f11d84afe65b1 | edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81 | /Python 300/08. Iteration Statement/144.py | 641f2af3cf169953aeb4921da394052b49442b99 | [] | no_license | narinn-star/Python | 575cba200de35b9edf3832c4e41ccce657075751 | 14eba211cd3a9e9708a30073ba5b31d21d39eeef | refs/heads/master | 2023-05-25T22:57:26.079294 | 2021-06-07T15:29:39 | 2021-06-07T15:29:39 | 331,647,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | #for문 _ animals
lists = ['dog', 'cat','parrot']
for i in lists:
print(i, len(i)) | [
"skfls2618@naver.com"
] | skfls2618@naver.com |
3c8c81ebadd2490de3c9f2eb1caef7b1dbd64274 | 2bce81a0d3203ebbf0a94a6d67007d3bdf5ba10e | /10.py | f9f39d62fd56630cfd4683409c12ff5f4e4296bf | [] | no_license | kayeoni/Project_Euler | 362698277730a1ea844ef490de7e0fd79646acf3 | 3d53c4b313c04bc53d5a8e0684b40438e824f266 | refs/heads/master | 2021-09-08T02:07:03.137199 | 2018-03-05T22:21:53 | 2018-03-05T22:21:53 | 115,199,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import math
def check_prime(n):
i = 2
if n == i:
return 1
while i < int(math.sqrt(n)) + 1:
if n % i == 0:
return 0
i += 1
return 1
def sum_of_primes(n):
list = []
if n < 2:
return 0
if n == 2:
return 2
if n > 2:
list.append(2)... | [
"kayeoni.kim@gmail.com"
] | kayeoni.kim@gmail.com |
914957a9aa07da94a8697e03eb3e85c6fee20dd2 | ecf22cd4f463327c85be6e763f550f933104815f | /orders/forms.py | 66cefd55be1b4139b23c2d55e7f3d98cd671b505 | [] | no_license | solairedev/gomel-agro-complect | d0205f4381baf083a9bf94791e64193208ca0387 | a77a3f9db4bb88f810e1c7a73859019407b1292e | refs/heads/master | 2022-01-31T06:29:55.831333 | 2019-05-20T09:01:13 | 2019-05-20T09:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.forms import ModelForm, Textarea, TextInput
from .models import Order
class OrderForm(ModelForm):
class Meta:
model = Order
fields = ['name','phone','note']
widgets = {
'name':TextInput(attrs={'class':'input'}),
'phone':TextInput(attrs={'class':'input js-... | [
"victor374288@mail.ru"
] | victor374288@mail.ru |
d1ac6305dbd6d50b835b3c72c2b048137df5ea1f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/81/usersdata/212/47049/submittedfiles/dec2bin.py | 6411c5dd71bf68dde30b00d10c31f9fc65086a43 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # -*- coding: utf-8 -*-
p=int(input('digite o valor do menor número:'))
q=int(input('digite o valor do maior número:'))
n=1%10
print(n)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0fb14a61732e67d06cdc1613b86e38564700f4d4 | 24aec917953728338a7f1804d96d0ac6288a1250 | /linesheet-related1.py | 74d7bb8013547044060379d0b45a49f77fd6841e | [] | no_license | jingggo/python_excel_research | d82b3b222fc6852a1f0288aa2971a15617eeb16a | 89b7ccc22e06c6f592c9d42d95e485b01cce65b4 | refs/heads/master | 2021-09-02T15:08:32.904735 | 2018-01-03T10:46:49 | 2018-01-03T10:46:49 | 115,507,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,766 | py | from xlrd import open_workbook
from xlwt import Workbook
def getTemplateUploadLinesheet():
book = open_workbook(r'E:\RFScripts\linesheet_upload_data_ef\Linesheet upload use case-ef.xlsx')
sheet = book.sheet_by_name('EF-DATA')
return sheet.row_values(3)
def getExistingLineSheet(nrows,xrow,xcol=1):
book... | [
"jyang@7thonline.cn"
] | jyang@7thonline.cn |
46451d297fa736664316b7c35106ff642cada2ff | cbb7f79a50b05e2ab670ae19bbd1c3b8dead437d | /dict_ordem.py | d24ab507f66b1828b5ff9371ba46aa626fa734e0 | [] | no_license | lfbessegato/Python_Avancado | 3b680d65fe543bd915b5798a85be1f7dadfad4c4 | bb73b99d64f92693a6fe71748f2c24aaabe7d4e1 | refs/heads/master | 2022-09-07T20:28:07.037656 | 2020-05-29T20:24:07 | 2020-05-29T20:24:07 | 265,316,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from collections import OrderedDict
# Ordered -> Mantém a Ordem
d = OrderedDict()
d['python'] = 10
d['java'] = 5
d['php'] = 6
d['C'] = 10
for key in d:
print(key, d[key])
| [
"lfrbessegato@gmail.com"
] | lfrbessegato@gmail.com |
c5a55686d52aef4a636fcd08c7d52bca631af994 | 8c3ba133fa34cf2f936ba9176459690008e9e1fb | /imagepy/menus/Window/widgets_plgs.py | 4a05938af587349c3a114d2efe75198b21d28d8b | [
"BSD-2-Clause"
] | permissive | qixinbo/imagepy | fcd272b231b3f49fafd51425f46e826a73841c1f | a2722443dfddf2b0b81b44512427b8a273a7424c | refs/heads/master | 2023-03-16T15:58:57.330418 | 2022-09-03T13:35:46 | 2022-09-03T13:35:46 | 519,933,892 | 0 | 0 | BSD-4-Clause | 2022-08-01T02:02:26 | 2022-08-01T02:02:25 | null | UTF-8 | Python | false | false | 532 | py | from sciapp.action import Free
class Widgets(Free):
"""ImageKiller: derived from sciapp.action.Free"""
title = 'Widgets'
asyn = False
def run(self, para = None):
self.app.switch_widget()
class ToolBar(Free):
title = 'Toolbar'
asyn = False
def run(self, para = None):
self.app.switch_toolbar()
class Tabl... | [
"imagepy@sina.com"
] | imagepy@sina.com |
aaf729ced0606b16165d02d0f6b98067609e987f | 44e25862aec1577d09e4a0695b1367be6c847ff2 | /POTD/nim.py | de7b4ecc08d4bd1518f0baf98052c94bec18ee0e | [] | no_license | imabbas/RandomProjects | 8cefcaf907e1f3c30a9e1cc74af8db4015fcdd4d | c039cc471792465c5018c307e1526ce5c3fbe8c1 | refs/heads/master | 2021-06-10T18:32:50.042149 | 2017-02-07T00:58:21 | 2017-02-07T00:58:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py |
print('The Game of Nim')
print("")
marbles = int(input('Number of marbles are in the pile: '))
start = input('Who will start? (p or c): ')
if start == 'p':
turn = True
else:
turn = False
x = 10
new_pile = (2**x - 1)
computer_intake = 0
computer_marbles = 0
while marbles > 1:
print('The pile has ' + str(... | [
"Aadil Abbas"
] | Aadil Abbas |
f6fa771d57a3a10af786708c35aa3393e0e40935 | 9c2ca939f29b861afec382cd17a462775a3974d0 | /run_worker.py | fcec489b5ac3ac725751dac7c59693090a0cba6f | [
"BSD-2-Clause"
] | permissive | merrlyne/gchatautorespond | 1e2009823e16289ea2cea709cfee5cd2a3e97459 | a7f8d7b715ca9851a65588a268ce39addb906b6d | refs/heads/master | 2020-03-20T12:49:18.882038 | 2018-03-29T18:38:58 | 2018-03-29T18:38:58 | 137,441,551 | 0 | 1 | null | 2018-06-15T04:38:49 | 2018-06-15T04:38:49 | null | UTF-8 | Python | false | false | 1,564 | py | from gevent import monkey
monkey.patch_all()
import django
django.setup()
import logging
from threading import Thread
from django.conf import settings
from gevent.wsgi import WSGIServer
from raven.contrib.flask import Sentry
from gchatautorespond.lib.chatworker.worker import Worker, app
from gchatautorespond.lib.ch... | [
"simon@simonmweber.com"
] | simon@simonmweber.com |
1a54be7da36fd5d56bab35a6d45b2e9556fe935c | eee29769171e339ed19eaf35feb1eb3a9774db27 | /hangman_game.py | db8a13ddd9031ae2fe10000d5f0425e11cb99a0f | [] | no_license | ben-j-ellis/Basic-Hangman-Game | 582978bd9b8bba2cb05e1cdce7ac86f13ba863c2 | ccfa3ab9484b30063809b23467cc262aa3b37f40 | refs/heads/master | 2021-05-05T20:43:18.603186 | 2017-12-26T23:19:31 | 2017-12-26T23:19:31 | 115,461,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | # Basic-Hangman-Game
| [
"benjakobellis@gmail.com"
] | benjakobellis@gmail.com |
d6de9164815f572baff60854d18af972b0bd9a28 | 313eb1f49406ccfa179b0df4493c82b439f11593 | /lazypt/lazypt.py | 7e0e93c9ef246f4f14e501571bb723e958fbe417 | [
"MIT"
] | permissive | AndyCyberSec/lazypt | 72ecfad18530a62682ca35ffcf8e7e88dbf4ba18 | 22a67275eaee9ecedd193463546199aa977670d8 | refs/heads/master | 2020-05-19T01:56:27.412358 | 2019-05-16T10:28:45 | 2019-05-16T10:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,024 | py | import pyperclip
import yaml
from .pathmanager import path_finder
class RevShell(object):
def __init__(self, lang, host, port):
self._lang = lang
self._host = host
self._port = port
self._msg = '\n[+] Reverse shell code copied to the clipboard!'
self._data = Re... | [
"noreply@github.com"
] | AndyCyberSec.noreply@github.com |
b2a8e001c69a95a4fb2a947d732d78d6d7d8c012 | 632b94beca62f7c8af5ae1d1e8e095a352600429 | /build/ros_controllers/ros_controllers/position_controllers/catkin_generated/pkg.installspace.context.pc.py | 4ddc4e67bff606fc70fdb62976ffda91a4cd6eb2 | [] | no_license | Haoran-Zhao/US_UR3 | d9eb17a7eceed75bc623be4f4db417a38f5a9f8d | a0c25e1daf613bb45dbd08075e3185cb9cd03657 | refs/heads/master | 2020-08-31T07:02:45.403001 | 2020-05-27T16:58:52 | 2020-05-27T16:58:52 | 218,629,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "controller_interface;forward_command_controller".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lpos... | [
"zhaohaorandl@gmail.com"
] | zhaohaorandl@gmail.com |
2fea31c0cd40ed40aa5a152c571bd75391e2bf24 | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/heat-3d/tmp_files/6909.py | efaecf45f0b280f386864f84a69acd803b7e70e3 | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/6909.c')
procedure('kernel_heat_3d')
loop(0)
tile(0,2,8,2)
tile(0,4,64,3)
tile(0,6... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
a0d2ede9601c5ec0eb93ff63f0ad1a094d8f91dc | 72d67e03705bd3ca88bacfe171b1553592270b9a | /profiles_project/profiles_api/migrations/0001_initial.py | 88bd8264a6c93dd2ccb1fd60fcf585a3d01c2615 | [
"MIT"
] | permissive | sandeepchandra/profiles-rest-api | 1d9af2eff5377cf6374a82c0409b2ede40cd0bde | 001e23575e7a51ef3fde32422b21c23646f3579c | refs/heads/main | 2023-01-13T23:33:25.507957 | 2020-11-26T17:24:58 | 2020-11-26T17:24:58 | 315,902,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | # Generated by Django 2.2 on 2020-11-25 17:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
name='UserProfile',
... | [
"sandeepchandragiri17@gmail.com"
] | sandeepchandragiri17@gmail.com |
df1314d77dfbe8fe0729d21b38bed7fc34f2f51c | 81a909f3220f1346c431a96cac6b7e8f2d9b8b6c | /BackEnd/directory/migrations/0001_initial.py | 255d1e0d7001f0658d108e7e998b5d615c794140 | [] | no_license | avikalsagar/Web-Dev-for-an-NGO | 0a8da7e7a424a4a93b8a28d3911ea6c4ddd232d1 | 0549285ff77dfc966ac8fa66250e03fa5407c35b | refs/heads/main | 2023-07-03T08:00:09.731334 | 2021-08-09T06:40:02 | 2021-08-09T06:40:02 | 394,522,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | # Generated by Django 3.1.2 on 2020-11-30 17:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Registration',
fields=[
('id', models.AutoF... | [
"adithya.kannan19@gmail.com"
] | adithya.kannan19@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.