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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6a500f04c1fc3aece038e6cbffe9e4fe6de6c402 | d35359964e8be35a64020468bca24c570aa084e2 | /Web/MyPollSite/MyPollSite/MyPollSite/settings.py | 5c0c0729ee4fa4f72d48bd293b272a481ef22f0f | [] | no_license | darszam/Python-Projects | a08165770e249ecd082ad3967490cb22bc86c544 | 76e6502e1e4bb80157ba1a2cec66703591e21ad3 | refs/heads/master | 2023-05-08T18:22:59.037779 | 2021-06-06T20:43:10 | 2021-06-06T20:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,248 | py | """
Django settings for MyPollSite project.
Generated by 'django-admin startproject' using Django 1.9.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | [
"dande2@o2.pl"
] | dande2@o2.pl |
815eea1ed249862ef713aeb01d5fbb6f06249302 | e298f62ca23b64fed098efa141ecc5ccf2014b63 | /DjadminLTE/settings.py | b6ba9295103d20f80f765c365b6f7e1e1e22c576 | [] | no_license | huakkai/DjadminLTE | 6669addab6601cfb6e6ea9faf9890005fb138801 | f1ac0cd9696afcbcb121b7422b65a5f78fe16423 | refs/heads/master | 2023-03-24T07:01:48.187722 | 2021-03-24T03:04:46 | 2021-03-24T03:04:46 | 349,777,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | """
Django settings for DjadminLTE project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from path... | [
"huaqiangyan@163.com"
] | huaqiangyan@163.com |
b9fb87d81b8ea6206160a6408edaca8fa28184b1 | 917974ea96ab36b7fa648dd57762b08e0650f459 | /MySQL/实例/MysqlOperate.py | 4fc8797c3170f610a8f5362ad0be20118f0f1282 | [] | no_license | zhoulongqa/pythonCode | 0d4957c65d2202f7551ba9ab96c06dd86e7b52d5 | 8ffd7503c3e50c5039c907fcf60a028e3829ec40 | refs/heads/master | 2021-09-08T22:23:47.892837 | 2018-03-12T12:20:10 | 2018-03-12T12:20:10 | 124,881,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # encoding=utf-8
import MySQLdb
import random
def getDatabaseConnection():
conn = MySQLdb.connect(
host='localhost',
port=3306,
user='root',
passwd='123123',
charset='utf8')
cur = conn.cursor()
return conn, cur
def closeDatabase(conn, cur):
cur.... | [
"noreply@github.com"
] | zhoulongqa.noreply@github.com |
36749030fe195b3aeeb43d8845c497d6dea8472e | 9416d46188166054782406da5acea9f030ae3dd0 | /web_crawler/selenium-test/ant-learn-spider-master/scrapy_cnblogs/scrapy_cnblogs/items.py | 752f31a90e2b99a0601abcc409c5bf6718162a79 | [] | no_license | Yuhemei/learn-for-python | de518051c4bb45f2b15c680a8b97966123a4c7a6 | 2347a0af50d0e8dce4b6d099fbff2bf728705b2a | refs/heads/master | 2023-08-05T01:24:09.037386 | 2023-08-02T07:55:17 | 2023-08-02T07:55:17 | 232,003,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class ScrapyCnblogsItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = scrapy.Field()
title = scrapy.Field()
auth... | [
"yuhemei8088@163.com"
] | yuhemei8088@163.com |
d15edac876db06faf9c9c07283a6d10c33c1f8f7 | 6d82c2f984855f0d430ebeb9d5d65adae8a6ed94 | /cdent/parser/pir/grammar.py | d3816445808fe4d76e78862d1a4b2149f3acea58 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | ingydotnet/cdent-py | bce12cfc8ffb10060ba3a67970af3649d01ca37c | 013e967f1436269965e166a91e16bcde3995b765 | refs/heads/master | 2023-05-29T19:11:25.698386 | 2011-09-21T15:15:08 | 2011-09-21T15:15:08 | 139,786 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | """
C'Dent Pir parser grammar module.
"""
from cdent.grammar import *
class Grammar():
def __init__(self):
self.__dict__.update(
{ 'BlankLine': Re({'_': '[\\ \\t]*\\r?\\n'}),
'Class': All({'_': [Rule({'_': 'ClassStart'}), Rule({'_': 'ClassBody'}), Rule({'_': 'ClassEnd'})]}),
'ClassBody': All({'_': [In... | [
"ingy@ingy.net"
] | ingy@ingy.net |
327f9765f5dd9fd7ec5ddb1747f3de2bffe48a72 | 5acc20092ee93935594a7e0522924245a43e5531 | /support_vector_machines/plot_oneclass_svm.py | b3dd6215ed3a9101ee39baa85ae115e8380814cf | [] | no_license | shengchaohua/sklearn-examples | aae2332c4382a57a70c1887777c125e6dc4579d6 | 1dac6a9b5e703185a8da1df7c724022fbd56a9e4 | refs/heads/master | 2020-05-05T01:19:20.037746 | 2019-10-18T08:55:01 | 2019-10-18T08:55:01 | 179,599,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,014 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.font_manager
from sklearn import svm
xx, yy = np.meshgrid(np.linspace(-5, 5, 500), np.linspace(-5, 5, 500))
# Generate train data
X = 0.3 * np.random.randn(100, 2)
X_train = np.r_[X + 2, X - 2]
# Generate some regular novel observations
X = 0.3 * np.... | [
"shengchaohua163@163.com"
] | shengchaohua163@163.com |
72c6c1035e7eac46699d7b528415c3c567abec3c | 7a5148cf1d906546f507d8a67dcf42c1604960ff | /CreateDatabase.py | a2e66dd048ccec49d392409b3ed7fb6ee18995ab | [] | no_license | prerna2896/Percept | 4ded7ebd3fc27125c4eb50b24100b6ca6bd2181b | 2e6a31d503b47c9d73868111257286b8bb481a43 | refs/heads/master | 2021-04-15T17:21:15.510328 | 2018-03-21T18:05:01 | 2018-03-21T18:05:01 | 126,219,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | # A program to create the tables for the inventory database.
# There are 4 tables to store the data in the inventory.
# Table Users
# The username for the user
# The password for the user
# Table Students
# First Name of student
# Middle Name of student
# Last Name of student
# Age of student
# Univer... | [
"prerna2896@gmail.com"
] | prerna2896@gmail.com |
3fa18fbb6c6c984c8016aa0330fccb80274eeeb2 | e4414bd8152e52855db7ab9065ae12b7329143e0 | /python/src/two_more_random.py | b87bee878dbdfeb7ad6ff81d257bf7e780ba71dd | [] | no_license | catalinc/programmingpraxis-solutions | 39cb847877ec46d2fb85740791c24889ab5654a8 | c0b13906aa76ffac705bf108db138fb9a38bc16a | refs/heads/master | 2021-03-27T16:46:47.781839 | 2017-09-09T15:17:38 | 2017-09-09T15:17:38 | 53,532,233 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # A solution for http://programmingpraxis.com/2012/08/21/two-more-random-exercises/
import math
def rand_middle_square(seed):
n = seed
seed_len = int(round(math.log(seed, 10)))
while True:
yield n
n = (n * n) / (10 ** (seed_len / 2)) % (10 ** seed_len)
def randu(seed):
n = seed
... | [
"catalin.cristu@gmail.com"
] | catalin.cristu@gmail.com |
165974541fa0c85ec03cb313bb773b0a04a0d2e5 | 8d1acd8a965c004b993d09bd5142a8e539b9d54b | /noteman/noteman/wsgi.py | aa050e674b960031a3c71ad584ccc5fe2166388f | [
"MIT"
] | permissive | jnthnrzr/noted | 6d16133bd2ed54167f501589b56b91c767af31bd | 7a9a93c829da24dcdc991a90a87dd33357a86508 | refs/heads/master | 2020-05-15T22:59:26.451303 | 2019-04-27T19:56:19 | 2019-04-27T19:56:19 | 182,539,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for noteman project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"jrozari00@citymail.cuny.edu"
] | jrozari00@citymail.cuny.edu |
1a9658d9fae0218278448f9af37f2b5c5e6f3593 | b9696a277966d85548ebf23c77d24554dd98b1c1 | /LasAndClf-dev/get_data_packages/collectdata2bc.py | 9ff8239bd1826c85a88010e5fb370669aed10557 | [] | no_license | hsulab/multiVASP | f1d277b015f97532588f4db21ce14bae68dafed9 | e05bf8c03ff1653ad2621fdd61b8a706138dc37b | refs/heads/master | 2020-03-07T09:12:32.199150 | 2019-10-22T14:30:18 | 2019-10-22T14:30:18 | 127,394,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,986 | py | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-
import os
import re
import time
import numpy as np
import pandas as pd
"""
"""
class GeoData():
# Geometry Features Data
def __init__(self, name):
self.name = name
# Path Settings
__dirpath = os.path.join(os.path.expanduser('~'), 'Desktop/CH... | [
"ahcigar@foxmail.com"
] | ahcigar@foxmail.com |
57b326779f0d064093b1b2aea7e43c61f5d53144 | 28f70e3d0b7c17e6a75a4af49034aa0e56ef8e37 | /main.py | b9fdf9185816a376920694fd64ab997f5cde19fd | [] | no_license | crimsoncantab/booksurvey | 7184bd2fde9bd82a856e7ca5fb5cac379c375c74 | 83c337a1176c722013763f9fecdf45fcaaa275f9 | refs/heads/master | 2021-01-19T20:21:54.120887 | 2014-11-04T16:31:56 | 2014-11-04T16:31:56 | 35,062,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | #!/usr/bin/python3
import itertools
from bottle import route, run, view, static_file, redirect, request, response
import model
import datetime
import sys
max_votes = model.max_votes
db = model.Database(sys.argv[1] if len(sys.argv) > 1 else 'db.db')
started = False
def auth(method):
def wrapper(*args, **kwargs):... | [
"mcginnis.loren@gmail.com"
] | mcginnis.loren@gmail.com |
01dcf9383bd1b2d317140688094aea86b0f82f71 | c36dd5412a1b4dfb3d69bbf7b2a105d3ed1f6360 | /lhx_rally/Rally/tests/unit/plugins/common/test_validators.py | 8d55f617f60d5ac4ce7d935b9bc175a5a118b27f | [
"Apache-2.0"
] | permissive | joylhx/Rally | 2b8804150b85aed29a66b1190c643dd37e05e637 | bb52d590d2ff975c3710084297ee26ff8ebe7ef9 | refs/heads/master | 2021-01-21T20:42:24.984941 | 2017-09-29T02:48:56 | 2017-09-29T02:48:56 | 92,267,712 | 0 | 1 | null | 2017-06-14T09:09:30 | 2017-05-24T08:16:51 | Python | UTF-8 | Python | false | false | 6,737 | py | # Copyright 2017: Mirantis 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 b... | [
"lhx04061225@gmail.com"
] | lhx04061225@gmail.com |
7eaa88500d116e362ba2c6f0b56187a47263df5f | 7eace11f85d3fcd90a1066fb6249d76b8fa502ab | /docs/conf.py | a516381dc2d2f64fb4fe398e1a61a796af288a10 | [
"MIT"
] | permissive | vermashivam679/foocat_sv | aa78c841b2ae8b019ba086981561823179a2174d | 62dd090c078f790c2e706d5613f4888dc38344b5 | refs/heads/master | 2021-01-26T06:10:20.551011 | 2020-02-29T06:46:12 | 2020-02-29T06:46:12 | 243,341,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,908 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# foocat_sv documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... | [
"vermashivam679@gmail.com"
] | vermashivam679@gmail.com |
38f797ffd72ef0fc033cfc316123cdf834221c92 | 70073ba77f0d7aa9e3a9f4a819888f11d78b5b53 | /my/settings.py | 9856367a9395dd5ccea5ee85e51c800870a17063 | [] | no_license | princee-kabra/Displaying-CSV-File- | 17a0b2cfd5027a2bd79dae96e64e14e342ca70e5 | a6fa591cca7ce00ef9de26e53c81145c5997c438 | refs/heads/main | 2023-06-12T14:35:27.931952 | 2021-07-06T19:25:54 | 2021-07-06T19:25:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | """
Django settings for my project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from ... | [
"noreply@github.com"
] | princee-kabra.noreply@github.com |
6b93ecdbb92e6d5706872b8722d49a411dcbc403 | fdd6c6a1b8e6e7e8cd267de97a1b435777342e1b | /tests/test_altdphi.py | 3a840650b023a7e240e31fe5fb070f9cd216cce3 | [
"BSD-3-Clause"
] | permissive | TaiSakuma/altdphi | bccec475432dec5aebafda4e47d12fcc5cf048d6 | ed74418fe6e0e4b08582d80093102795276d17d6 | refs/heads/master | 2021-03-16T08:45:10.249447 | 2019-05-14T16:44:40 | 2019-05-14T16:44:40 | 118,086,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | # Tai Sakuma <tai.sakuma@gmail.com>
import numpy as np
import pytest
from altdphi import AltDphi
from .testing import assert_altdphi_equal
from .expected import *
##__________________________________________________________________||
@pytest.fixture(
params=[
(event_nojet, altdphi_nojet, altdphi_met_noj... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
bad4dbcad1d81f022482309ac0e1451a68d8136e | 64d0fadae054f71c2b7ab3515c287d2b65de5d6f | /server/ordermanager/core/migrations/0003_auto_20210206_1041.py | 221c80ac199fd403c94249fade4cf31166d8e8fd | [] | no_license | jasoneffendi/ISYS6597-TK3 | 58a4fd0630dec0b74b27374726d6daa90555006f | 54831f6f4af8e4e843699fb0cec57950bbea0f10 | refs/heads/master | 2023-03-01T14:51:48.180246 | 2021-02-06T07:26:25 | 2021-02-06T07:26:25 | 336,293,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # Generated by Django 3.1.6 on 2021-02-06 03:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_pemesanan_pengambilan_produksi'),
]
operations = [
migrations.AlterField(
model_na... | [
"jasoneffendi27@gmail.com"
] | jasoneffendi27@gmail.com |
11a62cf063a9f63210a2688bedd267afdf896c3d | fa95ad476b1393de3d3cf16cdefbe0c2dc1ce437 | /DataCamp/02-intermediate-python-for-data-science/3-logic-control-flow-and-filtering/and-or-not-(1).py | 6bdf14e91732f1e1f82de86b10e2786e5ae3df89 | [] | no_license | vijaykumar79/Data-Science-Python | 95a6f6ba5f112cceeaf2fbfe8be3e7185d67ce3d | 0ed142ca1e9aaef19e11621bd9c54d29c1abe152 | refs/heads/master | 2020-03-29T19:22:09.814218 | 2020-01-02T08:23:14 | 2020-01-02T08:23:14 | 150,259,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | '''
and, or, not (1)
100xp
A boolean is either 1 or 0, True or False. With boolean operators such as and, or and not,
you can combine these booleans to perform more advanced queries on your data.
In the sample code on the right, two variables are defined: my_kitchen and your_kitchen,
representing areas.
Inst... | [
"noreply@github.com"
] | vijaykumar79.noreply@github.com |
ab65e0fd7aca6509816303ceadabec1f47a0b4fb | 8cf2f89038cf26087294cdf8e50724b95df4882e | /src/data/div2kdg.py | 628e71e82ae74070e9e805f543d62d43e66a9db5 | [
"MIT"
] | permissive | dnap512/SR-RSC | ca67944fc2b4ee7469a8f46e6bb219b67ad2a665 | 4b358a918341b025444d69e0a24d173431c0eddb | refs/heads/master | 2023-01-28T19:18:07.506284 | 2020-12-01T12:44:04 | 2020-12-01T12:44:04 | 316,384,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | import os
from data import srdata
class DIV2KDG(srdata.SRData):
def __init__(self, args, name='DIV2KDG', train=True, benchmark=False):
if args.data_range==None:
file_num = len(os.listdir(os.path.join(args.dir_data,'DIV2KDG/DIV2K_train_HR'))) * len(args.use_data.split('_'))
split = ... | [
"mh9716@naver.com"
] | mh9716@naver.com |
728158a4d9026a97e17a89c008935c78bba93cc3 | 2f6817fc8f6ddb48f5f88c913d8e40b672fc3dbf | /MLP/lec13-4[Kmeans].py | 84ab79f09472a0230ce9c1721fc34ce47e22cf64 | [] | no_license | cutz-j/TodayILearned | 320b5774de68a0f4f68fda28a6a8b980097d6ada | 429b24e063283a0d752ccdfbff455abd30ba3859 | refs/heads/master | 2020-03-23T17:34:51.389065 | 2018-11-24T08:49:41 | 2018-11-24T08:49:41 | 141,865,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import pandas as pd
from sklearn import datasets
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
iris = datasets.load_iris()
labels = pd.DataFrame(iris.target)
labels.columns = ['labels']
data = pd.DataFrame... | [
"cutz309@gmail.com"
] | cutz309@gmail.com |
c3e43afbae66f6aa4658cc2e059a94f5e45187c6 | b5d738624d7016f7e10796485624c567099374ab | /starthinker/util/dcm/schema/Activity_Metrics.py | cfddd432e314017727e16532df1791ab7115aa76 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | dvandra/starthinker | 212d8166752c36fbe6a5e0988fb5ad598f35c4a6 | 07a8c1f8bf3c7493b1833d54ca0acc9305a04bc9 | refs/heads/master | 2020-06-14T05:19:08.348496 | 2019-07-02T17:54:06 | 2019-07-02T17:54:06 | 194,915,001 | 1 | 0 | Apache-2.0 | 2019-07-02T18:25:23 | 2019-07-02T18:25:23 | null | UTF-8 | Python | false | false | 3,495 | py | ###########################################################################
#
# Copyright 2017 Google Inc.
#
# 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
#
# https://www.apache.org/... | [
"kenjora@kenjora-macbookair.roam.corp.google.com"
] | kenjora@kenjora-macbookair.roam.corp.google.com |
4ab1f6f42bf22d405296c8bc40add62412636f68 | d55bcf35f30ca7319b15b3598e4467b9635f6a7a | /admin_cutom/urls.py | b937a397e21f85406655c177d2caef25b75d5992 | [] | no_license | alanlengkoan/crudindjango3.0.6 | c5dcde657dc07916dd68843f294da814bf9633a7 | a54f665c5c281175759089c861f616d3a1442de2 | refs/heads/master | 2022-07-03T05:58:55.739316 | 2020-05-12T14:38:43 | 2020-05-12T14:38:43 | 262,588,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | from django.urls import path
# untuk mengambil views
from . import views
urlpatterns = [
path('', views.index),
# untuk login
path('login/', views.login, name='login'),
path('login/check_validation/', views.check_validation, name='check_validation'),
# untuk logout
path('logout/', views.logout... | [
"alanlengkoan15@gmail.com"
] | alanlengkoan15@gmail.com |
b87e80f0f75276d0749f6f197850462a32245582 | 2088b21323a53fad3655258f26c01aca3d008bea | /Black Mafia/time pass_dec.py | 026bca91501b92981a9348fa426940fb47e6e0ea | [] | no_license | darkhunter141/Reverse-Engineering | ca5e23b4509a847155d65bef7091124dc12f3eeb | 88f4b63a1c0f9f0ed2d021004521c3c89dc9e6e4 | refs/heads/main | 2023-06-07T05:03:26.699649 | 2021-06-29T12:54:56 | 2021-06-29T12:54:56 | 359,063,058 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 16,947 | py | #Update 14/10/2020 (18:36)
#Recode Mulu asu tinggal pake apa susahnya:v
import os,sys,time,requests,json,re
from bs4 import BeautifulSoup as parser
from time import sleep
from concurrent.futures import ThreadPoolExecutor
from colorama import init, Fore, Back
B = Fore.BLUE
W = Fore.WHITE
C = Fore.CYAN
R = Fore.RED
G = F... | [
"noreply@github.com"
] | darkhunter141.noreply@github.com |
a0db7f8ec9e13ecc385d9021b9ee3f35bb82ebdd | 52e2b09db50161d051e9d571e53628b9265fd94f | /lesson3/0_all_tasks.py | 278702a8a6832741adfafa4d459520ababd2a0d2 | [] | no_license | someone-a/lp_hw | df3b09e068bb9b8aedd7427b5daf634a4d0a383d | e77e4f8efba434fce0a5c86ff1b6c8453288f535 | refs/heads/master | 2020-07-25T04:38:18.735609 | 2019-09-21T10:53:58 | 2019-09-21T10:53:58 | 208,167,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | import pandas as pd
from datetime import datetime
from geopy import distance
df = pd.read_csv('stops.csv',sep=';', comment='#')
print(f"number of bus stops {len(df)}")
street_stat = df.groupby('Street')['global_id'].agg('nunique')
print(f'The most popular street is {street_stat.idxmax()}')
print('top three streets are... | [
"someonenear@mail.ru"
] | someonenear@mail.ru |
9b44d986d56a32025f008ddee3a9ecc1521909c0 | 2aed0d083a71c1d2dbce2778575120c7e8db193d | /44_Palindrome_count.py | d95562bff397ad008da4cbcb62859e84ee185d98 | [] | no_license | kannan-c1609/Accenture | 55e3bcc13897047ce0567b2a96ab1546cd818854 | 7244dee504a7b60fc00ba2f3f35096db9cf5f7f8 | refs/heads/main | 2023-08-15T04:08:19.547590 | 2021-09-16T18:25:10 | 2021-09-16T18:25:10 | 404,663,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | """
Palindrome Count
Write a function to find all the words in a string which are palindrome.
Note: A string is said to be a palindrome if the reverse of the string is the same as string. For example, “abba” is a palindrome, but “abbc” is not a palindrome.
Input Specification:
Input1: string
Input2: Length o... | [
"noreply@github.com"
] | kannan-c1609.noreply@github.com |
8147ee54973388356c60c895c778940a1eee9e84 | 8d014c5513a0eeca086010b018b67336f8d042e0 | /wicam_vlc.py | 480b078447c514a89f8b8c568d94727f18331028 | [] | no_license | rkuo2000/cv2 | 26ce0a06b4040eabb82319ec44cab5c3639b9495 | 16e64e7092d6654ea470e469d6b15f308ecd1788 | refs/heads/master | 2022-10-12T00:11:35.964818 | 2022-09-30T06:50:35 | 2022-09-30T06:50:35 | 108,848,948 | 5 | 29 | null | 2022-09-29T11:01:48 | 2017-10-30T12:38:58 | Python | UTF-8 | Python | false | false | 457 | py | # Install VLC Player on PC
# Add Environtment System Variables: VLC_PLUGIN_PATH = C:\Program Files\VideoLAN\VLC\plugins
# pip install python-vlc
# WiFi connected to WiCam module (streaming video)
import cv2
import vlc
#player=vlc.MediaPlayer('rtsp://192.168.100.1/cam1/h264')
player=vlc.MediaPlayer('rtsp://192.... | [
"noreply@github.com"
] | rkuo2000.noreply@github.com |
2d50a33f7a6f96a094b2b5a8c3082d850f8c3b9a | dea8cfa596d52d5db0e28ac43504e7212b43081b | /python/AtCoder Beginner Contest 123/Five Dishes .py | 5b3b87bc101c5841242a539782cdaf0a6b8925b9 | [] | no_license | Yuta123456/AtCoder | 9871a44f12a8fca87b0e2863a999b716128de1ac | ca04422699719563e311f7d973459ba1dc238c2c | refs/heads/master | 2023-01-04T22:33:54.120454 | 2020-11-04T05:20:37 | 2020-11-04T05:20:37 | 286,409,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | def ceil(x):
k = x % 10
if k == 0:
return x
else:
return x + (10 - k)
d = []
for i in range(5):
d.append(int(input()))
d_min = []
min = 124
sum = 0
index = -1
for i in range(5):
d_min.append((d[i]) % 10)
for i in range(5):
if d_min[i] != 0:
if min > d_min[i]:
... | [
"yuuta09090530@icloud.com"
] | yuuta09090530@icloud.com |
50cc23e44095ed0d1a72c03b36dae249a4dd19a2 | 29d7b72e11e5e8050bf743784a3634ea0f080a32 | /shop_app/migrations/0054_category_number.py | ad735adbd1100eda5f5bcd73c1e8c2f48c410b68 | [] | no_license | vincenttpham/dekage | 8c3633235afee6c207c33d7108b58f3f555d855d | a5e380eb98a983de7317558ecca2aa1d906002da | refs/heads/main | 2023-04-21T12:19:03.898801 | 2021-05-09T00:36:56 | 2021-05-09T00:36:56 | 341,022,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.2 on 2021-02-22 03:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop_app', '0053_auto_20210221_2154'),
]
operations = [
migrations.AddField(
model_name='category',
name='number',
... | [
"crystalpham@Crystals-MacBook-Pro.local"
] | crystalpham@Crystals-MacBook-Pro.local |
40b35aefa6aa53d7c9e97137d474309dfdb68a8e | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /15_Feature_Engineering_for_Machine_Learning_in_Python/2_Dealing_with_Messy_Data/howSparseIsMyData.py | 6c17397750627c6381fd7a7979223548ea23969e | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # How sparse is my data?
# Most data sets contain missing values, often represented as NaN (Not a Number). If you are working with Pandas you can easily check how many missing values exist in each column.
# Let's find out how many of the developers taking the survey chose to enter their age (found in the Age column of... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
57c13ae96d495b58c53b9ab7525d3a333ceadcba | d65097195a7838458900ab678db8537a57102216 | /vulnserver/GTER - EIP Overwrite/first_stage_gter.py | 0be64b6e482b0d438c92a20f051a92b594378b19 | [] | no_license | RaySdj/OSCE | 15197b9678964047e08cd05b468faef3397fb8ba | 0490b02a7ac07b6077fbb3f16d757e3345e2d6a2 | refs/heads/master | 2022-12-14T22:48:16.343273 | 2020-09-09T15:56:23 | 2020-09-09T15:56:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import socket
import struct
import os
import sys
vuln_command = "GTER "
crash = 160
offset = 151
eip = struct.pack("<I", 0x62501205) # JMP ESP
jmp_back = "\x54\x59\x83\xE9\x64\xFF\xE1" # 1st Stage Shellcode
payload = ""
payload += vuln_command
payload += "A" * 151
payload += eip
payload += jmp_back
payloa... | [
"noreply@github.com"
] | RaySdj.noreply@github.com |
42d6cbdf04e5bbb6398833f05d3653f58dbacfa6 | c5291e50a3c72c885922378573a0ad423fcedf05 | /analysis/analysis/urls.py | 0a94cc17c066e5075d59765c816f00b7aac7ce4e | [] | no_license | raghurammanyam/django-projects | bcc3ed6285882af437a2995514cef33760fb063e | dd20ae354f7f111a0176a1cc047c099bd23e9f05 | refs/heads/master | 2022-12-12T19:22:31.698114 | 2018-12-09T09:41:45 | 2018-12-09T09:41:45 | 137,443,359 | 0 | 0 | null | 2022-11-22T03:01:07 | 2018-06-15T05:08:15 | Python | UTF-8 | Python | false | false | 929 | py | """analysis URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"manyamraghuram@gmail.com"
] | manyamraghuram@gmail.com |
5c3d725b18d3f2bab2b198212b0d66e8e11d2102 | 4d122aa6da87f1c49fd6f6ef60c295bb456f14a2 | /Python/191. Number of 1 Bits.py | 2fb92f631cd0389153bccca83e8664916b2cc662 | [] | no_license | Ryuk17/LeetCode | dc9e37e6f037d2bc13cbf676b784f264ec341723 | 6910890b540613c0f871f575adf34f9fd7d42dff | refs/heads/master | 2023-06-07T08:03:47.211173 | 2021-06-27T11:57:09 | 2021-06-27T11:57:09 | 98,619,878 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | class Solution(object):
def hammingWeight(self, n):
"""
:type n: int
:rtype: int
"""
count = 0
x = bin(n)[2:]
for c in x:
if c == '1':
count += 1
return count
| [
"liujieit@foxmail.com"
] | liujieit@foxmail.com |
5f4bca888d2bd25f8db72cad9e3e81e1d80dbd33 | afc0ea14bc9271ac831549ac5d5b279c168b50c9 | /src/settings.py | 0f369f7e9dc122c72358a6ac5b2e44568089871c | [] | no_license | indre-bogdan/sustainable-waste-management-optimization | ac2bf34139314073ed35eea2072932669c1871bc | 3b1e66c37e782b52a4e92cb2b7e7b9c6192ffbd4 | refs/heads/master | 2022-04-08T13:02:23.218608 | 2020-02-24T08:54:14 | 2020-02-24T08:54:14 | 222,386,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | class Settings():
"""A class to store the settings"""
def __init__(self):
"""Initializes static settings"""
self.nrOfIndividuals = 38
self.individualLength = 2 * self.nrOfIndividuals
self.volumeCenter = 100
self.volumeOneTileAway = 50
self.volumeTwoTilesAway ... | [
"indremarian@gmail.com"
] | indremarian@gmail.com |
2093ce0cb85111f3f214151ed4bcb78b1d2e34fc | ff4fe07752b61aa6404f85a8b4752e21e8a5bac8 | /challenge-209/eric-cheung/python/ch-2.py | 624ac7029fd2589ae8c5e87fe90970b576910183 | [] | no_license | choroba/perlweeklychallenge-club | 7c7127b3380664ca829158f2b6161c2f0153dfd9 | 2b2c6ec6ece04737ba9a572109d5e7072fdaa14a | refs/heads/master | 2023-08-10T08:11:40.142292 | 2023-08-06T20:44:13 | 2023-08-06T20:44:13 | 189,776,839 | 0 | 1 | null | 2019-06-01T20:56:32 | 2019-06-01T20:56:32 | null | UTF-8 | Python | false | false | 1,044 | py |
## arrAccount = [["A", "a1@a.com", "a2@a.com"], ["B", "b1@b.com"], ["A", "a3@a.com", "a1@a.com"]] ## Example 1
arrAccount = [["A", "a1@a.com", "a2@a.com"], ["B", "b1@b.com"], ["A", "a3@a.com"], ["B", "b2@b.com", "b1@b.com"]] ## Example 2
arrUser = [arrAccount[0][0]]
arrEmail = [arrAccount[0][1:]]
arrFinal = [... | [
"mohammad.anwar@yahoo.com"
] | mohammad.anwar@yahoo.com |
19cdad09fcea597b9049e86da3c0e55f919ffb8e | 14f30311d0c93053d159118f5b978f26352fa201 | /NAIP/loop_FeatureCollection.py | 9c19c5419f0d1ff011badcc08639be57065e84e5 | [
"MIT"
] | permissive | kylebarron/earthengine-py-notebooks | 590a343c5011f3e9a346c2379016e262aa13801f | 4e9e3bae244fb66284f77c264f19aa297fb0fea1 | refs/heads/master | 2022-07-31T07:33:21.109880 | 2020-05-18T23:42:26 | 2020-05-18T23:42:26 | 257,686,790 | 0 | 0 | MIT | 2020-04-21T18:50:58 | 2020-04-21T18:50:57 | null | UTF-8 | Python | false | false | 8,278 | py | # %%
"""
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/NAIP/loop_FeatureCollection.ipynb"><img width=32px src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" /> View source on GitHub</a></td>
<td><a target="... | [
"giswqs@gmail.com"
] | giswqs@gmail.com |
96b924403b979fdb28c822ba95d6e11cb3fec72c | d05941afcd6f193d8184821c1d782a42bad27ba0 | /Python/7 kyu - Limit string length - 1.py | b6dd44eefc9d1dd746bd1ea28679afb4bc2b94e5 | [
"MIT"
] | permissive | icest99/Codewar | 630267343f2ed668f95224bf5e9a0b26315f566c | 40b2088ec0316709cda0a3ebbc6c327c9923af02 | refs/heads/main | 2023-02-16T02:12:02.571154 | 2021-01-03T17:16:38 | 2021-01-03T17:16:38 | 325,219,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Description:
# The function must return the truncated version of the given string up to the given limit followed by "..." if the result is shorter than the original. Return the same string if nothing was truncated.
# Example:
# solution('Testing String', 3) --> 'Tes...'
# solution('Testing String', 8) --> 'Testing ... | [
"playicest@gmail.com"
] | playicest@gmail.com |
be973408205282b7bd3a67103a473d192b8a5050 | fdaaba6beec4d6b8f287a5165d0dcacf5dbfaad5 | /first python.py | 8b7e9558b7a6322c2604507dd3d63206701be7ce | [] | no_license | ax007dank/repostest | 41c1a6522fe8fc164e452f6dae40cf932bbf7c43 | 336de4a9855cd4feafef2898a93141447228a7f8 | refs/heads/master | 2022-12-25T19:25:30.866821 | 2020-08-26T08:29:27 | 2020-08-26T08:29:27 | 290,434,682 | 0 | 0 | null | 2020-08-26T08:29:29 | 2020-08-26T08:03:47 | Python | UTF-8 | Python | false | false | 44 | py | #Display the Outpu
print("New Python File")
| [
"noreply@github.com"
] | ax007dank.noreply@github.com |
5e3155e560a1c4c9932aad5f2150648b1da46f76 | fd7d7e1410874d18823bbe3c0f3c521cb54e079c | /news/migrations/0008_auto_20191002_1652.py | 50dcb8502c426938f35aa56cdf27f8b4495221b8 | [
"MIT"
] | permissive | alex-muliande/tribune | 9c1728311e42b16cf90e3b6e94b64a2b1ed3c8be | 86316dd4b20a76320b4b20b86266f89aac02a326 | refs/heads/master | 2023-08-03T13:20:47.852749 | 2019-10-03T09:25:46 | 2019-10-03T09:25:46 | 212,532,363 | 1 | 0 | MIT | 2021-09-08T01:19:17 | 2019-10-03T08:37:00 | Python | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-02 13:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0007_article_article_image'),
]
operations = [
migrations.AlterField(... | [
"amuliande@gmail.com"
] | amuliande@gmail.com |
c6ac479b79ac8598dc5eecd9292f7d8afe2241ff | 38d84896160cb547565a70cab7bbe7be64263c0d | /test_print.py | b5314993193d6b7eabc6d54d3fdf0cf3fbc0c3a2 | [] | no_license | saiabinesh/future-news-trends | 98c1d70f9ce71f27987afd3442ad7210b4d4ff7b | b6bfd171a93ee4b143a5fed100eacc867b8d80d0 | refs/heads/master | 2020-04-05T14:33:57.668710 | 2017-08-12T21:50:43 | 2017-08-12T21:50:43 | 94,680,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import sys
class Logger(object):
def __init__(self):
self.terminal = sys.stdout
self.log = open("logfile.log", "a")
def write(self, message):
self.terminal.write(message)
self.log.write(message)
# def flush(self):
# #this flush method is needed for pyth... | [
"noreply@github.com"
] | saiabinesh.noreply@github.com |
d38ded7e53d09752b5f5ac4a5a5e44c02f68ff3b | 2d049ffb5c2283e71ef699e9aba0240cd2b12ad4 | /pyxedit/xedit/object_classes/OBND.py | c6a921d492cf159716ec9779d34d472655126a5e | [
"MIT"
] | permissive | leontristain/pyxedit | 57f9d53ed6b5cfc3802e8799636dce421955f536 | 4100506930ab6d62d6e2c4a89fee024dbbf87c7b | refs/heads/master | 2023-01-06T16:50:45.544602 | 2021-05-02T19:06:37 | 2021-05-02T19:06:37 | 179,760,373 | 1 | 1 | MIT | 2022-12-26T21:31:52 | 2019-04-05T22:03:09 | Python | UTF-8 | Python | false | false | 356 | py | from pyxedit.xedit.attribute import XEditAttribute
from pyxedit.xedit.generic import XEditGenericObject
class XEditObjectBounds(XEditGenericObject):
SIGNATURE = 'OBND'
x1 = XEditAttribute('X1')
y1 = XEditAttribute('Y1')
z1 = XEditAttribute('Z1')
x2 = XEditAttribute('X2')
y2 = XEditAttribute('... | [
"ltristain@yahoo.com"
] | ltristain@yahoo.com |
39e6bf4ecf39d328147ec7c400a110efd5dcabae | 292b43454189f1cb5e67fc0a6f77b9b76cc5c156 | /dvaapp/views.py | 66c904e64b907a77f5ec8839082008beb94f1765 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | junjiez/DeepVideoAnalytics | b9f4e00d800c972ae71233699f341d6f733c2d61 | 03e708a12e1941cedb1449fc7bbc02b3c0fca1d2 | refs/heads/master | 2021-06-25T21:18:49.767732 | 2017-09-12T19:16:22 | 2017-09-12T19:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,986 | py | from django.shortcuts import render, redirect
from django.conf import settings
from django.http import JsonResponse
import requests
import glob
import json
from django.views.generic import ListView, DetailView
from django.utils import timezone
from .forms import UploadFileForm, YTVideoForm, AnnotationForm
from .models ... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
d7bc7be55fcb069aa6908eba6a0906492f5702d9 | 1e21fa1a3a8f723586ba09e8bcad695c81c104b3 | /scraping/spiders/valextra.py | d4672039116268a4d75f448b33cd6bbd25d90bdc | [] | no_license | plustry/Tool_Updater | 13f66c1c10d70894cda52f1e0f50eacaf5953ce9 | 444b73f4fdc8c94d646d4c2bb4184760e1ef3a3a | refs/heads/master | 2021-08-20T04:52:08.335313 | 2021-07-27T05:34:44 | 2021-07-27T05:34:44 | 235,749,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,891 | py | from pytransform import pyarmor_runtime
pyarmor_runtime()
__pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x06\x00\x33\x0d\x0d\x0a\x03\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x14\x13\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x... | [
"rnrnstar520@gmail.com"
] | rnrnstar520@gmail.com |
4b7e734cde8ac838754776fc9246c7be90ce7b5d | db285b1924b5d2b1a88631b57247d960540b6a86 | /tests/dsl.py | b0c585c428343340d7018490a29f89e6a6ebb228 | [] | no_license | remyzane/esql-assist | b2706e14490540e8cebbb95dea411f36ef66d533 | 614fadf36a708f379c964f26b50a38f5a408d8d1 | refs/heads/master | 2021-01-12T01:25:46.688715 | 2017-03-10T08:42:08 | 2017-03-10T08:42:08 | 78,384,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from parser import Processor
from tests import get_test_cases, tests_data_path, check_consistency, show_difference
def test_cases():
use_case_group = get_test_cases('ast_dsl')
print()
for case_file, use_case in use_case_group.items():
print(' ' + case_file[len(tests_data_path) + 1:] + ' ...')
... | [
"remyzane@icloud.com"
] | remyzane@icloud.com |
a772c938054ff9377d66f766c4c9314f60c6fe54 | fbcfb3c21a8516d00c38129724e846e6074aaae6 | /configs/DeepScoresBaselines/DSv2_rcnn/DSv2_faster_rcnn_hrnetv2p_w18.py | cf48a2f119b490bf8a6b8bcdef3ab57d99ae2965 | [
"Apache-2.0"
] | permissive | jt658/mmdetection | 41877a71bb49c4b2a6ede88134236ecd18e9ad74 | 1f9a04e3af5cc55ff4ce9ef11f0327390ffae58e | refs/heads/master | 2023-01-30T12:34:51.639204 | 2020-12-17T10:18:24 | 2020-12-17T10:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | _base_ = './DSv2_faster_rcnn_hrnetv2p_w40.py'
# model settings
model = dict(
pretrained='open-mmlab://msra/hrnetv2_w18',
backbone=dict(
extra=dict(
stage2=dict(num_channels=(18, 36)),
stage3=dict(num_channels=(18, 36, 72)),
stage4=dict(num_channels=(18, 36, 72, 144)))... | [
"tugg@zhaw.ch"
] | tugg@zhaw.ch |
03900f1739412817a140ecee95c1f317ed1b5163 | 184673f63339633ef329b7ef8870d2a37947ea4e | /cosco.py | e25d5ee434a76b907d93e27b68c1c40c86efa54d | [] | no_license | bryangalindo/centrans_carrier_scraper | be8959ca0415a9af15a1773a31d546a798709db8 | 4a9f696aa2f78ceb2f9324687237819130ad7113 | refs/heads/master | 2020-04-06T09:08:41.248915 | 2019-02-27T02:48:09 | 2019-02-27T02:48:09 | 157,330,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | from constants import COSCOURL
from utils import Driver
class Cosco:
def __init__(self, bl_number):
self.driver = Driver()
dummy_url = '/error404'
self.bl_number = bl_number # BL format : 6194326880
self.driver.get_page(COSCOURL+dummy_url)
self.driver.add_cookies()
... | [
"noreply@github.com"
] | bryangalindo.noreply@github.com |
c2374a4c2a0f8125c15d4daa87dc1bee036aa59b | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/wpst_crm/ci_fit/config/I11/CI-FIT-16-CI-FIT-17_old.py | 573ae00df59b8aacdb29e3a48d49f44cd672ae90 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159,115 | py | def make_range_list(vrange):
rlist = []
for x in xrange(vrange['start'], (vrange['end'] + 1)):
rlist.append(vrange['prefix'] + str(x) + vrange['suffix'])
return rlist
admin_credentials = {'userName': 'Administrator', 'password': 'hpvse123'}
vcenter = {'server': '15.186.4.110', 'user': 'Administrat... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
d0c93cdd8bcd4374ed94c2afefcde32eddf2f5d2 | 33c83aeb4191fe8e86406ee3b5430b18b32d114e | /shop_list.py | 7bc091f9b540d01107b8713a63cb7b848cbe3a55 | [] | no_license | ZhuravlevaOlga/Shop_list | 244ee54e7da317528bfa77fbcc914cc1808ed206 | 4b78d15f95c142fce79b47feb5baa7ad5d1a9fd8 | refs/heads/master | 2020-04-24T09:33:14.157885 | 2019-02-21T12:15:30 | 2019-02-21T12:15:30 | 171,865,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py |
def forming_cook_book(): # формирует словарь с рецептами берет данные из файла
with open('cook_book', encoding='utf-8') as f:
cook_book = {} # создаем пустую книгу рецептов
for line in f: # читаем строки из файла с рецептами
dish = line.strip().lower() # первая строка это блюдо
... | [
"olya-8507@mail.ru"
] | olya-8507@mail.ru |
3ebaf609a8ffeb59695949f05d22195040cfa9cb | 5068fd40502a09f3ba7d34de7e60b0d1e48a5f9e | /fkart.py | 906768c36004b29b2432b22846f7e393a4628bda | [] | no_license | ishvaram/Python-connectors | 3fbb9246b443d4fc7bdc53256f5f8f7ab8d34f86 | 66079d1d0b80a06fe20beda9b9a475c07be4cf88 | refs/heads/master | 2021-01-18T23:59:47.447494 | 2017-11-27T07:24:40 | 2017-11-27T07:24:40 | 47,703,004 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,178 | py | from bs4 import BeautifulSoup
import sys
import os
import urllib2
import itertools
import requests
import MySQLdb
import json
import simplejson as json
conn=MySQLdb.connect (host ="localhost",user="root",passwd="root",db="flipkart")
product = raw_input("Enter product name: ")
product = product.replace(' ', '+')
op... | [
"jehovaram@gmail.com"
] | jehovaram@gmail.com |
243e12cea1928f4024ea0d1bbd062a8b27808eb6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /avBHBMAwf9ibDpfNM_17.py | 90a9250d618305bcb7990c7a48831401227015ca | [] | 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 | 122 | py |
import requests
def content_type(url):
r = requests.get('https://edabit.com/')
return r.headers['content-type']
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
baff51d7ec143513a40da32f04cfa38307c90399 | 3b9e0fd3325ff98b570fa803fcec3b04ff38ad73 | /yolo.py | 80ae86f423721a3166c902046eb6b73746a213ec | [] | no_license | YHJACK/Airplane-detection | bd5e1d3f1e8bc0c258b7f980914c8017704db283 | 1b735a5d7a09e9d3b7bd933ceae211edaf6624bf | refs/heads/main | 2023-08-01T15:00:33.556711 | 2021-09-16T13:08:55 | 2021-09-16T13:08:55 | 407,168,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,477 | py | #-------------------------------------#
# 创建YOLO类
#-------------------------------------#
import cv2
import numpy as np
import colorsys
import os
import torch
import torch.nn as nn
from nets.yolo4 import YoloBody
import torch.backends.cudnn as cudnn
from PIL import Image,ImageFont, ImageDraw
from torc... | [
"noreply@github.com"
] | YHJACK.noreply@github.com |
e4da1c60a852bd610107e481b15b04c840883e61 | 306a4c0c7ed32e879f76e6c101da70c46679f6bc | /copying_files_folders.py | 2ff064ba2279ee561714d6f97429272228f18007 | [] | no_license | ksoh512/automatetheboringstuff | 3552f803d73644862e2e31d307b50aff82b6a839 | 0d9ee8de7927dbe0e0f08dbfb73867ffd9bf563c | refs/heads/master | 2021-01-20T03:02:14.554780 | 2017-08-24T22:52:37 | 2017-08-24T22:52:37 | 101,343,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | import shutil, os
os.chdir('C:\\')
''' COPY FILES '''
shutil.copy('C:\\spam.txt', 'C:\\Users\\koh\\Documents\\codes\\automattheboringstuff')
shutil.copy('C:\\eggs.txt', 'C:\\Users\\koh\\Documents\\codes\\automattheboringstuff')
'''COPY FOLDERS AND FILES CONTAINED IN IT'''
shutil.copytree('C:\\delicious'... | [
"noreply@github.com"
] | ksoh512.noreply@github.com |
b250dd42d3957197303b7555e15b707a8ae78482 | 74a2beaf71bb19ae8262e7097a9218fa0b3ec416 | /login/settings/base.py | 80aac174bcaacf59d72a39909720573ae2a655bf | [] | no_license | romelgomez/djauth | 30444c4903bf888f0805261370f061849804f6c9 | 5af1cf036cfdd7ed0869cf607069b91f6000efb6 | refs/heads/master | 2020-04-25T13:07:01.019580 | 2019-02-27T16:07:58 | 2019-02-27T16:07:58 | 172,799,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | """
Django settings for login project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"bmxandcode@gmail.com"
] | bmxandcode@gmail.com |
35c4faa52044f03193e367cc585b3dedf7d289ca | 015e3902bf18a63209e04150213ef8dc07645e34 | /agent/setup.py | bbc6feb840b6e1a783af5bf3a2022ccdfccd7598 | [] | no_license | novucs/reinforcebot | 03c6cac683c62de883e9d78742b2764bec29e1bf | 43cf7c18910fc837787d068a6809fad8cdddc0d8 | refs/heads/master | 2022-04-19T09:32:53.487943 | 2020-04-20T21:14:33 | 2020-04-20T21:14:33 | 245,071,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="reinforcebotagent",
version="0.0.3",
author="Will",
author_email="contact@novucs.net",
description="The ReinforceBot agent shared library",
long_description=long_description,
long_... | [
"contact@novucs.net"
] | contact@novucs.net |
e87fe364eb45e9d5da3992a2d77199da5141b4c8 | 680f879c2ff1f014f593177e2fbdb2f767d48934 | /bin/pyrsa-keygen | 1d9037e6d27ac165fa0fa2322aff1afbc14321a1 | [] | no_license | zilnhoj/automate-reporting | a3df7e5ec495dc9dda4cd855b94cd88fbca76f5a | e38ef798d00ad1a1ba1d106c14e33ab3fe0c47d5 | refs/heads/master | 2021-01-11T12:27:34.195832 | 2017-01-06T11:49:28 | 2017-01-06T11:49:28 | 76,650,650 | 1 | 0 | null | 2017-01-04T10:28:10 | 2016-12-16T12:03:04 | Python | UTF-8 | Python | false | false | 260 | #!/Users/johnbyrne2/data_analysis/automate-reporting/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"johnbyrne2@gds5047.local"
] | johnbyrne2@gds5047.local | |
8977d1133ed6e6c64a446fb8f2e220189b4a1aa4 | 295317576714b536f5a0cf9139444f6f8c238e03 | /02_06_2021/example_subs_string_02_06_2021_b3.py | 1e11b46a34fc6ecd1788abca44c7077bf5aca469 | [] | no_license | prope-2021-gh-classroom/repo-for-repl.it-Python | bb482f1f0c1d106601bc454a46ec2032da8def87 | b33af3429281aebebdbaababc2f23c353f0f36e4 | refs/heads/main | 2023-06-05T07:34:23.274069 | 2021-06-17T02:10:02 | 2021-06-17T02:10:02 | 372,053,964 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py |
string = """The merry old queen of Katoren has died
and there’s no heir to the throne. Six sour ministers rule the land
and claim that they’re looking for a new queen,
but nothing happens – for seventeen years.
Then suddenly there’s a girl standing at the door of the royal
palace who was born on the night the queen d... | [
""
] | |
c0642e90ddb142bbe67af2cbb81148287054d3d3 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/530bd27ed2c4c8e3f6a44b332569c3f73dfcb332-<test_np_mixed_precision_binary_funcs>-fix.py | 8e9d3b67eb8f1b2c486e7784f60da806ef689c24 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | @with_seed()
@use_np
def test_np_mixed_precision_binary_funcs():
def check_mixed_precision_binary_func(func, low, high, lshape, rshape, ltype, rtype):
class TestMixedBinary(HybridBlock):
def __init__(self, func):
super(TestMixedBinary, self).__init__()
self._fu... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c857ff9151528d63b9708c247e5f69f6e336583d | 35fd253f02db0b128fd47b5a7046f4975a8bd8ea | /env/bin/connexion | 8be86c5263cd5b07c44463ad514ce50e319f3159 | [] | no_license | swapnanildas/REST-API-with-Flask-Connexion | eccecab01c43e966c94d8417bcde5c499bdc4dcb | 70ac45a3812681eaa2d6c489aaad7aae03ee3f96 | refs/heads/master | 2023-02-21T08:44:00.428932 | 2021-01-08T20:32:42 | 2021-01-08T20:32:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/Users/farruhshahidi/Documents/2/rest_api_flask/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from connexion.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"farruh.shahidi@gmail.com"
] | farruh.shahidi@gmail.com | |
1f325140af98baa274d5fe71faec444bd464f91f | 2718dd94e63701a8efc1c0e9a4f3107780187a82 | /estudiantes/migrations/0001_initial.py | 9753f917681855d7aa12b50c13d703c5e67637a4 | [] | no_license | luis-rios/semana5 | a48f9dbdf34adfcc85442001e927bbb1af9e8d5c | c44fccf4846f085d895fbb8b9ee6c6dcff7b0cd4 | refs/heads/master | 2023-01-21T07:08:37.719426 | 2020-11-28T06:05:05 | 2020-11-28T06:05:05 | 316,667,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # Generated by Django 2.2.14 on 2020-11-27 23:01
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Estudiante',
fields=[
('id', models.AutoFi... | [
"vvrhz11@gmail.com"
] | vvrhz11@gmail.com |
28679bfa4f4cb7276146b459f4a3e30225fc87b9 | da509533b6e3aaf9b6ebff9e2fca432f34127011 | /manage.py | 6efec09405f94f2f49504f7bdc9497efe7f81a96 | [
"MIT"
] | permissive | pcodes/mhn_interface | 46cf79e05a298fcdeea0139824ffdda7e972b962 | d9082b0be709c3de9effee6fad25f4df376bbc07 | refs/heads/master | 2021-03-24T12:29:01.374943 | 2017-07-29T05:01:23 | 2017-07-29T05:01:23 | 94,044,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local')
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"patcody028@gmail.com"
] | patcody028@gmail.com |
31a68f6814405e7496d0cd26bda46bd785850914 | 9c7318e5e09764f697d2c46629e43d47dcc0177a | /18_DT_pearson.py | 5f2941d3becb32d090e8b9129d0f1ba3de9c77c4 | [] | no_license | deepuachar37/Data-Mining-and-Machine-Learning-Codes | c1c37f878b192f58a0f37d02700358bcb9334811 | 6c391bddbc957fb2c05ffc784b1caae59a5b9ef2 | refs/heads/master | 2020-04-29T04:44:00.568024 | 2019-03-15T16:37:36 | 2019-03-15T16:37:36 | 175,856,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,453 | py |
# coding: utf-8
# In[1]:
#!/usr/bin/env python
# coding: utf-8
import numpy as np
import pandas as pd
from sklearn.metrics import confusion_matrix
from sklearn.cross_validation import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.metrics import accuracy_score
from sklearn.met... | [
"noreply@github.com"
] | deepuachar37.noreply@github.com |
9f04810a5f81bd09f7ade29593fa2b1164d02b78 | 9cd629a133a2a8fdae57a55da301636475dbcb19 | /us.py | 90ca64f102b219e151553645172dfaa72a663c57 | [] | no_license | SpnaAggarwal/Spark | e5a4ceccfe744ec935322d394f77174ce13d86a5 | 40dc138ecb8ebced80a1ba4635518919bfbc29ca | refs/heads/master | 2020-05-25T12:27:12.510216 | 2019-06-10T14:57:50 | 2019-06-10T14:57:50 | 187,798,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import sys
sys.path.insert(0,'.')
from pyspark import SparkContext,SparkConf
from util import Utils
def splitComma(line:str):
splits=Utils.COMMA_DELIMITER.split(line)
return "{},{}".format(splits[1],splits[2])
if __name__=="__main__":
conf = SparkConf().setAppName("airports").setMaster("local[*]")
sc = SparkContex... | [
"noreply@github.com"
] | SpnaAggarwal.noreply@github.com |
06cd0cf77ddd9dee4fcbd7c89f89adfef301beac | 909792aae90ba32dfc6754764a8a138d5be6b218 | /catalog/migrations/0006_auto_20191006_2010.py | 54de49f49ab9c9ae481b6ba33bfe514cd4651696 | [] | no_license | mugak/dvd-rental | e282d3525be06a15447556c204acf6596c959ed6 | 3be6073427b7185621ed2597dd52aaa38ee9c006 | refs/heads/master | 2020-08-05T20:48:15.544080 | 2019-10-14T23:43:25 | 2019-10-14T23:43:25 | 212,704,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | # Generated by Django 2.2.5 on 2019-10-06 20:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0005_auto_20191006_2005'),
]
operations = [
migrations.RemoveField(
model_name='movie',
name='director',
... | [
"ukim@ucdavis.edu"
] | ukim@ucdavis.edu |
e3610a8cad83673c55c26a75ec3547feeb2973bc | 7d915f17983f2585cf600c1b97ae060dd48967b0 | /mid_test/lacString_1.py | 7df478f26b19a4032c2d36399621a20b83ab9712 | [] | no_license | aduxhi/learnpython | ca8b241d0b945fa29a53ba9a3ccb46640799e141 | b72144c258d07915936908214ec0a1bcd8a0c56a | refs/heads/master | 2022-12-13T03:44:35.136137 | 2020-09-02T14:24:42 | 2020-09-02T14:24:42 | 291,760,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | #!/usr/bin/python
def laceStrings(s1, s2):
"""
s1 and s2 are strings.
Returns a new str with elements of s1 and s2 interlaced,
beginning with s1. If strings are not of same length,
then the extra elements should appear at the end.
"""
# Your Code Here
ma = max (len(s1),len(s2))
mi = min (len(s1),len(s2))
l... | [
"aduxhi@aduxhideMBP.lan1"
] | aduxhi@aduxhideMBP.lan1 |
9947a3418aa2766666e453d116400e76bc1b5cfe | decefb13f8a603c1f5cc7eb00634b4649915204f | /packages/node-mobile/deps/openssl/config/archs/solaris-x86-gcc/asm/openssl.gypi | 60c75c7f2eafd2a30bcd31118d95d85e81e6b0a0 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Zlib",
"CC0-1.0",
"ISC",
"LicenseRef-scancode-public-domain",
"ICU",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"Artistic-2.0",
"BSD-3-Clause",
"NTP",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"LicenseR... | permissive | open-pwa/open-pwa | f092b377dc6cb04123a16ef96811ad09a9956c26 | 4c88c8520b4f6e7af8701393fd2cedbe1b209e8f | refs/heads/master | 2022-05-28T22:05:19.514921 | 2022-05-20T07:27:10 | 2022-05-20T07:27:10 | 247,925,596 | 24 | 1 | Apache-2.0 | 2021-08-10T07:38:42 | 2020-03-17T09:13:00 | C++ | UTF-8 | Python | false | false | 28,783 | gypi | {
'variables': {
'openssl_sources': [
'openssl/ssl/bio_ssl.c',
'openssl/ssl/d1_lib.c',
'openssl/ssl/d1_msg.c',
'openssl/ssl/d1_srtp.c',
'openssl/ssl/methods.c',
'openssl/ssl/packet.c',
'openssl/ssl/pqueue.c',
'openssl/ssl/record/dtls1_bitmap.c',
'openssl/ssl/r... | [
"frank@lemanschik.com"
] | frank@lemanschik.com |
fc1e8f6b760b7791dac3b7e1c88e9b378d3018de | 3ea0d4f12acffed4e0d9de14fce17d44537d99d6 | /olistlibrary/books/api/v1/views.py | 4cc2693e5b987ebf384c05f0486a0e5167d962b8 | [] | no_license | rafaelassacconi/work-at-olist | 48a205d02d40f0b17a2354ef314f1800d874b202 | 13af3adef787f1025e249334dc49052158751299 | refs/heads/master | 2022-04-25T19:56:22.855110 | 2020-04-22T18:27:52 | 2020-04-22T18:27:52 | 256,761,768 | 0 | 0 | null | 2020-04-18T13:34:14 | 2020-04-18T13:34:13 | null | UTF-8 | Python | false | false | 757 | py |
from rest_framework import viewsets
from rest_framework import permissions
from books.models import Author, Book
from books.api.v1.serializers import AuthorSerializer, BookSerializer
from django_filters.rest_framework import DjangoFilterBackend
class AuthorViewSet(viewsets.ModelViewSet):
""" Endpoints for Author... | [
"rafaelassacconi@gmail.com"
] | rafaelassacconi@gmail.com |
777a5771d9fb29ed8843dd7d2d619b6a939f4750 | fad75139e893b4ff108043c2adc4ce4c083e29bc | /MyProject-baidu/dyTrain.py | bd36640af920b49d4a4d02cdc5089c2c3d2ae9ad | [] | no_license | SumFunction/baidu-project-wheat | 81cdb7865098e9d4e8dda1da6316c7959733a863 | 7f1b0cba46a1648331e474c736b690222c043e4a | refs/heads/main | 2023-08-27T17:35:47.681642 | 2021-11-07T14:29:59 | 2021-11-07T14:29:59 | 425,512,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,009 | py | import paddle.fluid as fluid
import numpy as np
import paddle
import getData
from models.SeResNeXt import SeResNeXt
from config import config
from visualdl import LogWriter
def loadOptimizer(parameters):
scheduler = paddle.optimizer.lr.CosineAnnealingDecay(learning_rate=config['lr'],
... | [
"user1@lab3.com"
] | user1@lab3.com |
4a83dbe17da996d69b94c308bd27b3e03f948b58 | e669c8e7068fe2ad549a72c8db623986fcc4cdce | /main.py | dd3a070cedb3370553001b4541cb73fcf6b93e2d | [] | no_license | 01TanmayDaga/News-Reader | adf15d45d8a28302d5e19660e118f8d141aa71ea | e03bc1a438dc54c0a2d45a1e8e208d6f140858b0 | refs/heads/master | 2023-02-10T23:12:35.229800 | 2021-01-02T05:20:13 | 2021-01-02T05:20:13 | 325,813,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,342 | py | import os
import sys
import json
from PyQt5 import QtCore
from PyQt5.QtWidgets import QApplication, QInputDialog, QMainWindow
from GUI import Ui_MainWindow
from content_box import content_box
from newsapi import NewsApiClient
class config(Ui_MainWindow):
def __init__(self,MainWindow):
super().__init__(M... | [
"tanmaydaga06@gmail.com"
] | tanmaydaga06@gmail.com |
11bf09718bef032be25606a560227f959a1fa11d | 5733d18304309391a689a96af93d8f600f79d720 | /Window.py | 980e444cca31afb5db4c997f60016ccf6b2f0588 | [] | no_license | Ye7ia01/The_Silent_Observer | 8158f9a8d51b6205aae354f28382a187b0bde822 | ca4e4972991fe56919327266e8346812947875db | refs/heads/master | 2021-08-31T22:52:57.413805 | 2017-12-23T07:55:38 | 2017-12-23T07:55:38 | 115,153,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,491 | py | from PyQt5.QtWidgets import QWidget, QPushButton , QHBoxLayout , QLineEdit , QVBoxLayout, QRadioButton , QLabel , QScrollArea , QTableWidget , QTableWidgetItem , QMessageBox
from PyQt5.QtGui import QIcon , QPalette
from PyQt5.QtCore import *
import Recon
import threading
class Window(QWidget):
Device = ""
... | [
"noreply@github.com"
] | Ye7ia01.noreply@github.com |
ef38fbde1492e5d5ee8d350be5c1850fc4b60214 | 71373a38b82a5eb9b95b784ade000742b1d3b0dd | /examples/mini_site/steps/log_handling_steps.py | a4ca99e6f5364d527e058101fb821a9b4fad8aa8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | xrg/behave_manners | 5a6068cae65196bfe09cdf315068a4e5e7a4d1e0 | 93cb570e04af870f3401048d26dd7f0e8350759e | refs/heads/master | 2021-07-07T06:31:57.936711 | 2020-07-11T10:18:29 | 2020-07-11T10:18:29 | 136,819,178 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # -*- coding: utf-8 -*
from __future__ import print_function, unicode_literals
from behave import given, when, then, step
from behave_manners.pagelems.actions import click
import logging
@when('I hit the button')
def hit_button(context):
orig_consume = context.site.events.consume_log
context.messages = []
... | [
"xrg@pefnos.com"
] | xrg@pefnos.com |
7fb2134bd3b8caaf11da25b05d8fd70327b2db54 | a72aaffd3517922404056c7f85437afa9a5e6337 | /pylotVenv/bin/wheel | 7303767be13cc74474a42eaba1c8a0eaf69fcd2f | [] | no_license | mrllon0923/courses | 4afd23b2c838c2558ede233d77102e20bd6f5771 | e1ab205b67333c7a4c2bd3d1fff1fb7cfa09821c | refs/heads/master | 2021-01-12T13:52:20.379487 | 2016-09-24T02:37:06 | 2016-09-24T02:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | #!/Users/marlloncantiga/Documents/CodingDojo_Python/Pylot/pylotVenv/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"marllon.cantiga@gmail.com"
] | marllon.cantiga@gmail.com | |
2f47d14803b0b95d47701914fd3e26cd1f1969dd | 33be4b8a076a83adb73ff6b267d8135dbbdd16fc | /chapter4/urllib.request/get_emails_url_request.py | ddfa94e8afc54f69be9eec38a15ce0b80fcf5e46 | [
"MIT"
] | permissive | PacktPublishing/Mastering-Python-for-Networking-and-Security-Second-Edition | 73bbe8bd6464585bb3cef788eb8fd62ec89f8983 | b748cca5841b013b44c98f1884611b66676fef1a | refs/heads/master | 2023-01-27T10:59:59.868438 | 2023-01-18T10:10:33 | 2023-01-18T10:10:33 | 254,302,959 | 117 | 67 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import urllib.request
import re
USER_AGENT = 'Mozilla/5.0 (Linux; Android 10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.101 Mobile Safari/537.36'
url = input("Enter url:http://")
#https://www.packtpub.com/about/terms-and-conditions
opener = urllib.request.build_opener()
opener.addheaders = [('User-ag... | [
"jmortegac@protonmail.com"
] | jmortegac@protonmail.com |
9361dac667462b2b63998f5709471732bb37ce9f | 141cfabf47afe6acb5d1b4eb5f07ac72a01cf51f | /python/threading/threading_lock.py | 95ce7a9e0469b4df344ded3640d9af56f20440fb | [] | no_license | wweihang/study | 1d1cc8b4e2bcf6e86d74b1047a9113c91549d393 | 3b55755b3cb26855e819a356b6d3c4a552788cfc | refs/heads/master | 2021-01-06T11:52:49.411428 | 2020-02-18T09:21:02 | 2020-02-18T09:21:02 | 241,317,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | # -*- coding: utf-8 -*-
import threading
"""
lock在不同线程使用同一共享内存时,能够确保线程之间互不影响,使用lock的方法是, 在每个线程执行运算修改共享内存之前,
执行lock.acquire()将共享内存上锁, 确保当前线程执行时,内存不会被其他线程访问,执行运算完毕后,使用lock.release()
将锁打开, 保证其他的线程可以使用该共享内存。
"""
#函数一:全局变量A的值每次加1,循环10次,并打印
def job1():
global A, lock
lock.acquire()
for i in range(10):
A ... | [
"553954949@qq.com"
] | 553954949@qq.com |
7c148624c34817e171149b37190432647d04799b | 0fcc5bc2568a0effedb0c9f0f7ec80918b2fa60b | /cpovc_settings/urls.py | 497593435882032f704ecb0e9e6452d42cdf9441 | [] | no_license | Atieno-Ouma/cpims-dcs-2.1 | 380f8b19ba55b458c1c2e0001c35eb61edbaf2c8 | 5b34d66f2d4219d9cb0861ebb7b3242e41cd23a2 | refs/heads/master | 2023-04-04T00:09:35.210711 | 2021-03-20T14:03:41 | 2021-03-20T14:03:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | """Urls for Settings."""
from django.conf.urls import patterns, url
# This should contain urls related to settings ONLY
urlpatterns = patterns(
'cpovc_settings.views',
# url(r'^$', 'settings_home', name='settings_home'),
url(r'^reports/d/(?P<file_name>[0-9_\-_A-Za-z_\._A-Za-z]+)$',
'archived_report... | [
"nmugaya@gmail.com"
] | nmugaya@gmail.com |
34c27860cdf81fee0a1067a3153e527e6bec3bf2 | 126970b5a7aef7def577922f9ed4bc0889ec5804 | /products/views.py | 6d46af5e0d4df6315060a0e34a7600163f3b5171 | [] | no_license | HeshamSayed/ElectroBekia | 6544955d1449ce03e6fd432bfdff05422a9f92ba | 42fab2ed3dc43f6f3e3e75cc17a7a26cb747d385 | refs/heads/master | 2022-12-13T21:47:10.673963 | 2019-06-18T16:03:04 | 2019-06-18T16:03:04 | 186,132,437 | 0 | 3 | null | 2022-12-08T05:08:00 | 2019-05-11T12:50:58 | CSS | UTF-8 | Python | false | false | 623 | py | from django.shortcuts import render, get_object_or_404
from .models import *
from cart.forms import CartAddProductForm
def product_list(request):
categories = Category.objects.all()
products = Product.objects.all()
context = {
'categories': categories,
'products': products,
}
return render(request... | [
"awadmohamed233@gmail.com"
] | awadmohamed233@gmail.com |
5665602c74b2656f07cc01ff087fbae1f95bddee | 9b3bcba424649b33638458ff13b435e1c64f7eeb | /functions/ex-05.py | daa74be43f1e2727bb03f6bd6d6568b5bbdc1a67 | [] | no_license | rodbergerrone/bootcamp | fc0cc6b1d614822b8d1ceed5f28fd31b25475270 | fd6f14888d5c2c36404e9b84772b6f5573b81158 | refs/heads/master | 2023-06-01T11:50:00.126096 | 2021-01-30T18:23:08 | 2021-01-30T18:23:08 | 220,810,942 | 0 | 0 | null | 2023-05-22T22:19:58 | 2019-11-10T15:40:27 | HTML | UTF-8 | Python | false | false | 161 | py | def silnia(n):
n = int(n)
if n > 1:
return n * silnia(n-1)
elif n in (0, 1):
return 1;
n = input("Wpisz liczbę:")
print(silnia(n)) | [
"rodbergerron@icloud.com"
] | rodbergerron@icloud.com |
3bf3e51b5950dbd77aedd515c5c61d47de92885a | 7e5d660c5551c61b23e7a707f6b3a78de993e340 | /cmpt353/e7/regress_cpu.py | 29d2628f5f0298ca22582495f614d1059ca40bac | [] | no_license | sarbjot-14/SFU | 881a50470f2b67317aa7084eb3e771c4f8585f9a | 919a3236ac4c250cd5a51b54bae8a8d5d43b5c78 | refs/heads/master | 2022-12-10T19:23:15.014460 | 2019-08-11T23:46:33 | 2019-08-11T23:46:33 | 160,457,058 | 0 | 0 | null | 2022-12-08T16:04:19 | 2018-12-05T03:46:19 | Jupyter Notebook | UTF-8 | Python | false | false | 3,972 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sys
from pykalman import KalmanFilter
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
X_columns = ['temperature', 'cpu_percent', 'fan_rpm', 'sys_load_1']
y_column = 'next_temp'
def get_data(fil... | [
"sarbjot_14@hotmail.com"
] | sarbjot_14@hotmail.com |
de8978de333030c7beb2201d46d13dcb55034f30 | fab3a7a6fdad7c0b5ea4f8fd57749df58d3504c9 | /elasticsearch/__init__.py | 5e8e5952ad913b9fb29dfc2a011f73f84328239a | [] | no_license | anjanragh/smartphotolambda | ec45b835ea14cdd261c125f5d6348acc765891eb | 9245b1b65a83879cb40a4c036662fa1988569344 | refs/heads/master | 2022-07-09T18:16:44.326898 | 2020-05-09T03:47:21 | 2020-05-09T03:47:21 | 262,089,091 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # flake8: noqa
from __future__ import absolute_import
VERSION = (7, 6, 0)
__version__ = VERSION
__versionstr__ = ".".join(map(str, VERSION))
import logging
try: # Python 2.7+
from logging import NullHandler
except ImportError:
class NullHandler(logging.Handler):
def emit(self, record):
... | [
"anjanragh@gmail.com"
] | anjanragh@gmail.com |
3c1a51dd17cbe418b19f76a1cfde6710137089e9 | cacae0bef45a3716c64463709cb29804a47a7a36 | /crypto/trade/binance_trader.py | 3d68e9a909d6157359c61b350a2059235123dba6 | [] | no_license | prometuse/myquant | d2c89612b41294bb128210469330f083a5c098d0 | 2ff0fa845bc7aa719546c3826d5a01cbd054a203 | refs/heads/master | 2023-07-08T10:39:51.760310 | 2021-08-12T08:12:10 | 2021-08-12T08:12:10 | 383,455,610 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,643 | py | from gateway.binance import BinanceSpotHttp, OrderStatus, OrderType, OrderSide
from enum import Enum
import logging
from utils.config import config
from datetime import datetime
class BinanceTrader(object):
def __init__(self, config):
"""
:param api_key:
:param secret:
:param trad... | [
"kebi@xiaohongshu.com"
] | kebi@xiaohongshu.com |
360817c27d99ca21241781e95372efb461f4a4b0 | dba16143d8fa6aa73ca1d4df7bcfaca42824412c | /src/year2021/day05b.py | 7312f094f2e1e4a1e1a73ecd10c0b4f4b98def4c | [
"Unlicense"
] | permissive | lancelote/advent_of_code | 84559bf633189db3c3e4008b7777b1112f7ecd30 | 4b8ac6a97859b1320f77ba0ee91168b58db28cdb | refs/heads/master | 2023-02-03T14:13:07.674369 | 2023-01-24T20:06:43 | 2023-01-24T20:06:43 | 47,609,324 | 11 | 0 | null | 2019-10-07T07:06:42 | 2015-12-08T08:35:51 | Python | UTF-8 | Python | false | false | 305 | py | """2021 - Day 5 Part 2: Hydrothermal Venture."""
from src.year2021.day05a import Floor
from src.year2021.day05a import Segment
def solve(task: str) -> int:
segments = [Segment.from_line(line) for line in task.splitlines()]
floor = Floor()
floor.draw(segments)
return floor.num_overlap
| [
"lancelote.du.lac@gmail.com"
] | lancelote.du.lac@gmail.com |
6cb211e3f967ee48f75a6e477cb7052304319a4e | 7f8fc86b9a7f060a7779374180842c28815bf8c4 | /week02/Maoyan/Maoyan/run.py | e257e4bf5d04fed1df6101a40382adf0a87bfdbb | [] | no_license | zunyanhu/Python003-003 | 827fd299b6caa1a54f718bba505868c3f3a82bdc | 7b04ef0efe9e179b2206f4c62b7c43f3e5f2a2b7 | refs/heads/master | 2022-12-31T19:42:24.241822 | 2020-10-29T01:43:51 | 2020-10-29T01:43:51 | 286,891,306 | 0 | 0 | null | 2020-08-12T01:59:00 | 2020-08-12T01:58:59 | null | UTF-8 | Python | false | false | 1,473 | py | # -*- coding: utf-8 -*-
# #第二种
# from scrapy.crawler import CrawlerProcess
# from scrapy.utils.project import get_project_settings
# from cnblog.spiders.cnblog_spider import CnblogSpider
#第一种
from scrapy.cmdline import execute
import os, sys
# #第三种
# from twisted.internet import reactor, defer
# from scrapy.crawler ... | [
"15895981485@139.com"
] | 15895981485@139.com |
07c61cef4188fb0ba327983584a03af4efedb908 | 9c24e33521aeb4673537e80d5e0dfbcb31caa206 | /lightup/migrations/0020_auto_20210820_0632.py | a1d890bc76b80d0c213bc6029e89944546d1e721 | [] | no_license | eunjungL/lightup_helper_backend | 37bf226022a68428e6dd952915b607d75d8503c9 | 020318ebc3b638a0f0d699cb07656a05ac7b6079 | refs/heads/master | 2023-07-09T00:04:53.351003 | 2021-08-19T21:32:18 | 2021-08-19T21:32:18 | 394,020,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | # Generated by Django 3.2.5 on 2021-08-19 21:32
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('lightup', '0019_auto_20210819_0126'),
]
operations = [
migrations.AddField(
... | [
"dldmswjd322@gmail.com"
] | dldmswjd322@gmail.com |
3d66be5c18c0def6c0a8479606d64c09d3635265 | 7b527d9937947998b770bb8530bf223581549093 | /proto/hello_pb2.py | 8511e5e26d95edf6b80481c6479d8ebf374b5e01 | [] | no_license | justbeboring/simplerpc-py | 752653d44147bed4e00f57d89b5b7029ba292abb | 71bc18f8fa530cf03006be5dda1aff147ee8bf56 | refs/heads/main | 2023-03-09T04:57:21.818984 | 2021-02-23T09:13:19 | 2021-02-23T09:13:19 | 341,492,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,661 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: hello.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf ... | [
"justbeboring@163.com"
] | justbeboring@163.com |
d802c21b8ddc8757573d900ed4d995d2e5da0ea1 | 9501a172897fb69899b627915b0bb108b94cf13e | /ddCRP/ward_clustering.py | c696637eb88520da4335abd2f360d5e39ff1874f | [] | no_license | LeilaBagha/Conifer | 5959e4f12091709a37ddd5ad2d46a2a8340937dc | 95e8501f321ceb38080dcdb64673dafec7b5933c | refs/heads/master | 2023-07-07T12:13:14.250960 | 2021-08-06T17:39:06 | 2021-08-06T17:39:06 | 367,208,351 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,835 | py | import numpy as np
from scipy import spatial
from scipy import cluster
from ddCRP import statistics
from ddCRP import subgraphs
"""
As based on original code by C. Baldassano (https://github.com/cbaldassano/Parcellating-connectivity/blob/release/python/WardClustering.py)
"""
def Ward(D, adj_list, n_clusters):
"... | [
"noreply@github.com"
] | LeilaBagha.noreply@github.com |
0c4ced2b9b0cda7893c263ca688f35f779c8fbfb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_257/ch16_2020_09_23_12_39_52_743421.py | 18424641beeb01c2388537b04c4757f22a441245 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | conta= float(input("Valor da conta com 10%: R$ "))
conta += conta*10/100
print("Valor da conta com 10%: R$ {0:.2f}".format(conta)) | [
"you@example.com"
] | you@example.com |
654140f24923a1181ac3d59338b85bb38d2e96b3 | 4bb3f98d67c98572236c38d21061e0021ec2a7c6 | /post/urls.py | f4673112a42facc723f3dc29fd56f940ed2b63b9 | [] | no_license | sokol-nastasya/post | 44f562ea6d07b87268a48a5c0b5a7ca826c6f137 | ae6d42f4e9a941c9489495728321d0417cfc9ac7 | refs/heads/master | 2020-04-08T08:14:26.091257 | 2018-11-26T13:29:19 | 2018-11-26T13:29:19 | 159,171,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | """post URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"anastasiias798@gmail.com"
] | anastasiias798@gmail.com |
1c44748dba44714166cfa7f35d87338249edc098 | 088e000eb5f16e6d0d56c19833b37de4e67d1097 | /inference-engine/ie_bridges/python/sample/benchmark_app/benchmark/utils/inputs_filling.py | 00a294524716055d8a481d0892e5cc307a9458b6 | [
"Apache-2.0"
] | permissive | projectceladon/dldt | 614ba719a428cbb46d64ab8d1e845ac25e85a53e | ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf | refs/heads/2019 | 2022-11-24T10:22:34.693033 | 2019-08-09T16:02:42 | 2019-08-09T16:02:42 | 204,383,002 | 1 | 1 | Apache-2.0 | 2022-11-22T04:06:09 | 2019-08-26T02:48:52 | C++ | UTF-8 | Python | false | false | 8,029 | py | """
Copyright (C) 2018-2019 Intel Corporation
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 i... | [
"44090433+openvino-pushbot@users.noreply.github.com"
] | 44090433+openvino-pushbot@users.noreply.github.com |
b11132f9a28ade952b2c9bb6c536a6194a591483 | c4e729edfb9b056b9aa111a31eebefe41f39ac46 | /cloudweb/db/message/message_object.py | 5f4f03c9a16d5b91d0beb86ef7b8ac7b1a9f8a7d | [] | no_license | sun3shines/web | 870a558538278ecb4a39e5d9cab4ba2ebb626ca3 | 9e6f83e6e793f86ecdf7202daae3903cc052f266 | refs/heads/master | 2021-01-18T23:49:48.722245 | 2016-07-02T10:25:24 | 2016-07-02T10:25:24 | 54,888,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,712 | py | # -*- coding: utf-8 -*-
from urllib import unquote
from cloudweb.db.db_record import record_put
# msgPut -> db_message_object_put
# msgGet -> db_message_object_get
# msgHead -> db_message_object_head
# msgMeta -> db_message_object_meta
# msgDelete -> db_message_object_delete
# msgDeleteRecycle -> db_message_object_de... | [
"sun__shines@163.com"
] | sun__shines@163.com |
f830cc3a269c631a046d68d50d959d010f83b1eb | fda56521409af8cd09591d398054d161ea8a5f94 | /ros_ws/src/ros_test/src/controller.py | e05dd79f940022bc8ebb243e79acf8cd6b028033 | [] | no_license | UBC-OpenRobotics/Francisco | ead6c4bfd962d72dafc1478000673e114f1a1e13 | ce856bb61383b50bed2284e004a0ccde7c272b60 | refs/heads/master | 2020-08-03T00:13:57.626608 | 2020-01-25T18:31:03 | 2020-01-25T18:31:03 | 211,558,891 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | #! /usr/bin/env python
import rospy
from std_msgs.msg import String
from sensor_msgs.msg import Image
from geometry_msgs.msg import Twist
import cv2
import numpy as np
from cv_bridge import CvBridge
#Define constants
base_linear_speed = 0.3
pub = rospy.Publisher('/cmd_vel', Twist, queue_size=1)
def line_follow(ima... | [
"fquico1999@gmail.com"
] | fquico1999@gmail.com |
d14bc60bdaf99f1890db8384f1be94b75d18eb38 | fd780d0bc77c8880c73e67a996528ff00611dbb2 | /tests/test_wps_subset_wfs_polygon.py | 42c6cd4167bc32642f21b83b8152430ab2ceaae9 | [
"Apache-2.0"
] | permissive | bird-house/flyingpigeon | 859cac9c3a3e009ed0a2ac26a7be42b8d33654ad | f445055857d6243a5a1db60040cef173e9932574 | refs/heads/master | 2022-11-08T10:03:22.273140 | 2022-11-01T13:42:18 | 2022-11-01T13:42:18 | 23,613,598 | 21 | 17 | Apache-2.0 | 2023-09-07T20:06:12 | 2014-09-03T09:03:59 | Python | UTF-8 | Python | false | false | 1,314 | py | from pywps import Service
from pywps.tests import client_for, assert_response_success
from .common import get_output, CFG_FILE
from flyingpigeon.processes.wps_subset_wfs_polygon import SubsetWFSPolygonProcess
def test_wps_subset():
client = client_for(Service(processes=[SubsetWFSPolygonProcess()], cfgfiles=CFG_F... | [
"huard.david@ouranos.ca"
] | huard.david@ouranos.ca |
e5ecbbabe40350802b5bf5fb41a55eb55444f108 | a0838645cbe9883253098ecdeaa3c35c3a4389cb | /ros-workspace/src/dr_phil_hardware/src/dr_phil_hardware/test/test_utils/camera_info_pub.py | 2a08fe938343366e9ec55c992fade7f540389fc8 | [
"Apache-2.0"
] | permissive | andrei8782/SDP-DrPhil | 9bce89b4790b8842de27067f721176619d497dfb | 2b5469aab6b25a4a938f111daf5a24b3a331fca5 | refs/heads/main | 2023-04-01T09:23:13.346110 | 2021-03-10T18:38:09 | 2021-03-10T18:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | #! /usr/bin/env python3
"""
pointgrey_camera_driver (at least the version installed with apt-get) doesn't
properly handle camera info in indigo.
This node is a work-around that will read in a camera calibration .yaml
file (as created by the cameracalibrator.py in the camera_calibration pkg),
convert it to a valid sen... | [
"makspl17@gmail.com"
] | makspl17@gmail.com |
9cffa499f328a2ac84c8f99104a8c09508f9eead | 3c2b018f16ef00ef52fe12637d39b20018099290 | /225-249/226. Invert Binary Tree.py | a58adee8faeb212d2b21f54ecd1b178f194df50b | [] | no_license | swapagarwal/LeetCodeGolf | 81a19763c0e80b0449e03471871e64aaae5ff9ec | 87fe6116e0f164d4489e5492a542531bdd8e27e5 | refs/heads/master | 2021-01-20T10:15:48.761559 | 2015-11-01T18:11:16 | 2015-11-01T18:11:16 | 40,238,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | '''
Invert a binary tree.
4
/ \
2 7
/ \ / \
1 3 6 9
to
4
/ \
7 2
/ \ / \
9 6 3 1
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# ... | [
"swapnilagarwal@live.com"
] | swapnilagarwal@live.com |
0a0335e8b3f10ac8e390e573c33327747b1e6d62 | 294027bfef18ad69a4684be6ab46ba65277f457b | /practice/daily_coding_problem/problem_1.py | 5e4337a018eb882b7b326a7c84cd6949ab798fdd | [] | no_license | Iaknihs/random | f9eff6b002d9541d79113247fcb190b29d2193a5 | 97c4e7fff8510d762d52e6961df7dc0871d98b4c | refs/heads/master | 2020-05-03T09:21:00.005146 | 2019-04-11T09:06:53 | 2019-04-11T09:06:53 | 178,551,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | """
Good morning! Here's your coding interview problem for today.
This problem was recently asked by Google.
Given a list of numbers and a number k, return whether any two numbers from the list add up to k.
For example, given [10, 15, 3, 7] and k of 17, return true since 10 + 7 is 17.
Bonus: Can you do this in one... | [
"schruff@dbis.rwth-aachen.de"
] | schruff@dbis.rwth-aachen.de |
f78c3b2044a52976c4a838d5b89dbdf2832b3022 | 3b8a4101995b1ba889dc685901a62db72ab13184 | /examples/tweets/config.py | 9956e34e66ccae84cc8211d70d5b54357f47a9c3 | [
"BSD-3-Clause"
] | permissive | tchen0123/pulsar | 586aeb69419c0eac034431405979edd91b4347b2 | 53a311e51974a27f6ef081c38193b41dede1412f | refs/heads/master | 2021-01-18T19:12:04.143947 | 2015-07-21T06:29:04 | 2015-07-21T06:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | twitter_api_key = 'twitter API key of your registered twitter application'
twitter_api_secret = 'consumer secret'
twitter_access_token = 'Access token'
twitter_access_secret = 'Access token secret'
twitter_stream_filter = {'track': 'python'}
| [
"luca.sbardella@gmail.com"
] | luca.sbardella@gmail.com |
ce333a91d5510af134bc8a54d69250cbed4d7025 | 5437b74849655c80d4243c10b02362c38ac72e57 | /pyshop/products/migrations/0001_initial.py | 88ca8902b66c5a7dd5762bc0230d1c14ce6f9baa | [] | no_license | ckmonish2000/simple-full-stack-projects | 25f1dad42ad1fd328e6d78e627e4cf6ff3c6f7b5 | 57e0a022b9dc7d889d2f994d360a24d53dffd86f | refs/heads/master | 2020-12-17T06:24:30.312181 | 2020-02-09T09:31:23 | 2020-02-09T09:31:23 | 235,285,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Generated by Django 3.0.2 on 2020-02-08 08:03
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='product',
fields=[
('id', models.AutoField(... | [
"ckmonish2000@gmail.com"
] | ckmonish2000@gmail.com |
b03ac5488518a3f330bc0113472150497457e28f | 44d2f40d4229f1cb26cec013cb18751d8006a219 | /snippets_backend/settings/development.py | ffcb584fad67c3d5c1faf1d5e6527be5cf605b3f | [] | no_license | prettyirrelevant/snippets-backend | 4bcb1d4c2cfa9bcd099856f026320c1250f08dc3 | 0006c194870904620599ca52b8b1510b11c1e2e9 | refs/heads/master | 2023-03-21T19:36:22.230824 | 2021-03-22T09:57:14 | 2021-03-22T09:57:14 | 331,959,739 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,559 | py | """
Django settings for snippets_backend project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fro... | [
"ienioladewumi@gmail.com"
] | ienioladewumi@gmail.com |
49e655897c8c8b8804ab3cc9a0e29838b16bdcdf | 1493ba096d2f29d15712ed70ba00c49adbf30b56 | /lib/modeling/proposal_generator/rpn_outputs.py | aa1b4e603e989ac3c44755dab18e37bd4d431f85 | [
"Apache-2.0"
] | permissive | SimeonZhang/detectron2_tensorflow | 09680b6a01127c5b73e8e0f86a76dec090fc5a05 | ca03f633111d540ea91b3de75dbfa1da813647be | refs/heads/master | 2023-03-09T21:55:07.097742 | 2021-03-02T10:26:32 | 2021-03-02T10:26:32 | 344,732,078 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,121 | py | import itertools
import tensorflow as tf
from ...layers import smooth_l1_loss, flatten
from ...structures import box_list
from ...structures import box_list_ops
from ...utils import shape_utils
from ..sampling import subsample_labels
slim = tf.contrib.slim
"""
Shape shorthand in this module:
N: number of images ... | [
"zhangxiangwei@ainnovation.com"
] | zhangxiangwei@ainnovation.com |
f337d16048b7eb8e2d349559cb8a4732c6483312 | 1f662a34fad415cf9cc4dc7ac1c81c433c0c85bc | /learnTempProj/manage.py | 8ddbe04743671209239b60b0b9eeb5d349bee7b9 | [] | no_license | HaijiWang/django-deployment-example | 31344a9919b58ac4deb790e5e8bd50566e126ef3 | 31d2ebd750a92bac7f43ed788eedafc7950c5b4c | refs/heads/master | 2020-03-18T21:00:52.681701 | 2018-05-29T07:10:10 | 2018-05-29T07:10:10 | 135,252,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "learnTempProj.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django... | [
"whjdgryx@gmail.com"
] | whjdgryx@gmail.com |
07ececcce929817e0e7dd845a6f6bbe686954a00 | 701ff727e23005eebc4410b30752f32e64ead30e | /config/settings.py | 78b947ed91b70730b28c4c615c31a10434da97e3 | [] | no_license | sinjorjob/django-chat | 79ae5a94464301b2913be18ef5c81d2c870817b2 | d35d7fdb3888cdefa1a4daead05f10454a20ef4f | refs/heads/master | 2023-06-25T09:18:51.551222 | 2021-07-30T19:13:02 | 2021-07-30T19:13:02 | 391,166,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,930 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
f... | [
"sinforjob@gmail.com"
] | sinforjob@gmail.com |
b08c284c2721710f83d6548883c23ce4cb8d9076 | c3111426f4e13fee9cdc9bf372aba123444cdbc4 | /src/handler/__init__.py | 5c7b3914af3e79e09c4559556f7bcc10150513ea | [
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tsaichanglan/ric-app-hw-python | 163fc02f485507a2b372c4e7ffde1b365866aeda | 26728b0bbb0472f919d05924d71e5c305ede7d98 | refs/heads/master | 2023-06-13T04:11:39.607954 | 2021-07-05T16:02:16 | 2021-07-05T16:02:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # ==================================================================================
#
# Copyright (c) 2020 Samsung Electronics Co., Ltd. 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 obta... | [
"r.banerji@samsung.com"
] | r.banerji@samsung.com |
c944d7697a3831b01d30233b0d7368ba197d92f3 | 210e6ea6ac998b6f3b14b85d247c1bbb51286c07 | /game/urls.py | b3c3310a7081f8b4c788380c500bbbf8de7ab00a | [] | no_license | dec23rd1986/price-is-right | 3a85af7f36265626d44fb5fbdfdaab9cb25f1813 | 68847aa6d0cec6c22c4f86e5ea5f69de02ad3dcb | refs/heads/master | 2020-04-09T11:01:11.582113 | 2019-02-25T02:47:41 | 2019-02-25T02:47:41 | 160,292,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py |
from django.contrib import admin
from django.urls import path
from.import views
urlpatterns = [
path('', views.game_start),
]
| [
"33186021+dec23rd1986@users.noreply.github.com"
] | 33186021+dec23rd1986@users.noreply.github.com |
237de90e99d6c8d49b48b0b08067951e7bb6a72a | b227eb277943dbb263d9acb24314aedd163190b1 | /ch05/rotation2.py | db68ac8f516f4b4a6ae2504916677f438c42e3af | [] | no_license | Banghyungjin/OpenCV_practice | ea9a01268782c1ffe257723c9b50abf5f7ccb26e | f38a99cb4115e0c74327c3fe12fd0780ab15bdde | refs/heads/main | 2023-05-28T02:00:27.045918 | 2021-06-18T08:44:25 | 2021-06-18T08:44:25 | 377,392,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import sys
import numpy as np
import cv2
src = cv2.imread('ch05/tekapo.bmp')
if src is None:
print('Image load failed!')
sys.exit()
cp = (src.shape[1] / 2, src.shape[0] / 2)
rot = cv2.getRotationMatrix2D(cp, 20, 0.5)
dst = cv2.warpAffine(src, rot, (0, 0))
cv2.imshow('src', src)
cv2.imshow('dst', dst)
cv2.... | [
"37135305+Banghyungjin@users.noreply.github.com"
] | 37135305+Banghyungjin@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.