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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
52019a1bfed7f26846c5ebb30936679a94eaf97f | d15035bd0523295d222ddcd622195912a5cc2f99 | /InterviewBit/list_cycle.py | 843882ce651b7f6a509bd4c021b84750d2abece7 | [] | no_license | EduardoVaca/Competitive-Programming | cd69f43da294284a78de2b9e1ee7061bc522eb78 | 4143b51bbd2a65ea5b46a3447663eb0eff9161f2 | refs/heads/master | 2021-01-20T00:40:28.486041 | 2017-08-14T22:29:24 | 2017-08-14T22:29:24 | 83,161,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
# @param A : head node of linked list
# @return the first node in the cycle in the linked list
def detectCycle(self, A):
visited = set()
curr... | [
"vacalalo@gmail.com"
] | vacalalo@gmail.com |
2da1e688ed05f5cb84c5af24b260395a80713e43 | 3afcbc632db73e87a8b1ce8e3a5223c5a5da1451 | /source/ple/delay_plotting_nodes_ordered.py | 430a7350b160e3b99003ee448f3c8ea8fdffc764 | [] | no_license | ruben11291/master-thesis | cc32ff790dd6f5dd8dcc9305460419ca2ece0e54 | 1668bfa96bafdf5ab7ffffcf8e1b9dbf041772d7 | refs/heads/master | 2020-06-03T20:55:35.957604 | 2014-10-09T13:58:34 | 2014-10-09T13:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,459 | py | """This script makes a plot representing the bandwith of a node in front of the time"""
dst={"France":0,"Switzerland":1,"Belgium":2,"Netherlands":3,"Spain":4,"Germany":5,"Italy":6,"Czech Republic":7,"United Kingdom":8,"Ireland":9,"Portugal":10,"Hungary":11,"Poland":12,"Norway":13,"Greece":14,"Sweden":15,"Finland":16,"... | [
"ruben.perez@alu.uclm.es"
] | ruben.perez@alu.uclm.es |
b40188c35263eb2a38a24d4cd2baa6aeb5c9a6d2 | 96b8e52ec797e64ba34ae46bb23452798e96616e | /scrap.py | 782f1e45443c47c9a17880bbad389d26801bfd77 | [] | no_license | RaulinN/BA6_SHS_DH | c0b0b69d40715785f060491d4ef52c6976a20acf | b7d21f2e2e111bd05ba51cc7c89d645aa9f40e3e | refs/heads/master | 2023-05-04T07:48:14.605134 | 2021-05-31T16:51:38 | 2021-05-31T16:51:38 | 359,808,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,015 | py | import requests
from bs4 import BeautifulSoup
import pickle
import time
import sys
import pandas as pd
import os
from PastaMaker import *
import keywords
def get_id(letter, existing_elites=[], limit = 100000):
"""
Prends en entrée la lettre du début du nom des élites que l'on souhaite extraire
et un table... | [
"ira.dobbelaere@epfl.ch"
] | ira.dobbelaere@epfl.ch |
40cf3cfc03f4e41404ac0966c81f9327edc1fa42 | 68580b38d7ce2f5c4ef9c3ec20aa09d8a3bd8787 | /src/test/guokr.py | e976431cf29532914c9d6c137b6add487c5eea19 | [] | no_license | Frude/python | e8b27971b46adf004cd10f752f988ea86da8f317 | f8c2c2a980f3cca3d8283b2336081cae11654261 | refs/heads/master | 2020-09-27T00:02:59.029753 | 2016-08-18T02:05:58 | 2016-08-18T02:05:58 | 65,955,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | # -*- coding:UTF-8 -*-
from GetSoup import Soup
import re
from bs4 import BeautifulSoup
from apicloud.dataCloud import DataCloud
from Get_html import get_html
from upload import upload
from random import random
from time import ctime,sleep
import sys
import os
from log.main import m_log
'''
Created on 2016... | [
"czq347@hotmail.com"
] | czq347@hotmail.com |
aa32538b420d1262db70ddec070387de02ff8f49 | 1a83e8e6457881c47babb08b8e6ecd8e00bfb30b | /lab1/searchAgents.py | 7cabb3bd59f0bf5c7153f2604b58d0cf1cc2ac77 | [
"MIT"
] | permissive | fgulan/ai-fer | 0dd24c8ee553ebef7f6ecae3b2816f7f05f11a88 | 1631c1a8c58a2b11db21ae40061b2e618a529fa6 | refs/heads/master | 2021-04-28T18:50:06.236527 | 2018-02-17T18:32:38 | 2018-02-17T18:32:38 | 121,881,207 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 21,769 | py | # searchAgents.py
# ---------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley... | [
"filip.gulan@infinum.hr"
] | filip.gulan@infinum.hr |
d0789467ec3dd1f0b7fa3dec5e854cc556e9f14d | 073d693d3369e41a29f842c0b153241e47e1b2ac | /test/functional/wallet_listsinceblock.py | e197a528aec3b0e473b598c0331e5fcd6dca9283 | [
"MIT"
] | permissive | robervem/sbercoin | 2a7984a7d77a63c51957e9b8b6df6bc759925d2e | ba61e50fab7e3b15e39a9cbe3a7adf08cab96d39 | refs/heads/main | 2023-02-09T21:16:56.425759 | 2021-01-07T20:09:19 | 2021-01-07T20:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,819 | py | #!/usr/bin/env python3
# Copyright (c) 2017 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the listsincelast RPC."""
from test_framework.test_framework import SberTestFramework
from test_framew... | [
"k.arya2946@gmail.com"
] | k.arya2946@gmail.com |
4d7e6b720c8613a434e813697ed7290c1f4143ff | 5ae880c16efc3932f9893023abf7bf9d5be96542 | /src/web_pm25.py | af35b3a42a6be5328e0f750e737fef157c0b6e8a | [] | no_license | minsoo3380/ReallyFine | ae9bb4f9c8eaaeff64d92f030a468b809d8e97bc | 5e5583a17617504f6386adb354aea8647a82cf06 | refs/heads/master | 2020-05-18T07:47:40.023384 | 2019-11-23T18:49:17 | 2019-11-23T18:49:17 | 184,273,409 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,619 | py | import re
import sys
import ast
import pymysql
import requests
from bs4 import BeautifulSoup
from datetime import datetime
url = None;
now = None;
year = None;
month = None;
day = None;
hour = None;
t_hour = None;
host = 'localhost'
user = 'root'
pswd = '123123'
dbname = 'ReallyFine'
chrset = 'utf8'
if len(sys.argv)... | [
"minsoo3380@naver.com"
] | minsoo3380@naver.com |
93ac241919e6397982f959d7414982f777a8249f | 50bc2e7da2c0e8d941c99a6cfb482f731e5ee5cb | /p005.py | f9fdf5befbb9c07a9afcff4550a7dd67c5ad7936 | [] | no_license | abachman/project_euler | e1207268af46d4704d617d50ae3cef4796a50d26 | b006d31d696b18b37948111bf75296af76e4e218 | refs/heads/master | 2016-09-05T19:51:30.713652 | 2010-01-19T02:13:33 | 2010-01-19T02:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | """
2520 is the smallest number that can be divided by each of the numbers
from 1 to 10 without any remainder.
What is the smallest number that is evenly divisible by all of the
numbers from 1 to 20?
"""
import psyco
psyco.full()
def lcm(a, b):
na = a
nb = b
while b != 0:
t = b
... | [
"adam@adam-laptop.(none)"
] | adam@adam-laptop.(none) |
2a210351a0c226a2b43b78c50b5900542c2130a5 | 222ab936c99c923c1a75c803a685900540f6551a | /todo/main/urls.py | 3d66d836bcd7f1619f6d96dabef449663e133c6b | [] | no_license | Immaculated/todo_edu_django_basic_by_sergkot | e61075dfc7887ead88664a256c3fc0db95fdaa26 | 458a4cc35d4e5cbbb7658596e0d212ed1b12d3ba | refs/heads/main | 2023-04-21T23:40:14.316456 | 2021-05-11T17:52:58 | 2021-05-11T17:52:58 | 366,337,895 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | from django.urls import path
from main.views import main_view, create_view, edit_view, delete_view, MainView, CreateView
app_name = 'main'
urlpatterns = [
# path('', main_view, name='main'),
path('', MainView.as_view(), name='main'),
# path('create/',create_view, name='create'),
path('create/', Create... | [
"FKopk3290"
] | FKopk3290 |
604b0c7c174ad79b4bdc7d8e4b17806b687eb403 | b299ceb502e56dfc113e50f14128dca5bd9c5bf8 | /lists/urls.py | 512c2e1ade508a5445e9dc134bc3f03cef0847e3 | [] | no_license | felipe-lee/superlists | cd11043a48bbb1466e6a8b2ff37e37a7a8d671a0 | 663e4df57a5664dd6723687ea762b862f5232e7b | refs/heads/main | 2021-05-09T09:37:21.011431 | 2018-05-06T16:47:58 | 2018-05-06T16:47:58 | 119,450,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # -*- coding: utf-8 -*-
"""
Lists app URL Configuration
"""
from django.urls import path
from lists.views import NewListView, my_lists, share_list, view_list
app_name = 'lists'
urlpatterns = [
path('new', NewListView.as_view(), name='new_list'),
path('<int:list_id>/', view_list, name='view_list'),
path('u... | [
"felipe.lee.garcia@gmail.com"
] | felipe.lee.garcia@gmail.com |
2b3f114f513fe7e984f7776fced87f68fec3f841 | 831658c4e15b755291fd3cabef33a8e83217f0a4 | /blog/models.py | f28b2678da307c51aea8bcad682f260cb7ca75f6 | [] | no_license | giorgia-amici/Django-Girls | a74000cb8b8cbf3e25863a23c52c04af792c5cbc | 37a7280713aaae798e6554d494537b43c2a8a9c7 | refs/heads/master | 2021-01-10T19:28:13.286670 | 2014-12-29T17:05:31 | 2014-12-29T17:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author= models.ForeignKey('auth.User')
# the ForeignKey is a link to another model
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.now)
published_date =... | [
"giorgia1london@gmail.com"
] | giorgia1london@gmail.com |
37f740d4e6a0dcaa6173671c51c141554d7a7332 | 7366f292ede1ce81481e4b07fab70433a854012f | /searching-and-sorting/sorting/mergeSort.py | edf1cd25577d28a6d9ff1aabf49b223915893332 | [
"MIT"
] | permissive | nishantml/Data-Structure-And-Algorithms | 86534936d20c00e31ee71485ca8e07232b5c7671 | 1f75bdbddb5fa4bccba762515460c73280cde65d | refs/heads/master | 2023-03-05T22:31:19.027993 | 2021-02-21T16:50:31 | 2021-02-21T16:50:31 | 275,635,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | import math as Math
def mergeSort(array):
"""call itself to divide the array till the size becomes one"""
if len(array) == 1:
return array
# Split Array in into right and left from the middle
length = len(array)
middle = Math.floor(length / 2)
left = array[0:middle]
right = arra... | [
"nishantbhushan10@gmail.com"
] | nishantbhushan10@gmail.com |
9ca70b73c8bf4b1c270260185396cd72a71202f1 | a8fd281b2c7336faa9df5b872b465824fe6efa68 | /lecturecode/code_lec4.py | b33b3583975d70e0df4c9ecb5d3cb49be7735b88 | [] | no_license | YangfengPeng/bcamp | b0a064b09cdf02f3378039a71c037decf39fcc98 | 9c8a555c1e58d13ea43abe9d58d61a5f02465a1d | refs/heads/main | 2023-07-05T16:29:56.331953 | 2021-09-02T12:27:34 | 2021-09-02T12:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 22 15:41:03 2021
@author: ruslebiffen
"""
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
import statsmodels.api as sm
N1 = 100
N2 = 250
N3 = 1000
N4 = 10000
N5 = 10000... | [
"tobias_ingebrigtsen@hotmail.com"
] | tobias_ingebrigtsen@hotmail.com |
5f3ef402e43e381527b710f81ee8970f9ac7c5a1 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /tests/system/providers/google/marketing_platform/example_analytics.py | 0d8f94ec38e552ad8bfc9ef564376ae17a7b7d4e | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 3,724 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
07a24866f1f9f5ad1e5bfc1531e3d4910f4387ea | 3a91171eea92584701bc3f5a36b3ed09705dfc83 | /bot.py | c93bd0cfac74d7af948fe935fa0d52ea78271122 | [] | no_license | Rita-Zey/python_project1 | 15d7aadc931a8b0265454175107a8ef45d03bd33 | 2de67140104d9f42bd9127d69366e9c40d48f763 | refs/heads/main | 2023-02-27T17:02:19.444646 | 2021-02-09T17:01:31 | 2021-02-09T17:01:31 | 329,972,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | def greet(bot_name, birth_year):
print('Hello! My name is ' + bot_name + '.')
print('I was created in ' + birth_year + '.')
def remind_name():
print('Please, remind me your name.')
name = input()
print('What a great name you have, ' + name + '!')
def guess_age():
print('Let me guess your age... | [
"77503408+Rita-Zey@users.noreply.github.com"
] | 77503408+Rita-Zey@users.noreply.github.com |
b53f3b347806934c4c56b745053b183d33898247 | 469300405fc2da95132ef432071c15565a7434b5 | /python_hw2.py | c84d68e977ddd3643ab73d8bac8082fad56f7a54 | [] | no_license | AnaPolly/Poppins-bag | 8653b0b48478bd3c54b51026dc5edc6338c6ebd0 | fbe38652b70f8ef039f352a6190dd8a822b7dd20 | refs/heads/main | 2023-08-06T00:05:04.905636 | 2021-10-07T11:24:15 | 2021-10-07T11:24:15 | 407,823,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | friend_1_name = "Isa Pereira"
friend_1_email = "isa.pereira@example.com"
friend_1_age = 38
friend_1_the_best = True
friend_2_name = "Dri Renno"
friend_2_email = "dri.renno@example.com"
friend_2_age = 38
friend_2_the_best = True
friend_3_name = "Si Fernandes"
friend_3_email = "si.fernandes@example.com"
friend_3_age ... | [
"noreply@github.com"
] | AnaPolly.noreply@github.com |
e019f16db7ba4fbd11cc190bd1425769fda97daa | 9d5b0bcc105f7a99e545dd194d776a8f37b08501 | /tf_quant_finance/math/integration/simpson.py | d011b774ef2f030af974719aec196bfd567db508 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | priyalorha/tf-quant-finance | ab082a9bd6d22fd3ea9a3adcf67a35dc23460588 | 72ce8231340b27b047279012ffe97aeb79117cdf | refs/heads/master | 2023-02-23T11:08:30.161283 | 2021-02-01T13:57:43 | 2021-02-01T13:58:14 | 334,980,881 | 1 | 0 | Apache-2.0 | 2021-02-01T14:45:14 | 2021-02-01T14:45:14 | null | UTF-8 | Python | false | false | 3,828 | py | # Lint as: python3
# Copyright 2019 Google LLC
#
# 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/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"tf-quant-finance-robot@google.com"
] | tf-quant-finance-robot@google.com |
8a2cb7352d70ac35a77a3d30b75ffdd7dd1a365c | c87df0f7ca2f118ee9167d0dd38e2017f756fc0d | /www/deploy/wsgi/prod.py | 04dad79c385aa5d5f4680a2e20a2d4381d82ff41 | [] | no_license | 3ka5-cat/trends | a5de0dd4e47aeb63ac8486f826ee970fb6c08d64 | 2ff899e86f2254213cba4e4bbdd9b9b4a4987368 | refs/heads/master | 2021-01-25T08:42:50.794120 | 2015-07-09T11:19:55 | 2015-07-09T11:19:55 | 38,866,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import os
import sys
sys.stdout = sys.stderr
# Set environmental variable for Django and fire WSGI handler
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['DJANGO_CONF'] = 'conf.prod'
os.environ["CELERY_LOADER"] = "django"
from django.core.wsgi import get_wsgi_application
_application = get_wsgi_applica... | [
"antik.fnt@gmail.com"
] | antik.fnt@gmail.com |
6edc7dfa66db212afd134b9fed089f336bae9ae6 | c4d8565e829eb96afd4c09049a0c6816efb1e2c6 | /learning_users/basic_app/migrations/0001_initial.py | f74ce561a339d7a0d376a5e481a350a813897291 | [] | no_license | anuradha-1704/django-deployment | 01a439d563bb76aa2cfc30d14df81ed59105b160 | e654b9ed299a10e131ac47c9324ea31b9f770019 | refs/heads/master | 2022-11-11T15:57:08.602650 | 2020-07-05T12:55:51 | 2020-07-05T12:55:51 | 277,287,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | # Generated by Django 3.0.7 on 2020-07-01 03:41
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"singhanu1704@gmail.com"
] | singhanu1704@gmail.com |
f6cf59c2e84f50c4a223b072f2e2074a3ecab041 | 3f92a94de32b3480f803f256f82c0851962fe133 | /training/multi_label_trainer.py | e9e4048d643c6d2f67cf519487acb09eb3de8cd1 | [] | no_license | PatrickRogg/ner-products-skills | 10d70510b312406d182701052cef3a58ea7c85c1 | a31a13b91774729a50377c94c7a801e8bdbf825f | refs/heads/main | 2023-04-18T19:20:24.376520 | 2021-05-01T19:16:06 | 2021-05-01T19:16:06 | 363,478,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import torch
from transformers import Trainer
class MultiLabelTrainer(Trainer):
def compute_loss(self, model, inputs, return_outputs=False):
labels = inputs.pop("labels")
outputs = model(**inputs)
logits = outputs.logits
loss_fct = torch.nn.BCEWithLogitsLoss()
loss = loss_f... | [
"learning-platform@outlook.com"
] | learning-platform@outlook.com |
4994b7c70bcda28df176710abb3fb3a476a2060c | c3dc14ab07cb474509591f42caa391632c6e4987 | /test/test_SM/test_find_purchases_spetstorgi.py | 37ef72e1faf72876d2a42e4cd6afb4b806437fc9 | [
"Apache-2.0"
] | permissive | IrinaSlobodchikova/marker | 75fa1064ac97ba3bb93c63f3b5cc448e3b9ac002 | 72f981134fb025a94348cd2bc829fa8430a01372 | refs/heads/master | 2021-08-19T18:34:08.349397 | 2018-11-20T11:31:55 | 2018-11-20T11:31:55 | 146,416,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,989 | py |
#global l
#l = ('0', 'За весь период', 'Сегодня', 'Вчера', 'Последние 7 дней', 'Текущий месяц', 'Прошлый месяц', 'Текущий квартал',
# 'Прошлый квартал', 'Текущий год', 'Прошлый год', 'Выбрать период...')
# rostelecom@rt.ru
def test_sm_find_purchases_by_text_first_publish_today_spetstorgi(app):
app.test... | [
"Irina.Slobodchikova@interfax.ru"
] | Irina.Slobodchikova@interfax.ru |
46914611421331bc8c3b99a2f18da0e2a7b11766 | eb3c6e228a05e773fad89b42da0f54a1febbd096 | /plenum/bls/bls_bft_utils.py | 67d709cfdbd21e7a593db606e4930394d7383904 | [
"Apache-2.0"
] | permissive | amitkumarj441/indy-plenum | 1f45e0c095b9aa27e8306e29c896aa1441a20229 | 7cbcdecd5e6e290530fe0d5e02d9ea70ab1c9516 | refs/heads/master | 2021-07-21T02:19:24.219993 | 2017-10-27T08:48:03 | 2017-10-27T08:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py |
def create_full_root_hash(root_hash, pool_root_hash):
"""
Utility method for creating full root hash that then can be signed
by multi signature
"""
return root_hash + pool_root_hash
| [
"alexander.sherbakov@dsr-company.com"
] | alexander.sherbakov@dsr-company.com |
c7a7801595da9f87818f808e5b2cce9ec5584b55 | b6e4c5150b91688c6e92438aa5765fd9028a8c5f | /Cython/Compiler/Tests/TestJediTyper.py | 8e974eb6889429c3d546d9283acea8e2d657c62f | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | aigrama/cython | f3ea22c61e81309df0888cc23954f055278cb0b0 | 3a254499a4d85e6cc9fb15191d90c3831123c6ac | refs/heads/master | 2021-01-14T12:34:44.001832 | 2014-08-28T18:31:06 | 2014-08-28T18:31:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,980 | py | # -*- coding: utf-8 -*-
# tag: jedi
from __future__ import absolute_import
import unittest
from textwrap import dedent
from contextlib import contextmanager
from tempfile import NamedTemporaryFile
from ..ParseTreeTransforms import NormalizeTree, InterpretCompilerDirectives
from .. import Main, Symtab, Visitor
from .... | [
"stefan_ml@behnel.de"
] | stefan_ml@behnel.de |
a6e3d6887d21f18e3a81f1b8e3d68a524735ffef | f3143ca3dd2d5c69709294e2ed1953266de7392a | /JoinEpidemic/forms.py | 691b9bf56befe1166c395d6b3932db0d33aa5dbf | [] | no_license | kewok/GiveMeFever | d34de6ff3552efe31e0c0820e8de7af4e70e8a78 | 81e40c6edbf32b4325f6ed450548d6dd41008663 | refs/heads/master | 2020-05-03T12:04:03.013594 | 2019-04-12T23:17:20 | 2019-04-12T23:17:20 | 178,607,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,794 | py | from django import forms
from django.forms.models import modelformset_factory
from django.utils.crypto import get_random_string
from django.core.exceptions import ValidationError
from django.utils import timezone
from .models import HostSettings
from SetupEpidemic.models import EpidemicSettings
from GMF.models import... | [
"okam3550@stthomas.edu"
] | okam3550@stthomas.edu |
07ea42242a1fbfdc5bfff607bf62e2431db95c88 | b363a41cc603dfdcc737bbf7abc5e96e5d651586 | /docs/conf.py | d2c5d073a5f88d60cc63666c28fe4d70404a73e2 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | davidblewett/gunny | 0514278240efb8e015314370050930ca54bd6b43 | 8f1a5e63a37349d6e59be517281d9b68fa61a0a3 | refs/heads/master | 2021-01-18T14:40:56.462948 | 2014-01-05T17:59:29 | 2014-01-05T17:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,326 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# complexity documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# 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
# au... | [
"davidb@sixfeetup.com"
] | davidb@sixfeetup.com |
9ca578dfa4481209f802f09fe1f2d284c66c4342 | 86fc644c327a8d6ea66fd045d94c7733c22df48c | /scripts/managed_cpe_services/customer/single_cpe_site/single_cpe_site_services/cpe_lan/end_points/end_points.py | c1ba06f6470036abac86a2fa5229dae0de42c9a8 | [] | no_license | lucabrasi83/anutacpedeployment | bfe703657fbcf0375c92bcbe7560051817f1a526 | 96de3a4fd4adbbc0d443620f0c53f397823a1cad | refs/heads/master | 2021-09-24T16:44:05.305313 | 2018-10-12T02:41:18 | 2018-10-12T02:41:18 | 95,190,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,803 | py | #
# This computer program is the confidential information and proprietary trade
# secret of Anuta Networks, Inc. Possessions and use of this program must
# conform strictly to the license agreement between the user and
# Anuta Networks, Inc., and receipt or possession does not convey any rights
# to divulge, reproduce,... | [
"sebastien.pouplin@tatacommunications.com"
] | sebastien.pouplin@tatacommunications.com |
4e05e1fa102d045a8e508ef349dc1f9b214b35bf | 6554be98afb33461885b5011890a19a90f53472a | /discussionwall/apps.py | 4abca3ca7be74bac1d916befda9c28a3a1b788a2 | [] | no_license | Mirror-Score/Discussion-api | 49e7d4a21827d39d82f9f76fd33ff90ecb73c3ba | 3418a415f6217a01a8bc1dfcf32dd3adac2a9493 | refs/heads/master | 2023-07-01T00:24:33.640212 | 2021-08-07T18:39:01 | 2021-08-07T18:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from django.apps import AppConfig
class DiscussionwallConfig(AppConfig):
name = 'discussionwall'
| [
"namantam1@gmail.com"
] | namantam1@gmail.com |
9576363bed25a00e07b7943964282357554d0aec | 7bf802a429d48f8baa717eb3e5667dabb1322cfb | /MI/Blient/urls.py | f48ce2b58aadb7a9c4d03cfbb613e9ded8505892 | [
"Apache-2.0"
] | permissive | ITgaoS/MI | 89476d0bcb620445982f13bc54a0e2d80c44141e | d35d53fa2c18ae0f5764f0568dbb01bca35050f3 | refs/heads/master | 2020-09-05T03:57:34.226630 | 2020-01-03T07:12:25 | 2020-01-03T07:12:25 | 219,975,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.urls import path,include
from Blient import views
urlpatterns = [
path('login/',views.login)
] | [
"603128825@qq.com.com"
] | 603128825@qq.com.com |
873c042e8cd5f2b7ede759c9556fe59f9cdcf17c | f72766d81fd3e532b7d1f4d95d2e83e14cc8241c | /cws/mainapp/views.py | 040229e6dfea5b79e451cf453e87e6a47e88c20e | [] | no_license | DeReP/course-work-4 | 88340c3015aed7b805bc19ee1f81db835ca7c422 | f333e2b359825f056788080334dc01bd68c79892 | refs/heads/main | 2023-04-30T13:23:33.292996 | 2021-05-13T17:13:47 | 2021-05-13T17:13:47 | 362,076,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.paginator import Paginator, PageNotAnInteger
from django.views.generic import ListView
from mainapp.serializers import ContentCardSerializer, CommentSerializer
from rest_framework import viewsets
from rest_framework.decorators imp... | [
"denisrepnin99@gmail.com"
] | denisrepnin99@gmail.com |
0e4bfda947998d89214f5752fb47e5f7a38c69f4 | e3c4bc40edd660ed3ea8905b38324bc327b76df3 | /main.py | 428eb34f6f6df331760fb44f5756f41fecea2709 | [] | no_license | mearafGitHub/Agri-AI | b55fc38dc551b38641f39f46f6b004e3f4e7c48e | 0c3f2deb9f2b4128876109eb6a0382c3f5f180be | refs/heads/master | 2023-04-04T15:54:27.205703 | 2021-04-22T08:14:52 | 2021-04-22T08:14:52 | 360,442,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | from kivymd.app import MDApp
from kivymd.uix.screen import MDScreen
from kivymd.uix.label import MDLabel
from kivymd.uix.button import MDIconButton, MDFlatButton, MDRectangleFlatButton
from kivy.lang import Builder
from kivymd.uix.dialog import MDDialog
from helpers import username_helper
class Agro(MDApp):
... | [
"mearaftadewos@gmail.com"
] | mearaftadewos@gmail.com |
f704cf61cb51810d863d902fd775d9cbbf0da782 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02238/s136410577.py | efae5c2b562906dd438512222d9cbfb70501d96a | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #coding: utf-8
n = int(input())
color = ["white" for i in range(n)]
d = [[] for i in range(n)]
global t
t = 0
M = [[False for i in range(n)] for j in range(n)]
for i in range(n):
data = list(map(int,input().split()))
u = data[0]
k = data[1]
if i == 0:
start = u
for v in data[2:2+k]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed76c472229c5f13c176c8c307011fc6e2e01e17 | 32ae799a5a2906fefcc2f20bc27e777d9562a2be | /src/base/migrations/0016_auto_20160322_2136.py | 4ea52486b56048239d331bbbe2f3c2278992c43d | [] | no_license | cgkv-rehoboth/stek | d8c4103e13bbba30c7de4a4f4710cd0f3356e10f | 53f6a66534117b277626f673d32c9627d0c913c0 | refs/heads/master | 2021-04-19T01:58:34.554537 | 2019-09-10T14:45:53 | 2019-09-10T14:45:53 | 39,624,926 | 3 | 1 | null | 2015-12-23T11:38:20 | 2015-07-24T10:00:12 | Python | UTF-8 | Python | false | false | 401 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('base', '0015_auto_20160322_2135'),
]
operations = [
migrations.AlterUniqueTogether(
name='profile',
... | [
"a.j.rouvoet@gmail.com"
] | a.j.rouvoet@gmail.com |
f706c41962f21c4b764b0b4ccea05a2eed8290b9 | 881ca022fb16096610b4c7cec84910fbd304f52b | /libs/scapy/contrib/__init__.py | d1ce31ce09076bfc086bfb4b8be14c6235ba16f5 | [] | no_license | mdsakibur192/esp32_bluetooth_classic_sniffer | df54a898c9b4b3e2b5d85b1c00dd597d52844d9f | 7e8be27455f1d271fb92c074cb5118cc43854561 | refs/heads/master | 2023-07-31T14:29:22.989311 | 2021-09-08T11:18:21 | 2021-09-08T11:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
"""
Package of contrib modules that have to be loaded explicitly.
"""
| [
"mgarbelix@gmail.com"
] | mgarbelix@gmail.com |
a693f848a13454a6cfa0984f201bdd2971733ff4 | a39d0d1f0e257d0fff5de58e3959906dafb45347 | /PythonTricks/DataStructures/arays.py | 4dd812657bd50c08d6dda6321c7d0a1f08ba79a0 | [] | no_license | Twishar/Python | 998d7b304070b621ca7cdec548156ca7750ef38e | 1d1afa79df1aae7b48ac690d9b930708767b6d41 | refs/heads/master | 2021-09-23T14:18:36.195494 | 2018-09-24T12:33:36 | 2018-09-24T12:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | import array
arr = ['one', 'two', 'three']
print(arr[0])
print(arr)
# Lists are mutable:
arr[1] = 'hello'
print(arr)
del arr[1]
print(arr)
# Lists can hold arbitrary data types:
arr.append(23)
print(arr)
# Tuple - immutable containers
arr = 'one', 'two', 'three'
print(arr[0])
print(arr)
# arr[1] = 'hello'
# del... | [
"stognienkovv@gmail.com"
] | stognienkovv@gmail.com |
aa4a7a7bec6c8d765c3e813b46ac392fb2f243d9 | 98032c5363d0904ba44e1b5c1b7aa0d31ed1d3f2 | /Chapter10/ch10/race_with_lock.py | 5b939cb8db37805feba1ecc83d58524902c0916b | [
"MIT"
] | permissive | PacktPublishing/Learn-Python-Programming-Second-Edition | 7948b309f6e8b146a5eb5e8690b7865cb76136d5 | 54fee44ff1c696df0c7da1e3e84a6c2271a78904 | refs/heads/master | 2023-05-12T08:56:52.868686 | 2023-01-30T09:59:05 | 2023-01-30T09:59:05 | 138,018,499 | 65 | 44 | MIT | 2023-02-15T20:04:34 | 2018-06-20T10:41:13 | Jupyter Notebook | UTF-8 | Python | false | false | 576 | py | import threading
from time import sleep
from random import random
counter = 0
randsleep = lambda: sleep(0.1 * random())
def incr(n):
global counter
for count in range(n):
with incr_lock:
current = counter
randsleep()
counter = current + 1
randsleep()
... | [
"33118647+romydias@users.noreply.github.com"
] | 33118647+romydias@users.noreply.github.com |
85f5b79b23e25c1ac872cd2189355359ac846054 | 05b1068ce39f944c2c20a2654ed865c198504255 | /klp/klprestApi/KLP_Map.py | c68195b207973010fb3cf22e10259c8e3f852e88 | [] | no_license | vishnu81/KLP-MIS | 5f80abe099b72ad06c1804c445abd4c31419094e | 8a93fdb384e97feb3d0c0d448c6e426c2eb927ae | refs/heads/master | 2021-01-16T23:20:57.951273 | 2012-12-03T05:17:47 | 2012-12-03T05:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from django.conf.urls.defaults import *
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django_restapi.resource import Resource
from django_restapi.model_resource import Collection, Entry
from django_restapi.responder import *
from django_restapi.receiver import *
from klprestA... | [
"sree@sree-laptop.(none)"
] | sree@sree-laptop.(none) |
d448574fb3725a8d6dc5fef6401a51fda2584702 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/googlecloudsdk/command_lib/error_reporting/exceptions.py | 0ff475910503910e5c0b0a043a2e41e2f0aa50de | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 1,036 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
86e66ed67db6b305063094b5f221bd4ae4226c13 | 389bebe167a434a9d63e5644e6bdd6282fed6772 | /sagi/release.py | 36fcfc74b227b3021d99a3f7ce05426b70b83fdd | [
"MIT"
] | permissive | sagittarius-eye/edmc-sagi | d2a9d58d3c404006c8e0a09aca553c76d35fa918 | 05caa642f385ad5552ea8488e0a49609f6516186 | refs/heads/master | 2020-12-29T06:29:45.885265 | 2020-02-06T11:38:58 | 2020-02-06T11:38:58 | 238,492,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,223 | py | import sys
if sys.version_info[0] == 3:
import tkinter as tk
from io import BytesIO
else:
import Tkinter as tk
import StringIO
import myNotebook as nb
from config import config
import requests
import os
import zipfile
import shutil
class Release:
plugin_dir = None
def __init__(self, version... | [
"mail@147lo.ch"
] | mail@147lo.ch |
b1b0dba70a51a58b591e362710af8ccfca950175 | 23d30667228a21c6a24dc4c457b27289ec5e0b7b | /makeVideo.py | 02cf21c4c405a592307dede03e6b33d9086aa566 | [] | no_license | Ai-Ganeration/ImageProcessingScripts | d44679f0b3148f4ab43a95c79678d639a7e86ef7 | 3d5d2670b1b3ac2cc75f8a2bf2b018deff434b4d | refs/heads/master | 2023-06-20T19:14:45.769969 | 2021-07-19T18:49:44 | 2021-07-19T18:49:44 | 385,872,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | import imageio
import time
import numpy as np
from pathlib import Path
from PIL import Image
from tqdm import tqdm
def make_project_progress_mp4():
current_folder = Path('.')
current_folder_list = list(Path('').iterdir())
movieName = Path(current_folder, 'out_movie_{0}.mp4'.format(int(time.time())))
r... | [
"joegxu22@gmail.com"
] | joegxu22@gmail.com |
2a660bc3ffcd18ac1e5e10f29152695ef819da0f | 1d91b9467939a13e260cbd3fbcec4c9556752e63 | /flask_dino_utils/filtering.py | 1722bf8993b74340617833917589cc695fc876c1 | [
"MIT"
] | permissive | dinocloud/flask-dino-utils | 034139149fff7263ab83bc4ab7cb026468e36276 | 974517e1e3d97d8ab8450b9266023e229e1fa0f0 | refs/heads/master | 2021-06-07T20:24:59.267417 | 2018-07-29T23:21:41 | 2018-07-29T23:21:41 | 98,652,391 | 0 | 2 | MIT | 2020-12-16T23:12:37 | 2017-07-28T13:31:16 | Python | UTF-8 | Python | false | false | 1,395 | py | import ast
from werkzeug.exceptions import BadRequest
FILTER_SEPARATOR = '$'
FILTER_VALUES_SEPARATOR = ';'
def _filter_query(model_class, query, filter_string):
if filter_string is None:
return query
# model_class = type(query) # returns the query's Model
raw_filters = filter_string.split(FILTE... | [
"franco.salonia@dinocloudconsulting.com"
] | franco.salonia@dinocloudconsulting.com |
c7fcba6d2dd92205ca0170823326e75f126c0e10 | beaa425942c1737a2518513bfeb0a3ee83ee2d57 | /test_pattern_utils.py | 889eeaa2c6b2afa78a9427c1eae73d156d875016 | [] | no_license | LinniQ/IFN680-Artifitial-Intelligence | 27e2b23dc4ad6e18bf0a4d54c861c360146bc69c | 05c159ad936a825162d3fa7e8d530ac885517067 | refs/heads/master | 2021-01-19T14:17:43.707890 | 2017-10-29T17:23:47 | 2017-10-29T17:23:47 | 100,895,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py |
import numpy as np
import matplotlib.pyplot as plt
import pattern_utils
imf, imd , pat_list, pose_list = pattern_utils.make_test_image_2(True)
#
#p1 = pattern_utils.Square()
#p2 = pattern_utils.Triangle(2)
#
#print(p1)
#print(p2)
#
#imf = pattern_utils.pat_image(
# [p1, p1, p2],
# ... | [
"noreply@github.com"
] | LinniQ.noreply@github.com |
2835c3635e81729d30e6751389b99288364912e4 | e2a68c556fb0db14c9f2f11c5b274497a0fac406 | /shop/models.py | 6942a5a1f3e9e0e68339c41f05c68d7adf7a6f96 | [] | no_license | carolynjanie/Bizmart | 9829758c9abd0677ec619f0aef61664d2006f518 | 11714df5f265c59188f58206a510e30d306811b7 | refs/heads/master | 2020-04-02T04:31:04.228245 | 2018-06-01T10:26:38 | 2018-06-01T10:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | from django.db import models
from django.core.urlresolvers import reverse
# Create your models here.
class Category(models.Model):
name = models.CharField(max_length=200, db_index=True)
slug = models.SlugField(max_length=200, db_index=True, unique=True)
class Meta:
ordering = ('name',)
ver... | [
"kamwanasamwel@gmail.com"
] | kamwanasamwel@gmail.com |
3b455dce7c42013f223342ae6818e6c70d46e621 | 2158ebb00133f419aabd3f44bbe00f33aa0ffad2 | /complaint/migrations/0014_complaint_resolved_date.py | e134bdc0564de21f6c19e13870fd74ca04180502 | [] | no_license | ishan-mangotra/grievance-redressal-system | 566b8217a6462236297dab972f3df604882ff39a | 65704928bb7c5c9e0c3e6c2bde73cfb5ac80234c | refs/heads/master | 2020-06-01T01:11:46.845870 | 2019-07-09T13:42:30 | 2019-07-09T13:42:30 | 190,570,787 | 0 | 0 | null | 2019-06-06T11:35:40 | 2019-06-06T11:35:40 | null | UTF-8 | Python | false | false | 449 | py | # Generated by Django 2.2.3 on 2019-07-04 06:34
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('complaint', '0013_auto_20190703_2336'),
]
operations = [
migrations.AddField(
model_name='complaint... | [
"f20170903@pilani.bits-pilani.ac.in"
] | f20170903@pilani.bits-pilani.ac.in |
04b561687f11c413d8a426d330e33b7c67103bef | 91448aa6882fb66a4c4ec187885dc3b8876c0949 | /.dotfiles/bin/filltemplate | 36a68b933dad924859ffcf3fcc83b2c7b31541d7 | [] | no_license | Kaylier/dotfiles | 39d72f93b2d0b9704999fc22119658982da76ace | a195bb2e693efbe3514be3cf8e189a0e67123d3a | refs/heads/master | 2020-04-06T05:09:15.392976 | 2020-04-05T13:53:40 | 2020-04-05T13:53:40 | 55,157,724 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | #! /usr/bin/python3
import sys, os
import argparse
from string import Formatter
import datetime
class NonceTuple(tuple):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def __getitem__(self, key):
return key
class InputDict(dict):
def __init__(self, *args, **kwargs):... | [
"kaylier@openmailbox.org"
] | kaylier@openmailbox.org | |
f7947c52d4481d75b19b6f6490176ffac5f568a6 | dd46c63ef4f9daffe67d8360142336d248302926 | /myproject/myapp/admin.py | 57dd61da5f81765c9c169d770bfbafb5a6d48f69 | [] | no_license | indrakumar722002/webdevelopment | a62bddb23ad69a5c3d8e1eebdf8c50871fda1443 | 3978e98854a363eccd61b2d53c312c0f6e813483 | refs/heads/master | 2022-12-14T07:16:07.737833 | 2020-09-20T15:32:09 | 2020-09-20T15:32:09 | 297,103,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.contrib import admin
from myapp.models import Bio
# Register your models here.
admin.site.register(Bio) | [
"noreply@github.com"
] | indrakumar722002.noreply@github.com |
91b849e900044ed54bf41ef89839d496d7edea56 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_gunslinger.py | 05089d95d9ae89b34ed5d0ce0aaa83ee93969be4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py |
#calss header
class _GUNSLINGER():
def __init__(self,):
self.name = "GUNSLINGER"
self.definitions = [u'especially in the past in North America, someone who is good at shooting guns and is employed for protection or to kill people']
self.parents = []
self.childen = []
self.properties = []
self.jsondata ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
402d6b18c9b5d6ed5fd941f80c0c23988f760ca4 | f7a75a12546eb4cd260a326379336d8929d5c076 | /UAS.py | c74ccdef6083ae7fc27776f122f60ef857157a25 | [] | no_license | Tiara-081/Tugas-Algoritma-dan-Pemrograman | a40849a875c7fcb6d38e3d165bdef3d1a5610c34 | 7233a2f3bd120f72bd8aed3c15077f626d8b8abb | refs/heads/main | 2023-06-11T23:28:25.246816 | 2021-07-07T13:10:22 | 2021-07-07T13:10:22 | 376,686,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,072 | py | '''''
AUTHOR : TIARA
KELAS : 2C
NIM 20083000081
'''''
#IMPORT TGL dan OS
import datetime
import os
#SET CLEAR = CLEAR SCREEN
clear = lambda: os.system('cls')
#SET TANGGAL
tanggal_sekarang = datetime.datetime.now()
#PERULANGAN PROGRAM
jwb = 'y'
while jwb == 'y':
#DAFTAR LIST
List_kode... | [
"noreply@github.com"
] | Tiara-081.noreply@github.com |
4888153745ea34d4c15768a4a8e942d57823c159 | 71e324d2e7c9557a9cfec01997a44a66539ac2e6 | /Chapter_08/object_3_seperate.py | bc01ecd017f07f5efe52cb0fb90a2fb4a449db82 | [] | no_license | ulillilu/Python_Practice | 2706a72b22243f4d76bf239f552bd7da2615c1ef | f2b238176f7e68b3fa0674ce4951aaa4206c15d3 | refs/heads/master | 2022-11-29T17:58:52.035022 | 2020-08-13T17:01:49 | 2020-08-13T17:01:49 | 287,334,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | #객체를 처리하는 함수
def create_student(name, korean, math, english, science):
return{
"name": name,
"korean": korean,
"math": math,
"english": english,
"science": science
}
def student_get_sum(student):
return student["korean"] + student["math"] + student["englis... | [
"noreply@github.com"
] | ulillilu.noreply@github.com |
8c18a2515beac0972d4760bcf73d68aec9f59e15 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02702/s763305864.py | c1f2a064512072f127149a2d43913b8cc8dc8cd7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | S = input()
dp = [0]*(len(S)+1)
cur = int(S[len(S)-1])
mod_10 = 1
count_num = [0]*2019
count_num[0] += 1
for i in range(len(S)):
dp[len(S)-i-1] = cur
count_num[cur] += 1
mod_10 = (mod_10*10)%2019
if i <= len(S)-2:
cur = (cur+int(S[len(S)-i-2])*(mod_10))%2019
ans = 0
for i in range(2019):
ans... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
748ba57cf89dcdd66b898d345938928ec78c11b0 | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /32_best.py | 99e35e658b452b484a3f56877cf8d1ea52efde61 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | class Solution(object):
def longestValidParentheses(self, s):
"""
:type s: str
:rtype: int
"""
if len(s) == 0:
return 0
dp = [0] * len(s)
for i in range(len(s)):
if s[i] == "(":
dp[i] = 0
else:
... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
4f446507441c2a4797c4d9e708098b595f81d3c5 | aa2020f6646a8e165a80d0bd3e2da7620f8cfb80 | /rescue_mod.py | 273f9b6607b8a19bb53ba62fe4f84a9a802d042a | [] | no_license | PinkSheepDog/codefest | 54a24e9772000ab815d0b1688071a6d022e75bbd | 617c17c4fdea7f45d3df2fb405ffd79b6c5b4188 | refs/heads/master | 2020-09-08T14:01:29.916001 | 2019-11-12T10:19:53 | 2019-11-12T10:19:53 | 221,153,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import sys
import geocoder
from rescue_auto import *
import sqlite3
class MyForm(QtGui.QDialog):
def __init__(self,parent=None):
QtGui.QWidget.__init__(self, parent)
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.conn = sqlite3.connect('disaster')
self.cursor... | [
"noreply@github.com"
] | PinkSheepDog.noreply@github.com |
13cff0d8ca01678b20325df2d874b25f17aff44d | 72a8a95145956c1cf05cc9a613aa47250e982449 | /satellite/envs/satellite_envs.py | 1aebd36c8142a681d2b185bc64ef40bd7db49918 | [
"MIT"
] | permissive | mkunesch/gym-satellite | 4080e40ba657cbfc6586195063a9cdd033fc11ed | b117c1c28b7cb01caba93dbed1073dfcfa03fac8 | refs/heads/master | 2020-03-20T03:17:31.873195 | 2019-11-01T01:35:09 | 2019-11-01T01:35:09 | 137,141,441 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | """Satellite environments for OpenAI gym."""
from .satellite_basic import SatelliteBasic
class SatellitePerturbation(SatelliteBasic):
"""Satellite environment with initial perturbation.
The satellite is put into the correct orbit but its radius and angular
velocity are perturbed. The agent has to return... | [
"m.kunesch@damtp.cam.ac.uk"
] | m.kunesch@damtp.cam.ac.uk |
389be9260718db46419da7ebcf49936e4c53fcd0 | 0c919fc7c66272e6b7ceb0f10bf20ef8d508c21d | /DukeMTMC/motion/m_mot_model.py | 37ed9e536558f091e06d5222c7d1b385e3836158 | [] | no_license | yinizhizhu/MOT_GN | b4eab12a3030dab8cf1f560425f030061e737441 | f2781431cc6e57bdd1a0c3bf93f87292576a31b8 | refs/heads/master | 2020-03-27T21:18:26.849046 | 2019-12-19T09:01:30 | 2019-12-19T09:01:30 | 147,133,888 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,550 | py | import torch, math
import torch.nn as nn
from m_global_set import criterion_s, u_s, e_s
v_num = 6 # Only take the appearance into consideration, and add velocity when basic model works
u_num = 100
e_num = 1 if criterion_s else 2
uphi_n = 256
ephi_n = 256
# uphi_n = 512
# ephi_n = 1024
class uphi(nn.Module):
d... | [
"lijiahe19941013@sina.cn"
] | lijiahe19941013@sina.cn |
583b62f1e64e5314f317ba7ac3f3626952b2bcff | 0e6262932746db9a8cae6147cdc1341e7b0d8b42 | /discussions/threads/urls.py | dfd85b42ff10f3084421630e4d1dfa527be0eb8d | [] | no_license | svschou/discussion_test | 8618b146367fb70c3dd6ed48afc24260fb83f55b | 175f53ba097a0da3d0442b1e44b74d0cd670b5d2 | refs/heads/master | 2022-11-20T03:06:45.421899 | 2020-07-20T14:08:38 | 2020-07-20T14:08:38 | 263,418,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | from django.urls import path, reverse_lazy
from . import views
app_name='threads'
urlpatterns = [
path('',
views.PostsView.as_view(), name='all_posts'),
path('posts/new',
views.PostCreate.as_view(), name='new_post'),
path('reactions',
views.ReactListView.as_view(), name='reactions'),
path('reaction/<int:pk>... | [
"svschou@umich.edu"
] | svschou@umich.edu |
afc8f2bf08df0703f759b13e99e9b4c3ff9e26a4 | e2255da9f41a3ca592f5042c96ec8dc1f5ceba21 | /google/appengine/ext/mapreduce/api/map_job/__init__.py | 9347a8bdc947888f6886b093371cbbe34aac3d61 | [
"Apache-2.0"
] | permissive | KronnyEC/cliques | 2a2b1eb0063017f3dbe7de6a42a98d21a7cffb37 | 2fd66c4c4ea4552ab8ef6d738613f618a1a74fc7 | refs/heads/master | 2021-01-24T05:05:49.142434 | 2014-08-18T06:30:32 | 2014-08-18T06:42:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | #!/usr/bin/env python
#
# Copyright 2007 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"josh@pcsforeducation.com"
] | josh@pcsforeducation.com |
d0fb24f28c2ec27cd9e6e2a7952e61012fa0dc50 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/cloud/azure/azure_rm_routetable.py | 1dc6180ba8335b5645e02e1f39d13a54a3e496bc | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 6,015 | py | #!/usr/bin/python
#
# Copyright (c) 2018 Yuwei Zhou, <yuwzho@microsoft.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
497198b59569852c0be9f471dd324acb2550d938 | 7ea1ce55cf2b88dc2d5d378e1bc78c16eb929b03 | /articleapp/migrations/0003_article_like.py | bcdb7c00c090bac7a7971fb83dfed7a487f1c991 | [] | no_license | Uh-hub/git_4_ban_2 | 89a667f7ed7e593d57d4205885d8a876e37ad1c0 | 52c0c52ac0cb5537a773295a3b2948389468af70 | refs/heads/master | 2023-07-20T06:35:29.915368 | 2021-08-31T01:44:06 | 2021-08-31T01:44:06 | 382,211,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # Generated by Django 3.2.4 on 2021-08-24 02:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articleapp', '0002_article_project'),
]
operations = [
migrations.AddField(
model_name='article',
name='like',
... | [
"tabacal3590@gamil.com"
] | tabacal3590@gamil.com |
1b7970d9a98146f6d0795a3bc7f112ddc616dacb | 53b8a006081341fd14962f46f6f9b361a4d57345 | /wcslint.py | 34779b28cba40223511858f8af24d7406ef4d1b6 | [] | no_license | hsso/hssopy | 9b6009897f1fd28ec7dd71e90b84b772550c1e1a | 60e8d5853a3da638bbbc6e456b897cd32e45f990 | refs/heads/master | 2021-01-10T20:44:07.261142 | 2017-04-25T03:05:06 | 2017-04-25T03:05:06 | 24,440,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | #!/usr/bin/python
import sys
from astropy.io import fits as pyfits
hdus = pyfits.open(sys.argv[1], mode='update')
for i in hdus:
if 'CUNIT1' in i.header and 'Degrees' in i.header['CUNIT1']:
i.header['CUNIT1'] = 'deg'
i.header['CUNIT2'] = 'deg'
hdus.flush()
hdus.close()
| [
"miguel.deval@gmail.com"
] | miguel.deval@gmail.com |
e13fe5af3a9acaff486417fedd87270c31830d4c | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200321232603.py | 3011254a2f67dbc34040fee7f27f648bd06eec26 | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | import os
import subprocess
import re
from datetime import datetime
import time
from statistics import mean
numberOfTests = 10
tabuIteration = '10'
tabuDuration = '0'
numberOfCities = '50'
final_solution = []
list_coverage = []
print(f"\n\nTest for Tabu Search with this config: \n\tIterations : {tabuIteration} \n... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
bea5e88034f13856fa849fa5768d945f9fb8b1a6 | a9f8c5384937360bd99ea0eef4d9db977eb0f2e0 | /coto_scraper/coto_scraper/pipelines.py | f9bf854d3bed2f3dd336c58a64d948ab3af3b991 | [] | no_license | NicolasRampoldi/CotoScraper | 11456ea5f76ae33ed498d5c83797c059b66edf84 | d24644ee4e579b99249b3e1e621d9a60f81892fa | refs/heads/main | 2023-01-24T14:50:50.785092 | 2020-11-25T15:18:37 | 2020-11-25T15:18:37 | 302,969,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
# useful for handling different item types with a single interface
from itemadapter import ItemAdapter
class CotoScraperPipeline:
def process_i... | [
"nrampoldi@itba.edu.ar"
] | nrampoldi@itba.edu.ar |
4cbaa23d61034ed2852451fd4fd03e02f0eb5ea0 | b6922f90a21dcb270ad18586c22ec23107df4708 | /ex2.py | 91b5de9dbd2ef6d9b94f70914b4b24eaaed42206 | [
"MIT"
] | permissive | nguyennam9696/Learn_Python_The_Hard_Way | ef5620f1feca49ddb7cf4435b5cb93f811755884 | 402ffad8d8dc80f0c1f541d8e3d69980268bb559 | refs/heads/master | 2016-09-06T04:11:02.387599 | 2015-09-06T01:21:20 | 2015-09-06T01:21:20 | 41,979,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | print (100 - 25 * 3) % 4
print 3 + 2 < 5 - 7 | [
"nguyennam9696@gmail.com"
] | nguyennam9696@gmail.com |
e64859e345db2e670b6366ede5981f370ddbdad1 | cf1663c4d4b75ee3adbe5d93d356d47481d336c3 | /task_3_pol_detect.py | 8c974ca1a0af37fe10ae6ad4b9af9a5005d42981 | [] | no_license | harry-124/e-Yantra | 34a0eb13d306cd7f77a6b5a9d9fb8aa401a82c70 | 8f8d5ab658a7fe3c870298733c9f65d5b1d58051 | refs/heads/master | 2020-04-17T12:39:23.435422 | 2019-01-19T20:08:35 | 2019-01-19T20:08:35 | 166,587,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | #!/usr/bin/env python
import numpy as np
import cv2
from cv_bridge import CvBridge
import rospy, cv2, cv_bridge
from plutodrone.msg import *
from pid_tune.msg import *
from sensor_msgs.msg import Image
from geometry_msgs.msg import Twist
from geometry_msgs.msg import PoseArray
from std_msgs.msg import Int32
from std_m... | [
"noreply@github.com"
] | harry-124.noreply@github.com |
1f18a7275e14938dc3e3f194844c9c4db53a6882 | eade5b743b07f4c40d31d7a3022082d81e50c79d | /src/spark/gdelt_schema_v1.py | ae9976b978aac70d22e256d13fb976e8373c7cff | [] | no_license | alireza-alizadegan/GDELT-Pipeline | 66db5606868e77379c784ec6d55522a647831c04 | ff3f0317b4779465796b4cc7e8f53e736e284f27 | refs/heads/master | 2022-11-11T10:15:48.166987 | 2020-07-02T21:49:41 | 2020-07-02T21:49:41 | 266,621,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,448 | py | from pyspark.sql.types import StringType
from pyspark.sql.types import DoubleType
from pyspark.sql.types import IntegerType
from pyspark.sql.types import StructType
from pyspark.sql.types import StructField
gdeltSchema = StructType([
StructField('GLOBALEVENTID', StringType(), True),
StructField('SQLDATE', Stri... | [
"a.r.alizadegan@gmail.com"
] | a.r.alizadegan@gmail.com |
97784f6501518caf971223020f11dce4904ee155 | d3145bacfc1ad692ae7d7376d602c3556d10ee57 | /venv/bin/pip3 | d34d6c9e5551eb43147a9bd77c070f74ffe42882 | [] | no_license | juvu/stock-screener-analysis | 664f9563dbe20389229412821e19a732b7561d68 | 795ed334d8c82234514425d1ad326ca3e2b590c8 | refs/heads/main | 2023-06-04T10:19:10.438711 | 2021-06-18T07:32:52 | 2021-06-18T07:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/Users/Geric/PycharmProjects/TradingBot/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"watto1990@gmail.com"
] | watto1990@gmail.com | |
ea465f8d28df43e8e24972fb23374bf88a0927ac | 384a2c8cc009bc476f247a9cff6cc52850add840 | /search/tsearch01.py | 74d522f1b3df87e41565099d6c1f355f3112fabd | [] | no_license | C4ball/stock_exchange_news | 8ba838dda22523fd88f414eaa3603b2802f82c7e | c9aff6909bc6577f7b69e1a869488dd3a2d0e4a9 | refs/heads/master | 2023-03-08T16:31:00.564862 | 2019-07-26T13:32:02 | 2019-07-26T13:32:02 | 339,863,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,569 | py | import tweepy
from tweepy import OAuthHandler
import json
import datetime as dt
import time
import os
import sys
'''
In order to use this script you should register a data-mining application
with Twitter. Good instructions for doing so can be found here:
http://marcobonzanini.com/2015/03/02/mining-twitter-data-with-... | [
"rodrigodds@outlook.com"
] | rodrigodds@outlook.com |
9b1564f94ff7eecd8998b52bffb2f36a656a9a37 | 5a23067ff12412b0bf9b06e42319c14b04aecbaa | /test/courses/courses/mathematics/server/use/getquestion.py | 4d8a5890c0e18ccf4dc1e89763a0d4b2a655612f | [] | no_license | daadaada/lalamath | c26f746d161b7e194bb06bd3c97ae46fffb9bb2f | 0748b701b5b6dcf0f62a8ee4c0e27b0c4e58cf32 | refs/heads/master | 2021-05-14T05:51:41.050487 | 2018-01-04T07:44:01 | 2018-01-04T07:44:01 | 116,228,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | __author__ = 'Administrator'
from django.core.serializers import serialize
from mathematics.server.getresponse import get_response
from mathematics.models import UserQuestion
def getquestion(request,userid):
e = UserQuestion.objects.filter(righte=1,userid=userid)
if request.GET.has_key("right"):
... | [
"dyanab@cse.ust.hk"
] | dyanab@cse.ust.hk |
c6a885c831f9823881d03cce916a8835aff59be6 | 22aec4769678cedb1b183eeb81dac05b819a4b09 | /__init__.py | d5310ed71078bb84f2d80e85d46beeabb955302f | [] | no_license | hcwoly513/qicloud | 8a48aaaf33da3c0f0b5b93fb65f47cf55ba69205 | 27f2ef1c21147249ed3791b6eb4da6e237bcfac8 | refs/heads/master | 2021-01-09T06:40:21.177656 | 2016-12-20T13:46:06 | 2016-12-20T13:46:06 | 28,596,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8
#!/usr/bin/env python3.4
# Name: __init__.py
# Author: Chen-Wei Hung
# Created Time: 2015-03-23
# Updated Time: 2015-03-23
# Copyright: © PaulX 2015
from __future__ import absolute_import, division, print_function, with_statement
__version__ = '0.1'
version_info = (0, 1... | [
"hcwoly513@gmail.com"
] | hcwoly513@gmail.com |
b2afce2fd28e747b244268716b1263f8da3a9d99 | 5f8232182c0b531ea1baac8eb6c7e52b8dfcbbed | /01_fyyur/migrations/versions/aa121df87c20_.py | 3719f05717207cbc16884def77e7c2fa869607bd | [] | no_license | MattiooFR/full-stack-udacity-projects | 4aa9ebad272dab3ab5825b88c810e5944f53f16b | 5b358287b62df0a0e1f0a7f371b254581859b4a7 | refs/heads/master | 2023-01-13T23:02:46.707028 | 2020-05-24T16:41:55 | 2020-05-24T16:41:55 | 241,143,784 | 0 | 0 | null | 2023-01-07T18:30:03 | 2020-02-17T15:38:27 | Python | UTF-8 | Python | false | false | 2,625 | py | """empty message
Revision ID: aa121df87c20
Revises:
Create Date: 2020-02-17 16:21:15.375782
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'aa121df87c20'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"13595614+MattiooFR@users.noreply.github.com"
] | 13595614+MattiooFR@users.noreply.github.com |
96422a0f96b7667a3c429321ee3fbeaf4af0d68f | 129b503ef992c3c16f5865ff9c8b3597f1a13a00 | /projects/robots/src/python/motor.py | 5e84e7679ab83c6cd5eadbc44a3e4af9fef4e774 | [] | no_license | vsee/uoe_programmingclub | 23625243b1f1aed3628bfe9e0910c5eef430e207 | 755bc60f026bcf610c3f267ad4e42850c48c97b3 | refs/heads/master | 2021-01-09T21:54:19.851834 | 2020-09-30T20:25:11 | 2020-09-30T20:25:11 | 51,511,097 | 69 | 29 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | m = ev3.LargeMotor('outA')
m.connected
m.run_timed(time_sp=3000, speed_sp=720)
while True:
print(m.position)
| [
"volker@seekerscience.co.uk"
] | volker@seekerscience.co.uk |
ee3f603b2df9562d205d542defec02255a0c28e7 | ed4a31ba39ba1b019fa2b08027c642bda30f0262 | /torch/models/alexnet.py | a807d520b095e4e0937e5a507e723ae8dcc2a0b1 | [] | no_license | woshildh/exercise | a48ad854efcc768f61fdf878edaf4791c343d892 | eba6c236012852a109caaacf13111cb1ccae47fe | refs/heads/master | 2021-12-14T23:13:44.571544 | 2021-12-02T09:35:32 | 2021-12-02T09:35:32 | 135,416,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | '''
自己仿照torchvision定义的
'''
import torch.nn as nn
import torch
class AlexNet(nn.Module):
def __init__(self,num_class=1000):
super(AlexNet,self).__init__()
self.features=nn.Sequential(
nn.Conv2d(3,64,kernel_size=11,stride=4,padding=2),
nn.ReLU(inplace=True),
nn.MaxPool2d(kernel_size=3,stride=2)... | [
"noreply@github.com"
] | woshildh.noreply@github.com |
d0290619b507c2a3d5f2fe1c27f7c2e6b0051387 | 4cf0f3b9dbdc654eb788d52d5d8e5677886b5c9b | /app/main/views.py | 0bed4d50a3988811fb42f5e1ec4781f113a6d72b | [] | no_license | xuyuji9000/chengs.site | f971350faa9bf3accf49603b668bbcbe055a543f | 9f2d85a55e738a9eac04d234fdd529140e52e195 | refs/heads/master | 2021-07-08T10:29:33.035765 | 2017-05-08T09:31:17 | 2017-05-08T09:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,863 | py | # coding: utf-8
from __future__ import absolute_import
from flask import render_template, redirect, url_for, abort, flash, request,\
current_app, make_response
from flask_login import login_required, current_user
from . import main
from .forms import EditProfileForm, EditProfileAdminForm, PostForm,\
CommentFor... | [
"infixz@outlook.com"
] | infixz@outlook.com |
65c30af84b2dea3c8c6d61d78a7c31f79ced9788 | aabad89814c09d400a50c5f4de7643b110b814aa | /calcrho.py | 5151a0f818bd84290aeff6bd5c06c87a24410e55 | [] | no_license | scottie33/amorphous_polymer_lammps | a704c4ff4109a6eebed93968dfe92a3a676ece77 | 5c0da87049ad76ec19c77dbf2db0893f64f630c6 | refs/heads/master | 2020-06-09T03:45:45.357923 | 2013-08-23T10:16:10 | 2013-08-23T10:16:10 | 9,537,329 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | #!/usr/bin/python
import sys,os
import math
KBoltzmann=1.0
Temperature=1.0
tempMax=20.0
vlpi=math.acos(-1.0)
if len(sys.argv) < 2:
raise StandardError, "Syntax: calcrho.py datafile"
datfile = sys.argv[1]
#if len(sys.argv) == 3: shift=int(sys.argv[2])
#else: shift=0
filename = "rhodata.dat"
print " now creating... | [
"scottie.odom@gmail.com"
] | scottie.odom@gmail.com |
efc48eddcb5b8c946872d49d05771599120bbb5a | f12024bf505b270177ad24e7acc9c9980f0ad1a8 | /aidants_connect_web/admin/utils.py | 040a428e7958e3b748e7b003ff609c6135c42e18 | [
"MIT"
] | permissive | betagouv/Aidants_Connect | 18be11e542d3071e516c32b357e9dbab927ecedb | 228ff94f5f3696ed8384992d7a8c9a3adbe6eeda | refs/heads/main | 2023-08-31T02:49:05.557288 | 2023-08-29T09:10:14 | 2023-08-29T09:10:14 | 180,139,859 | 22 | 15 | MIT | 2023-09-13T09:37:51 | 2019-04-08T12:02:11 | Python | UTF-8 | Python | false | false | 446 | py | class SpecificDeleteActionsMixin:
def get_actions(self, request):
actions = super().get_actions(request)
try:
del actions["delete_selected"]
except KeyError:
pass
return actions
def _specific_delete_action(self, request, queryset):
for one_object ... | [
"j-mad@j-mad.com"
] | j-mad@j-mad.com |
3e3cabdf7ec56a1ccce1aa51010fe73549c53cca | 90f9d8f098797744ac0f4824b467d68982f8e399 | /runPuzzle.py | f7c872c02e04fff6779deaa7d7a92a0ed7ee6501 | [] | no_license | lcwadle/AI-FreeFlow | fbe2c9fb13e18c64033cfb6f3eced78c60b506af | 6983da7138b361f2bbf3af47c866ded42fbc5fa4 | refs/heads/master | 2021-09-02T16:25:13.877170 | 2018-01-03T16:08:36 | 2018-01-03T16:08:36 | 116,153,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import FlowFree
from timeit import default_timer as timer
print("14x14 Puzzle - Smart Backtracking Algorithm")
puzzle = FlowFree.Puzzle('inputs/14x14.txt')
start = timer()
puzzle.smarterBtAlgorithm()
end = timer()
print("Assignments: " + str(puzzle.numAssignments))
print("Run Time: " + str(end - start))
print()
| [
"lcwadle@gmail.com"
] | lcwadle@gmail.com |
e751259b8ca57b16e7b82fdbd10b3b2e42038375 | 32bd856b68396ae3bf1420d5c984db13317ad152 | /tuning_screening_precipitation_A6.py | 32765e6695cf678d6c3dc0a04c5db613342e63e6 | [
"MIT"
] | permissive | acmlia/jobs | d01a26bdae8abaeb4715186a20eeba4b1d542324 | ee13ac3363c8a4fab64e21c8787739f5de4ef385 | refs/heads/master | 2020-04-28T02:05:25.159325 | 2019-04-14T00:33:40 | 2019-04-14T00:33:40 | 174,884,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,095 | py | # ------------------------------------------------------------------------------
# Loading the libraries to be used:
import numpy as np
import pandas as pd
import os
import time
from sklearn.preprocessing import Normalizer
from sklearn.model_selection import train_test_split
from sklearn.model_selection import GridSear... | [
"lia.meteorologia@gmail.com"
] | lia.meteorologia@gmail.com |
9c2b86c391f8043da900ee63514b2319e1147118 | 2aae6f4be5dd8fe64c0a5eac23881526dbfd9858 | /VQ-APC/phoneseg_algorithms.py | 13b1cf96eb4855d25de25077ac064c9898cd9e8a | [] | no_license | janinerugayan/masterthesis | e4a4b36e43276cda2aeca48c769fc6f647f7c862 | 854a2da23f192d2a09875d34c077a6bdb6864756 | refs/heads/master | 2023-05-29T13:31:40.183984 | 2021-06-08T15:28:44 | 2021-06-08T15:28:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,373 | py | """
Phone segmentation algorithms.
Author: Herman Kamper
Contact: kamperh@gmail.com
Date: 2020
"""
from scipy.spatial import distance
from sklearn.cluster import AgglomerativeClustering
import numpy as np
import pandas as pd
from IPython import embed
#----------------------------------------------------------------... | [
"janinelr@stud.ntnu.no"
] | janinelr@stud.ntnu.no |
382e98992d1cc6234908091b143c3a68d4033726 | c63f06b68aa5436195fb635bbc4eb5cab0bff2c0 | /scripts/utilities/hl-purge-links.py | 3832182f88336dfef1a97b7ec3d0e56b96424f37 | [] | no_license | MoDavid15/KA-CS-Project-Stats | dd7dc0e4d58e41e9910d49c618f35ba88381e1d0 | 1c71ffc3c647d332ad17b205766d7270d38debc4 | refs/heads/master | 2023-01-30T21:36:01.355662 | 2020-12-12T13:01:18 | 2020-12-12T13:01:18 | 309,403,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import requests
import subprocess as subp
#
# Get all filenames
#
hl_files = str(subp.check_output("ls ../../js-info/hl", shell=True))[2:-3].split("\\n") # Get all hl filenames
for i in hl_files:
print(requests.get("https://purge.jsdelivr.net/gh/ArrowheadCo/KA-CS-Project-Stats/js-info/hl/{}".format(i))) # Purge ne... | [
"malksmogendavid2004@gmail.com"
] | malksmogendavid2004@gmail.com |
aff44f56c6596b9e1bf4fa7b6224db433bb854fc | 76f610d61b5b87ccb7566098993fac36dc93ca9a | /.q-build/engine.py | b2554cdb9d793feef20e3518a1d1c5b29a09eb41 | [] | no_license | qwality/bash-commands | 6f7c534b52921e921b34215d74e684a1ae6ec6e9 | d3a50840333a7625ceed0923b3719289ec6be46e | refs/heads/master | 2020-04-09T03:36:05.232799 | 2018-12-02T00:09:22 | 2018-12-02T00:09:22 | 159,988,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | import sys
import json
import subprocess
def load_json(path):
with open(path, "r") as j:
return json.load(j)
def save_json(data, path):
with open(path, "w") as j:
json.dump(data, j)
def option_by_flag(flag, options):
for option in options:
if option["flag"] == '-' + flag:
return option
return None
... | [
"low.qwality@gmail.com"
] | low.qwality@gmail.com |
39b0b8871760025367729b444200318dfce84cb2 | d2ad5ad3d9a9a08cff51f8df37b2494e3cde7d9f | /calculate_regional_rates.py | aa64757a16b4133a7dc400a964b6abd0903a248f | [] | no_license | mr-fuller/Title6Maps | 923badb17600904123425901795a33e26e587bf0 | d13c876efa7dc6baa6fdd0f5f2f013b923785c33 | refs/heads/master | 2021-11-22T14:00:28.759619 | 2021-10-25T14:32:54 | 2021-10-25T14:32:54 | 88,272,295 | 0 | 0 | null | 2018-10-26T17:57:27 | 2017-04-14T14:01:59 | Python | UTF-8 | Python | false | false | 5,703 | py | # calculate regional rates for each variable, using the more reliable county/subdivision level estimates
import pandas as pd
from census import Census
from variables import api_key, fips,variable_list
# input a list of counties, Lucas, Monroe, and Wood by default
def calculate_regional_rates(counties, year_int):... | [
"mrfuller460@gmail.com"
] | mrfuller460@gmail.com |
a0f02c8b5eca0f403314b27740f2a1628262ca63 | 0b6274d219a70449848d9866402d6948843586df | /newscrawler/spiders/bbc.py | 152f12ff2b84ccdc6312d9907958df15baf7af9e | [] | no_license | linucis/maudlin | e3ad7320760b22fac4534d9f21296a93529b61c4 | d133d27dd0667cdef95e75ae44da96a9caec3e08 | refs/heads/main | 2023-07-03T23:54:16.477673 | 2021-08-11T18:33:56 | 2021-08-11T18:33:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | from newscrawler.models import Article
import re
import scrapy
from bs4 import BeautifulSoup as BS
from newscrawler.mixins import BoilerPlateParser
from dateutil import parser
class BbcSpider(scrapy.Spider, BoilerPlateParser):
name = 'bbc'
allowed_domains = ['bbc.com', 'bbc.co.uk']
start_urls = ['https://... | [
"m@stdwtr.io"
] | m@stdwtr.io |
83e4da6c16eff153e02512b8484816e47c4532fe | 1ac08ce9cc9b64cda1ac28781535fe598f7fc20c | /sampleapp/sampleapp/wsgi.py | 009226a7b2b062e9cd2849d02e46bee03a1fe38c | [] | no_license | znc-sistemas/django-menu | d288cfd96ad3724b99b80fa70a7040a114844a50 | e6b29f9b98b4ffa048b12bd65094719b71bf045c | refs/heads/master | 2021-01-01T17:11:04.836255 | 2012-09-07T12:28:31 | 2012-09-07T12:28:31 | 4,575,505 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | """
WSGI config for sampleapp 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_APPLICATION`... | [
"carlos.leite@znc.com.br"
] | carlos.leite@znc.com.br |
4b0a752bae8f9f5cae6ad41c915c9d0b6c94e09a | 0be277f9e1dff68bf1a8f52bed1e088ca3fcfa70 | /qa/rpc-tests/keypool.py | 516576f40580f3758e0b0efe6f7d0f455ae5678c | [
"MIT"
] | permissive | Spurri/polis | 740578b7aa69373808c2d787fbf3bf1c1e642298 | 5adec506f6808d4fe207ea6a9e5c837baa93404c | refs/heads/master | 2020-03-17T22:50:22.806278 | 2018-05-19T01:47:52 | 2018-05-19T01:47:52 | 134,020,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Exercise the wallet keypool, and interaction with wallet encryption/locking
from test_framework.test_f... | [
"info@spurri.com"
] | info@spurri.com |
55a70f3aabdb350752f445d007dbc27aae042a96 | 01bbd1c305e68173f7e2e0c72b84efd17bc7ace7 | /Pandas/pandas_rank.py | 75e2df4f6450ccb8da7088eecf94bd75047a0280 | [] | no_license | bon3409/financial | beb8806522d2d9574e36c8085038e40a348a5de7 | f2a94753fe5b5def3a030645854ecc2375dcd15a | refs/heads/master | 2023-04-16T04:56:20.253427 | 2021-04-28T13:36:39 | 2021-04-28T13:36:39 | 193,250,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import random
import pandas as pd
import numpy as np
from datetime import datetime
import MySQLdb
"""
---- DataFrame 排名
---- 參考書本 P186
---- rank(axis = 0, method='擇一方法')
---- method : avarage (平均值) / min (最小值) / max (最大值) / first (按照數據值相同的元素出現的順序賦予 rank 值) / dense (取最小值,相同元素者構成一組)
"""
db = MySQLdb.connect(host='loca... | [
"bonlee@stratevision.com"
] | bonlee@stratevision.com |
1bec140c5a8f93719adc3fdbfd165cc474a5df61 | c81a612639794f2fd2040ec7a01bcc521682eebe | /udata_explorer/base.py | bef31ac7424ac11b65e71fc88656aa08f06f9237 | [
"Apache-2.0"
] | permissive | opendatateam/udata-explorer | b255f71a9b6d50c269aa4d435c6449faea3d31d4 | 4ec1a0fced35e602be2fc86f8cfa8f46f4e5d865 | refs/heads/master | 2021-06-27T22:15:54.474060 | 2018-03-23T08:47:37 | 2018-03-23T08:47:37 | 95,101,862 | 3 | 1 | Apache-2.0 | 2018-03-23T08:47:38 | 2017-06-22T10:02:45 | Jupyter Notebook | UTF-8 | Python | false | false | 169 | py | """Base module"""
class HydratableObject(object):
"""A mixin to hold some dict data in `data` attribute"""
def __init__(self, data):
self.data = data
| [
"alexandre@bulte.net"
] | alexandre@bulte.net |
835bbe88a87b24a71c2e755d310385e85058b07d | 5edf3a4b21d1c1eebb7dbb2d6d49d8324e1e2090 | /src/main.py | 35143e1b7a8983842a406071ea127f22a9cb0261 | [] | no_license | SamMaoYS/Region-Growing-Segmentation | b33337876ad1309c414785db8b93a000f9af87c1 | b8ab945c347e7cf97cec8ea576d1340982d872d3 | refs/heads/master | 2022-11-10T16:59:31.478667 | 2020-06-29T04:50:19 | 2020-06-29T04:50:19 | 273,663,133 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import common
from coslic import CoSLIC
import cv2
def main():
images = common.image_load('../data/*.jpg')
# for img in images:
# slic = CoSLIC(img)
# slic_viz = slic.slic()
# edges = slic.canny_edge()
# common.image_show(slic_viz, "slic")
# common.image_show(edges, "ed... | [
"sammaoys@gmail.com"
] | sammaoys@gmail.com |
b5a063b7dc0cdd8eef738922453b8ba81cc5c373 | 3490a86b85b16f38dfd7f3dbee0158ffc19acda0 | /Task2/kmeans.py | 16e34b1a003bd4c915139ef3469ea647314e6a34 | [] | no_license | ernestkck/computer-vision-lab | 8407f3296aff9b63b58f4a380b0360fb43ea2c6b | 7e3a3705d1dbe3a3323b0e698b63eb783c5e1ead | refs/heads/main | 2023-07-04T04:50:37.238217 | 2021-08-10T10:11:33 | 2021-08-10T10:11:33 | 394,269,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,712 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
def generate_data():
""" Generates data points with 4 Gaussian distributions
Output:
X : 400 by 2 array of floats
"""
X = np.zeros((400, 2))
mean = np.array([0.5, 0.5])
cov = np.identity(2)
cov *= 1/30
X[:100] =... | [
"ernestkck@hotmail.com"
] | ernestkck@hotmail.com |
10d81e12691ea7edbbac63eee7f183d1e0842d8a | fc746b644a2f4d07508e84b0d162c0f2ef07076d | /build/orocos_kinematics_dynamics/catkin_generated/generate_cached_setup.py | 174396b513f66f2b974b95d28716ad2d3160a197 | [] | no_license | andreatitti97/thesis_ws | d372146246b8c9b74d25e1310e6e79f9e0270cc4 | c59d380abe7be47ea2d7812e416dee7298c20db8 | refs/heads/main | 2023-03-16T12:26:17.676403 | 2021-03-15T13:22:59 | 2021-03-15T13:22:59 | 340,458,689 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,352 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"andrea.tiranti97@gmail.com"
] | andrea.tiranti97@gmail.com |
a989c0e0a82a75e67dd7fe6450086b5372305d12 | 6557ed1723b6f9ea8699ac8a5af1644f216f5c5a | /todo_app/models.py | 5c63b59e15433e83fa5106760b95a27a0ce6976d | [] | no_license | AnthonyRedGrave/7TaskITransitions | eb1da7df1531f055053e4d3c23d94f68fd2f724e | 143309fd5f682e543b8b28ee6f774c70412a9b15 | refs/heads/master | 2023-04-09T14:10:40.156187 | 2021-04-24T17:58:16 | 2021-04-24T17:58:16 | 359,129,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,220 | py | from django.db import models
class ToDo(models.Model):
COLOR_CHOICES = [
('#008B8B', 'Голубой'),
('#FF1493', 'Розовый'),
('#ff9218', 'Желтый'),
('default', '#304B5F')
]
name = models.CharField('Название заметки', max_length=150)
text = models.TextField('Тек... | [
"noreply@github.com"
] | AnthonyRedGrave.noreply@github.com |
8828318cfdbed598089645bb7b429e779d881384 | dfded2f33b78a159410969b23953a0fbacc4fe3b | /Lab9/Cnf.py | 03f7022059c1565ec1575814c44f3f3f7bd0d8f7 | [] | no_license | Sowmya2000/AI | 57b5e86833a03395036531b815a476a72960c70d | fb7aaada8e77a7fbea5211485bc96a06bf5797ae | refs/heads/main | 2023-02-06T03:24:11.582071 | 2021-01-01T10:30:50 | 2021-01-01T10:30:50 | 304,558,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,614 | py |
import re
def remove_brackets(source, id):
reg = '\(([^\(]*?)\)'
m = re.search(reg, source)
if m is None:
return None, None
new_source = re.sub(reg, str(id), source, count=1)
return new_source, m.group(1)
class logic_base:
def __init__(self, input):
self.my_stack = []
... | [
"noreply@github.com"
] | Sowmya2000.noreply@github.com |
38db113d21d6f887f77911efb86eb3fcbe3d5e52 | 6518b33451176457004fef6a14ebbab1f360b858 | /app/scripts/communication/RequestHandler.py | d6c7dbb3921fc408e359ea0db54fe9704fc4dd0b | [] | no_license | anasraza/therapy-bot | 2ea17b263649f0bae604c82cf94dca1894ca2cb1 | 6cec4aa1500843271f42c66a5084684d125928cf | refs/heads/master | 2022-03-31T18:34:22.206889 | 2020-02-07T04:26:58 | 2020-02-07T04:26:58 | 235,017,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,416 | py | import json
import os.path
from .NaoQiWrapper import NaoQiWrapper
class RequestHandler:
"""
Class to handle the messages Web Socket receives and treats them as requests
This class assumes every message received on web socket is valid JSON; either a "request" or a "command"
(kind of like my own versio... | [
"mraz5491@uni.sydney.edu.au"
] | mraz5491@uni.sydney.edu.au |
60fb4c4eb6e60fca24c3bb874dd487c384022e84 | e811662c890217c77b60aa2e1295dd0f5b2d4591 | /src/problem_145.py | da0952c5573f00aae6e48903d71a6426d47dd221 | [] | no_license | rewonderful/MLC | 95357f892f8cf76453178875bac99316c7583f84 | 7012572eb192c29327ede821c271ca082316ff2b | refs/heads/master | 2022-05-08T05:24:06.929245 | 2019-09-24T10:35:22 | 2019-09-24T10:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,256 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
from TreeNode import TreeNode
def postorderTraversal(self, root):
"""
记住得了= =
就访问当前root,然后左子树入栈,右子树入栈,最后逆序一下就好了,return output[::-1]
相当于是这么个思路:
目标:左右根
那么我就先求出来根右左,先根遍历是好访问的,根右左的话,因为是栈,所以先访问根,然后左孩子节点入栈,
再右孩子节点入栈,这样出栈的顺序就是跟右左了,其实可以联想一下,其实... | [
"457261336@qq.com"
] | 457261336@qq.com |
95282fad8921847fbce1b8d8cf3e6b80655c0234 | d2f71636c17dc558e066d150fe496343b9055799 | /eventi/receipts/urls.py | adc4aac61ed9506ad430a00c7e224d076c9b8818 | [
"MIT"
] | permissive | klebercode/lionsclub | 9d8d11ad6083d25f6d8d92bfbae9a1bbfa6d2106 | 60db85d44214561d20f85673e8f6c047fab07ee9 | refs/heads/master | 2020-06-11T19:45:39.974945 | 2015-04-05T01:11:57 | 2015-04-05T01:11:57 | 33,409,707 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # coding: utf-8
from django.conf.urls import patterns, url
urlpatterns = patterns(
'eventi.receipts.views',
url(r'^$', 'receipt', name='receipt'),
url(r'^(\d+)/$', 'detail', name='detail'),
)
| [
"kleberr@msn.com"
] | kleberr@msn.com |
d0dbca3889c92c86a1cfaea018473413421d4e50 | f9c88337ce6f66db9556f2f7151fddcbd4209500 | /vmsis/vcommerce/pedido/movcaixa/models.py | 11f4b35746973ab3b2b4f7b4adb608a1c1df3260 | [] | no_license | olosplus/vcommerce | 1d055b73b52935caf49216c0ebba177638656c9a | c5311bbe537ba38c4261dc3b2044c1e9c3d04abb | refs/heads/master | 2021-01-19T17:39:33.941987 | 2016-03-25T23:27:46 | 2016-03-25T23:27:46 | 33,091,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | from django.db import models
from pedido.frentecaixa.models import Pedido
from pedido.cadastro_pedido.caixa.models import Caixa
from vlib.control.models import ControleSincronizacao
tipo_movimento = (('E', 'Entrada'), ('V', 'Venda'), ('S', 'Sangria'), ('R', 'Retirada'))
forma_pagamento = (('DI', 'Dinheiro'), ('DE', 'D... | [
"ivan@vmsis.com.br"
] | ivan@vmsis.com.br |
c13a4eb698ee3c948ba65c49e43a067729524222 | 757f7f0a230c41d5ad5de947682da7da95a727b5 | /python/52.py | 23bc3a51dede454d1dfe2f07df84dcff1e6a9c2c | [] | no_license | Guilherme-Moreira/gui-moreira-euler | 1003512cd667c5ac1ee8c5f4a5a3cdfea4e47dd5 | 5c51fd99a29180ffce077aec1d4a9104512eecec | refs/heads/master | 2020-04-27T19:35:19.316547 | 2019-03-18T00:28:53 | 2019-03-18T00:28:53 | 174,625,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | i = 1
while True:
for j in range(2, 7):
if sorted(str(i)) != sorted(str(i*j)):
break
else:
print(i) # 142857
break
i += 1
| [
"guimoreiraheroes@gmail.com"
] | guimoreiraheroes@gmail.com |
777ff814dd92fd8c87e5d20a934a54207ca894cf | d3b7a7a922eb9999f22c99c0cc3908d7289ca27e | /tests/multi_processing/multi_process_queue.py | 907844ddda04cef496883f0bd2b010512fd7341b | [
"Apache-2.0"
] | permissive | g3l0o/plaso | b668203c2c7cf8799a1c12824ee1bdc8befd3980 | ae29d853a6bcdd1530ce9320a3af7b3f122941ac | refs/heads/master | 2020-12-25T20:31:08.928709 | 2016-07-22T20:00:33 | 2016-07-22T20:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests the multi-processing queue."""
import unittest
from plaso.multi_processing import multi_process_queue
from tests import test_lib as shared_test_lib
from tests.engine import test_lib as engine_test_lib
class MultiProcessingQueueTest(shared_test_lib.BaseTestCase):
... | [
"onager@deerpie.com"
] | onager@deerpie.com |
9031501028ac5ee55580fd51d12397f449ba7a8e | 27f965ae395d79a8ad57970b8e5d3c469a848057 | /YiSeungJun_1228.py | 7c554468caf48bd935bae8e41139dfe2f53d2b5a | [] | no_license | BruceYi119/python | e37f5805a71d5780b11d1be26cc33973f98ddb1d | ba991de00bd56c356b7242d1af2dbc6d46d73a9e | refs/heads/master | 2023-03-20T19:43:34.130357 | 2021-03-19T04:50:09 | 2021-03-19T04:50:09 | 315,487,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | import os
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import font_manager, rc
fontname = font_manager.FontProperties(fname='./font/malgun.ttf').get_name()
rc('font',family=fontname)
tmp = []
for year in range(1880,2011):
filename = 'yob{}.txt'.format(year)
data = pd.read_csv(os.path.j... | [
"pirates119@gmail.com"
] | pirates119@gmail.com |
3e648d3d47eadcd0ad84a676215aaa3f1c6999f3 | 729af3c9689245625d1a398b2892c7cdb137914a | /chapter06/1. whai_is _var.py | 2ebbabab8ebea469ddc9191d5139f6359cd1981d | [] | no_license | xiaoweigege/Python_senior | 7e2b06a4b697256f9d4a856c558c36f59313e5e9 | c13e6a6c33e765106934761f05f37a777cf9230f | refs/heads/master | 2020-04-12T20:20:15.281651 | 2019-07-30T16:48:09 | 2019-07-30T16:48:09 | 162,733,366 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # Python 和 Java 中的变量本质不一样, Python的变量实质上是一个指针 int str
# a 指向 1 这个内存地址
a = 1
print(id(a))
# a 指向 abc 的内存地址
a = 'abc'
print(id(a))
# b 指向 [1, 2, 3]
b = [1, 2, 3]
# 将b 赋值给 c c 同时也指向 [1, 2, 3]
c = b
c.append(4)
print(id(b))
print(id(c)) | [
"240942649@qq.com"
] | 240942649@qq.com |
e7f01170482cd4f4aa4d00ba3789da98d1b77dd2 | 7cd6c1fbe5e9bdda8cdcc0456623ceee579e6a52 | /mysite/polls/admin.py | e27fbefdb3cbbbcf006866be2a91302ea65b2669 | [] | no_license | Silentbob251/Projects | 725e16d97964fe314ac49b02ff605b0ff309bfd4 | 5269639d16d60f5c2df3077170d45138f609b11c | refs/heads/master | 2020-04-06T07:11:00.643032 | 2016-09-13T00:50:06 | 2016-09-13T00:50:06 | 65,775,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | from django.contrib import admin
from .models import Choice, Question
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date'], '... | [
"kboyle416@gmail.com"
] | kboyle416@gmail.com |
6013e13c384517ac329813ede411feffc7cddabd | 3d9f3974e00ff84a210c27e4427be5a4091793db | /IO/_04_BytesIO.py | 3cab3838aab1ef46272458d6407b7e76958edbb6 | [] | no_license | xuefengZhan/python | 6dda42e62741c8b06e3344318a41a0482ba323ec | 665687088ad4d226e51030a66db702d8f2833543 | refs/heads/master | 2023-05-29T22:23:30.421753 | 2021-06-15T10:00:57 | 2021-06-15T10:00:57 | 360,377,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #todo 操作二进制流
from io import BytesIO
f=BytesIO()
f.write('中文'.encode('utf-8'))
print(f.getvalue())
#todo 说明: str.encode() 是将字符串按照编码格式编码成二进制
| [
"yatolove@163.com"
] | yatolove@163.com |
81fd62a1000b3b61b0e0489391834a9a11cd2220 | 0f350ce4ab8c3e7ce6155011d1e745f414be381f | /ServerlessAzureMgmt/ResourceCleanupHttpFunc/__init__.py | a48fb41b717eb22372350a1c89f830fc787d5843 | [] | no_license | rekha-balan/ServerlessAzureMgmt | 97a43c7ddd477a33587d18b2a8caecfb90930066 | 86ec00be1ac8301d68c30445af0f4b7e6cba271a | refs/heads/master | 2020-04-07T14:43:03.478008 | 2018-09-27T04:55:30 | 2018-09-27T04:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | import logging
import os
import azure.functions as func
import datetime
from dateutil.parser import parse
from azure.mgmt.compute import ComputeManagementClient
from azure.mgmt.resource import ResourceManagementClient
import azure.mgmt.resource.resources.models
from azure.common.credentials import ServicePrincipalCre... | [
"zivr@microsoft.com"
] | zivr@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.