blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23a345ade7d594420f5f8ad5bdcff5216962fd8e | 9c4cbc2fc8f9c82e3968b498ec1eb09dfd5a283d | /shortestPath/shortestPath_DAG.py | a6f7ef5fd055aa71411fa5d6f41b3ff9efd3d187 | [] | no_license | akshala/Data-Structures-and-Algorithms | 2c88f5d86534a05de6edaf5444e13a54b6051ebb | e5fa0708ba9612d44065e00333e9572144458217 | refs/heads/master | 2020-12-05T01:08:44.964904 | 2020-01-05T18:53:00 | 2020-01-05T18:53:00 | 231,960,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | class Graph:
def __init__(self, n):
self.vertices=n
self.graph={}
def addEdge(self, u, v, w):
if u in self.graph.keys():
self.graph[u].append((v,w))
else:
self.graph[u]=[(v,w)]
def topologicalSort_recur(self, visited, finished, vertex):
visited[vertex] = True
for (neighbour, weight) in self.graph... | [
"noreply@github.com"
] | noreply@github.com |
ec3c3fd73880caf9d43f26076204cd9e9a4d70f1 | 813f4c5c95449261095fe59cb3db754cf6087eea | /DAY2/Django/try1/ws1/ws1/wsgi.py | 9791628ae006f8b04f925802becc2b85f64f55cf | [] | no_license | Niku9j/Python-Workshop | 5a4a88bc86a2b3a4c7cd27ae51e3500d91021f75 | 3202e7fe56d8bcc856d552f2157b3a0737bcfb14 | refs/heads/master | 2020-03-31T18:39:22.264169 | 2018-10-10T18:05:27 | 2018-10-10T18:05:27 | 152,467,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for ws1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"nikunj23jain@gmail.com"
] | nikunj23jain@gmail.com |
ed65ea9447031d5a6ee624490943baef37fb918d | 376625bac2866debbb4e1771a4cb2c130400bc64 | /pyshop/urls.py | cdc532b5caf91f5c0b0c20d790677564f0284926 | [] | no_license | karthickshiva18/pyhtonshopping | 5a2f37faaeaa8a36aecdcac9debe2c0b33f00e74 | 7932d22db6829c5967e3680fc01b8657ed24a180 | refs/heads/master | 2020-09-21T02:10:36.448736 | 2019-11-29T10:34:02 | 2019-11-29T10:34:02 | 224,650,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """pyshop 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 ... | [
"karthickshekar@live.com"
] | karthickshekar@live.com |
525ccde27106f89d51072704069a2994597779e4 | dfed3710798b93baa03b8666c2976dd1b1091b67 | /ethwallpaper/eth-wallpaper-gen/worker.py | 0d1ee01f725d41a35c7038afe170a364ffc993a5 | [] | no_license | iamonuwa/skunkworks | 843a38450ec5fbecfb3a041f4d14c734de4a5efa | 3a3729ed839e346ceaa6d8aa42310359ed751e0d | refs/heads/master | 2020-05-19T02:49:27.357698 | 2019-09-28T21:09:36 | 2019-09-28T21:09:36 | 184,787,564 | 1 | 0 | null | 2019-05-03T16:29:01 | 2019-05-03T16:29:01 | null | UTF-8 | Python | false | false | 2,106 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import fcntl
import os
import sys
from configparser import ConfigParser
import psycopg2
from email_helper import EmailHelper
from generator import WallpaperGenerator
pid_file = 'worker.pid'
fp = open(pid_file, 'w')
try:
fcntl.lockf(fp, fcntl.LOCK_EX | fcntl.LOCK_NB... | [
"stojce@me.com"
] | stojce@me.com |
03ef6db22d05d3db46c3f60feea8a895d8771d45 | e6cbddec46851fdf85364d66453219d10593e15e | /blockchain/spiders/etherscan.py | 7eb608e45eee73e4d7e72a7a0f60b4a142d08ad0 | [] | no_license | shaneshifflett/blockchain-scraper | 4f1829757f55d37db87bd9c02af1a0d6e05a9e80 | 16698b41b8ef5e7cd393fefd971f35239c5b848f | refs/heads/master | 2020-04-26T10:01:27.425952 | 2019-03-04T16:53:18 | 2019-03-04T16:53:18 | 173,475,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,857 | py | import scrapy
import json
from datetime import datetime
from pymongo import MongoClient
from bson.objectid import ObjectId
from datetime import datetime
from scrapy.conf import settings
class EtherscanSpider(scrapy.Spider):
name = "etherscan"
def start_requests(self):
connection = MongoClient(
... | [
"shane.shifflett@dowjones.com"
] | shane.shifflett@dowjones.com |
fb7c10d0b4dd7594d2dbffe86207a906a5138e73 | 4bdb276e39725a65e33fbefdf6f61c0c91d9293a | /MyPOC/pageObjects/SelectionPage.py | 0947a797aa5c58ffef7c8998c723ac429bc8a2d6 | [] | no_license | ArvindhRider/FirstDummyRepo | d8a314456978278296cfa7dc13d599dd55279d01 | a1d3ff6ed0254218b7a04200bbacb2a96de16419 | refs/heads/master | 2021-05-23T09:40:33.559850 | 2021-02-19T12:10:56 | 2021-02-19T12:10:56 | 253,225,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from selenium.webdriver.common.by import By
from selenium import webdriver
class SelectionPage:
def __init__(self, driver):
self.driver = driver
pdctTuple = (By.XPATH, "//li[@class='ajax_block_product col-xs-12 col-sm-6 col-md-4 first-in-line first-item-of-tablet-line first-item-of-mobile-line']/d... | [
"arvindh.official05@gmail.com"
] | arvindh.official05@gmail.com |
a80bcbc7573c2a93c0717406bad0cf4c59dd7d5a | 7189cdd964fe60ee5c7a8b2757457a846de83561 | /usr_scripts/excel/Sample.py | a07cd646bdc05128bca0b68720ed483daa2677b3 | [] | no_license | h4o/polystage | 6e316e05d801072213c6ec234aebc78fe856fd57 | 12ec5e64375528921fa1f7d3be32c0e82a835375 | refs/heads/master | 2021-01-18T04:08:54.636443 | 2017-07-12T09:03:07 | 2017-07-12T09:03:07 | 62,544,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | from python.atlas import Projects
from python.scripts.ExcelScript import ExcelScript
from usr_scripts.excel.widgets import Tables, PieCharts, LineCharts, BarCharts
from usr_scripts.excel.widgets.BarCharts import IssuesResolutionTimes
class IssueStats(ExcelScript):
"""Writes a bunch of graphs and pie charts in the... | [
"lecourtoisn@gmail.com"
] | lecourtoisn@gmail.com |
97208d08e04cecb91c78591585387c2390b581fd | 90333a3140dc20036ad1ae88aaeec4b72a93914b | /tensorflow/example04.py | 8c309c32db68466a1c8c20d8d572042450f9d5a6 | [] | no_license | jw0831/AI-Study | 1f026acbc46a5f133921efc3c07d233ec1e8e284 | 02a2bd7469691facc5b6b283aa5edb8e90841456 | refs/heads/master | 2023-05-12T13:05:55.499517 | 2021-06-13T14:32:19 | 2021-06-13T14:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | #(4) example04
#import tensorflow and numpy
import tensorflow as tf
import numpy as np
#[feather, wing]
x_data = np.array(
[[0, 0], [1, 0], [1, 1], [0, 0], [0, 0], [0, 1]])
#[etc, mammal, bird]
#one-hot encoding(label)
y_data = np.array([
[1, 0, 0], #etc
[0, 1, 0], #mammal
[0, 0, 1], #bird
[1, ... | [
"wodbs9522@gmail.com"
] | wodbs9522@gmail.com |
8bc2b9e449db59682c5fedbb15977232750c8e7e | a6ac8db5b471b1d789ce38fbcde21e514e2cc226 | /polymorphism-standard-deviation.py | b7cecfb599cf2b8d336dfc9260b5799235e05e15 | [] | no_license | xiavan405/misc | 93eb8a356deb4f8c22d38ef13716da260b43998b | 1d111a8cdd326990a93cca83397073d001f842bd | refs/heads/master | 2020-12-30T14:55:55.029578 | 2014-05-19T18:50:32 | 2014-05-19T18:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,778 | py | #!/usr/bin/env python
#for entry in lobstr-output text file, grab the reference location and pull up the reads
#count the lengths of the repeat in the read and append it to a list, print stdev of that list.
import argparse
import pysam
import numpy
from collections import defaultdict
parser=argparse.ArgumentParser(... | [
"ziavan@omrf.org"
] | ziavan@omrf.org |
9d79a587e22c088b765c7e95ecb1bedbc6155238 | 9823da72a10379ecc59538cab80ade51d4f18a37 | /live/gamestate.py | b94747b72bc9e71ae5d494df1a1ca6dfb764e5b2 | [] | no_license | tefreeman/lhandicap | d78c3d2a64783d1f1ea1ccfe3d7d2719cef2fa19 | 73f2703831e1cf6b9eeb574e375ca9d7f023c6fb | refs/heads/master | 2022-12-31T02:23:51.121151 | 2020-10-17T22:31:10 | 2020-10-17T22:31:10 | 298,876,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,700 | py | from player import Player
from graphics_pos import graphics_pos
from screen_reader import ScreenReader
from PIL import Image
from actions import Actions
def fuzzy_match(input_c, output_c, max_color_dif = 5, min_color_diff = -5):
if (input_c[0] - output_c[0]) > max_color_dif or (input_c[0] - output_c[0]) < min_col... | [
"tefreeman@crimson.ua.edu"
] | tefreeman@crimson.ua.edu |
32fcab76de33191c36b8f78215537e94a296fbd8 | 5b94a9951cd42551ccd6031c923611349ba71196 | /photos/migrations/0009_auto_20180314_1722.py | 9e45b773eda3a140226274f6d558a7a7209678be | [
"MIT"
] | permissive | asommer70/photolandia | c5134f92d7857763fbd8fc6bac8a32e1584fa7fa | 5eaf382dca8006386cb38b966d5e393db6b45a03 | refs/heads/master | 2021-01-22T12:08:30.461322 | 2018-11-01T07:33:36 | 2018-11-01T07:33:36 | 32,037,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # Generated by Django 2.0.1 on 2018-03-14 17:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('photos', '0008_photo_local_filename'),
]
operations = [
migrations.AlterField(
model_name='photo',
name='local_filen... | [
"asommer70@gmail.com"
] | asommer70@gmail.com |
cabed0477b9947fde7634b1f021cf4b6d7f9d954 | a63626788505c97ab6f6c82bd0260e383fcf55c7 | /first_project/populate_first_app.py | 7ea03189760474c3c46d5d176b999cc86efd2b64 | [] | no_license | kvwarun/django-deployment-example | a5abdb74a6f4296e1a7ef88f32b68514d65c8784 | 490c1e3fe8aa09d8b677380a081166fcc4434fd4 | refs/heads/master | 2022-09-22T06:17:35.801154 | 2020-06-07T12:01:49 | 2020-06-07T12:01:49 | 270,289,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_project.settings')
import django
django.setup()
import random
from first_app.models import Webpage, AccessRecord, Topic
from faker import Faker
fakegen = Faker()
topics = ['Search', 'Socail', 'Marketplace', 'News', 'Games']
def add_topic():
t =... | [
"kvwarun@gmail.com"
] | kvwarun@gmail.com |
89b193f1153f1929ce05a3510ded7d436cfde1d6 | d33fdf6e216c327185a3b62093568fd4a86d0fcb | /configen/generate_configs.py | 13c5892ad2814b04d123d66bd4337709849dce4b | [
"MIT"
] | permissive | romesco/hydra-lightning | 2ca1fc15be40370b2814813ad4d790714cfb7354 | d208362f55534b7bc6c3f696dc1ea4e863006261 | refs/heads/main | 2023-05-22T09:45:33.254049 | 2021-02-12T20:47:11 | 2021-02-12T20:47:11 | 302,468,678 | 38 | 6 | MIT | 2021-06-09T20:27:10 | 2020-10-08T21:44:43 | Python | UTF-8 | Python | false | false | 416 | py | import hydra
from configen.config import Config
from configen.configen import generate_module
from configen.configen import save
@hydra.main(config_name="conf/configen")
def main(cfg: Config):
print(cfg)
for module in cfg.configen.modules:
code = generate_module(cfg=cfg.configen, module=module)
... | [
"rosario@cs.washington.edu"
] | rosario@cs.washington.edu |
6d7364ab7fa11c9a5c23913edae9e0676b4a4856 | 60f615d8d2b419d46cc3b89c7e0e258eec5a50ae | /11-learning_users/basic_app/forms.py | 65b9f24b2f3752ebb849776fe78c6e279ec0daac | [] | no_license | abdulwahid40/Web-Development | 2ddb563432d4a972745ce30cec2685c7388fc8fd | 9061a39fb47f74683eb25efe043ea842477ee3e6 | refs/heads/master | 2021-07-15T11:04:35.078344 | 2020-07-22T21:58:39 | 2020-07-22T21:58:39 | 188,602,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from basic_app.models import UserProfileInfo
class UserForm(forms.ModelForm):
password = forms.CharField(widget = forms.PasswordInput())
class Meta():
model = User
fields = ('username', '... | [
"abdul.wahid1257@gmail.com"
] | abdul.wahid1257@gmail.com |
e80bdd3373a707afcc5e53a1d31f96bbecc90e60 | 2bbf0720d25a737e08ced33e5a25430c1754b17c | /daemon/tests/test_gui.py | bf6d3b017e62b3a81d30d4fc50aba2f67843b6fb | [
"BSD-2-Clause"
] | permissive | troglobit/core | dfa9912268f7632682801eaf48111bb820291a21 | bb84082027e82fca447a4d465edf6b834f99637a | refs/heads/master | 2020-03-19T10:38:21.541358 | 2018-06-06T21:56:41 | 2018-06-06T21:56:41 | 136,388,605 | 0 | 0 | null | 2018-06-06T21:35:00 | 2018-06-06T21:35:00 | null | UTF-8 | Python | false | false | 6,688 | py | """
Unit tests for testing with a CORE switch.
"""
import threading
from core.api import coreapi, dataconversion
from core.api.coreapi import CoreExecuteTlv
from core.enumerations import CORE_API_PORT, NodeTypes
from core.enumerations import EventTlvs
from core.enumerations import EventTypes
from core.enumerations im... | [
"bharnden@users.noreply.github.com"
] | bharnden@users.noreply.github.com |
af9639884fb4576a162b7f3b21aa6162488a848f | 30dccea547f692d4fe2cc825e0b56d83888c264d | /Pages/LoginPage.py | 229ea41beec56966b6109ef24d3b7fa2acbf5f16 | [] | no_license | gustavocambraia/AutomacaoBase2 | e63fc0aa0dd81701093217fe51f5e41b6551e1bc | 2e66de2bf69449081d8c1fe9ccecc7680379914b | refs/heads/main | 2023-06-02T10:04:57.822006 | 2021-06-14T00:00:44 | 2021-06-14T00:00:44 | 369,920,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,943 | py | from selenium.webdriver.common.by import By
from Config.config import TestData
from Pages.BasePage import BasePage
from Pages.HomePage import HomePage
from Pages.MinhaVisao import MinhaVisao
from Pages.TokenAPI import TokenAPI
from Pages.Cadastro import Cadastro
class LoginPage(BasePage):
""" By locators """
... | [
"gustavocambraia@outlook.com"
] | gustavocambraia@outlook.com |
e9d7a998d87c612243828fe66e6007202c86f686 | 0b40232eb2395c27353c892ef4ccb5c604bb75be | /Hash Table/Find_the_difference.py | 7428e82614a50c081c15dbd870c2e3841fab9f12 | [] | no_license | HareshNasit/LeetCode | 971ae9dd5e4f0feeafa5bb3bcf5b7fa0a514d54d | 674728af189aa8951a3fcb355b290f5666b1465c | refs/heads/master | 2021-06-18T07:37:40.121698 | 2021-02-12T12:30:18 | 2021-02-12T12:30:18 | 168,089,751 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | def findTheDifference(self, s, t):
"""
:type s: str
:type t: str
:rtype: str
"""
map_s = collections.defaultdict(int)
for i in s:
map_s[i] += 1 #Automatically adds any missing value to the dictionary.
for j in t:
map_s[j] -= 1
... | [
"harsh.nasit@mail.utoronto.ca"
] | harsh.nasit@mail.utoronto.ca |
3eadd73ac2f7768a9e24d7ff49130841056e0bf6 | dea3a190e4f970f446bb66018cc556b7a6db6471 | /Python/Pawn.py | dd58ca7a6c253c6567090e637cb6a8afb5f3ed31 | [] | no_license | emanalaa/Problem-Solving | eac0e28271ca0b23207ac9ddb3615d2a3b8a3921 | c13c381203ae018de6435d43752ca36c42f2db7c | refs/heads/master | 2020-03-28T09:46:27.523104 | 2019-07-23T23:59:21 | 2019-07-23T23:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | def solution(numbers):
n = len(numbers)
visited = [0] * n
counter = 0
index = 0
while(True):
next_index = index + numbers[index]
if next_index >= n:
return counter + 1
elif visited[next_index]:
return -1
visited[index] = 1
index = ne... | [
"eman3laa@outlook.com"
] | eman3laa@outlook.com |
f16664af56735d597be498b51a5e6e795412e6b6 | 0dbb76530ed7d454327ddf9b00449515c893ff37 | /app/lda_w2v_recommender/helpers/helpers.py | 04ed2c6a7a0ca2ebe8d95a1a2964a94ecc104612 | [] | no_license | DerekZH/Life.Schloar | 17c478183940d3cc17d6207287bde47c21f73bbf | 3ccd41aab5a0b2403c6c030f4c396181ba5545f0 | refs/heads/master | 2021-01-10T18:04:44.034342 | 2015-11-02T02:52:48 | 2015-11-02T02:52:48 | 43,301,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,679 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as mpatch
from matplotlib.collections import PatchCollection
import gensim
from gensim.corpora import TextCorpus, MmCorpus, Dictionary
import nltk
import enchant
def cos_similarity(a, b):
return np.dot(a,b) / float(np.linalg.norm(a) * np.... | [
"zhoudx.dd@gmail.com"
] | zhoudx.dd@gmail.com |
8c567d804437e17644ed5f3c11c0cd3e47b52c03 | 56b63ee537f872af0fc028016d1508b4c1dd5c60 | /school/migrations/0284_auto_20210507_1155.py | e0f316d5d0463336216b57b0e361ecb8d4b458c7 | [] | no_license | jacknjillsolutionsrevanth/EMS1 | 01fc571120f765b0fbfe3aa654b15ff578d6e9b9 | db14d8e6c15669b5938aa9276c5e22006218814a | refs/heads/main | 2023-08-03T19:40:50.073133 | 2021-10-01T07:02:37 | 2021-10-01T07:02:37 | 410,202,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | # Generated by Django 3.1.2 on 2021-05-07 06:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0283_auto_20210430_1342'),
]
operations = [
migrations.AddField(
model_name='rpt_consolidatedreport',
name... | [
"jacknjillsolutions.revanth@gmail.com"
] | jacknjillsolutions.revanth@gmail.com |
daf6a6648337c20c1e3b7fc6492df080328c9231 | 32e55bf28b9f22265bcbc1d8c0ebf52a3608187d | /303. Range Sum Query - Immutable.py | 0c4562b35da42903720903add0d94136f25c38aa | [] | no_license | Garacc/LeetCode | 9f843672a18701d032f36769c9025761199d8caf | 215d12703b2cac4c1ad49d5a0e1060948fbbacd2 | refs/heads/master | 2018-10-10T03:37:48.889898 | 2018-09-17T08:38:22 | 2018-09-17T08:38:22 | 120,304,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | class NumArray:
'''
def __init__(self, nums):
"""
:type nums: List[int]
"""
self.nums = nums
def sumRange(self, i, j):
"""
:type i: int
:type j: int
:rtype: int
"""
ans = 0
for idx in range(i, j + 1):
ans +=... | [
"xgyxmxl@163.com"
] | xgyxmxl@163.com |
6f1c719edb8366b0ef1001f1be48ef6ee6dd6ff6 | e3b5521089493fca5da41aec42b5da123e333a41 | /inventario.py | 00e74faddb4175e0f3592d79a08b4888c7c8550a | [] | no_license | andrefuentes/inventario | 75aac9443fa61e464cb68a398ca0445ff566dc8f | cf7a885242bff62f42525d497276ae6e1649b54c | refs/heads/master | 2021-01-19T12:18:36.985347 | 2017-02-17T14:51:25 | 2017-02-17T14:51:25 | 82,302,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | print ("Bienvenido")
opc=(input("quiere comprar 1.si 2.no "))
inventario={}
while opc=="si":
producto=(input("ingrese pruducto: "))
cantidad=int(input("ingrese numero: "))
opc=(input("desea continuar 1. si 2. no"))
inventario[producto] = cantidad
if opc=="no":
for productos in inventario:
print (productos... | [
"andrefuentes166@gmail.com"
] | andrefuentes166@gmail.com |
3228263fc72105b309bff70782b154f4301ebf3d | 457286f32a360c36da04f47fc4e7456dc07ee1df | /apps/log_measure/handlers/metrics.py | d51099943bd9c36c0f3352117243835c1e7264b5 | [
"MIT"
] | permissive | jiazhizhong/bk-log | 2fad422022f02569acf6e8668bb548cb76fcd8ca | 85107762102ba2c72dcfb30fcf8986e146c03889 | refs/heads/master | 2023-08-21T02:01:08.911894 | 2021-10-22T08:52:22 | 2021-10-22T08:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,051 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-LOG 蓝鲸日志平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-LOG 蓝鲸日志平台 is licensed under the MIT License.
License for BK-LOG 蓝鲸日志平台:
------------------------------------------------... | [
"zxz@zhuxingzhao.com"
] | zxz@zhuxingzhao.com |
bcc3943b275de2cfce3fafdab7c2e5fc5c6787ea | 9c42223ec1e438c1dfe5d011c30807398c0589b9 | /xception.py | 0564a543f4db98a35aa06a07ac2b58fdee3dce02 | [] | no_license | vinceecws/Monodepth | 97cb260c7e2a5859d43a473a3637515a483a3304 | b161e75421a1004b5c361579509587cc007db56d | refs/heads/master | 2021-07-01T23:55:26.475342 | 2021-06-02T20:41:46 | 2021-06-02T20:41:46 | 238,805,574 | 23 | 4 | null | null | null | null | UTF-8 | Python | false | false | 5,686 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
#This is the Xception model separable convolution
#It first performs the pointwise (1x1 kernel) convolution
#Then follows with the depthwise (out_chn nxn kernel) convolution
#same flag produces pseudo-dimension-preservation when set to True (e.g only w... | [
"vincentchooi@Vincents-MacBook-Pro.local"
] | vincentchooi@Vincents-MacBook-Pro.local |
447ce74e473a355389d3a128495e459348056018 | 8daff7770bb92d935fcfdd0046fbb3f493ff598b | /Part 2/Week 5/main.py | df3008cd0eef51640ffc33dccd05131b131a612d | [] | no_license | Pushkarevd/openedu-python | 69ecdcb8cf3e86f622b76c853feee9b91a64efe3 | 8e8ec10fb5b234d826a5c3f4918038d5665f39b9 | refs/heads/main | 2023-02-05T05:23:28.580818 | 2020-12-22T18:18:32 | 2020-12-22T18:18:32 | 323,679,281 | 0 | 0 | null | 2020-12-22T16:34:07 | 2020-12-22T16:34:06 | null | UTF-8 | Python | false | false | 313 | py | #This solution doesn't work yet
import re
import urllib.request
import threading as thr
urlr, n = input().split()
n = int(n)
html = ''
with urllib.request.urlopen(urlr) as response:
html = response.read().decode()
href = re.compile(r"""(Django 2.0)""")
found = list(href.findall(html))
print(len(found))
| [
"tomasfire@live.com"
] | tomasfire@live.com |
2a74e342fd04ed69f9ca45c0de039de137a13352 | 982ea4391c37c12cba0891ca9dfd62c1be67e737 | /pcommerce/core/content/product.py | 7aee01f6877e021d44033079e00b2874dcc895ec | [] | no_license | Raptus/pcommerce.core | 0fe79fb28f55cb5864d17f19aa26f5c9e7892eeb | a258f9773b43bd37c440de231159a6ba937df331 | refs/heads/master | 2020-05-20T01:44:33.728761 | 2014-10-16T06:45:15 | 2014-10-16T06:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | """Product content-type
"""
from AccessControl import ClassSecurityInfo
from zope.interface import implements
try:
from Products.LinguaPlone.public import *
except ImportError:
# No multilingual support
from Products.Archetypes.public import *
from Products.validation import V_REQUIRED
from Products.CMFCore.... | [
"skaeser@raptus.com"
] | skaeser@raptus.com |
fd673bb693206262ce291422603e04587290cc7c | 5686d1a31b87a47a4774270c00cd141c221cf065 | /axonius_api_client/api/json_api/assets/history_dates_human.py | 35f27f8e20051c05403c10b6c37ebc27af60b4a1 | [
"MIT"
] | permissive | Axonius/axonius_api_client | e7eec0845eee9e1b314446121551c584655c2631 | be49566e590834df1b46494c8588651fa029b8c5 | refs/heads/master | 2023-08-19T04:43:13.717989 | 2023-08-10T18:49:40 | 2023-08-10T18:49:40 | 194,601,817 | 17 | 22 | MIT | 2023-08-30T18:45:15 | 2019-07-01T04:52:21 | Python | UTF-8 | Python | false | false | 7,266 | py | # -*- coding: utf-8 -*-
"""Models for API requests & responses."""
import dataclasses
import datetime
import logging
import typing as t
from ....exceptions import ApiError
from ....tools import coerce_int, dt_now, dt_parse
from ..base import BaseModel
LOGGER = logging.getLogger(__name__)
@dataclasses.dataclass
clas... | [
"jim@axonius.com"
] | jim@axonius.com |
5516c3e347802f4b350ee2dbcccabaeb477b3a74 | 9447fc5874b2edbc5d50d97d1415459d7c0a9a23 | /env/bin/rstpep2html.py | 80e9bd3423e0ff556c539c40519718befa2fd10f | [] | no_license | ivan-podorozhnyi-tr/flask_zappa | b9d11976a2b5d1a315258984ffde6199b4013576 | aba4c482d90ceb5161010e4e4edb9b63feb00735 | refs/heads/master | 2022-11-02T04:11:20.531599 | 2019-10-10T10:31:03 | 2019-10-10T10:31:03 | 214,153,564 | 0 | 1 | null | 2022-10-10T20:02:44 | 2019-10-10T10:28:49 | Python | UTF-8 | Python | false | false | 701 | py | #!/home/ivan/projects/flask_zappa/env/bin/python3
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(Python Enhancement Proposa... | [
"you@example.com"
] | you@example.com |
b04e5ea723f86e59d1873259177661d9672e62f6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/advanced/050_make_pybites_search_engine_feedparser/save4_nopass.py | 8dbd7f2c13334bb8bd7ec12ff179a1105f74a635 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 5,865 | py | from datetime import datetime
from collections import namedtuple
from time import mktime
from feedparser import parse
import re
import xml.etree.ElementTree as ET
# FEED = 'https://bites-data.s3.us-east-2.amazonaws.com/all.rss.xml'
Entry = namedtuple('Entry', 'date title link tags')
class AttrDict(dict):
"""fe... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
ca4b1e4ff7745a315b29852e4a1a4b0c216fe9d9 | 361b7767683fa11e8456b91c4a37a093b72b1c5d | /Task05_Birthday_party.py | 4062d0e0843b34f82c827e4f52516b860def6659 | [] | no_license | CyrillCyrillov/SoftUni-Programming-Basics-Python-01-2-First-Steps-in-Coding-Exercise_ | 46aa13d627bd55548d074543388dde8c0d6e742f | c444ccba1353aa8228e50ae4b6cffa33d5a206f0 | refs/heads/main | 2023-02-14T04:47:58.047260 | 2021-01-09T18:02:07 | 2021-01-09T18:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | rent = int(input())
cake = rent * 0.2
drinks = cake * 0.55
animator = rent / 3
suma = rent + cake + drinks + animator
print(suma) | [
"noreply@github.com"
] | noreply@github.com |
a0cbe0c655f11161acf6944c7d2543e3541653b1 | 978ad254ea683b207cf8730b6accb554ef970729 | /model/Retinanet.py | 2cdc0b8f19edd345635dad37a94533d256518c9d | [] | no_license | aloyschen/Retinanet | 8cfce784eb815d0c956271f9abf4f3c3a49e5cb4 | e728c1ee9c5d170ed353e6744262ce1f15f6f88c | refs/heads/master | 2020-04-06T22:59:17.731692 | 2018-11-27T08:37:15 | 2018-11-27T08:37:15 | 157,854,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | import torch
import math
import torch.nn as nn
import torch.nn.init as init
from model.fpn import build_FPN_ResNet50
class RetinaNet(nn.Module):
def __init__(self, num_classes, pre_train_path = None):
"""
Introduction
------------
提取多个尺度的融合特征,卷积回归预测box坐标和
"""
s... | [
"gaochen3@staff.weibo.com"
] | gaochen3@staff.weibo.com |
fcb97d3d3db52e9979219be34ae85c78214c8797 | 07d565f8543ba4c398ab9f40dabc8b2f9e13b89a | /oeVirtualCoin/coinkit/finder.py | 0aac102cb2a4659109a80df3760e5d1fbbcfd7f6 | [] | no_license | agama-point/virtualcoin | d8b35d7f3c080372d7abf2aa8117e79609d26760 | 615749967af4435f0ce15ac1e6aa791a0096b6cc | refs/heads/master | 2023-08-05T10:25:33.238494 | 2021-09-20T12:18:00 | 2021-09-20T12:18:00 | 110,121,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from coinkit.keypair import BitcoinKeypair
import threading
import sys
class vb4(BitcoinKeypair):
# _pubkeyhash_version_byte=10
def __init__(self,pubkey_byte):
BitcoinKeypair._pubkeyhash_version_byte = pubkey_byte
BitcoinKeypair.__init__(self)
verb4 = vb4(0);
count = 0;
while(verb4.address()... | [
"noreply@github.com"
] | noreply@github.com |
1ecb741be63c3d4f4cf27a1f9a5077afa206c9e7 | 587bd3458aadb1f06bd576aab46a7d294d6a0ee2 | /session47.py | cba6a34daa4a8c2c7d7d7bcde7ea6d8900069b81 | [] | no_license | Shimpa11/PythonTutorial | 913635dbbd1f8ed6e2331614040a4f76d22ebacf | 5e5dfe003e5ccf84d4e9754d3192e43009c20c56 | refs/heads/master | 2020-12-13T16:48:12.093667 | 2020-05-08T12:21:27 | 2020-05-08T12:21:27 | 234,344,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | """
overfitting and underfitting->regression line does not fit
# predicted values
# good fit / robust fit
# DT limitations
# computationally expensive to train
# carry big risk if overfitting
ENSEMBLE LEARNING
Supervised learning where no of models are combined for prediction
BOOSTING->grp of algos that utilizes wei... | [
"er.shimpa@gmail.com"
] | er.shimpa@gmail.com |
384210d95788ab27a35cabd3c957edf150bc29d4 | b4134236292aff9dc7dc7ae0f54ad46bae791ccf | /PythonNLP/C05.py | d594e50cab7154f30f8e7f0d448fac78bd25c658 | [] | no_license | dandanloveJM/NLTK-Python-CN | ac0567da4d517d8e03c2921a4998dd1843cf26b3 | d0036f25baca18003ddf3d5790cd9a8d76d0345e | refs/heads/master | 2020-08-17T11:32:05.991795 | 2019-10-17T14:21:59 | 2019-10-17T14:21:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,044 | py | # Ch5 分类和标注词汇
# 词性标注(parts-of-speech tagging,POS tagging):简称标注。
# 将词汇按照它们的词性(parts-of-speech,POS)进行分类并对它们进行标注
# 词性:也称为词类或者词汇范畴。
# 用于特定任务标记的集合被称为一个标记集。
import nltk
import pylab
from nltk import word_tokenize
from nltk.corpus import brown
brown_words = brown.words(categories='news')
brown_tagged_words = brown.tagged_wo... | [
"zhuyuanxiang@gmail.com"
] | zhuyuanxiang@gmail.com |
bfaad96e6012c996efbf401a02aa6cb58d4385c6 | ca2dbdd60ecc67e5e9203f863bbb3e1213454748 | /2. Python programming/6. Advanced Python/utils/__init__.py | d6f4048e5da814d48fee1ef69b5645775f0eca5d | [] | no_license | TamimEhsan2021/Essentials | 365bd4cd71d805cf6a29dacc43faefeda437ee50 | c8698ab25097cda2fb3c6fd0219b7553cbee9c71 | refs/heads/main | 2023-07-06T23:24:53.705426 | 2021-08-04T07:49:33 | 2021-08-04T07:49:33 | 389,355,434 | 0 | 0 | null | 2021-07-25T13:36:05 | 2021-07-25T13:36:04 | null | UTF-8 | Python | false | false | 260 | py | # The __init__.py files are required to make Python treat directories containing the file as packages
# init works similar to the __init__ constructor of classes, so we have to tell Python
# what to do when this package is called
__all__ = ['fibo', 'm_and_m'] | [
"harryaberg@gmail.com"
] | harryaberg@gmail.com |
f772f09abcf47252dc299c6aff533b72d5f3a73b | 34a00ee9da6e95a6b618b359af1e4eb1eec906e6 | /sayhello/settings.py | 175390e3b0fb8a42b5c11e99280515e81778ce71 | [
"MIT"
] | permissive | wangzelin007/sayhello | 1dc4cff1dca4f1397d9a2d4c06d4e04713f204da | a54f7cec6b1d38d9e509b5631d4c80fb8c13d8b5 | refs/heads/master | 2021-10-10T22:05:54.805990 | 2019-01-18T03:15:52 | 2019-01-18T03:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # -*- coding: utf-8 -*-
"""
:author: Wang Zelin (王泽霖)
:url:
:copyright: © 2018 Wang Zelin <1064534588@qq.com>
:license: MIT, see LICENSE for more details.
"""
import os
import sys
from sayhello import app
# SQLite URI compatible
WIN = sys.platform.startswith('win')
if WIN:
prefix = 'sqlite:///'
e... | [
"1064534588@qq.com"
] | 1064534588@qq.com |
9edf0b0dd76242a8e87786018c83146ff8526c09 | 88ecc090eb51ed1ce7f3ba9cd0edfa7c1480075d | /src/auto/flow/MonitorEventStatus.py | bda8aaa95d2d408cb7f195b7d0c9c23cdd41a8a8 | [] | no_license | rab-ferrari/learning-academy-management | e623654bdce56426992b17467ee346a56fd9d1af | 02c779f8e3287c2822b24d59b7dc99da9ec5e935 | refs/heads/master | 2023-01-27T14:08:03.960746 | 2020-12-13T19:00:39 | 2020-12-13T19:00:39 | 320,048,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # -*- coding: utf-8 -*-
"""Flow Import
Name: MonitorEventStatus
Flow prepared to be deployed in a daily execution job. Activities performed:
- update event database - mostly participant status
- run alert event status and send email if required
- run critical alert event status and send email if required
- se... | [
"Rodrigo.Ferrari@fit-tecnologia.org.br"
] | Rodrigo.Ferrari@fit-tecnologia.org.br |
1cc82d29a51235e4f62d33e79b9c3674a7b6a70e | 012837eafe45c8f7ee5fc77d4c4d7725d5314c5c | /workshops/13-section/3-clazz.py | db4268d7f2b341b44686116fc78dc2a96eba3efd | [
"MIT"
] | permissive | ai-erorr404/opencv-practice | e9408cf006779a678cf3a30fc60e9dbeb3c8e493 | 60ef5e4aec61ee5f7e675fb919e8f612e59f664a | refs/heads/master | 2021-02-08T11:17:04.763522 | 2020-02-22T09:43:04 | 2020-02-22T09:43:04 | 244,146,060 | 1 | 1 | MIT | 2020-03-01T12:35:02 | 2020-03-01T12:35:01 | null | UTF-8 | Python | false | false | 2,430 | py | #!/usr/bin/env python3
# -*- coding=utf-8 -*-
import cv2 as cv
import numpy as np
"""
OpenCV DNN支持ENet网络模型的图像分割
采用预先训练的ENet网络模型(下载地址)[https://github.com/e-lab/ENet-training], 基于Cityscapes数据集的训练预测结果。
该模型是torch模型,加载的API为:
cv.dnn.readNetFromTorch(model, isBinary)
- model参数表示二进制的模型权重文件
- isBinary 是否为二进制文件,默认... | [
"605728727@qq.com"
] | 605728727@qq.com |
95475f470e7c17b7227077ebff82c96639227a71 | 5b2d58c0fadeabcc5a99c2bd891702a8d1c1a037 | /hw4/src/network.py | b49a2be0d35e12b1035ee738158c330d82f44ad2 | [] | no_license | Christine-Tan/4705NLP | 47ce869d3183ab118f7ce157ac880c330d131d8f | 1ed6473a058ee3d232e603cda85b57404e425917 | refs/heads/master | 2020-04-07T21:20:58.052377 | 2019-03-07T15:48:52 | 2019-03-07T15:48:52 | 158,723,367 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,818 | py | import dynet as dynet
import random
import matplotlib.pyplot as plt
import numpy as np
class Network:
def __init__(self, word, pos, label, action, properties):
self.properties = properties
self.word = word
self.pos = pos
self.label = label
self.action = action
# fi... | [
"xt2215@columbia.edu"
] | xt2215@columbia.edu |
a606e644741ef03630948a305e4f4f590ac7e2c4 | 53a4cf0caf65a7cdcbaf732c3702b95a2a2e3db7 | /.ipynb_checkpoints/test-checkpoint.py | 9afa08f018ed454632f2c19faeaec425085cbdbe | [] | no_license | endokazuki/deep_leaning | 68ea47951c8ceebb45df79c9a3b2d980096f7ea4 | d213f4ab9f1f3b04cce53abc140acd7827d1ccae | refs/heads/master | 2023-02-08T16:35:44.774832 | 2020-12-22T07:35:20 | 2020-12-22T07:35:20 | 323,550,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | class my_status:
def __init__(self,age,name,height,weight):
self.age = age
self.name = name
self.height = height
self.weight = weight
#インスタンスの初期化
#例)self.age=null
# ↓←age=20(インスタンス変数self.ageに引数ageを取る)
# self.age=20
def print_name(self):
... | [
"worldanalysis1014@gmail.com"
] | worldanalysis1014@gmail.com |
689eb9cebd72445104a790741ccf3c531d90ed9a | 178a703163dc7fb7f326e2cad817b523bd4c812a | /supreme-bot-py/utils/PrepareBot.py | fef59ccebbef807c54d9b8fcd949d1fb31f8f87c | [] | no_license | mrkerr/supreme-bot | c9ffb20c9f414d01abfd2a37a3d6407ae0472295 | 473aa8d91dd1388badd38cf8cca0ac7e799f2fdf | refs/heads/master | 2022-06-15T08:51:56.664774 | 2020-05-07T18:50:09 | 2020-05-07T18:50:09 | 259,100,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,011 | py | import time
from datetime import datetime, timedelta
from utils.Checkouter import *
from utils.LinkGetter import *
from utils.LinkIterator import *
from constants.constants import *
from selenium.common.exceptions import NoSuchElementException
class PrepareBot():
def __init__(self, driver):
self.driver = ... | [
"mkerr@vailsys.com"
] | mkerr@vailsys.com |
a2e83a22cd0e896c9b5cbe3df685221586195883 | fee972575370e9c3892e4563246d7e872202216a | /src/endpoints.py | 1ea7e314239b07355592a7b708d9f8fcdf3ba4d5 | [] | no_license | jsw95/accounts-checker-ai | 94a4b0e80e33ae8c5ea5a36c3f4e54397e93742d | ebea2be216554fba7c60052b44bdc85e5afc2246 | refs/heads/master | 2021-06-30T04:56:08.203955 | 2020-10-28T10:25:20 | 2020-10-28T10:25:20 | 182,429,480 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | from flask_restful import Resource, request
from src.data_processing import *
from src.dataset_management import *
from src.utils import *
class ImageToJson(Resource):
def post(self):
data = request.json
img = data['img']
img = img_as_ubyte(img)
boxes = find_boxes(img)
bo... | [
"wells.jack@hotmail.co.uk"
] | wells.jack@hotmail.co.uk |
b53f31bab239e974a44b18dc9a112a5067df68ee | 00687ee434e9ff98d452c8ca69897d503eecdbc7 | /caffe2/python/operator_test/torch_integration_test.py | 628512953dcae9cc9091baba095ea34250a78002 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ajliu/pytorch | 8a7bc45c027a8783705d8aa8a308d7647b8a4494 | 7d809f5d8e93cb6d332297ece071083845e30e26 | refs/heads/master | 2022-12-27T11:53:12.876850 | 2020-10-02T20:08:49 | 2020-10-02T20:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,509 | py |
import caffe2.python.hypothesis_test_util as hu
import hypothesis.strategies as st
import numpy as np
import struct
import torch
import unittest
from caffe2.python import core, workspace
from hypothesis import given, settings
from scipy.stats import norm
def generate_rois(roi_counts, im_dims):
assert len(roi_c... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1c47c9fdf8a8c8a97a85e511d2f728033d298a81 | b4c6200590a093b805036a822b7889c058494b9f | /Datasets/Terrain/us_ned_chili.py | 8d66c58338f961fef2e597316c2d216fac9c958f | [
"MIT"
] | permissive | spoddar-JNPR/earthengine-py-notebooks | 2109a52a49357c19f803b76ed635e022ee486ac6 | ff1b5754785d5e25cb11acdbd52b0f31711d061f | refs/heads/master | 2022-12-25T10:34:44.895717 | 2020-10-01T05:38:16 | 2020-10-01T05:38:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | # %%
"""
<table class="ee-notebook-buttons" align="left">
<td><a target="_blank" href="https://github.com/giswqs/earthengine-py-notebooks/tree/master/Datasets/Terrain/us_ned_chili.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 |
1a7831a7cbff59b87bd0fc84d266c6010213ae3e | 4335c520c9a68c6a8675108bd32308d8d29892de | /solicitudes/migrations/0001_initial.py | 9a9fbf4d16feaa16c887fc7286b38b362ae57e41 | [] | no_license | PROYECTOPOLIPQR/qs | fc053317bb8dd60c76f53ca12849a5460ad5ecd4 | 5b66c7d1d44d431705a0b76a8148d88dd8438f05 | refs/heads/master | 2023-01-08T21:09:03.873327 | 2020-11-10T22:24:24 | 2020-11-10T22:24:24 | 311,217,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # Generated by Django 3.1.2 on 2020-11-10 20:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Solicitud',
fields=[
('id', models.AutoFiel... | [
"nacasas8@misena.edu.co"
] | nacasas8@misena.edu.co |
1587f557271de3a9e8cf93229df307857a757e6e | 8eea26257d2655a068f1b52ae25badbf64f6fe20 | /SRP_PHAT.py | a92e9a51224a668e97238badf68ec78528ff4625 | [] | no_license | JPyer/srp | bd36b12773e1af0107e7ef21e22bd7d889adcd78 | f9bfe331a0c04e5b02f294f00ca3b29b0f21b3b6 | refs/heads/main | 2023-01-12T23:31:22.807427 | 2020-11-10T07:16:41 | 2020-11-10T07:16:41 | 311,572,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | import os
import numpy as np
import soundfile as sf
class SRP_PHAT():
def __init__(self, pos):
self.algName = "SRP-PHAT"
self.pos = np.array(pos)
self.M = np.size(self.pos, 0)
self.fs = 16000
self.fMin = 0
self.fMax = 255
self.step = 0.5
self.lamda ... | [
"likangjie@focalacoustics.com"
] | likangjie@focalacoustics.com |
ddaec11e3d3deb09168a1cefbeda32ca1c80334d | 04c45517a7c1caef97216533ce5e6100a309b05f | /ss7/registrationv2.py | f0ef085977764ffc1cdc6167d5936332507e7c36 | [] | no_license | Zenka04/C4T_basics | e232dd4f22e9df29f5487640586fef553f5e6d9e | 8eee791e26af0bdb9e3e79011c0a72a98b3fb3c1 | refs/heads/master | 2020-08-19T14:05:07.565660 | 2020-01-11T14:38:05 | 2020-01-11T14:38:05 | 215,926,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | i = input("nhap ten dang nhap: ")
l = input("nhap gmail: ")
while True:
j = input("nhap mat khau: ")
k = input("nhap lai mat khau: ")
if j==k:
print("mat khau dung")
break
else:
print("sai mat khau")
| [
"noreply@github.com"
] | noreply@github.com |
4d65d19ba733807b833462af697bb43dafba53cb | 34a3dc01c45eb0c5e9d9e5490bed4b821f3c5e8f | /populate_rango.py | a2f33874c6c8674291779a024380ebe496f65143 | [] | no_license | AaronH2391506/tango_with_django_project | cc6ff54818b6e9dc32eb82a7dc50abcc47a83542 | 09be860119a5428a5bac7a4717c2afc1a6a8d745 | refs/heads/master | 2020-12-14T01:06:25.386921 | 2020-02-10T15:44:10 | 2020-02-10T15:44:10 | 234,586,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_pages = [
{'title': 'Official Python Tutorial',
'url':'http://docs.python.org/3/tutorial/',
'views'... | [
"2391506H@student.gla.ac.uk"
] | 2391506H@student.gla.ac.uk |
e2599e6d8689a79f78b3ff0511817bdb5f8002f0 | 925800eba76cd045c0dcd12472961e744fce2300 | /Ecommerce/shop/migrations/0001_initial.py | 5709eab316e2bfa321e486ad9553c71f84c1ec75 | [] | no_license | shashikanthgk/Ecommerce-Django | 908eca94bbdf33d8661ea14ec318ecd26b4d11ee | eef403c3772d416a418a8ea6d47f24abd6c6625f | refs/heads/master | 2021-03-29T04:14:46.618989 | 2020-03-17T08:43:27 | 2020-03-17T08:43:27 | 247,919,470 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | # Generated by Django 3.0 on 2019-12-20 11:55
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('msg_id', models.AutoFiel... | [
"shashikanthgk@gmail.com"
] | shashikanthgk@gmail.com |
1f72793b8726f9b125ca6ce731617ffbb063b5bc | 68bb3920962ba9528c9c1cc24eff3b32ad825338 | /Python projects/django_project/users/signals.py | 63c7ce965dc92cb82895f8fc3b8dcd84e9b54faa | [] | no_license | Manoj-Accolite/Interview-Stuff | 2b5e72754cc07cd9bbd11c3fe20f40f1636217b7 | e8995cd599377d475096a144917086d588bcbfb8 | refs/heads/master | 2022-12-31T01:03:16.508031 | 2020-10-16T11:23:27 | 2020-10-16T11:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | from django.db.models.signals import post_save # This signal gets fired when an obj is saved
from django.contrib.auth.models import User # this acts as sender
from django.dispatch import receiver # Acts as receiver
from .models import Profile
@receiver(post_save, sender=User)
def create_profile(sender, instance, c... | [
"gmanojk84@gmail.com"
] | gmanojk84@gmail.com |
5d328d301c1c3a0b4ee19553cf5393c5d512886e | 9aa7df71fdde556cf192941dbe332b595b6e173e | /exercises/20_jinja2/test_task_20_3.py | c2caaabdf0628729e8e179b524546c92bf543c53 | [] | no_license | sshamarin/Python-for-network-engeneers | 1fb1bdf778742ebf7fdbde57057de6134c0a6711 | 3c146946bda54f33891220cc5ef70b0975617136 | refs/heads/master | 2023-03-30T22:51:06.452001 | 2021-03-30T22:44:25 | 2021-03-30T22:44:25 | 353,160,272 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,830 | py | import os
import pytest
import task_20_1
import sys
sys.path.append("..")
from pyneng_common_functions import check_function_exists, strip_empty_lines
# Проверка что тест вызван через pytest ..., а не python ...
from _pytest.assertion.rewrite import AssertionRewritingHook
if not isinstance(__loader__, AssertionRewr... | [
"78884219+sshamarin@users.noreply.github.com"
] | 78884219+sshamarin@users.noreply.github.com |
30fc660950cda72d7c5e7a31e62e84b6f532f824 | fd5ea7616f59b79e2426a704aa8d8d37ea067265 | /msg_sender.py | ea2a1ff5eb26976fba3442c7a4d785e9166bc3df | [] | no_license | akelesis/chat-lan-sd | d8371dc701b34858fd8c8c7571b994c1d523e25c | c9ccd3dc096db6a1dcf8ad380bc46497b6253db5 | refs/heads/main | 2023-01-22T19:23:48.978898 | 2020-12-02T00:44:47 | 2020-12-02T00:44:47 | 316,878,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from socket import socket
TAM_BUFFER = 1000
ip = '192.168.5.4'
def requisicao(portas, port):
try:
mensagem = input()
while mensagem != "exit":
for x in portas:
if x != port:
sock = socket()
server_info = (ip, x)
... | [
"marcus.tavares@outlook.com"
] | marcus.tavares@outlook.com |
80b47e0db13a8c6d4821164854491769804f04c0 | 797eb140bbaf062b297b3d2dcb0e444d54ec594d | /Chapter03/chapter03.py | 5ba9205225b28be3ce70877c8865758dff719545 | [
"MIT"
] | permissive | Nisoka/Functional-Python-Programming-Second-Edition | ffa681060b024e923226be613562ec324ecb4688 | 625a02e1b31f843130c07bdef0e8e7be4af3aa14 | refs/heads/master | 2020-04-06T11:04:57.752050 | 2019-01-11T05:53:54 | 2019-01-11T05:53:54 | 157,403,011 | 0 | 0 | null | 2018-11-13T15:33:26 | 2018-11-13T15:33:26 | null | UTF-8 | Python | false | false | 2,081 | py | #!/usr/bin/env python3
from typing import Callable
import math
# old usage: 定义class 可以不用继承object.(不推荐)
class Mersenne1:
def __init__(self, algorithm: Callable[[int], int]) -> None:
self.pow2 = algorithm
def __call__(self, arg: int) -> int:
return self.pow2(arg) - 1
def shifty(b: int) -> int:
... | [
"nan@innovem.com"
] | nan@innovem.com |
4d9e7f2b00593771459ae1d452b172e575e963f1 | 4a2c9299dfd009a614934ee82910adaa17ff3186 | /app/tasks/models.py | 75bc9c44588e8100eca8370379fc0d70e88d4cfe | [
"MIT"
] | permissive | sampathweb/blueprint_app | be8ab9c5bd956bc393b61542158c325ad27fffed | 149225db4291519a6de56d8930e3a36ff9cd7888 | refs/heads/master | 2016-09-06T08:30:25.918934 | 2013-10-24T22:48:52 | 2013-10-24T22:48:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from datetime import datetime
from app import db
class Task(db.Model):
"""A Task list."""
__tablename__ = 'tasks'
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(50), unique=True, nullable=False)
description = db.Column(db.String(255))
active = db.Column(db.Boolean, de... | [
"ramesh@sampathweb.com"
] | ramesh@sampathweb.com |
024ebff593899f1454909f815673fa2d45e38595 | 06977294b8d111111785345ae0b8972894f9e072 | /relay_test.py | 925db19c8c771fa20a6efde5228109de70c53102 | [] | no_license | SidG21/Hub-Motor | 5a3c29ed3aee08987faaa1ed6438225ce3298903 | b0247a3501dfe70c33516d1463cf39568a65205a | refs/heads/main | 2023-02-14T02:26:00.258628 | 2021-01-03T10:58:22 | 2021-01-03T10:58:22 | 326,383,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | import RPi.GPIO as GPIO #Importe la bibliothèque pour contrôler les GPIOs
import time
GPIO.setmode(GPIO.BOARD) #Définit le mode de numérotation (Board)
GPIO.setwarnings(False) #On désactive les messages d'alerte
relay_1 = 3 #pins defined for 8 relays
relay_2 = 5
relay_3 = 7
relay_4 = 11
relay_5 = 13
relay_6 = 15
rela... | [
"noreply@github.com"
] | noreply@github.com |
b1d917273ec4be597bc9ebe7da4cf1947c5d9062 | 609dfd2fe2439e3ad2563a0811278a2e20b5a487 | /bin/cell_types.py | 18829b5a994701e4a7665941399f5b053789a9f3 | [
"BSD-3-Clause"
] | permissive | devinkeller/AntiResist | f5419bd3c3fbdc64951b4fac40afafa84023653d | 110507a6e641714eb1b0508af35000d38e537c56 | refs/heads/main | 2023-04-16T13:02:36.929066 | 2021-04-29T02:34:08 | 2021-04-29T02:34:08 | 359,907,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,813 | py |
# This file is auto-generated from a Python script that parses a PhysiCell configuration (.xml) file.
#
# Edit at your own risk.
#
import os
from ipywidgets import Label,Text,Checkbox,Button,HBox,VBox,FloatText,IntText,BoundedIntText,BoundedFloatText,Layout,Box,Dropdown
class CellTypesTab(object):
def __ini... | [
"devhkell@iu.edu"
] | devhkell@iu.edu |
13977e6020e09ed7f82a4a9e81b8de10e55eb99d | f0491f92b61333af52ec2338b338113e03aef89c | /config/wsgi.py | a9b40fc6fbeda08a31b16ebd0fdb9d8d1b113806 | [
"MIT"
] | permissive | payamesfandiari/BotDetector | ab0cf3ca5da88f6b7c8db7728b2956420c90e618 | e6a7a8e37c0f7d0c01aac24791b66b105b3dc9a5 | refs/heads/master | 2020-04-11T20:07:36.001562 | 2018-12-27T06:35:26 | 2018-12-27T06:35:26 | 162,060,669 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | """
WSGI config for BotDetector project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATIO... | [
"me76@njit.edu"
] | me76@njit.edu |
d205c03f997bdc2c58850b17bcbedf952bb9e889 | 904f18b2448f7b268c5492e5a6b4179b536ef5d0 | /zack/project/tube/tube.py | 4b85654148300dbc5f61ce1be431bb3974bbaa3e | [] | no_license | danwinkler/3dprint | d66e5db1abcd32782675e6a8283592e1f92b93c6 | dff13b4d232694977fb348799bdcdde641c71884 | refs/heads/master | 2023-06-10T11:46:53.318128 | 2023-06-04T21:43:16 | 2023-06-04T21:43:16 | 20,903,951 | 1 | 0 | null | 2022-06-22T05:01:09 | 2014-06-16T23:29:29 | OpenSCAD | UTF-8 | Python | false | false | 1,610 | py | from math import *
from sys import *
def fn( h, x, y, z ):
c0 = cos( 3.14 * 0.1 * h )
s0 = sin( 3.14 * 0.1 * h )
c1 = cos( 3.14 * 0.0 * h + 3.14/2 )
s1 = sin( 3.14 * 0.0 * h + 3.14/2 )
c2 = cos( 3.14 * 0.0 * h + 3.14/2 )
s2 = sin( 3.14 * 0.0 * h + 3.14/2 )
c3 = cos( 3.14 * 0.0 * h + 3.14/2 )
s3 = sin( 3.14 * ... | [
"oink54321@yahoo.com"
] | oink54321@yahoo.com |
3706dc1795d1b7e918d57f7e1d3e017435d1f0e1 | 30c824f5849ac49a730202888b2e934c08c02eb3 | /clients/unimplemented/python-client/swagger_client/api/__init__.py | 317ec0b73236815581d1b9494f33ba875cbb7818 | [] | no_license | ryanhennig/simple-storage-server | e72748024256b9b49b928d43a579efdf0d8aa72f | d5d0f3738e147bd963745f70ae713d6fe3e9dd29 | refs/heads/master | 2020-03-13T16:32:57.970819 | 2018-04-26T19:16:36 | 2018-04-26T19:16:36 | 131,200,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from __future__ import absolute_import
# flake8: noqa
# import apis into api package
from swagger_client.api.file_api import FileApi
from swagger_client.api.user_api import UserApi
| [
"mindcoder@gmail.com"
] | mindcoder@gmail.com |
527040524c7a74b2c167d73396fd06897527e381 | ae497c1c3ce69ec6dd1f0c6ed1a753a339bb0b17 | /test/test_ch7/test_data_flatten.py | 82cd1aec22412e3dbf19838c2673df3f6b46cc7d | [] | no_license | tw4204/Learning-Python | 45a713cd50691e9bf081894305d88947eec0d716 | e0c8606668b32e201dc9b78ed3f8cf505860d3f3 | refs/heads/master | 2020-04-17T06:34:12.871434 | 2019-01-23T05:06:33 | 2019-01-23T05:06:33 | 166,330,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from unittest import TestCase
from nose.tools import assert_equal
from chap7.data_flatten import flatten
class FlattenTestCase(TestCase):
def test_flatten(self):
test_cases = [({'A': {'B': 'C', 'D': [1, 2, 3], 'E': {'F': 'G'}},'H': 3.14,'J': ['K', 'L'],'M': 'N'},{'A.B': 'C','A.D': [1, 2, 3],'A.E.F': 'G','... | [
"tw4204@naver.com"
] | tw4204@naver.com |
b4f89042835be12be57b79aa4759b78428abe04a | e22a58ade19aaf710da2145cafbab97c4c713086 | /TAX Lab.py | 358d69d27e29f8796d1ec088d53d2ea91c03dd62 | [] | no_license | NubianGeekess/Andela-Home-Study-Lab-2016 | 761ed3a34dc9c30b13623a5e69e0031757f3e1ca | 353ea20923cb7182424d936989e8f9cc75f85b2c | refs/heads/master | 2020-05-18T06:10:21.938731 | 2016-11-30T23:30:36 | 2016-11-30T23:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | #Tax Calculator
"""
Country X calculates tax for its citizens using a graduated scale rate as shown below:
Yearly Income: 0 - 1000
Tax Rate: 0%
Yearly Income: 1,001 - 10,000
Tax Rate: 10%
Yearly Income: 10,001 - 20,200
Tax Rate: 15%
Yearly Income: 20,201 - 30,750
Tax Rate: 20%
Yearly Income: 30,751 - 50,000
Tax Rate: 2... | [
"noreply@github.com"
] | noreply@github.com |
536d8ad37e4146d5c64239c975b4d22535589e30 | 84fd06517be5c3324480da20e2c9b666ca64b0b7 | /users/forms.py | 7e7ff328075bd86b57ad31595e6bac42605c7a35 | [] | no_license | SilviaAlarcon/Fitgram | 28bdef1620fe2d2fad61451f3cd368298ad92e29 | 1cdc6afb6ccc8a3b873b5414432b41d5a5defbd9 | refs/heads/main | 2023-06-14T14:19:04.096295 | 2021-07-06T18:56:12 | 2021-07-06T18:56:12 | 365,845,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | #User form
#Django
from django import forms
from django.forms.fields import CharField
from django.forms.widgets import EmailInput
#Models
from django.contrib.auth.models import User
from users.models import Profile
class SignupForm(forms.Form):
username = forms.CharField(min_length=5, max_length=50)
pass... | [
"silviaalarcon@MacBook-Air-de-Silvia.local"
] | silviaalarcon@MacBook-Air-de-Silvia.local |
af1ba375f2a05ec60d351ee95eaf5ae96242e598 | a56d167595198f41221e78fe35eb992a2e6f2832 | /PythonSolution/UniquePath.py | 25159082ac8a4a75eeab84312ac5c1980ebbc0a1 | [] | no_license | myisabella/LeetcodeRound2 | cc1c19be3956c0992fcd1c182752bb46006c880e | aff905d290a9ca4efc58a68e6b88c854725b8466 | refs/heads/master | 2021-01-21T04:43:47.261191 | 2016-06-13T06:51:45 | 2016-06-13T06:51:45 | 46,836,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | def getUniquePaths(m, n):
return dfs(0, 0, m, n)
def dfs(i, j, m, n):
if i == m - 1 and j == n - 1:
return 1
if i < m - 1 and j < n - 1:
return dfs(i + 1, j, m, n) + dfs(i, j + 1, m, n)
if i < m - 1:
return dfs(i + 1, j, m, n)
if j < n - 1:
return dfs(i, j + 1, m, n)... | [
"weixiaomin.seu@gmail.com"
] | weixiaomin.seu@gmail.com |
5bfbd0a79be038c0a9806d3b3b4004637603c78c | 95ee0254472b7d7a3229b1aafca8ed295a13cf5c | /moringa_hub/wsgi.py | 14b88daa3f1ada7c605f589df6ac44534a069dd6 | [] | no_license | RKatana/moringahub | 7d45c670c058069317da86deab2fd5099b314560 | c8759adf8fbe44ac00103c3c623312146d921883 | refs/heads/master | 2021-09-09T06:28:54.700817 | 2019-03-07T16:53:20 | 2019-03-07T16:53:20 | 167,973,078 | 0 | 0 | null | 2021-09-08T00:45:10 | 2019-01-28T14:10:35 | HTML | UTF-8 | Python | false | false | 400 | py | """
WSGI config for moringa_hub 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"roduor41@gmail.com"
] | roduor41@gmail.com |
24dac16c4aac84445e61f99634c255b92cf0cb27 | 93ce63966751f2ebe79b3ce3b174e09f66652ddc | /client-py/setup.py | 43cb8453dddc88f8494839ab2ca1041187863ece | [
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"BSD-3-Clause",
"MIT",
"EPL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | zhanglingzhe0820/incubator-iotdb | 9d0e75a83d759059dbbf49a1baee0dba8beb6828 | cbbdc6caf51660e5817a4e9c854831d820315b72 | refs/heads/master | 2022-03-09T03:47:02.476105 | 2021-10-03T13:58:07 | 2021-10-03T13:58:07 | 229,366,808 | 1 | 0 | Apache-2.0 | 2019-12-21T02:42:17 | 2019-12-21T02:42:17 | null | UTF-8 | Python | false | false | 1,950 | 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... | [
"noreply@github.com"
] | noreply@github.com |
098cbabb7f98d84152d77807948b983d0614dcd4 | af08a83d2549c4468bd5cd9624472d019f7a447e | /projects/08/VMtranslator.py | c82019940d490c6c4e914f4e777484d7321212a4 | [] | no_license | awwkl/nand2tetris | a97f380d978f1df5cfa2c376947f35fc0413a702 | 0fd97306db189a39d7c64dab705c83a062e34fc8 | refs/heads/master | 2023-02-09T01:52:59.002552 | 2021-01-04T07:51:27 | 2021-01-04T07:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | import os # check if input is directory or file
import sys # command-line arguments,
import parser # parse .vm commands into nice arrays, ignores comments and blank lines
import codeWriter # return .asm code
pathname = sys.argv[1] # pathname can be direc... | [
"sky99aw@gmail.com"
] | sky99aw@gmail.com |
025de780542a4de0d528fb37ec990d44996cca19 | fa571a842f04bcbc77ff203a5ed6f6ee776eed6d | /keywords/codes/defkeyword.py | ee484d5db4128adb54ec86a4adb8116bafe3b444 | [] | no_license | krishna-rawat-hp/PythonProgramming | b25c0916475724e6d2de4b7d59cf40b5b5e8330b | d24df17ca6aff9271c44ef8c73b80c00cd065ded | refs/heads/master | 2023-03-11T19:24:34.529059 | 2021-02-27T14:09:22 | 2021-02-27T14:09:22 | 282,611,873 | 0 | 0 | null | 2020-07-26T10:38:54 | 2020-07-26T08:52:49 | null | UTF-8 | Python | false | false | 93 | py | def my_func(a,b): # def is used to define a function
c = a+b
print(c)
my_func(15,35)
| [
"rawatkrishnakant8319@gmail.com"
] | rawatkrishnakant8319@gmail.com |
7cf821bf15a32a637688390b90127482667b71d9 | fe6eaa2f3656dedcb2c1e937cc1363d19a0d3ec1 | /leetcode_python/231.power-of-two.py | 6c402eec05c33366e999760635c0f1d508c79f71 | [] | no_license | toyijiu/my_code | 4619ac6bc06c5032e01d5c215dbae516bbc4fe77 | dd163cc47e2c706504aba1d42322167fb93dd9e9 | refs/heads/master | 2020-08-31T14:49:18.188393 | 2019-11-27T08:57:55 | 2019-11-27T08:57:55 | 218,714,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | #
# @lc app=leetcode id=231 lang=python3
#
# [231] Power of Two
#
# https://leetcode.com/problems/power-of-two/description/
#
# algorithms
# Easy (41.63%)
# Total Accepted: 213.5K
# Total Submissions: 512.8K
# Testcase Example: '1'
#
# Given an integer, write a function to determine if it is a power of two.
#
# Ex... | [
"309378714@qq.com"
] | 309378714@qq.com |
7d31cb5286fe189f97049fbbe823e25ef89ce2d5 | 7a596dc0e121054fe5f05fae6c78774a57cf94ac | /setup.py | c6a683babc0762c4c1be30bfcd7d184061c327bb | [
"MIT"
] | permissive | nhoffman/swarmwrapper | 8fffae5ed5824313f054fd7edb1ed2d3897b9c02 | b62f955f843c76c4696320e2b2a14ce2b80e1807 | refs/heads/master | 2021-01-17T07:20:15.826516 | 2018-03-14T18:21:32 | 2018-03-14T18:21:32 | 42,473,732 | 3 | 1 | null | 2016-06-07T18:33:22 | 2015-09-14T20:00:11 | Python | UTF-8 | Python | false | false | 1,038 | py | import os
import subprocess
from setuptools import setup, find_packages
subprocess.call(
('mkdir -p swarmwrapper/data && '
'git describe --tags --dirty > swarmwrapper/data/ver.tmp'
'&& mv swarmwrapper/data/ver.tmp swarmwrapper/data/ver '
'|| rm -f swarmwrapper/data/ver.tmp'),
shell=True, stderr=... | [
"noah.hoffman@gmail.com"
] | noah.hoffman@gmail.com |
446ae61ead9e19b3ec2b66010f901b3be1bccb56 | bbd86adc96c98ed9f990b2da27c1162fd1ad6063 | /venv/Scripts/easy_install-script.py | e1a90b85b71b15ec04226a6c153ad5b11cf6941f | [] | no_license | danieldbucolo/BreakoutRPG | 23f1a96ee056470ada4d1e94c852abe94d04e158 | 64cf7b57c7da29870d88e069d67cfc38ee0544d0 | refs/heads/master | 2020-03-07T20:13:04.855006 | 2018-04-02T02:24:52 | 2018-04-02T02:24:52 | 127,691,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #!C:\Users\blizz\PycharmProjects\BreakoutRPG\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"danieldbucolo@gmail.com"
] | danieldbucolo@gmail.com |
4c29d96ac69582cce7badcf1ec34483a373a5f87 | 20460c5729e3cba3a1312e715d69ceced7aae655 | /CreateProxyExtensionHelper.py | 52ad0b3f1baa74695d918526e86fc3e9a94f144f | [] | no_license | Luzaofa/CreateProxyExtensionHelper | 3bebfdf85d847c321d452a3c06f1bfdf61c40281 | b2a0e828f460efebe2ef1babc932a55a2392e04a | refs/heads/master | 2020-06-20T05:16:59.670651 | 2019-07-15T13:48:30 | 2019-07-15T13:48:30 | 197,007,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,993 | py | import os
import re
import time
import shutil
import zipfile
from selenium import webdriver
class ExtensionHelper(object):
'''Selenium + Chrome 使用用户名密码认证的代理封装'''
CHROME_PROXY_HELPER_DIR = 'Chrome-proxy-helper' # Chrome代理模板插件目录
CUSTOM_CHROME_PROXY_EXTENSIONS_DIR = 'chrome-proxy-extensions' # 存储自定义Chrome... | [
"luzaofa@126.com"
] | luzaofa@126.com |
90bb00d15085ccf77adcc49cef48f5d958d5a43b | a7eed65e7853222bf565d93f7c723df84e3319c8 | /BRWH/jsonConverter.py | 29605dbb7b8a518cd8ef7099bc588ec64a7aa5db | [] | no_license | MuLx10/BRWH | b67deda5bbd96af0251b32a884b1592fc3dafc52 | f6ad0ce0fd5f740496a8ad4be5269b118c908ae7 | refs/heads/master | 2020-08-02T18:57:16.784648 | 2019-10-17T08:59:39 | 2019-10-17T08:59:39 | 211,472,292 | 1 | 2 | null | 2019-10-17T08:59:45 | 2019-09-28T08:55:35 | Python | UTF-8 | Python | false | false | 1,180 | py | import json
f = open('./data/stats.json','r')
d = json.load(f)
f.close()
from copy import deepcopy as cp
newd = {"name":"",
"img": "https://placehold.it/100x100/11ff99",
"children": []
}
data = cp(newd)
data["name"] = "L"
#from tqdm import tqdm
for i in d[:10]:
l, lc,rc = ... | [
"mehulkumarnirala@iitkgp.ac.in"
] | mehulkumarnirala@iitkgp.ac.in |
42dc77bec856336d6449923ae6f9d9c549c08799 | 27d3672f25ae518db34f21ff529f67a59f00354b | /enos/core/login/NormalDeviceLogin.py | ac89281cc6f630f1339ebb27b82eae31bae8dec6 | [
"MIT"
] | permissive | charleshuangcai/enos-device-sdk-python | 31927e31c2fa6b609a05719e9fb02330fe323c8b | bbbb31f4da7c4c4e6f457565faf0fb5cf15bb308 | refs/heads/master | 2020-12-14T20:40:24.728597 | 2020-01-19T09:02:23 | 2020-01-19T09:02:23 | 234,862,200 | 0 | 0 | MIT | 2020-01-19T07:58:28 | 2020-01-19T07:58:28 | null | UTF-8 | Python | false | false | 586 | py | from enos.core.login.BaseLogin import BaseLogin
class NormalDeviceLogin(BaseLogin):
def __init__(self, server_url, product_key, device_key, device_secret):
super(NormalDeviceLogin,self).__init__(server_url)
self.__server_url = server_url
self.__product_key = product_key
self.__dev... | [
"jieyuan.shen@envision-digital.com"
] | jieyuan.shen@envision-digital.com |
6628a388bace2393eeabadc627801d2da24ce852 | 6518eac167a0ba077da5983d692d203de4d7befe | /loss.py | 47b07aee09a17eaa41b43fced67a20c03212aad6 | [] | no_license | subhramit/Pytorch-CustomDataset-FasterRCNN | ff9d2e4d4053765fc41b1c9dba89b55ea3ae69e5 | eea70f63bac2d06328bbcf7b4b7667b86c0f1e53 | refs/heads/master | 2023-09-04T07:00:58.444161 | 2021-10-29T11:54:02 | 2021-10-29T11:54:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | import torch
import torch.nn as nn
from utils import tile
def rpn_loss_regr(y_true, y_pred , y_is_box_label , lambda_rpn_regr = 1.0 , epsilon = 1e-6, device='cpu'):
# Smooth L1 loss function
# 0.5*x*x (if x_abs < 1)
# x_abx - 0.5 (otherwise)
#... | [
"priyankpathak50@gmail.com"
] | priyankpathak50@gmail.com |
6019bd392dcf782eb899bd5437124693cb277199 | 820ab30c82c9a1037b8ba3ecb7f2040086eb1602 | /main.py | ce8030a5edec3804e91016c6c305192fd22af2c0 | [] | no_license | shizidada/spider-learn | 94d5880bdd2a6f40757fd36df18967d9d7a2c089 | 23dacd0705b80aa8bf01872bdddb700e5d0b257b | refs/heads/master | 2023-07-25T00:06:00.926046 | 2020-11-26T06:25:24 | 2020-11-26T06:25:24 | 138,179,824 | 1 | 0 | null | 2023-07-17T01:21:34 | 2018-06-21T14:17:46 | Python | UTF-8 | Python | false | false | 106 | py | # coding:utf-8
from scrapy import cmdline
cmdline.execute('scrapy crawl DianYingTianTangSpider'.split())
| [
"jiangjing@wshifu.com"
] | jiangjing@wshifu.com |
bf2ba430fec651a6083e1ed0da632ad60ef3d018 | 90e6fdda512dbc174bc3adc5679bbbfd018f6964 | /patient_project/__init__.py | ce121e13c530db40a1546aa9c48d1ca3a25d1313 | [] | no_license | Tesfit12/Patient_Visit_Tracker | 5c4cf8161deabf5d6472803eb42d3b8905a7d5e6 | c1e9df0060642fa487d2eef0509d45a7646f47b5 | refs/heads/main | 2023-02-17T16:19:14.316199 | 2021-01-20T07:10:37 | 2021-01-20T07:10:37 | 331,216,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | from flask_sqlalchemy import SQLAlchemy
import flask
import os
from flask_migrate import Migrate
from flask_login import LoginManager
# TODO / in this file the order is very important be care full !!! /.
# TODO / in this file the order is very important be care full !!! /.
app = flask.Flask(__name__)
app.config['... | [
"menkregrma12@gmail.com"
] | menkregrma12@gmail.com |
85b41403d976d2bde3c29ad9920647d052b05fdd | 7bce7a32cbb38f763755e329956f4dd66828fe76 | /products/views.py | 93d77f24dd1c8ffb773bcf71912cbf3e7b81d01b | [] | no_license | f1200/django_product_management_updated | 3470dcb7eef5f0cbf1b5ac7ce58bad34af060760 | 92c9696a7be3bc417d6e7099fd0b7237bb828ba3 | refs/heads/master | 2023-03-26T15:51:31.537743 | 2021-03-24T11:14:42 | 2021-03-24T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,029 | py | from django.shortcuts import render, redirect, reverse, get_object_or_404
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, Http404
from datetime import datetime
from django.contrib.auth.models import ... | [
"greatadib82@gmail.com"
] | greatadib82@gmail.com |
7cadf05b0287e2b1ac4e06d48cc1c1b1c2f2131d | 99a29f80d4ff7a8ac8aafb4b83ac128366824238 | /leasing/migrations/0039_landuseagreementinvoice_postpone_date.py | 0766855a368b346d74a99bec38f8d588f68709a5 | [
"MIT"
] | permissive | City-of-Helsinki/mvj | 850ff85539186217112cddc0ea2a3ccb0a8ff842 | af8f297ff3c86a6045ec5290e0477029cc3917b8 | refs/heads/develop | 2023-09-02T17:44:50.616714 | 2023-08-30T07:50:36 | 2023-08-30T08:29:17 | 87,910,985 | 2 | 9 | MIT | 2023-09-14T12:12:28 | 2017-04-11T08:43:59 | Python | UTF-8 | Python | false | false | 410 | py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("leasing", "0038_add_invoiceset_landuseagreement"),
]
operations = [
migrations.AddField(
model_name="landuseagreementinvoice",
name="postpone_date",
fiel... | [
"tomi@jarvi.pro"
] | tomi@jarvi.pro |
b840aac9db388a56e57b0408ba45224059d32b99 | 70c4fb22ccf20525ab8c9b1036c9536b43092588 | /Converter.py | bb5620b5407b37ca3a884ef5ba9b0d1f15b6156f | [] | no_license | XRSIL/ATR-Calculator | 9c88b3b73ec2c80c20ec5db8f414dabb80ff6a99 | 4ffccd76ec1abbdc4116528f5d5312d3a5f2c2cb | refs/heads/main | 2023-04-19T14:05:22.406788 | 2021-05-11T16:15:53 | 2021-05-11T16:15:53 | 341,958,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,995 | py | import pandas
import datetime
import wget
import os.path
import shutil
class Createlink:
def __init__(self, period):
self.primary_dt = datetime.datetime(2020, 10, 12, 1, 50, 0)
self.current_dt = datetime.datetime.now()
self.primary_seconds = period
self.secondary_seconds = 160245660... | [
"noreply@github.com"
] | noreply@github.com |
1f988aaf0574c0b563a1b4ce8a5b8ac5bd6bf260 | 1fa7f59c88660c91886319f98326fcf8160c23b3 | /main_code/models/model_rnn.py | 539494e9ea490e169ea0367d6714d19b1e2590a8 | [] | no_license | mcculzac/Volkswagen | 600a31c073e71085bda59e1a484c477330108d41 | bd635529c69f958dddc4f4b90a0d508e04dab9ed | refs/heads/master | 2020-04-16T00:19:43.602270 | 2019-05-04T22:55:42 | 2019-05-04T22:55:42 | 165,135,217 | 0 | 0 | null | 2019-05-04T22:55:43 | 2019-01-10T21:42:54 | Python | UTF-8 | Python | false | false | 2,216 | py | #################
# Zac McCullough
# 3/13/2019
#################
"""
RNN Model capable of taking in parameters of training parameters
"""
#########
# imports
#########
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
from keras.utils import np_utils
from keras.prepro... | [
"mccul157@msu.edu"
] | mccul157@msu.edu |
2a0a609fe2c4ecd3202a7a2f684c896ad4fef537 | 7cdfcf11eb130c19c0d1331912d3336783676576 | /src/MB.Backend/manage.py | 031117b54c985e1064735684c3ea6a67ae70cc44 | [] | no_license | Jertusz/DevMuster4 | 4fd61417e42a9fed6befe0eb13f581ea57fbd0dd | 461d534e5ed1866fe1c6d4e43d0e609ef6d48704 | refs/heads/master | 2023-01-28T20:58:56.197401 | 2020-12-12T14:59:31 | 2020-12-12T14:59:31 | 320,634,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mathbattle.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"jendziu@gmail.com"
] | jendziu@gmail.com |
42da47fee276ea78097cfb9dfb6028641b24a08a | e9e7dd82d8286c9415b733f147510cdca026419a | /backend/app/post/migrations/0007_auto_20190711_0941.py | 1bddba6c73974107dd8186786ca336dfe62cde25 | [] | no_license | cristianciacu1/cristianciacu | 03d0d7829e727164bb6a29304cf9a624114f32f0 | a8fd23e4bebbaa216d9d47b7ce43ef7e326f87cf | refs/heads/master | 2022-12-21T05:58:50.519859 | 2019-07-30T10:03:49 | 2019-07-30T10:03:49 | 195,945,265 | 0 | 1 | null | 2022-12-17T07:43:20 | 2019-07-09T06:20:20 | JavaScript | UTF-8 | Python | false | false | 1,062 | py | # Generated by Django 2.2.3 on 2019-07-11 06:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('post', '0006_auto_20190711_0030'),
]
operations = [
migrations.AddField(
model_name='post',
name='image1',
... | [
"cristianciacu@gmail.com"
] | cristianciacu@gmail.com |
ca9d1c8ddb7b7e3972991561b0f5531f4a39f65e | fc06df33b3067b184bf47c69c764d572cbdf4374 | /task1/app2/views.py | 044b406841b15a80099c1f8fcedfd6b7a5017df3 | [] | no_license | nikhilkotiya/chillitary_technologies_task | 37f67b1a2b1d73fbbfbd3c5541c8c4d38b4a4069 | d90ba6f8af900f91505b866cff2906340e6527da | refs/heads/main | 2023-05-26T07:49:51.869757 | 2021-06-12T05:41:43 | 2021-06-12T05:41:43 | 375,787,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.shortcuts import render
from .models import Table
# Create your views here.
def data(request):
return render(request, "index.html", {'data': Table.objects.all()})
| [
"nikhilkotiya8@gmail.com"
] | nikhilkotiya8@gmail.com |
70590955dcb9a30010e61f0cd997a35cff8f09d2 | 86890320c9f6e86698f1d85d2998fbbb958e56e5 | /Pro/login/schema.py | 4d5b3d9783ea2412da44a98489c4500cca327b15 | [] | no_license | RanjitC2000/SEProj | 618595bef8125acff3d51542fa0f4f98959b0ad7 | a0656b82cd191a991dda293e0b0c68c46e6b1546 | refs/heads/master | 2023-03-13T15:15:38.705455 | 2021-03-10T05:24:11 | 2021-03-10T05:24:11 | 346,230,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | import graphene
from graphene_django.types import DjangoObjectType
from .models import Student,Faculty
class StudentType(DjangoObjectType):
class Meta:
model = Student
class FacultyType(DjangoObjectType):
class Meta:
model = Faculty
class Query(graphene.AbstractType):
all_studen... | [
"ranjit.c2000@gmail.com"
] | ranjit.c2000@gmail.com |
9ff3cb9b017241961e37cecfd61306f80392569b | 82bb3fe794e5cf143cff9b2b166e7e6b5fd796e4 | /Lambda/process_lambda.py | e9431e36403348474d451db13050d8bc5d2913d0 | [
"MIT"
] | permissive | ayush159/Shopper-Sentiment-Analysis | c119dbd6df0824f515a8bd66769d13be63720c5c | e3b849543fdb2b2b961810faa74eae07d0a37b09 | refs/heads/master | 2020-04-19T01:06:51.851717 | 2019-01-27T23:16:14 | 2019-01-27T23:16:14 | 167,864,011 | 1 | 1 | null | 2019-01-27T23:16:15 | 2019-01-27T22:04:12 | CSS | UTF-8 | Python | false | false | 2,599 | py | import json
import urllib
import boto3
import time
import os
# Boto Clients
s3 = boto3.client('s3')
rekognition = boto3.client('rekognition')
firehose = boto3.client('firehose')
# Parameters
firehosestream = os.environ['firehose_stream']
archive_bucket = os.environ['s3_archive_bucket']
def lambda_handler(event, con... | [
"ayush.sethi1093@gmail.com"
] | ayush.sethi1093@gmail.com |
f6b85844ae241476a94fc75c33793cf360b02aa6 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-drs/huaweicloudsdkdrs/v3/model/batch_set_objects_response.py | 1e18f86df848790e44e33d3a24e185439a9fa96c | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class BatchSetObjectsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
992d63f9727ade093eb8b0a3ba3c3d1dd548324a | cf5bd1540f717274b6b6f965cbd3d99d8ad1591d | /pset6/similarities/helpers.py | 1cb7b105edc9ac17378cd0137d906a8285ed5014 | [] | no_license | madelinejiang/CS50 | 8a566dc1fff704f48a6d9ba7432ea4f1f3583f4b | facc088b13a3c1fc65f5020f665c91c953c532e1 | refs/heads/master | 2020-03-18T05:09:24.038359 | 2019-04-11T03:13:11 | 2019-04-11T03:13:11 | 134,327,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | from enum import Enum
#from pandas import DataFrame #comment out to see matrix
class Operation(Enum):
"""Operations"""
DELETED = 1
INSERTED = 2
SUBSTITUTED = 3
def __str__(self):
return str(self.name.lower())
def distances(a, b):
#the following has been heavily influenced by Bernd Klein... | [
"madelinejiang@gmail.com"
] | madelinejiang@gmail.com |
862c4269fd260804df4f1319bae80e4d6604e0b0 | d48ddc1e4c4b1e379ed1c1971c84aa3c104edff2 | /pymachinetalk/application/constants.py | 1ab9e927720c09d627c62449d2566163a69b1225 | [
"MIT"
] | permissive | machinekit/pymachinetalk | 1b66e472f364c2d3fe6206823d6a50e41effce9e | be4bffd011ea76039407f043553552b8a0b69f2d | refs/heads/master | 2021-01-12T19:19:52.051968 | 2020-09-22T19:40:52 | 2020-09-22T19:40:52 | 44,979,021 | 6 | 7 | MIT | 2020-09-22T19:40:54 | 2015-10-26T15:47:57 | Python | UTF-8 | Python | false | false | 1,505 | py | # coding=utf-8
# protobuf
import machinetalk.protobuf.types_pb2 as types
import machinetalk.protobuf.motcmds_pb2 as motcmds
# noinspection PyUnresolvedReferences
from machinetalk.protobuf.status_pb2 import *
ORIGIN_G54 = types.ORIGIN_G54
ORIGIN_G55 = types.ORIGIN_G55
ORIGIN_G56 = types.ORIGIN_G56
ORIGIN_G57 = types.... | [
"mail@roessler.systems"
] | mail@roessler.systems |
d15655a5d8e48ef53a6bb125c6dbadebaab690b3 | 14152716776318614771283111da76416fca8dd2 | /2018/ros_catkin_ws/devel_isolated/rosmaster/bin/rosmaster | 900d2b47fbc65e8a8f28c159c2571f88e1b4eafd | [] | no_license | Nishida-Lab/RCR | c9a84d02977c50ca8029e6ec66335f79d6a994f4 | c19c76c0a5fe8178cea37c8706af27193f10877d | refs/heads/master | 2021-01-17T01:29:37.678087 | 2018-07-11T05:04:50 | 2018-07-11T05:04:50 | 34,010,743 | 0 | 0 | null | 2017-05-23T06:27:16 | 2015-04-15T18:18:00 | C | UTF-8 | Python | false | false | 572 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# generated from catkin/cmake/template/script.py.in
# creates a relay to a python script source file, acting as that file.
# The purpose is that of a symlink
python_script = '/home/pi/RCR/2018/ros_catkin_ws/src/ros_comm/rosmaster/scripts/rosmaster'
with open(python_script, ... | [
"atsuki.yokota@gmail.com"
] | atsuki.yokota@gmail.com | |
556cc3314b023aaab5a462d23db49fc1d46593c8 | bfe6c95fa8a2aae3c3998bd59555583fed72900a | /MyCircularQueue.py | cc36333e54e793ae307e426135a9c5b28f28d8dd | [] | no_license | zzz136454872/leetcode | f9534016388a1ba010599f4771c08a55748694b2 | b5ea6c21bff317884bdb3d7e873aa159b8c30215 | refs/heads/master | 2023-09-01T17:26:57.624117 | 2023-08-29T03:18:56 | 2023-08-29T03:18:56 | 240,464,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | class Node:
def __init__(self, val):
self.val = val
self.next = None
class MyCircularQueue:
def __init__(self, k: int):
self.size = k
self.front = Node(-1)
p = self.front
for i in range(k):
p.next = Node(-1)
p = p.next
p.next = s... | [
"zzz136454872@163.com"
] | zzz136454872@163.com |
aacf2395c527e874466c1a5a0ca00c58ab2e4556 | 885709544d174c5994a9d4e2a730ae3f3ca0149e | /Verkefni 3.2/microblog/venv/Lib/site-packages/alembic/testing/engines.py | 037f76cd1e8f44b8249b23ee307168da4af82d26 | [] | no_license | Kiddiflame/VEF-2V-05DU_2018 | 5136f2c5a3d76f3d738ef16416ecbca62a0e12a8 | ef0e9a5cbf4b2a6b9ae72431e42480da10a616c4 | refs/heads/master | 2021-05-13T12:17:54.943312 | 2018-05-14T16:42:04 | 2018-05-14T16:42:04 | 116,668,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # testing/engines.py
# Copyright (C) 2005-2017 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""NOTE: copied/adapted from SQLAlchemy master for backwards compatibility;... | [
"noreply@github.com"
] | noreply@github.com |
78f1bbbac57e08c9ab82998003bbfa53c0df65e8 | 56ffe678e18f00661d55bbedf28b3d37edb54434 | /plot_overlap.py | 1890eb03566fa154894b2620e3120e9259e3b4bf | [] | no_license | amitkiucaa/weaklens_pipeline_by_Surhud_modified_by_Amit | dd05d862878edb4836fb77177f6ebc40a5296579 | f9bf5ddd6f4a69fa449ce8163dadf54c80234312 | refs/heads/master | 2022-12-01T13:03:55.669033 | 2020-08-23T12:08:21 | 2020-08-23T12:08:21 | 284,535,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,052 | py | import time
import sys
import os
import math
import numpy as np
from scipy.interpolate import CubicSpline
from scipy.interpolate import interp1d,interp2d
from scipy.interpolate import UnivariateSpline
from scipy.integrate import quad
from scipy.integrate import dblquad
from astropy.io import fits
from scipy.integrate i... | [
"ratewalamit@gmail.com"
] | ratewalamit@gmail.com |
b00d24bdaa963b7dce38d0f8b5acd9b32e6fede0 | 3f6ec45359913e1aa558965145cccb4ac57694e7 | /blogengine/blogengine/urls.py | 285241629c64676de9f912f4c3ff216ddad6b9a5 | [] | no_license | MeHowMcNick/djangoBlogTutorial | c25d7974d61c97d38697ef49b1380ba18417d3f7 | a693345ffef09bb5d65aeddbaa69cceedeb58711 | refs/heads/master | 2022-04-21T10:47:30.181256 | 2020-04-14T17:17:43 | 2020-04-14T17:17:43 | 255,676,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | """blogengine URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"michal92m@op.pl"
] | michal92m@op.pl |
4b5d8cda123982a7bf9ea9b55c6df262a915dee8 | 345b95997c636ff991e5a222e384d633c2cf5e88 | /algos/main.py | 978e66fc49c67760765ce533395a6965edec23d7 | [] | no_license | HelioStrike/LIDAR-VR | 79b19c48c9d206447c3069bc26dad4e1e8361a34 | da265c9b3756a689591768cda6716b5d34569ffc | refs/heads/master | 2020-04-12T03:33:12.010802 | 2019-07-29T17:04:12 | 2019-07-29T17:04:12 | 162,270,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | import laspy
from utils import *
from algos import *
sparsifyLASFile("/home/krypt/Downloads/velodyne/Hoboken_001.las",\
"/home/krypt/Downloads/velodyne/Hoboken_001_400.las",400,400,400)
inFile = laspy.file.File("/home/krypt/Downloads/velodyne/Hoboken_001_400.las", mode="r")
print(len(inFile.X))
'''
las2off("/ho... | [
"rageofepicfury@gmail.com"
] | rageofepicfury@gmail.com |
fab329434c8ea76e5276701f33497ef1b71cb2da | c98eae1eb14029eb408c4d23b4a7ae3db0adafe5 | /wrap_main.py | 9517c7f1ebffba3fc57e793249086624140805f2 | [] | no_license | Oya-Tomo/wikipedia_test | 04b56594a24bcd503e8f80e179abb0c010364751 | fb2a3ced35c546b2697ef45184f71e9f59fa33e5 | refs/heads/main | 2023-04-26T19:01:24.012655 | 2021-05-31T10:05:15 | 2021-05-31T10:05:15 | 372,457,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import wikipedia
wikipedia.set_lang("jp")
words = wikipedia.search("メンヘラ")
print(words)
res = wikipedia.page(words[0])
print(res.summary)
| [
"noreply@github.com"
] | noreply@github.com |
04d8fde3d0b96a9efc0831bf453b436c0c48593e | a50f9913c278dd93e8fcbd9e130e3c86633d373e | /chuck norris.py | 38e7d20e68a0defd471274a24ade38f17d7b8471 | [] | no_license | djorll/codingame | f220688270e45f2cacd973c8a9e1bef050ab0901 | f7c58da10829c898edcab771f10969114963ac32 | refs/heads/master | 2020-04-20T16:49:18.493650 | 2019-09-10T13:34:11 | 2019-09-10T13:34:11 | 168,969,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
message = input()
# Write an action using print
# To debug: print("Debug messages...", file=sys.stderr)
bin_repr = lambda s, coding="ascii": ''.join('{0:08b}'.format(c) for c in s.en... | [
"joel.jezequel@gmail.com"
] | joel.jezequel@gmail.com |
c4e3dd0465f6769dda4e6a543f7b34f04af16e08 | 25102819feca3ce607c7985e2824c461a3268643 | /configuracao_basica.py | 483ea804b060cdb81164ef7415363ecc69147a7a | [] | no_license | Kuds1994/prova_fpf | 1fdf6e88f06ba00446fde8b81c54fa9d8440be18 | b119be784b78ec6afad0e344efce082fab937e01 | refs/heads/master | 2022-12-17T10:22:14.870120 | 2020-09-15T21:25:36 | 2020-09-15T21:25:36 | 295,851,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,556 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import time
driver = webdriver.Firefox()
driver.get("https://emulator.tp-link.com/C50V4_BR_Emulator/Emulator/index.htm")
... | [
"noreply@github.com"
] | noreply@github.com |
fd04531a6160895296b3f33fcf3c099d5f39248c | 8f5379e747944a0807f30851353c5169bc2f0eb1 | /oxxo/oxxo/settings.py | c6031d8080cafd90ea705ca7d1329638d5e9880a | [] | no_license | Gianlu1259/apis | e2d1f692755174c4857257bd75624b3a41bc3aa7 | 7b4db3671246bd3c415150688769f8107e38ea49 | refs/heads/main | 2023-04-15T15:31:42.934598 | 2021-04-27T15:08:17 | 2021-04-27T15:08:17 | 322,667,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | py | """
Django settings for oxxo project.
Generated by 'django-admin startproject' using Django 3.1.4.
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 pathlib im... | [
"gianluu68@gmail.com"
] | gianluu68@gmail.com |
ca7dc3b58354ec5f7b8177aa40ae4f2f1c8c1694 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Internet/Web/dev/PyMailCGI_2.1/cgi-bin/onEditPageSend.py | aaeda84076959bbddb4003c8c1a90814ed51323b | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | #!/usr/bin/python
###############################################################
# On submit in edit window--finish a write, reply, or forward;
# in 2.0, we reuse the send tools in mailtools to construct
# and send the message, instead of older manual string scheme;
# we also now inherit attachment composition from th... | [
"zui"
] | zui |
06188f674d93cbb3cdf50cc0d19989d44524f20c | 551271cf8a5b5a4a49d99e763acf1f6bdd99c514 | /lab_7/urls.py | cb69125c1a60b5606b342a319111419470450003 | [] | no_license | mochaul/ppw-lab | 39d0658f6a6a5c92e231e080549481069cd8bbc4 | d53a35afee2e7efc16e7d2c3f8dd9c251a90d7c1 | refs/heads/master | 2021-04-06T14:00:52.951652 | 2018-06-08T10:31:14 | 2018-06-08T10:31:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from django.conf.urls import url
from .views import index, add_friend, validate_npm, delete_friend, friend_list, get_friend_list, friend_description
urlpatterns = [
url(r'^$', index, name='index'),
url(r'^add-friend/$', add_friend, name='add-friend'),
url(r'^validate-npm/$', validate_npm, name='validate-npm'),
... | [
"praditomo@gmail.com"
] | praditomo@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.