blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90a6fbbade7f6ccd7670bb4ba2455b2457756974 | 614db3d71137766beea7fbda39693ff8fa625d9a | /source_code/test_my_token.py | 18687b7a397e43482241ff655e29550bd130fe11 | [] | no_license | DmSide/DmSide-ai_code_analysis_tools | c8c0043d8ac418d732043f0c0d2844762aa08eb8 | 327ede21d651aada1711d49cf3a55dea98bfc6c9 | refs/heads/master | 2021-06-26T04:10:50.305101 | 2019-12-26T08:40:35 | 2019-12-26T08:40:35 | 230,227,174 | 0 | 0 | null | 2021-06-10T22:26:27 | 2019-12-26T08:36:44 | Python | UTF-8 | Python | false | false | 1,913 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from my_token import TokenCode
from analyze_tokens_list import statist_research
#import mock
import unittest
from unittest.mock import Mock
from unittest.mock import patch
#import unittest.mock
class TokenCodeTestCase(unittest.TestCase):
tk = TokenCode('C:\\User\\... | [
"redhat@zuzex.lan"
] | redhat@zuzex.lan |
459c72af3cd511acf54b8b60834225780fea43e4 | 5a79600f6db7a8c65fa3182f822891d7fd68eeda | /tests/test_gpu_openacc.py | e1fc8aa0bbbf714cbefa9cc3d031f4e9e91790f1 | [
"MIT"
] | permissive | alisiahkoohi/devito | 867fb05c89f24193951835227abdc271f42cc6e2 | f535a44dff12de2837eb6e3217a65ffb2d371cb8 | refs/heads/master | 2023-03-16T05:50:23.610576 | 2021-05-24T21:49:32 | 2021-05-24T22:21:40 | 128,473,180 | 0 | 0 | MIT | 2023-03-02T12:58:21 | 2018-04-06T21:41:54 | Python | UTF-8 | Python | false | false | 6,509 | py | import pytest
import numpy as np
from conftest import skipif
from devito import Grid, Function, TimeFunction, Eq, Operator, norm, solve
from devito.data import LEFT
from devito.ir.iet import FindNodes, Section, retrieve_iteration_tree
from examples.seismic import TimeAxis, RickerSource, Receiver
class TestCodeGenera... | [
"f.luporini12@imperial.ac.uk"
] | f.luporini12@imperial.ac.uk |
d3842f74d7c8f2ac9012928299f1fbc30bb43ef8 | 13b10d425521c3339d7a6857274aa7be46e40b2a | /src/prct08.py~ | ffe69eccc9957385a304084dbb017709bb328e8d | [] | no_license | alu0100830569/prct12 | 0a96b544bda9e6e0f0a890519d4e9deb5f071c6b | 994ffc880026a39ea01e46e390d803027fe1a93c | refs/heads/master | 2021-01-20T15:44:33.063898 | 2014-05-02T09:19:39 | 2014-05-02T09:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | #! /usr/bin/python
#!encoding: UTF-8
import moduloerror
import sys
if((len(sys.argv)==1) or (len(sys.argv)==2)):
print("No se han encontrado los valores necesarios, por lo que se procederá a ejucutar con los valores predeterminado:")
print("Veces=10 Intervalo=10 Umbral=0.1")
veces=10
n=10
umbral=0.1
else... | [
"alu0100830569@ull.edu.es"
] | alu0100830569@ull.edu.es | |
705d988c47eabf08b0d5565e1355f84f7a532a93 | 0b9cad239e7b944b29fda12e7a14dfbc6d5c8eb5 | /example/example.py | ec21d914626cc24283c6273e97da681336f8304f | [
"MIT"
] | permissive | dinhanhx/deep_fried_meme | f7b006534352019ba4ff849c0adf918f0142111f | 508eca7e5ad8b84cc2455c28d40135bfc44efc9f | refs/heads/master | 2022-12-24T03:16:42.516580 | 2020-10-11T14:07:26 | 2020-10-11T14:07:26 | 268,708,066 | 2 | 1 | MIT | 2020-10-11T14:07:27 | 2020-06-02T05:21:15 | Python | UTF-8 | Python | false | false | 901 | py | from deep_fried_meme import deep_frier
print(deep_frier('Hilbert.png', config = None, putout_scheme = ['file', 'proc Hilbert 1', 'jpg']))
# Process an image in machine then export in machine
print('===')
print(deep_frier('Hilbert.png', config = None, putout_scheme = ['response data']))
# Process an image in machine th... | [
"dinhanhx@gmail.com"
] | dinhanhx@gmail.com |
06c65ebb5271abf5a20170924eb6aa109701b957 | 25e48619b6157be79a0cb3051f7b59af4e7a48bb | /assignment2(part2).py | fbf2a38f76d553b42b9c05e3efdfa47d6a9c84e7 | [] | no_license | Nana-Antwi/UVM-CS-21 | 8fdb2125f01820f063e7a2b3e40c4a0b3bd64c73 | 535b8e7efb61a0e4071766b4986e5d9b97952456 | refs/heads/master | 2020-04-17T09:29:27.027534 | 2019-01-18T19:19:18 | 2019-01-18T19:19:18 | 166,459,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | #Nana Antwi
#cs-21
#homework 2
#part 2
#design a program to calculate either profit or loss involved in buying and selling shares
#program 1
#when joe purchased the shares
#varaible declaration
number_shares_purchased = 0.0
cost_per_share = 0.0
stockbroker_commission = 0.0
cost_shares_without_commiss... | [
"noreply@github.com"
] | Nana-Antwi.noreply@github.com |
7e0937d9c87ca2b42dc9634ae22a9863317be59b | 844eaa6e8719e7842dfadd40f10dff72b5eedcfd | /guestbook.py | e29508d5cd30a7d26b2e04dab6b75c1c8a413b7e | [
"Unlicense"
] | permissive | saptarshighosh9/online-shooting--game | 0546b07e3b780c272dc3093461a661d502b8ad24 | bec8bcd2cf27d02b492a9e91bc81aa0096c78c28 | refs/heads/master | 2016-08-04T21:00:24.299581 | 2013-08-21T10:56:05 | 2013-08-21T10:56:05 | 12,254,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | import cgi
import urllib
import os
from google.appengine.api import users
from google.appengine.ext import ndb
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=['jinja2.ext.autoescape'])
DEFAULT_GUESTBOOK_NAME = 'Scor... | [
"saptarshighosh9@users.noreply.github.com"
] | saptarshighosh9@users.noreply.github.com |
17192d0f6f70f84d16ea22b520827341bd2b3559 | ad58fa45fe4092846f293b20ef250fc55ef3bdef | /main.py | e934951023cb53b10e21fa7b1d5f8c58d0ccf113 | [] | no_license | tgb20/HAB | 2051c36ac40d1aff62a9b52de066131260472334 | 61b8c1da377d7b2b099b3319ed15a960819a726d | refs/heads/master | 2020-03-31T09:30:27.810369 | 2018-10-22T15:25:32 | 2018-10-22T15:25:32 | 152,098,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | import grovepi as gpi
import time
from grove_i2c_barometic_sensor_BMP180 import BMP085
from gps import GPS
from lcd import LCD
from modem import SatModem
import csv
TEMP_SENSOR = 0 # Port A0 is for the Temperature Sensor
SOUND_SENSOR = 2 # Port A2 is for the Sound Sensor
bmpSensor = BMP085(0x77, 1) # Register pres... | [
"tgb.bashista@gmail.com"
] | tgb.bashista@gmail.com |
cf418f87d6d07bed318c588e39c784ffc7a4ca45 | fa0947d63c61afbb4df959289c6c753ce46faf5f | /amazonscraper/amazonscraper/items.py | 1bf34dcafdf40d408ed7c3eba1d74e3911827047 | [] | no_license | HemantJangid/AmazonScraper | 02a3d788c07e711890bb77fd310fe837ffae3763 | 0020f439b9e7b834b26eb53b74c8cb6a6db2ce0e | refs/heads/master | 2022-04-18T19:17:24.678040 | 2020-04-15T06:14:02 | 2020-04-15T06:14:02 | 255,822,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class AmazonscraperItem(scrapy.Item):
# define the fields for your item here like:
book_name = scrapy.Field()
author = scrapy.Field()
... | [
"jhemant539@gmail.com"
] | jhemant539@gmail.com |
ac31523ba9787d027e63b488024b15c9e839e46c | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_point12.py | 3f67194c74253a3ea60ca8994c2d9259631a918f | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from xcp2k.inputsection import InputSection
class _point12(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Type = None
self.Atoms = []
self.Weights = []
self.Xyz = None
self._name = "POINT"
self._keywords = {'Xyz': 'XYZ', 'Type': 'TYPE'}
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
332064ba5922ff92b2319eb3b292136ddec583f8 | 3fcc7957ed103ead0db8d4e6020c52403559e63b | /1557.py | 04bb7afeb9d7032e1dee17c65612b5604da1c506 | [] | no_license | gabrielreiss/URI | db3082bd89832bb4f45d2375db376454c2ff8f27 | 01bc927d1eee8eb16a16de786e981faa494088e8 | refs/heads/master | 2022-04-22T08:25:28.855996 | 2020-04-15T14:58:47 | 2020-04-15T14:58:47 | 255,950,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | cont = False
while cont == False:
n = int(input())
if n == 0:
cont = True
else:
m = []
w, h = n, n
m = [[0 for x in range(w)] for y in range(h)]
for i in range(0, n):
for j in range(0, n):
m[i][j] = 2 ** (i+j)
T = len(str... | [
"gabrielreissdecastro@gmail.com"
] | gabrielreissdecastro@gmail.com |
28434b2573dce339e33c3e2d2ff0e30e007c76c6 | ec5813bf77fb54a12df8078cb5016a6cfb44dad5 | /tests/test_functional.py | 1533685c0dd11c9d6634616894998dcb450bddb7 | [
"MIT"
] | permissive | dslaw/pipeline-profiler | f9e7403e848549ecfb21138c7fef0d8deeca4c45 | bc41b1acc77471791cdeb6a042776de2034354d5 | refs/heads/master | 2020-05-07T05:41:35.567576 | 2019-04-16T23:26:59 | 2019-10-08T02:30:54 | 180,280,588 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,512 | py | from mprof import read_mprofile_file
from numpy import ones_like
from numpy.testing import assert_allclose, assert_array_equal
from sklearn.dummy import DummyClassifier
from sklearn.externals import joblib
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from io import BytesIO... | [
"davidsamuellaw@gmail.com"
] | davidsamuellaw@gmail.com |
6c050c0d77f4e5d5ec77c6bef6bca2540f25d9b6 | 461052f4a7197db023ad3deb864bf1784fdd7854 | /library/migrations/0003_auto_20200513_1625.py | 451151225554e0605b2693ef162763660f71eb46 | [
"MIT"
] | permissive | ArRosid/training_drf | 1660a08272c09302b39adc8e19e3674a78863685 | 4369c8113a67bb3f18b6890210902f09d617569f | refs/heads/master | 2022-06-20T02:03:49.373355 | 2020-05-13T16:38:03 | 2020-05-13T16:38:03 | 263,639,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | # Generated by Django 3.0.6 on 2020-05-13 16:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('library', '0002_book_mod... | [
"ahmadrosid30121997@gmail.com"
] | ahmadrosid30121997@gmail.com |
58a23a30aaebb6a01ca922fc25c6ac60e9adb546 | ca28664343d2a17264e10080937f2e528b55358f | /pc_example.py | faded9ce36ed39c3c92fa435bc687b7493e66303 | [] | no_license | js418/visual-analytics-using-ontologies-across-heterogeneous-data | 575c029c05872e6bbede89dda25619d191f0b4e7 | 9c593599c947e43741a557cbdade531106268e49 | refs/heads/master | 2020-03-19T07:06:12.217291 | 2018-06-04T22:01:03 | 2018-06-04T22:01:03 | 136,082,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | import pandas as pd
import numpy as np
import ast
from bokeh.models import CustomJS, ColumnDataSource,HoverTool,BoxSelectTool,TapTool,Range1d
from bokeh.layouts import row, column, widgetbox,layout, Spacer
from bokeh.io import show
from bokeh.plotting import figure, curdoc
from bokeh.models.widgets import TextIn... | [
"noreply@github.com"
] | js418.noreply@github.com |
0764fd9cfe586798c0d72ae40679aabd7fe72a9e | ecf4d26ece041e4b6e484c9138d8aceff67b7678 | /apps/channelsbase_sankey.py | 139651ec07a31f5f0cbfab4358b7efbabf9e6833 | [] | no_license | EnzoCalogero/dash_plotly_main | 203435faea3d6731fa067cafd219f657667d4407 | 872f8dea9475358df522fc913a7d01696904fd94 | refs/heads/master | 2022-12-11T12:23:44.881509 | 2019-10-06T17:04:35 | 2019-10-06T17:04:35 | 213,204,436 | 0 | 0 | null | 2022-12-08T02:35:25 | 2019-10-06T16:37:36 | Python | UTF-8 | Python | false | false | 14,522 | py | # -*- coding: utf-8 -*-
import base64
import flask
import pandas as pd
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
import os
from datetime import timedelta
from datetime import datetime as dt
import datetime
from app import app
from apps import db_o... | [
"enzus@hotmail.com"
] | enzus@hotmail.com |
8a3e3ac21b7f3e615c63070f93750a10b7ead43d | f857334dfbbfebde8e000cbe0b718545f524ea01 | /18-database/models.py | 0e81e4f2a6c6fcd32f0273c04964502089ad2dff | [] | no_license | Phibi95/PythonBasics | 8307f4577fd5f600beb5e019d6cad389ef0ec89f | 593bc7d1c16907e5856b6b411a898c844b3dad9b | refs/heads/master | 2023-05-27T22:39:29.510986 | 2020-02-27T18:33:03 | 2020-02-27T18:33:03 | 227,671,644 | 1 | 1 | null | 2023-05-01T20:38:22 | 2019-12-12T18:30:32 | Python | UTF-8 | Python | false | false | 336 | py | import os
from sqla_wrapper import SQLAlchemy
db = SQLAlchemy(os.getenv("DATABASE_URL","sqlite:///localhost.sqlite"))
class Entry(db.Model):
id = db.Column(db.Integer, primary_key = True)
first_name = db.Column(db.String)
last_name = db.Column(db.String)
email = db.Column(db.String)
message = db.C... | [
"philipp.bischof@phb-it.de"
] | philipp.bischof@phb-it.de |
21a5af9c8fa62de7c1893aa45f03faae75ee32f9 | 0f07b0f038922eea85686af2ad9885e26894792c | /main.py | 52d093eeaee0487889ac033c868e69a98d8b6309 | [] | no_license | eddiezzz/MysqlBuilder | 24c4f90244e37d3971e7ce88b746035efbc90978 | 2d843a356fd3c3d8ac96870c34f66907d7f3d9ce | refs/heads/master | 2021-05-27T08:38:38.506630 | 2014-03-04T09:47:46 | 2014-03-04T09:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | #coding: utf8
from db_operator import *
from job import *
import common
class JobFactory:
@staticmethod
def create(language):
if language == 'th':
return ThJob()
if language == 'br':
return BrJob()
if language == 'ar':
return ArJob()
return None
def usage(name):
print '''
#Brief: %s is used for ... | [
"zcs5612@163.com"
] | zcs5612@163.com |
24d22697d64ee1f29cb1c87424461f1fa75b650b | f6bec8210f9f314bcc8d20b3df34b53ed84be7cc | /core/on_off.py | 0d8a977b1e51f5774096297c0e732b697586e4ae | [] | no_license | SamSunshine/PyLogo | bb4e27f0467ed7acdea9e343614c62660f5aed9b | eb3702dd85089db61bae27a7e3af97b69b7725e6 | refs/heads/master | 2021-01-03T00:48:02.439296 | 2020-02-11T19:25:29 | 2020-02-11T19:25:29 | 239,843,609 | 0 | 0 | null | 2020-02-11T19:13:38 | 2020-02-11T19:13:38 | null | UTF-8 | Python | false | false | 5,103 | py | from pygame.color import Color
import core.gui as gui
from core.gui import HOR_SEP
from core.sim_engine import SimEngine
from core.utils import rgb_to_hex
from core.world_patch_block import Patch, World
import PySimpleGUI as sg
from random import randint
from typing import Tuple
class OnOffPatch(Pa... | [
"noreply@github.com"
] | SamSunshine.noreply@github.com |
633b26c15c5dc274a4c9596b27023b8e4c850b6a | 5bcd476eb9c02c5511c8447b2794f78b7347752a | /Models/R2N2/Local/scripts/extra_VARMAX_evaluate_models.py | 9643e289c63e387b7354b8e329ddf2249eb3d786 | [] | no_license | MennovDijk/deepcrypto | 3877a0cd5206b59bbb0e143f60f18705daf70312 | 64b6488b13e2c1b32e8c1dd2f282230611ae0683 | refs/heads/master | 2020-03-27T22:41:30.941613 | 2018-03-23T04:13:35 | 2018-03-23T04:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,871 | py | __author__ = 'Ian'
#using https://gist.github.com/spro/ef26915065225df65c1187562eca7ec4
import os
import time
import numpy as np
import pandas as pd
import torch
from statsmodels.tsa.api import VAR
from torch.autograd import Variable
from Data.scripts.data import data
from Models.R2N2.Local.scripts.RNN import RNN
f... | [
"ianedwardshaw@gmail.com"
] | ianedwardshaw@gmail.com |
b38ae686b8f4865aa7ec2f285f0c826c7c8762ef | 48c2763ea11e2a7db67acaf46017ca3671e90676 | /starnavi/urls.py | a24e230f7d2250c7a0f87026a35bf614a124df8d | [] | no_license | cynicalanlz/django_likes_posts_example | 4a384c4136eb0f94cd4769de07f7c9a8a16a933c | 6a9cbf281161fb8a5dbe0045992b5c801b748297 | refs/heads/master | 2020-04-10T14:08:30.581939 | 2018-12-10T11:11:26 | 2018-12-10T11:11:26 | 161,068,887 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | """starnavi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"adsnsrg@gmail.com"
] | adsnsrg@gmail.com |
6cfcbb1a68c162aaf5754e4f590f3db98c8850b8 | ba48780406fd3c04ff7efbd60c8c477a3aaa0f27 | /src2/cv1/try_aux_freq.py | f9d89826ad6a3bea6a4fc559e1a63429ef74ce5e | [] | no_license | umpot/quora | 635d37f1602981d63cc50b5a8070297dce59c19a | ac10e6cd4e396c8b5958371f8e537e671067fd38 | refs/heads/master | 2020-12-30T13:46:07.614164 | 2017-09-18T10:22:07 | 2017-09-18T10:22:07 | 91,250,042 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,817 | py | import pandas as pd
import numpy as np
import seaborn as sns
import re
import os
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
sns.set(color_codes=True)
sns.set(style="whitegrid", color_codes=True)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 5000)
pd.set_option('display.max_rows',... | [
"dd.petrovskiy@gmail.com"
] | dd.petrovskiy@gmail.com |
5b47d1be832090f2f26a57dc68231670db71362b | 8add030c13eb431bb71259a92ce99bb1e783665c | /dynamo/tools/dimension_reduction.py | f6373e9ee5b58618f5573a79a2ffd6deb0baaa42 | [
"BSD-3-Clause"
] | permissive | pythseq/dynamo-release | 4d00f37ef7a721148649fdc66606cef72a9a86a0 | 1ed7a32b8f88790e4a6f063f9e3bf017c34c1214 | refs/heads/master | 2020-12-06T16:34:03.661901 | 2020-01-07T19:05:14 | 2020-01-07T19:05:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,585 | py | from sklearn.decomposition import TruncatedSVD
import scipy
import warnings
from copy import deepcopy
from .psl import *
def extract_indices_dist_from_graph(graph, n_neighbors):
"""Extract the matrices for index, distance from the associated kNN sparse graph
Arguments
---------
graph: sparse matr... | [
"xqiu@tenzing.ucsf.edu"
] | xqiu@tenzing.ucsf.edu |
272b1ec65ca799d870c867984cdca671ec427361 | d47bd1b09907f97c1041e5231c65f6d598316c1e | /1.tutorial/1_constant.py | b585e4c7b648ef472825f2ce2e3f1877663d34b6 | [] | no_license | krama9181/Hello_tensorflow | b7076d7f817f36ad4a0635dc0dd71b92fed04837 | f76d81494cdd7e9dec46c454223a81ee7db4f9e5 | refs/heads/master | 2021-01-20T03:50:20.892931 | 2017-04-27T13:11:14 | 2017-04-27T13:11:14 | 89,595,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import tensorflow as tf
hello = tf.constant("hello, TensorFlow!")
sess = tf.Session()
print sess.run(hello)
| [
"krama9181@gmail.com"
] | krama9181@gmail.com |
4fa49507c5bf3cc55bf870e07700ee5abeff3a65 | ab51f65e1f4b09eeaf07d63f87b04d7a2ea3433f | /exercise_3_2/app.py | d1ac064bd24df26280eefcf640e6bb24ca0a48a0 | [] | no_license | decisionmechanics/3659 | 9299487a4af2eb9afdb7ea204b3a6fb07f81c0cd | 2a6d319716d3292096bbc770d0aba213f22993ae | refs/heads/main | 2023-03-21T08:11:30.425419 | 2021-03-14T15:45:16 | 2021-03-14T15:45:16 | 347,678,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import time
import redis
from flask import Flask
app = Flask(__name__)
def get_hit_count():
cache = redis.Redis(host='redis', port=6379)
# Increment the hit count, but allow for timeouts, e.g., on startup (using 5 retries and a timeout)
retries = 5
while True:
try:
return cache.i... | [
"Andrew.Tait@decisionmechanics.com"
] | Andrew.Tait@decisionmechanics.com |
9b7020f61667e3eb17fd3906229ef0227982fd07 | 42d464ad8cea5b96d7ae8802ca136b4f88e2f3f5 | /Analysis/Sync-Model.py | 7e8d6c3aeb4c2bbdbb00e631f3dcd7e6394c4e9d | [] | no_license | HannahDeLaet/sync-model | 09fc6aafbb7823df198931c7afd8a240ca1debb9 | 9ef2c160941cb5e0b1cab4838ee32f89c3f6e635 | refs/heads/master | 2021-05-20T22:31:16.361338 | 2020-04-02T11:39:28 | 2020-04-02T11:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,328 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 12 10:38:24 2019
@author: Pieter
"""
import numpy as np
from mne import parallel as par
from scipy import signal as sig
##################
# Functions #
##################
def phase_updating(Neurons=[], Radius=1, Damp=0.3, Coupling=0.3, multip... | [
"rs7115@nyu.edu"
] | rs7115@nyu.edu |
09216d4286591f56ae7c01db67922dcae0c20efc | b04039d85bd5d9a06635db6a55873780ef5aa867 | /mysite/settings.py | 9047674d7b193d745eab56d9e2592908f4d4292d | [] | no_license | Josie28/my-first-blog | c8a0c0768998a8ecbf01e0a9af80fc826224824f | 885170d793c6edd9585af7964b54f0ddff628aa5 | refs/heads/master | 2020-07-29T22:25:27.137985 | 2019-09-21T15:05:34 | 2019-09-21T15:05:34 | 209,984,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"Josephine_Baehr@live.de"
] | Josephine_Baehr@live.de |
dd258e1388ef102e9d77f492101ef00bda3bda1f | 0dc67428c50acf9dea7c17da9c603169a05e201c | /customer/urls.py | b58afe08ab753951ca3b7f89accd78318da1be54 | [] | no_license | sherrywilly/Razorpay | fe9a48ca9a9dd1d7d59ad959535e7ae2e6045305 | 3fe96ff7d6e988b3c276950e0615c0a4eeb1da8e | refs/heads/master | 2023-07-02T11:37:55.951514 | 2021-07-29T04:36:19 | 2021-07-29T04:36:19 | 390,238,480 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | from django.urls import path
from .views import completed, create_contacts, create_fund_account, create_payout, index,payment, refund,verifyPayment
from .webhooks import VerifyPayHook
urlpatterns = [
path('',index,name="index"),
path('payment/continue/',payment,name="pay"),
path('handlerequest/',verify... | [
"sherrywilson521@gmail.com"
] | sherrywilson521@gmail.com |
758613f5a6a971ee9c7da88463b1731b29accd18 | befab60aa7d857ab4e0dbee3499016c454b0f64f | /xmlExtract.py | bbbddffd09a342d6997e7510636d50e9eddafeda | [] | no_license | naruto0323/smai | 260506263f76842f020db4d0446bf0f8625eeed2 | 824617aaa3205daa55910871a6b9151886102763 | refs/heads/master | 2021-01-20T12:35:05.186305 | 2017-05-05T14:21:39 | 2017-05-05T14:21:39 | 90,383,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | import xml.etree.ElementTree as ET
import pickle
import sys
from nltk.stem.porter import *
stemmer = PorterStemmer()
reload(sys)
sys.setdefaultencoding('utf-8')
from nltk.corpus import stopwords
tree = ET.parse('subtask1-heterographic-test.xml')
root = tree.getroot()
sentences = []
words = {}
stop = set(stopwords.wor... | [
"ramchandra.0323@gmail.com"
] | ramchandra.0323@gmail.com |
428d2e6fe934576ddc2122a77c4ba8567f75dd3e | d57ff04e0e82a9c3a1338a63c523bd085ee5c794 | /DecisionTree.py | 2aae69047e47254f0f5959f8639765f87e9c1d81 | [] | no_license | esong200/QuantumStockTensorFlow | 86755fcf764dc60412bff4b08e57eb3a86053f1d | 596091e5b8dbb1e3643bc957471de71c960a625c | refs/heads/master | 2020-04-24T00:15:31.039348 | 2019-02-28T20:38:52 | 2019-02-28T20:38:52 | 171,561,015 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,419 | py | from sklearn.model_selection import cross_val_score
from sklearn.datasets import make_blobs
from sklearn.ensemble import RandomForestClassifier
from sklearn.tree import ExtraTreeClassifier
from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor, ExtraTreeRegressor
from sklearn import preprocessing
import... | [
"e.song200@gmail.com"
] | e.song200@gmail.com |
aac18132a830b5831635d8398042176d3291a187 | 970f122ccda9c165910657e8084d78fbc3d7e544 | /mlrun/serving/states.py | 69f0913c051f6ef24ead47e9f95a18bc6b90dcda | [
"Apache-2.0"
] | permissive | kusumy/mlrun | 2a25e88af0dabd05db5e3c3a0fb3787908763291 | 683e8c514d9c26f3a7e82b1becaf7fbf1006f4f2 | refs/heads/master | 2023-07-12T10:54:32.549325 | 2021-08-23T13:58:15 | 2021-08-23T13:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,000 | py | # Copyright 2018 Iguazio
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | [
"noreply@github.com"
] | kusumy.noreply@github.com |
bbb0f2c6d950d3c1625b3d04e1d404392e509f42 | 791eedd78b9fe753f998020efb9ff9d0270cd8d3 | /Python/CrashCourse/Chapter9/user.py | 1e06650fa786434cd673e06148520e5a3a96bda6 | [] | no_license | pavel-prykhodko96/source | 6214c212356ffa420bbc489adce104268f5efa12 | 77219b672bb14df93abd7b8203f486d0620533d8 | refs/heads/master | 2023-03-07T21:43:17.422232 | 2023-02-23T12:06:52 | 2023-02-23T12:06:52 | 248,736,899 | 0 | 0 | null | 2023-02-23T12:06:54 | 2020-03-20T11:16:45 | C | UTF-8 | Python | false | false | 1,311 | py | class User():
"""Stores users information"""
def __init__(self, first_name, last_name, **info):
self.first_name = first_name
self.last_name = last_name
self.full_name = first_name + " " + last_name
self.info = info
self.login_attempts = 0
def describe_user(self):
... | [
"47929311+pavel-prykhodko96@users.noreply.github.com"
] | 47929311+pavel-prykhodko96@users.noreply.github.com |
e39cc095116928a7ff373879228fa4f661896bc3 | 27fe9c0fb5f5459241d11a205bfa7c887d643db1 | /2022/day13a.py | 0a55387ebdd83c8981bb04d4d0f43c86e4c44b0a | [] | no_license | johnrozmaryn/adventofcode | 21c5fdd8d3a95882ce04103484538a215c49491c | 80d67371cfedb71eda0e35cd9130ee25b6c39091 | refs/heads/master | 2023-01-05T19:21:46.034612 | 2022-12-27T15:13:14 | 2022-12-27T15:13:14 | 225,509,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | f = open("day13.in")
contents = f.read()
pairs = contents.split('\n\n')
import ast
from functools import cmp_to_key
#ahh! cmp is all weird in python 3!
#it was handy, because if l == r it's 0, if l>r postive, if l<r negative
def compare(l,r):
l_int = type(l) == type(1) #see if they're integers
r_int = t... | [
"john.rozmaryn@gmail.com"
] | john.rozmaryn@gmail.com |
c43a60ed1b624520dfdb98277f2787d7bba25aa9 | 97d6715e6ca961a1ce98171559057d76ee304a26 | /Character-recognition/siamese_with_bg/alexnet.py | b4b2e9f6d6fb97e135d971c9d5a7126feeb3be8c | [] | no_license | abhaydoke09/Siamese-Network-For-Text-Recognition-In-Maps | 566d4e8894d98122f7fc1fbfca12f0b8959e7235 | d8d7364569e913f8af21577b51cf015a420ba708 | refs/heads/master | 2021-09-17T22:08:47.356052 | 2018-07-05T22:29:45 | 2018-07-05T22:29:45 | 104,268,509 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,431 | py | """This is an TensorFLow implementation of AlexNet by Alex Krizhevsky at all.
Paper:
(http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks.pdf)
Explanation can be found in my blog post:
https://kratzert.github.io/2017/02/24/finetuning-alexnet-with-tensorflow.html
"""
imp... | [
"abhaydoke09@gmail.com"
] | abhaydoke09@gmail.com |
b3d9e3409dc28504183585a91f91ea42ff4e75f9 | f111888515eb47dda6316e0163e1711c330bfd81 | /programming_technique_examples/main menu with input validation - functions, validation, robust design.py | 6cf09e60e6de21e0a7f252ed81f213f0c7f38fc8 | [] | no_license | awdimmick/GCSE-CS | eb8e1a3934d3005126970b466b436e34b7c5a54f | fe2f408598574583b893d3dd9ceadc9eff7f0f8c | refs/heads/master | 2023-04-28T07:09:47.723563 | 2023-04-17T07:38:07 | 2023-04-17T07:38:07 | 289,747,534 | 0 | 0 | null | 2020-08-23T18:50:01 | 2020-08-23T18:50:00 | null | UTF-8 | Python | false | false | 4,765 | py | """
Menu Helper Function
----------------------
This program demonstrates how you can write a helper function to make it really easy to show consistent main menu screens.
Combine this with other helper functions to obtain valid input from the user and you'll be sure to have a robust and efficient
program!
"... | [
"noreply@github.com"
] | awdimmick.noreply@github.com |
f101630ef1084e8a5ba07a65d0eadfae679205d2 | bc3b842fd9e4e0645dea30cdf3ff8d39e745eb09 | /melody/melody_types.py | 1e7e16620bd68e9f8912574bdae40d334bb72e56 | [] | no_license | rajansaini691/algorithmic_music | 66e53b0a35452ac851ecaaf2d10e081a349a1ce9 | 7a48269d334d89322ec859d218592ee2a6a5e5e8 | refs/heads/main | 2023-05-09T23:00:42.817117 | 2021-06-03T20:37:30 | 2021-06-03T20:37:30 | 358,388,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | """
Defines all of a song's layers of abstraction. If this file
is unwieldy to go through, please split it up.
"""
from dataclasses import dataclass
import enum
from helpers import note_name_to_midi, midi_to_note_name
from scale import Scale
# The direction the notes in a segment should go
class SegmentDirection(enum.... | [
"rajansaini@cs.ucsb.edu"
] | rajansaini@cs.ucsb.edu |
d80456331b4a047786914c0b00ae1b4e517dc147 | 3f06e7ae747e935f7a2d1e1bae27a764c36a77d1 | /day23.py | 28136ee107dd5557680c2c853d2ec3f553c3faa0 | [] | no_license | mn113/adventofcode2016 | 94465f36c46e9aa21d879d82e043e1db8c55c9da | 3a93b23519acbfe326b8bf7c056f1747bbea036a | refs/heads/master | 2022-12-11T22:57:21.937221 | 2022-12-04T16:37:24 | 2022-12-04T16:37:24 | 75,545,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,572 | py | #! /usr/bin/env python
# Find result of long-running instruction set
import sys
import time
def intOrRegisterValue(x):
if x in 'abcd':
return registers[x]
else:
return int(x)
registers = {x:0 for x in 'abcd'}
registers['a'] = 7 # Part 1
registers['a'] = 12 # Part 2
print "Start:" + str(reg... | [
"recyclebing+github@gmail.com"
] | recyclebing+github@gmail.com |
43125388e7f13fb3f397da7be3da1133ae9fbb3d | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/response/KoubeiServindustryPortfolioDataCreateResponse.py | e5a08c2fa59d81fa90b88ce8d9d521a12247d995 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 778 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class KoubeiServindustryPortfolioDataCreateResponse(AlipayResponse):
def __init__(self):
super(KoubeiServindustryPortfolioDataCreateResponse, self).__init__()
self._portfol... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
100aae853ebdf97fc26c93f4179915db3c17836d | 5024b82798ddeeb216b1e67d12a6dba97f886d32 | /Basic/ejer01.py | 4fd002bfbcd51315de2533a8de587268b52cd562 | [] | no_license | Gomez5sh/PyLearn | d85878ef299c556b188d35d53a3396adacd9caa9 | 869ddb72a2d09ba862dc7b1732c44fd75419bb5e | refs/heads/master | 2023-02-18T01:45:10.380095 | 2020-09-04T05:28:48 | 2020-09-04T05:28:48 | 292,753,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # Declaraciones, sentencias y multilinea
valor = 10*5
print(valor)
valor = 10 * 5 + 7 * 3 \
/ 11 * 8 + 34 \
+ 12 - 10 * 40 - 25
print(valor) | [
"eagomez2387@gmail.com"
] | eagomez2387@gmail.com |
07dcfbdea494e3e6503f63b1498e94bdd1fee207 | 5f535b35375d68f407ee2f1153b97b686c9a8365 | /aircraft_scanning_control/scripts/uav_manual_scanning.py | 7cdedf4107cbfaac8750f76c38d30624fcb97902 | [
"MIT"
] | permissive | suneric/aircraft_scanning | d32a0ba3e44a0954a1a6a4a283615ca142a4cee8 | 18c7deb8405eabecab643e7ebbda5f3a61e78393 | refs/heads/master | 2022-06-04T11:17:27.210208 | 2022-05-18T22:49:32 | 2022-05-18T22:49:32 | 239,586,464 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | #!/usr/bin/env python
import rospy
import numpy as np
import transform
from uav_controller import uav_cam_controller
from sensor.pointcloud import data_capture
from sensor.camera import realsense_d435
import os
import glob
import struct
import ctypes
if __name__ == '__main__':
# clean folder for save point cloud ... | [
"syf_more@163.com"
] | syf_more@163.com |
cf5419266d22c7d8979c1cc0e6bef7b74e75950f | 4819ed98a31fce25ea53ba8368e817a3c4165768 | /Estructuras repetitivas/complementarios/TP7.py | a793c48ca41a2e7591b0f19c278462bd7761ac19 | [] | no_license | Lusius045/LucioRP | 155e929549cd528e7bc9eda82567555ca1295734 | 0df07f596887e8743426317cd468aafff4e4a9eb | refs/heads/master | 2022-10-10T18:36:12.728135 | 2022-09-13T14:03:35 | 2022-09-13T14:03:35 | 243,602,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | print("Ingrese un número:")
num = int(input())
const = 0
for i in range(2,num):
if num % i == 0:
const = const+1
if const == 0:
print(num," es un número primo.")
else:
print(num," no es un número primo.") | [
"noreply@github.com"
] | Lusius045.noreply@github.com |
0e272ec741ac296e70453d134d506c54d53c8c38 | cbd5be8ec36d68dce7ebbfd78277ffe80bf0e50d | /mult13.py | f366f60098c300deb2b74512802ef766f9e5e614 | [] | no_license | Gaya3balu0509/program | 56afa3451da71d7e434b3a1c10d22cef71e63acb | 9b1c5c42b9f57368ecc2ee274e56d2ee094a58c8 | refs/heads/master | 2020-05-28T03:19:43.368488 | 2019-08-12T11:35:30 | 2019-08-12T11:35:30 | 188,865,443 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | numb1=int(input())
if numb1%13==0:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | Gaya3balu0509.noreply@github.com |
d2f3608b843b0561afcdc922cf838154a72669ae | cf494b5f507d2b887f9a37a679fcbd3facb63243 | /pytorch_version/preprocess.py | 2a88ef1e07328b3aa34703b1da248759cb6eb2f9 | [] | no_license | w904292841/Voiceprint_lock | 43828be2388c30a4b2408e4457a9858b6730602e | 2fab15d1f7a9c3b9d2dc68bbfa65220df4eafac3 | refs/heads/main | 2023-02-06T02:06:29.777680 | 2020-12-25T07:54:07 | 2020-12-25T07:54:07 | 323,316,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | import csv
import os
import os.path
import torch
import mfcc_reader
father_path = "H:/科研/vox_data/vox1_dev_wav/"
sub_path = ""
write_path = "H:/科研/vox_data_pre/"
all_list = []
class_head = []
file_head = []
file_name = []
def exisit_equal(lis):
for i in range(len(lis)-1):
if i == lis[-1]:
ret... | [
"904292841@qq.com"
] | 904292841@qq.com |
0e36360a91fe459fa173375c9026a8911f50919c | 5f0787ed95f3858e3e72e0e19bde89ba9d5faaf2 | /pyrapidparser/run/wobj.py | f00f3169a762e20032357326506b05c6b0dd5f99 | [] | no_license | jf---/pyrapidparser | 1e07826b885ab524310a90c7bef98a83b3a1f644 | 87f41d2c6a3544cf335bd8088bd33e77f47bd04e | refs/heads/master | 2020-01-23T21:04:09.624440 | 2016-11-23T16:15:26 | 2016-11-23T16:15:26 | 74,579,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | #this file is an automatic traslation of rapid code
import sys
sys.path.append('..')
import pyrapid
from collections import OrderedDict
import copy
import sys
# Line test/wobj_issue.prg:1
################### Start module ODC ####################
pyrapid.Symbols().PushScope('ODC', None)
#################################... | [
"jelleferinga@gmail.com"
] | jelleferinga@gmail.com |
874f90cfe5e2c9677d1ea430a98f1b30c398836e | 2259cee70a57c00e089d699aea257e6325b1ccfc | /urls.py | 2fd17de4a8f4e461f37337a26789d945d521ccdd | [] | no_license | SudhanshuSahil/vsm-django-app | ee62950c7bbf02aecdc8aace5e42890336323ebc | 86ddf8f8f47623b2161d3e1febef5e194a77d115 | refs/heads/master | 2023-03-21T18:28:57.770339 | 2021-03-03T17:57:08 | 2021-03-03T17:57:08 | 344,215,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from django.contrib import admin
from django.urls import path, include
from rest_framework import routers
from vsm import views
router = routers.DefaultRouter()
router.register(r'instruction', views.InstructionViewSet)
router.register(r'faq', views.FaqViewSet)
router.register(r'profiles', views.VSMProfileViewSet)
rout... | [
"sudhanshusahil.19@gmail.com"
] | sudhanshusahil.19@gmail.com |
4972b713381119c240516285a229e2e89c1080c3 | 068e5980d40b4806446d649d5e76fa278314703c | /TheAlgorithms/data_structures/python/linked_list/test.py | 61939f7d03b609e9359fee7f4dcf8735ccdb6644 | [] | no_license | zonkisa/leezyer | a4807a515a6ddb46b07b130cbbc4be28d3ed0de7 | 83d453f34734e99fb5c6b559444912b64d6057c7 | refs/heads/master | 2020-05-15T22:29:38.635712 | 2019-08-05T14:10:41 | 2019-08-05T14:10:41 | 182,528,267 | 0 | 0 | null | 2019-04-21T12:09:51 | 2019-04-21T12:09:50 | null | UTF-8 | Python | false | false | 526 | py | from __future__ import print_function
from TheAlgorithms.data_structures.python.linked_list import linked_list
from TheAlgorithms.data_structures.python.linked_list import circular_linked_list
def testHasCircle(lst):
print(lst.has_circular())
def testIsCircle(lst):
print(lst.is_circular())
if __name__ == ... | [
"271169495@qq.com"
] | 271169495@qq.com |
2e772f55c2c27f68f6544766d08317741c917946 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/17675/17675.pypy3.py | 7063ffb72b39e59872c20046c6617499be8e6fde | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,372 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
b9e6149164b87a1472585e824d937adcc220d393 | c0cb1559188be071f1cd91d0adbad0ca850be0e1 | /problème dame dans un échéquier.py | 2dd481736794d0a2e70c1647a6960e629ebc9a32 | [] | no_license | mines-nancy-tcss5ac-2018/td1-cordel8u | d7299e661082d57ddf9ed2652c6ba345696d6641 | a766d874042bae2394aa84fded2ff683647d6ea5 | refs/heads/master | 2020-03-31T22:59:50.329544 | 2018-10-11T18:46:45 | 2018-10-11T18:46:45 | 152,639,007 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 2,590 | py | from scipy import *
def case_libre(n,L,M):
#Prend en argument un tableau M correspondant à l'échéquier
#et une liste L correspondant au placement de la nouvelle dame
#il ressort un nouveau tableau où il est inscrit les cases
#où il est impossible de placer une nouvelle dame
S=array(zeros(... | [
"noreply@github.com"
] | mines-nancy-tcss5ac-2018.noreply@github.com |
acc31c814ea75d936d6f304ff2a25b5a76085f86 | 78af322dd1e3b29fc627aa6817eed164c2c751c3 | /iraclis/_3objects.py | bced125ae65cedf4cb053b948d2b5586a293e3d5 | [
"CC-BY-4.0"
] | permissive | nespinoza/Iraclis | 8e676ffe16dbda6caf8f32fb7dde464b75540c65 | 3b5dd8d6bc073f6d2c24ad14341020694255bf65 | refs/heads/master | 2022-10-18T09:55:32.818159 | 2020-06-17T19:39:03 | 2020-06-17T19:39:03 | 273,058,797 | 0 | 0 | NOASSERTION | 2020-06-17T19:14:20 | 2020-06-17T19:14:19 | null | UTF-8 | Python | false | false | 9,141 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from ._2variables import *
class DataSet:
def __init__(self, input_data, direct_image=None):
if direct_image is not None:
if isinstance(direct_image, str):
if os.path... | [
"aggelostsiaras@gmail.com"
] | aggelostsiaras@gmail.com |
621018c2068da4101237b017b6120c6bc57e8dca | 22cd4bbf1ef7cd4d9e9ec24d2929691ae2e7b07f | /ansible/roles/vm_set/library/vm_network.py | 5fdddb28d83d022c95f3522966cef3b1aaa1640b | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | wadelnn/sonic-mgmt | 64c0285ea7225b42899572bb2241bffef0ff0345 | a2ab261dbadf1884e081c99b9f3f815a2f3b0844 | refs/heads/master | 2021-01-22T02:34:25.054685 | 2017-02-03T22:32:07 | 2017-02-03T22:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,629 | py | #!/usr/bin/python
import subprocess
import re
from docker import Client
from ansible.module_utils.basic import *
DOCUMENTATION = '''
---
module: vm_network_create
version_added: "0.1"
author: Pavel Shirshov (pavelsh@microsoft.com)
short_description: Generate virtual network for a set of VMs
description:
- With cm... | [
"shuche@microsoft.com"
] | shuche@microsoft.com |
8f3b0581124daddbc9643e5f936c5d6e1a07bd9a | 053a340d04b17126fb9ce19d69b098c0c1204417 | /yxm/yxm/apps/area/migrations/0001_initial.py | f45404d904a2bc628c6bac9d0f8014b7b70aa7a4 | [] | no_license | H-H1/django-mall | 2e729a1cbc4c1772f2a9b0b9c139f80d07fd9915 | e8e6c7f90cb21ee0f80609997d4e19b13f737ec4 | refs/heads/main | 2023-06-06T19:41:35.848869 | 2021-07-13T04:23:16 | 2021-07-13T04:23:16 | 385,458,429 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # Generated by Django 2.2.17 on 2021-05-04 10:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Area',
fields=[
... | [
"2353367985H-H1@users.noreply.github.com"
] | 2353367985H-H1@users.noreply.github.com |
ca99edf3dd22c0cdb19b5da960df29c915f60306 | 96ac7dd0b18d61e57f0e51efdabf89e344576b56 | /lib/imapwatch/filelikelogger.py | 8e93f9f9a6910dd83b2ffd049467a460cd22a605 | [] | no_license | kennonb/imapwatch | c87c4cf10a52c850a8e4312e3a86f84c7e8da4d7 | 04153d50f03fff77eaa726f6b7cd3e55d962e6b3 | refs/heads/master | 2020-03-16T15:37:55.501312 | 2018-07-07T00:58:31 | 2018-07-07T00:58:31 | 132,752,348 | 0 | 0 | null | 2018-05-09T12:17:29 | 2018-05-09T12:17:29 | null | UTF-8 | Python | false | false | 593 | py | import logging
import sys
class FileLikeLogger(object):
"""
Fake file-like stream object that redirects writes to a logger instance.
"""
def __init__(self, logger, log_level=logging.INFO):
self.logger = logger
self.log_level = log_level
def write(self, buf):
for line in buf... | [
"m@mdbraber.com"
] | m@mdbraber.com |
9147d66431be067846952b62a328897b2aa98c60 | 56152b48fab2a537442e9302819c14323cde09e3 | /htmlDownloader.py | 714b20e1b97c4ed3b89b5f230f8c0c29a97f1eac | [] | no_license | opyqp/simpleCrawler | dc002595500c27f3fb6435585192cf4f851742dc | 17563cdf2f641c4de89368b2a91064bdadded1f0 | refs/heads/master | 2020-04-14T22:42:53.929748 | 2019-01-05T02:41:48 | 2019-01-05T02:41:48 | 164,174,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!/usr/bin/env python
# coding : utf-8
import requests
class htmlDownloader(object):
def download(self, url):
if url is None:
print("the url is None:",url)
return None
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)'
headers = {"User-Agent":user_agent}
r = requests.get(url, headers=headers)... | [
"yuanqinpeng@gmail.com"
] | yuanqinpeng@gmail.com |
6132b5f00b82f3de6048da7a2d0eff2d86c1215e | 22cb6eb3272649e45424b91c0a52a7b2ed588d79 | /Thesis/figures/Kilbinger_banana/plot_first_proposals_2500samples_before_mc_adapt.py | d00bd45b67d72589fe0f708c3d6bb55c1a67749b | [] | no_license | jPhy/master_thesis | 63df053af84fbf852720ceb547af31e1119d25d8 | e466a2a3363b3dfbd684d24079581048c68ab22b | refs/heads/master | 2016-09-05T13:38:55.665091 | 2015-03-17T17:26:33 | 2015-03-17T17:26:33 | 18,561,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | #! /usr/bin/python
import pypmc
from pypmc.tools import plot_mixture
import numpy as np
from matplotlib import pyplot as plt
# choose a dimension
dim = 20
# load target function
from banana_function import LogTarget; log_target = LogTarget(dim)
print 'running Markov Chains'
# Markov chain prerun --> run 10 Markov ch... | [
"gu92biv@mytum.de"
] | gu92biv@mytum.de |
b2262ac385c5fdf6442a2e8d4893d66427960a22 | b54d6a18bc5e86462c1f085386bc48065db5851c | /RandLinkVelDist.py | e43b4b1d5dc7d36505295ad323282e22a34e50c3 | [] | no_license | zoshs2/Percolation_Seoul | 5b5b8ebabe186fbc9e265fc190c3d0641e196517 | 69c0aa99d1f7a2fb9259681a1ed63794cbe5ea5c | refs/heads/main | 2023-07-28T20:50:13.393765 | 2021-09-28T13:25:31 | 2021-09-28T13:25:31 | 390,687,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py | import os
import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from datetime import datetime
from statsmodels.nonparametric.kernel_regression import KernelReg
def RandLinkVelDist(date_dataset, sample=20, reg=False, time_step=5, savefig:'file_name'=False):
'''
Display ... | [
"zoshs27@gmail.com"
] | zoshs27@gmail.com |
2a2366415fcc370032093aed684574abb337bee2 | 3b290545c52066c8ff7a2ae6c677c7782bddcb24 | /app.py | 9c51980e54b9f2aeafb01f95e25fbc68900f450b | [] | no_license | munira4x/ModelDeploy | 8beac73b370db7a3f07180ec4e6e7ce26e768af5 | 781930602ca72c37e9a24c30b48d9267140584a3 | refs/heads/main | 2023-07-21T07:14:08.225886 | 2021-08-22T20:06:04 | 2021-08-22T20:06:04 | 398,889,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | from flask import *
import pandas as pd
app = Flask(__name__)
@app.route("/")
def hello():
return("index.html")
@app.route("/index" , method = ['POST'])
def submit():
if request.method == "POST":
@app.route("/")
def show_tables():
data = pd.read_excel('toy_datadase.csv')
data... | [
"noreply@github.com"
] | munira4x.noreply@github.com |
f58c308b30604b42295c8c1c08aba4f6488df298 | fc0dc72673e8867f71dfd94122fa4bce99ae224d | /udemy/lesson12_data_structures/dict_word_count.py | f8944d7b269fa0f078f10b910f7281e476dc06a9 | [] | no_license | rzuniga64/python | 2fec4a8a3cb2397849004b46312db885c41321b9 | dbdf65d282477803f57c3a35a4d50491f7943805 | refs/heads/master | 2021-01-17T13:57:51.632635 | 2017-02-15T05:28:55 | 2017-02-15T05:28:55 | 11,941,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | sentence = "now is the time for all good people to come"
sentence += " to the aid of their party"
words = sentence.split(' ')
words = sorted(words)
print("Sentence in sorted order:\n")
print(words)
numWords = {}
for i in range(0, len(words)):
if words[i] in numWords:
numWords[words[i]] += 1
else:
... | [
"rzuniga64@gmail.com"
] | rzuniga64@gmail.com |
8d935ff69d7f2dfcb453d956d57f2d6fcd6f448c | 234727cb15c3415e1a090078df6fb8e1092b77bb | /ichecksum.py | fcaeb26f1d65ed48cdc4f1f5679702bdcf89fa39 | [] | no_license | berkantbayraktar/ComputerNetworking-RDT | e13d0a6a36e129953274616cde6180d0bad3b6c2 | 3ec012f48f103a2f23187f41347a428403e09c6c | refs/heads/master | 2023-03-25T18:11:39.248224 | 2018-12-27T11:15:45 | 2018-12-27T11:15:45 | 351,861,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | # An Internet checksum algorithm using Python.
# This program is licensed under the GPL; see LICENSE for details.
# This procedure can be used to calculate the Internet checksum of
# some data. It is adapted from RFC 1071:
#
# ftp://ftp.isi.edu/in-notes/rfc1071.txt
#
# See also:
#
# http://www.netfor2.com/ipsum.htm
... | [
"berkantbayraktar06@gmail.com"
] | berkantbayraktar06@gmail.com |
739c240b7a18b467eba9b58892e797d8eea4f3cb | 5d51470d5c9d7d951170810a7150fbe50ae340db | /print_results_hints.py | d1e1dae1dc0ff135e806190bee56f4298877fb89 | [] | no_license | ElenaM10/Udacity-Project1 | ff42aede5f2645477dd0a7bda4d5dbab2f247238 | 61a39b0e4f0d23fb2a0fbc83a4635398d873df02 | refs/heads/master | 2022-06-05T08:12:01.801874 | 2020-05-05T12:30:15 | 2020-05-05T12:30:15 | 260,978,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,667 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/print_results_hints.py
#
# PROGRAMMER: Elena M
# DATE CREATED: 05/03/2020
# REVISED DATE:
# PURPOSE: This is a *hints* file to help guide stu... | [
"noreply@github.com"
] | ElenaM10.noreply@github.com |
0584d64e008097ac104a0042de0a040dc2de4dd7 | fc9e71fda5a6bfd16614705b537f2ebe5d91b16c | /core/src/autogluon/core/utils/loaders/_utils.py | 7509eec7a2cb2365f40ce9afe99f8f1765649707 | [
"Apache-2.0"
] | permissive | sackoh/autogluon | e8f9d9d7bdedea302cb999aea1a5ef33435a55bb | e9c95345303f930195a74ecd7fcde5c7cace3add | refs/heads/master | 2023-07-16T13:42:29.573260 | 2021-08-24T20:42:52 | 2021-08-24T20:42:52 | 295,719,004 | 0 | 0 | Apache-2.0 | 2020-09-15T12:20:35 | 2020-09-15T12:20:34 | null | UTF-8 | Python | false | false | 10,168 | py | import zipfile
from typing import Optional
import os
import warnings
import tqdm
import sys
import uuid
import logging
import hashlib
import functools
import requests
import numpy as np
import boto3
S3_PREFIX = 's3://'
INT_TYPES = (int, np.uint8, np.int8, np.int32, np.int64)
FLOAT_TYPES = (float, np.float16, np.floa... | [
"noreply@github.com"
] | sackoh.noreply@github.com |
2b1898bef6d4ef7736e6be2e09c1edf815ece78a | fc3831f9c674fbe6f082be96914f9c7baac1bd6f | /algorithms/find_sums.py | 99424243972c0ef9ea17e78046c4a3aafdc761c4 | [] | no_license | RhysJMartin/algorithms | 872436347d52c6d247ccd40350dfd84c06c2a9cb | b64aa20ce1b3cd63ffbf8a67211762f3556ab5c3 | refs/heads/master | 2020-03-18T16:05:12.991476 | 2018-09-29T09:54:44 | 2018-09-29T09:54:44 | 134,945,572 | 0 | 0 | null | 2018-09-29T09:54:44 | 2018-05-26T08:58:44 | Python | UTF-8 | Python | false | false | 780 | py | import os
from tqdm import tqdm
def load_data(file_name):
file = os.path.join(os.path.dirname(__file__), '..', 'data', file_name)
print('loading file: {}'.format(file))
data_file = open(file, 'rb')
data = []
for line in data_file:
data.append(int(line))
return data
def count_2_sums(d... | [
"rhysjmartin@gmail.com"
] | rhysjmartin@gmail.com |
41f0b061faa865135f2f57ad59a1ae0f19e92f19 | 0b6f7b0c0915f5ac9e18690e28dfa76c331ea55b | /rivet/local/bin/make-plots | e6ccfd4e7b75491f5c776ce8dd6b3a4ac53648b0 | [] | no_license | Spudmeister/tuningAna | bb81148187528121a8d027512ac0792a12ee937e | 4bdfff74391ba478f0aaecdee78b9c56c929a402 | refs/heads/master | 2020-05-21T16:43:33.386264 | 2016-10-28T08:04:48 | 2016-10-28T08:04:48 | 65,187,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125,706 | #! /usr/bin/env python
"""\
Usage: %prog [options] file.dat [file2.dat ...]
TODO
* Optimise output for e.g. lots of same-height bins in a row
* Add a RatioFullRange directive to show the full range of error bars + MC envelope in the ratio
* Tidy LaTeX-writing code -- faster to compile one doc only, then split it?
... | [
"aevans@physics.umn.edu"
] | aevans@physics.umn.edu | |
3938108372cd25c831552fd33498eec3bf088db5 | e214193fdbc342ce1b84ad4f35bd6d64de7a8767 | /bsn/template_app/conifg/default/id.py | 363401ba409373ea501487650145067b731965a0 | [] | no_license | bsn069/py | 78f791dab87c3246a1a173263a703c63c543c8ad | 3b6c2070d38f61eb8511495d38b1cec522ad6de7 | refs/heads/master | 2020-03-10T04:30:00.282303 | 2018-10-07T15:29:45 | 2018-10-07T15:29:45 | 129,193,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from bsn.common import file_import_tree
file_import_tree.file_begin(__name__)
import os
f_strFileName = os.path.split(__file__)[1]
f_strFileBaseName = os.path.splitext(f_strFileName)[0]
from .config import f_mapConfig
f_mapConfig['id'] = 1
file_import_tree.file_end(__n... | [
"513026809@qq.com"
] | 513026809@qq.com |
064076ab815d5e9e1cec65c82a13e5039b2571f3 | a5f879e45d54eccee4ef5e5eb229dfeabb7711d4 | /otros/imgclas_lo/data_utils.py | 8cb1e3b795efad991ae6eebd685fd31085f4337e | [
"Apache-2.0"
] | permissive | lmc00/tfg_en_desarrollo | ae64fc280ca2f957ec54b5c63cf7ea63c43da6f0 | 30e61f4bb3f060f7468b1bb94930fcbe0d0f92ae | refs/heads/master | 2021-03-08T14:51:53.639367 | 2020-03-10T16:42:07 | 2020-03-10T16:42:07 | 246,352,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,977 | py | """
Miscellaneous functions manage data.
Date: September 2018
Author: Ignacio Heredia
Email: iheredia@ifca.unican.es
Github: ignacioheredia
"""
import os
import threading
from multiprocessing import Pool
import queue
import subprocess
import warnings
import base64
import numpy as np
import requests
from tqdm import ... | [
"lmc00@alumnos.unican.es"
] | lmc00@alumnos.unican.es |
c9e386e60c7f223b7ad420acc9e034ad0036f3e4 | df2bd677efcb8e1afa14b1c7111dd3fb9923dae6 | /app.py | c9474dc4da972b69ad284e918013d1214c5e9960 | [] | no_license | Tenoke/tensorflowjs-rps | 055872f73b43d54388013fa3b617c502261a30b5 | 7c675f869cf2e2969d3b6fbd0650b7419f5a68f0 | refs/heads/master | 2020-03-24T14:58:31.201111 | 2018-07-30T18:17:44 | 2018-07-30T18:31:55 | 142,782,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from flask import Flask, render_template, request, Response
app = Flask(__name__)
@app.route('/rps')
def rps():
return render_template('rps.html')
@app.route('/save', methods=['POST'])
def save():
"""
Optional endpoint for saving user games
"""
data = request.get_data().decode("utf-8")
wit... | [
"svilen.todorov@nexiona.com"
] | svilen.todorov@nexiona.com |
22c7dca88ffb0a39939a59965d2870f48a2959c2 | bef807fa68ce7b4c77ddf4f4a030f9a5b798e419 | /GEN-SIM/configs/BulkGravToWW_narrow_M-3000_13TeV-madgraph-herwigpp.py | 3f3ea6ebfefea9d8c1a228279ebfc87446360a65 | [] | no_license | clelange/DibosonSignalProductionHerwig | 97cf93963eb27f450e9ad95c549622a1b24d2cdd | f1477a61a709f5338d07b3c8a04131a8bc301783 | refs/heads/master | 2021-01-11T14:19:09.108870 | 2017-02-08T16:26:21 | 2017-02-08T16:26:21 | 81,343,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,886 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/ThirteenTeV/Grav_Hadronizer_TuneEE5C_13TeV_madgraph_differentPDF_herwigpp_cff.py --filein dbs:/BulkGravT... | [
"clemens.lange@cern.ch"
] | clemens.lange@cern.ch |
4d0f962c3d5b7d6166bccada19f8017d05660af3 | 945c1f0642c7abbeafbf5a103d58a41050173a92 | /h5_to_pb.py | b456ea82608d0bf7b74efc4dc3dc5158a09149ba | [] | no_license | Jayanie/Sinhala-Speech-Recognition-Module | e128910d54c92953b1f526a69d69e8f4833cc858 | c288752b8f38f11510eb3d6cf2a8bcd313a45a7c | refs/heads/master | 2023-06-22T20:28:58.970843 | 2023-06-19T03:40:03 | 2023-06-19T03:40:03 | 246,554,222 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from keras.models import model_from_config
| [
"jayanieb@gmail.com"
] | jayanieb@gmail.com |
0c0ded10cd6bd928c1a0139a00ea914d63bbfe18 | e8d7951f1f37c337326166219d9ab67a6103ce8e | /casemgmt_example/auth/__init__.py | f62386ce132b61e3fb95f5b8f323960e237544d0 | [
"MIT"
] | permissive | saolsen/oso-casemgmt-django | 8eb29431c26086a0dc76cf2056487bab04873d09 | 05e7e1d54c0ca274341df3fa53c82b9735c377c6 | refs/heads/main | 2023-03-04T18:24:33.791662 | 2021-01-27T19:39:18 | 2021-01-27T19:39:18 | 339,831,889 | 0 | 0 | MIT | 2021-02-17T19:22:05 | 2021-02-17T19:22:04 | null | UTF-8 | Python | false | false | 289 | py | from django_oso import Oso
from . import oso_extensions
def register_extensions():
# Register extensions/types into Oso
Oso.register_constant(oso_extensions.PermissionHelpers, name="PermissionHelper")
Oso.register_class(oso_extensions.PermissionInfo, name="PermissionInfo")
| [
"5084545+devmonkey22@users.noreply.github.com"
] | 5084545+devmonkey22@users.noreply.github.com |
f72ac11ac30be910cc63471b926300b8dfc75327 | 75081787fb06264d4d90b08a18a17bdb9db811e8 | /yaql/cli/__init__.py | 207fa154d6a98115679be25792cd53808a14d3c4 | [
"Apache-2.0"
] | permissive | istalker2/yaql | f39b5e7462544a41a9adcc5f18272ea2bde011bb | 0c1d28c2023b506a9c601b42b1dd6b7714dc0b06 | refs/heads/master | 2021-01-21T16:38:19.408562 | 2014-01-21T15:55:39 | 2014-01-21T15:55:39 | 16,107,265 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # Copyright (c) 2013 Mirantis, 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... | [
"ativelkov@mirantis.com"
] | ativelkov@mirantis.com |
ffa649ffc9007d2d7beafeb7e371b5ef568458a2 | fb8b513842138f2251c18ee751a9341a004b76d2 | /solutions/0-20/problem_6_sum_square_difference.py | 94543aa1beca134e9dbdfc4d6e42ecc087be0002 | [] | no_license | den4kox/project_euler | ad041371711d0880d2742038cc529aa0db4ffdfb | 920813e6b9f61cfe27558ef3caffae92555896cc | refs/heads/master | 2021-01-01T05:22:14.190063 | 2016-05-25T12:52:21 | 2016-05-25T12:52:21 | 57,980,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | """The sum of the squares of the first ten natural numbers is,
12 + 22 + ... + 102 = 385
The square of the sum of the first ten natural numbers is,
(1 + 2 + ... + 10)2 = 552 = 3025
Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 2640.
F... | [
"den4kox@gmail.com"
] | den4kox@gmail.com |
1cbd1b138e8c9056778b071e1abb5923ae0f5581 | fe28e7d49df19dfc62c169214c6e9554664f8a76 | /day1/calc.py | 90a8332fcfcc2561a5431ccf8e9831f54c84cff4 | [] | no_license | jackmooooo/Week-3 | 13b07dbc9c51b569f4cbec2baeb077f23d685fca | 37373a59b3248046d72f8256865b9260ea63a795 | refs/heads/master | 2020-03-24T08:19:50.767394 | 2018-07-27T15:18:51 | 2018-07-27T15:18:51 | 142,592,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py |
import wx
import sys, os
def add(a, b):
return a+b
def sub(a, b):
return a-b
def mult(a, b):
c = 0
for i in range(b):
if c == 0:
c = a
else:
c = add(c, a)
return c
def div(a, b):
return a/b
def pwr(a, b):
c = 0
for i in range(b):
if c... | [
"stephanielam@comcast.net"
] | stephanielam@comcast.net |
c00366144af3c60cf5607f0d5fc17155c15ffd32 | 2623a7d5002c78c8dbe571db931394a61b9abca0 | /register/pymote_env/Scripts/pilprint.py | 6ed994857db0f5bb98a48cebb386be1a122f8cfe | [] | no_license | harshit23897/IIITV-ECAMPUS-FINAL | 41cdc4948b09c342afa5a2e2250fec13027bf08b | 87df78e5ffb3363d8ce496c6fc5041eb4e2e71e6 | refs/heads/master | 2021-09-09T01:51:07.458945 | 2018-03-13T07:47:56 | 2018-03-13T07:47:56 | 113,251,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | #!c:\users\dell-pc\desktop\iiitv-ecampus-master\register\pymote_env\scripts\python.exe
#
# The Python Imaging Library.
# $Id$
#
# print image files to postscript printer
#
# History:
# 0.1 1996-04-20 fl Created
# 0.2 1996-10-04 fl Use draft mode when converting.
# 0.3 2003-05-06 fl Fixed a typo or two.
#
f... | [
"harshitjain23897@gmail.com"
] | harshitjain23897@gmail.com |
7a8025dcb81d5b1fc065dd9d0723bdbbe3e61a4c | 1b4dc714cd5f337260747d112cb123e1a54fd5a9 | /skeletons/head_remap.py | 24559b27db1541b5f387fdc3c109682b515fffb7 | [] | no_license | darrickyee/daz | 0fab97314c51b4151f1b8d608978f7ef79c78bb3 | 4a5c559e83aa87c4b048db199d52add2dc58a98d | refs/heads/master | 2020-04-21T15:46:07.060350 | 2019-11-13T02:45:54 | 2019-11-13T02:45:54 | 169,679,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | HEAD_MAP = {'Neck_M': 'neckLower',
'Head_M': 'head',
'Jaw_M': 'lowerJaw',
'JawEnd_M': 'Chin',
'Tongue1_M': 'tongue01',
'Tongue2_M': 'tongue02',
'Tongue3_M': 'tongue03',
'Tongue4_M': 'tongue04',
'Eye_R': 'rEye',
... | [
"dyee@air.org"
] | dyee@air.org |
f92cbe0802128443f0b9e5f1da8b25c2405691ea | 164e18ee979cc134e31212cb6d5af4f31cb37f60 | /Homework_3/I_polyglots/main.py | cd79f2db7804ac6f07b5bb9b61b706b1360bc134 | [] | no_license | IlyasDevelopment/Yandex-Algorithm-Training | 626649f2bca6392858d9411a1b4ffea1d028a2ba | 2a7539dcb58b3c69b804635855997ecd86f0ea0a | refs/heads/main | 2023-07-13T21:23:37.501005 | 2021-08-06T11:04:35 | 2021-08-06T11:04:35 | 376,364,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | def get_languages(m):
languages = set()
for i in range(m):
languages.add(input())
return languages
n = int(input())
all_languages = set()
common_languages = set()
for i in range(n):
m = int(input())
new_languages = get_languages(m)
all_languages |= new_languages
if i == 0:
... | [
"noreply@github.com"
] | IlyasDevelopment.noreply@github.com |
c91a7b5364ed05d94b915ad3edca42e51af1ea75 | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/662.py | df18e5f15146532ef8f12376b46b3043f70c7355 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | class Solution:
def widthOfBinaryTree(self, root: TreeNode) -> int:
ans = 1
dp = [(root,1)]
while dp:
s, m = float('inf'), float('-inf')
l = len(dp)
for i in range(l):
t, i = dp.pop(0)
if t.left:
dp.appen... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
3fd3878a08b3f0b3f00dac287d62c71984f01380 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2017_09_01/models/application_gateway_available_waf_rule_sets_result_py3.py | 1d90cb1f1470bffbefbb643312ec48f97b2613b3 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,104 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
e3683f15f1c1f8d0bfab9cf5561642086cd81dd5 | 824b494a9d789cb2afd1397cacb50b91efeb6fb9 | /redfox.py | 003ae78a290bf4a3acbbc3174266b1a8cbfb902d | [] | no_license | zymil/RubberDucky-Hunter | 6cada22b9d68fddf59dd079434e8a5bf7a343d04 | d363b3cd35cfcbdc3994ffca47df04a0224819e8 | refs/heads/main | 2023-08-30T20:18:01.519497 | 2021-11-16T19:32:15 | 2021-11-16T19:32:15 | 322,376,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from pynput.keyboard import Key, Listener
import logging
import time
import ctypes
#.pyw fica invisivel
prevTime = 0
def timeElapsed(start, end):
delta = end - start
return delta
def stop(key):
if key == Key.esc:
return False
def keypress(Key):
global prevTime
now=time.... | [
"noreply@github.com"
] | zymil.noreply@github.com |
640e21954409059be57ffe645324d501deee5f19 | 1354fc288e8bb87fad660fce3004b7db471c6a7c | /utils/global_count.py | d3760475a72121a6d5a35f5025631691e34ab3f9 | [] | no_license | zhangjunwang/drawing_and_paintings_network_make_photo_retouching_easier | a89cc60aff2dd5d1b377973c48d37cd530625dd7 | 600a760044d873ab34d3e3e24278c858fa8fe415 | refs/heads/master | 2020-09-19T03:50:02.291802 | 2019-10-28T03:04:08 | 2019-10-28T03:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py |
# -----------------------------------global_count--------------------------------
def _init_train_count():
global EPISODE_COUNT
EPISODE_COUNT = 0
def _add_train_count():
global EPISODE_COUNT
EPISODE_COUNT = EPISODE_COUNT + 1
return EPISODE_COUNT
def _get_train_count():
global EPISODE_COUNT
... | [
"459239181@qq.om"
] | 459239181@qq.om |
b49a2361ae55bc3867dea12e98fd98daf22d2e36 | d26c44a84a824f63cfdcf7c45d26f14940179701 | /core/utils.py | 30423ef39200ea368629d1ea5cad2a3e49f7a893 | [
"MIT"
] | permissive | TebogoNakampe/transfer-learning-for-sign-language-recognition | 5c8871b5f0207bacefcc2f516d69f090e16d3f91 | e0627115e6b68d6b85244d484011bb3895ccf4ee | refs/heads/master | 2022-12-05T13:31:22.665213 | 2020-08-29T18:42:02 | 2020-08-29T18:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | from pathlib import Path
import pandas as pd
from pandas import DataFrame
def package_path(package):
"""Returns the location of the passed package.
Arguments:
package: A package object.
Returns:
An absolute Path object pointing to the package's location.
"""
return Path(package.... | [
"roman.toengi@gmail.com"
] | roman.toengi@gmail.com |
1d568fd6979787b84243352a436927ec1d71fbed | 18772c6c85f9dc50ebde176d03a586bc4c7c031c | /apps/course/models.py | d96292a6ce8ebc513bad0ec5f24c77ab88035de3 | [] | no_license | hanjiangxue20/Online | 220d9ad919fc34ceacdf5c0b2aa1771f7a6f84c3 | 2ee25d1ea84b7e1c103ccd7829412781d21eb50d | refs/heads/master | 2020-03-13T20:17:35.139561 | 2019-01-28T10:03:04 | 2019-01-28T10:03:04 | 131,270,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from datetime import datetime
from django.db import models
# Create your models here.
class Course(models.Model):
"""
课程
"""
DEGREE_CHOICES =(
('cj','初级'),
('zj','中级'),
('gj','高级'),
)
name = models.CharField("课程名", max_length=50)
desc = models.CharField('课程描述',max... | [
"2038770992@qq.com"
] | 2038770992@qq.com |
3e306235707e7aa903ba5a43be32b5ea1def345c | 3535bac8b6641d7e6742e39de178508a208dbd0c | /checkout/migrations/0005_auto_20210227_1256.py | 83e32758c10a03e725cbb2142de3e28dc3b55f32 | [] | no_license | Lindsaykerr1994/Onwards-And-Upwards-Backend | a5f397fdcc7e19c8d99b6087734a5786e475c53a | 3fc2e6862f1f62667c6c3daacdea12862034f681 | refs/heads/master | 2023-03-28T17:08:08.946017 | 2021-04-06T13:36:21 | 2021-04-06T13:36:21 | 336,790,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.1.6 on 2021-02-27 12:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('checkout', '0004_auto_20210227_1250'),
]
operations = [
migrations.RenameField(
model_name='payment',
old_name='appointment_... | [
"lindsaykerr1994@gmail.com"
] | lindsaykerr1994@gmail.com |
56052fc5690dc0fbd9529a96cbe1b602c35676a9 | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/postprocessing/Thesis/GaussBump/SimpleRead.py | d19224edb9ae2717dba2faecbed8532dbb7825c9 | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import csv
from numpy.linalg import norm
from scipy import *
import os
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
from numpy import ones
wdir = "/home/jp/Documents/PhD/project/data/ThesisRedo2019/DryForced/FEVM2NoRegTol/12/"
sdir = "/home/jp/Documents/PhD/project/master/... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
a7bb04d8878e8e6537e23b80cfc69d208b58298b | a317b83f20068b15086276046344c92db4743d4d | /test/08_manylinuxXXXX_only/cibuildwheel_test.py | 69c28fcdf413a2effc5e7a9ab8e511d549bff471 | [
"BSD-2-Clause"
] | permissive | mtreinish/cibuildwheel | 13b5e010d70847ed45aeab760d67b318d09c28d6 | 973ecf53b3e654ec998928ddd5f39169c1fd6ead | refs/heads/master | 2020-12-19T08:20:44.573759 | 2020-01-19T01:07:33 | 2020-01-19T01:07:33 | 235,678,862 | 0 | 0 | NOASSERTION | 2020-01-22T22:19:02 | 2020-01-22T22:19:01 | null | UTF-8 | Python | false | false | 1,194 | py | import os, pytest
import utils
@pytest.mark.parametrize('manylinux_image', ['manylinux1', 'manylinux2010', 'manylinux2014'])
def test(manylinux_image):
project_dir = os.path.dirname(__file__)
if utils.platform != 'linux':
pytest.skip('the docker test is only relevant to the linux build')
# build... | [
"noreply@github.com"
] | mtreinish.noreply@github.com |
6ff9a5a62dbdaa0426570202d6055465fd0c676f | 8b1af009f41fe550379f0380f7cc4d024646da3c | /usePackage.py | e82027e39a587bf84d7f8cec6e2c1c08582f5e58 | [] | no_license | jgk98f/Python-3-Fun | b976b9a4d3335fbbc8456f77e410b4e4b269fd51 | bf532c08c530751f304d9b998f56551933eeb80c | refs/heads/master | 2021-07-22T23:44:59.900597 | 2017-11-02T01:32:13 | 2017-11-02T01:32:13 | 109,201,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #!/usr/bin/python3
##
# Author: Jason Klamert
# Date: 11/1/2017
# Purpose: My first package use in Python 3!
##
import Package
Package.hi()
Package.hello() | [
"noreply@github.com"
] | jgk98f.noreply@github.com |
876ed83ba6bdb4eb06e312ab60f046c7fccfd56f | d29f24a74972a4f25d5e64beaf973c20fcff9f15 | /Task8(Statistics Questions)/Binomial Distribution II.py | 38625e5e00338a08418c0f7984d6ba6841f77fdd | [] | no_license | jadhavmayur/innomatics_internship_APR_21 | c5490126ca49c6b7838c537defd73620cd988c88 | 1ee6d6c3df907f96a4fa13ec8bd2c95d61316b7a | refs/heads/main | 2023-05-30T17:33:07.631679 | 2021-06-30T05:20:57 | 2021-06-30T05:20:57 | 363,411,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
def fact(a):
fact_a=1
for i in range(1,a+1):
fact_a=fact_a*i
return fact_a
def comb(a,b):
m=fact(a)
n=fact(b)
r=fact(a-b)
comb=m/(n*r)
return comb
f,g=map(int,input().split())
g=g
d=2
p_s=f/100... | [
"noreply@github.com"
] | jadhavmayur.noreply@github.com |
cd388b1fa34c8b7c139387d2f9da86e2be08a184 | bf9c1aa7ac16d467921affa7381dae301e0a1308 | /apps/articles/urls.py | 4ba8201ad1d278b04f4c849955da1484c39b3dd6 | [] | no_license | clincher/ecigar | ec12223bbbcad383e30ea588babee0a89b15db9d | f534bee7ede5c3af882792616c440c7736193fd0 | refs/heads/master | 2020-12-24T15:14:18.688748 | 2016-12-26T00:29:44 | 2016-12-26T00:29:44 | 2,352,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | from django.conf.urls.defaults import patterns, url
from django.views.generic import ListView, DetailView
from models import Article
urlpatterns = patterns('',
# Products
url(r'^stat.html$',
ListView.as_view(model=Article),
name='article_list'
),
url(r'^stat(?P<slug>[0-9A-Za-z-_.//... | [
"va.bolshakov@gmail.com"
] | va.bolshakov@gmail.com |
f9647ae5295cd9029bbc3b670e2bb13a08a4ecbb | fbbb58d9d8386c694c2787464bca7753448098d3 | /mmdet/models/necks/fpg.py | c8e0d163ccf8cef6211530ba6c1b4d558ff6403f | [
"Apache-2.0"
] | permissive | krishnatejakk/mmdetection | ab61e6280c87e9939f56a1c673b592f2698c25c4 | 9c6143950d19e0d694c4d14b0ca10e9011e7f404 | refs/heads/master | 2023-04-08T14:37:28.334393 | 2021-04-15T03:54:07 | 2021-04-15T03:54:07 | 350,409,149 | 1 | 0 | Apache-2.0 | 2021-04-02T14:59:35 | 2021-03-22T16:14:44 | Python | UTF-8 | Python | false | false | 15,923 | py | import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule, caffe2_xavier_init, constant_init, is_norm
from ..builder import NECKS
class Transition(nn.Module):
"""Base class for transition.
Args:
in_channels (int): Number of input channels.
out_channels (int): Numb... | [
"noreply@github.com"
] | krishnatejakk.noreply@github.com |
a12a2f37cb428903860417ef23a04a630d2274bd | 766c83688c5288c7bd4f862e686eb2de65808e83 | /src/simapi_simulation/fmu_simulator/simulator_api/sim_api.py | 6e84b69fcbf6a886900898276d89c075c7891328 | [
"MIT"
] | permissive | fabianoP/SimApi-Python | 086172d4416b29f503dbaec41462e9a5dbb19738 | 78548056b12aa96fea1a2a52b95b03ec22602199 | refs/heads/master | 2021-05-26T03:32:45.221631 | 2020-04-05T22:49:42 | 2020-04-05T22:49:42 | 254,034,535 | 0 | 0 | null | 2020-04-08T08:52:15 | 2020-04-08T08:52:15 | null | UTF-8 | Python | false | false | 1,824 | py | import subprocess
from bottle import request, route, run, response
import os.path
import json
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
def write_json(data, filename):
with open(filename, 'w') as f:
json.dump(data, f, ensure_ascii=False, indent=4)
def write_time_step(t... | [
"richard.brady@ucdconnect.ie"
] | richard.brady@ucdconnect.ie |
74be85ae36daaeda3ba64f5a7f31c7a1529b699e | 1c41c592389d45d1d933d5063cbbf08d02128816 | /parse.py | 9268d64a6f169992ede36775aa3d41f5421ff269 | [] | no_license | oscarkraemer/monitorsite | d2dba3f84fb2b7674e8d1f43772bdf829b2d7a4d | 024ed61e1b088f87fdf00ee4f81a5bb7de88d2ec | refs/heads/master | 2021-01-10T22:00:40.817990 | 2014-08-13T13:58:44 | 2014-08-13T13:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/python
import os
worda = '</li> <li> <a href="'
wordb = '" tar'
wordc = worda + "http"
wordNot = "://dashb-ssb"
print "var links =["
with open("source.html") as file:
for line in file:
if (wordc in line) and (not wordNot in line) :
x = line.index(worda)
y = line.index(wordb)
print ... | [
"carloscarkraemer@gmail.com"
] | carloscarkraemer@gmail.com |
9f6271f117c0ab0c85097b6f105c3ca916c22e44 | d02509b92518ed5f8346881b694e991a83ff53ea | /userauth/views.py | 5e3443eaf633855f7f121d9e3d91e25e667841dd | [] | no_license | navneet35371/nasa | 5d2e611f8e586c62101b01202ea24f6d350144cf | 1f4920c5eea4e0fa17c55dccbd3a18fb2c2ac52d | refs/heads/master | 2020-04-14T23:47:56.643495 | 2015-01-22T11:50:10 | 2015-01-22T11:50:10 | 29,232,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | from django.shortcuts import redirect, render
from forms import UserProfileForm, UserForm
from django.http import HttpResponse, HttpResponseRedirect
from userauth.models import UserProfile
from django.contrib.auth import authenticate, login, logout
def register(request):
if request.method == "POST":
form =... | [
"navneet.anand@hindustantimes.com"
] | navneet.anand@hindustantimes.com |
afdd51818b626fec3bf43a0127ea2a00c1b514e9 | 977209e7e742e0e72d854e290ed74118a6f5565f | /dcard.py | 9b4492e648aeaf071a726e1eaeb4e3c6ddd39e3e | [] | no_license | willlaiwk/python-learning | 4a660f24bf7f2082248343fb72ded20591ebf874 | a8234f2f801abde816069636210ef6cce0f4b2fb | refs/heads/master | 2020-03-13T04:51:41.069273 | 2018-04-25T08:17:00 | 2018-04-25T08:17:00 | 130,971,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | import re
import requests
from bs4 import BeautifulSoup
url = 'https://www.dcard.tw/f'
resp = requests.get(url)
soup = BeautifulSoup(resp.text, 'html.parser')
dcard_title = soup.find_all('h3', re.compile('PostEntry_title_'))
print('Dcard 熱門前十文章標題:')
for index, item in enumerate(dcard_title[:10]):
print("{0:2d}. {1... | [
"will.lai.wk@gmail.com"
] | will.lai.wk@gmail.com |
a83179b42d24a1910173bf0fce81b41c9b7b7940 | 40ae6e73b128fe1cbf103774efc0dfa71f000444 | /tabuada.py | 5a6a328b1737058b062599d81bcf206885d01ae4 | [] | no_license | ThiagoTuissiPaiao/tabuada | 33ee9f49074a9a351e78d161e9534388bf450af6 | 2e64b69c9c24b9906b522047fb9e0694f7937dc9 | refs/heads/main | 2023-04-14T02:17:21.296690 | 2021-04-13T02:21:09 | 2021-04-13T02:21:09 | 357,398,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | num = int(input('Digite um número para ver a sua tabuada: '))
print('{} x {:2} = {}'.format(num, 1, num*1))
print('{} x {:2} = {}'.format(num, 2, num*2))
print('{} x {:2} = {}'.format(num, 3, num*3))
print('{} x {:2} = {}'.format(num, 4, num*4))
print('{} x {:2} = {}'.format(num, 5, num*5))
print('{} x {:2} = {}'... | [
"noreply@github.com"
] | ThiagoTuissiPaiao.noreply@github.com |
67609da91082ac8c072982adcffd6dfb9232253c | 15f7c52c87376c62ff79cb0b5955bd09e471b119 | /LearnCython/Week1/Examples/animal_list.py | e4757e6ba94f80ea1a9025be91b5ad77b958cecb | [] | no_license | rkillam/LearnPython | 6a7d7be75f44ab4f008ee88b174521a39453b06e | ebf8f1ed150d4ad1e9cf8f1ad464ecbcc41c3c7d | refs/heads/master | 2021-01-22T01:05:40.035312 | 2015-11-02T19:16:34 | 2015-11-02T19:16:34 | 41,547,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import animal_class
def make_animal():
name = input('Name > ')
noise = input('Noise > ')
return animal_class.Animal(name, noise)
def get_query():
name = input('Name > ')
noise = input('Noise > ')
return name, noise
def menu():
print('add to add an animal')
print('find to find an add... | [
"richard.killam@gmail.com"
] | richard.killam@gmail.com |
10cf35387c58f6777201f92dc51ac6d979c06436 | def03550c8f728635be1628e49cdbd09b90675d6 | /google-python-exercises/basic/string1.py | a7a7fc92e32a86487f8dba78295242c72961ded4 | [
"Apache-2.0"
] | permissive | tiesnoordhuis/python | ba025fb44faec7210cb28e55f9a2296da25bdffe | 3dd760bb8705bee385ef0c76adb1807bb60aa382 | refs/heads/master | 2021-01-22T22:33:57.669980 | 2018-06-07T10:51:12 | 2018-06-07T10:51:12 | 85,548,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic string exercises
# Fill in the code for the functions below. main() is already se... | [
"tiesnoordhuis@gmail.com"
] | tiesnoordhuis@gmail.com |
ad22f84b58e508cdc703f33fb7ebed7d52fae2f5 | 6df6bc35c0d80019f78c91a58c9a15d8b2c7ea0e | /day19/main.py | d91ae61ceadb8a5e4e96aa1139ac19ae89dbf983 | [] | no_license | asek-ll/aoc2020 | 5d17393991eb09eec7db653983101c51c844037a | c4669b81d48d00c313710c00b7c2d58b6beef0ad | refs/heads/master | 2023-02-03T10:55:58.342577 | 2020-12-25T06:42:36 | 2020-12-25T06:42:36 | 322,400,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | import sys
import re
if len(sys.argv) <= 1:
raise Exception("No inputs")
with open(sys.argv[1], 'r') as f:
lines = f.readlines()
ll = [l.rstrip() for l in lines]
i = 0
rules = {}
while len(ll[i]) > 0:
id, content = ll[i].split(': ')
rules[int(id)] = content
i += 1
msgs = []
i += 1
while i < ... | [
"sopplet@gmail.com"
] | sopplet@gmail.com |
26ad7a8c0fa7479ac8feb34f02f69340084c2f5a | 8431c62f2862f4c6ea8609631806ca7ac3865b95 | /loopuntil1.py | 3602a2f9a83cf7e5e85b241e40c6d76e34b57810 | [] | no_license | sharikagunalan/guvi-task | 1bbab0cf81fcbf7e20b547da3a19c4e71b44d55e | 72cb650115f62fb6ce0b8169791510dbb260a796 | refs/heads/master | 2020-12-22T19:05:06.387582 | 2020-01-29T07:04:19 | 2020-01-29T07:04:19 | 236,901,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | while True:
print("enter the value")
x=input()
if(x=="q"):
break
| [
"noreply@github.com"
] | sharikagunalan.noreply@github.com |
d18620da13c960ce0882d348267c07c270b7ad42 | 99970ce2ea23b10951a56ef9306b72c31e49f965 | /example.py | e262b83c9e0bdbcefb4b577e63e5ee2d926496c1 | [] | no_license | nrgriffith/weatherbox | a46445a2ae5454c0738a759cf5bfafd2adbb94c3 | 5d895a25f71c958dacd8dfa7423d08a090d13f60 | refs/heads/master | 2021-08-16T13:53:08.323029 | 2020-03-29T17:43:32 | 2020-03-29T17:43:32 | 141,052,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!/usr/bin/env python
import pywapi
import pprint
pp = pprint.PrettyPrinter(indent=4)
results = pywapi.get_weather_from_noaa("KIOW")
pp.pprint(results)
| [
"n.r.griffith@gmail.com"
] | n.r.griffith@gmail.com |
6c3e7fc9c00e28e7d4c427f240777b256f2819b6 | 4aa79c6400a98dba78273d7d172dae19e0e1ffd4 | /solutions/passengers/exploit.py | 62cdf9df3a619dc6f4c49f99988d1d228bd4740b | [
"MIT"
] | permissive | 0MazaHacka0/qctf-starter-2018 | b72d34b882e7b6c0e7e32b59d4dd931f5dea4a0a | f4eef0fd41d777661b9fbcc61dcee9709d9f6268 | refs/heads/master | 2020-04-08T09:18:26.837344 | 2018-03-14T06:43:54 | 2018-03-14T06:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | from pwn import *
def apply(pc, fname, lname, country, age):
pc.recvuntil('>> ')
pc.sendline('1')
pc.recvuntil(': ')
pc.sendline(fname)
pc.recvuntil(': ')
pc.sendline(lname)
pc.recvuntil(': ')
pc.sendline(country)
pc.recvuntil(': ')
pc.sendline(age)
def show_applicants(pc):
... | [
"mpivko@yandex.ru"
] | mpivko@yandex.ru |
352497cdfd93bf546ea40d18ab959251d15042f2 | f199dbeb753133634e7e26bd54807fde96f36db6 | /src/ggrc/utils/query_helpers.py | 6cc5a5789a1dc077f3aeb64d212413a1c697be67 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gaurav46/ggrc-core | 40a86f7a182c81f6902bcd26ea63487e028fbfc8 | 5f4ea7173ec1da7763bd5b4fef39858c8be07df2 | refs/heads/develop | 2023-02-06T05:15:17.866451 | 2016-12-01T14:17:27 | 2016-12-01T14:17:27 | 75,402,854 | 0 | 0 | Apache-2.0 | 2023-02-02T01:56:55 | 2016-12-02T14:32:52 | Python | UTF-8 | Python | false | false | 10,111 | py | # Copyright (C) 2016 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""This module helper query builder for my dashboard page."""
from sqlalchemy import and_
from sqlalchemy import case
from sqlalchemy import literal
from sqlalchemy import or_
from sqlalchemy import true
fro... | [
"egor.hamaliy@gmail.com"
] | egor.hamaliy@gmail.com |
644fdd029bf79449f51c0f2c4eac8215ce5af9ee | b3c0c6fd366062ce7dcd71b3fe24e5923000cbd3 | /manage.py | e4994cccd77cdabb2d5cda30fd4bc28e88dbec97 | [] | no_license | MPPilon/Cask | efad776d0d382c6c4834fd4f8c41172f3287f0e9 | 7e083808842d1d3bf003a95f5e5dda5e3fd3f81e | refs/heads/master | 2021-01-18T23:08:09.223753 | 2017-04-19T16:38:07 | 2017-04-19T16:38:07 | 87,090,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MobDevProject.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure tha... | [
"MPPilon@gmail.com"
] | MPPilon@gmail.com |
bfa24597022d4728e653fc7e9ace43a97674c837 | 17ca59add5aa68394f57f918944feda400887520 | /video/merge_video.py | 4e8eb0b1449a73c534351eab853acc9e78e18bae | [] | no_license | KHUtone/VLOC | 9064024805b902dd49e53c342c6a12d9e4d38add | f7e1d2f1f7a31b86c83d18b0f0602d1a7fc718d0 | refs/heads/master | 2020-11-28T02:00:43.425217 | 2019-12-31T13:10:30 | 2019-12-31T13:10:30 | 229,674,564 | 0 | 0 | null | 2019-12-31T12:59:47 | 2019-12-23T04:10:48 | Java | UTF-8 | Python | false | false | 891 | py | import cv2
import numpy as np
import os
def frames_to_video(inputpath,outputpath,fps):
image_array = []
files = []
for path in inputpath:
files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
#files.sort(key = lambda x: int(x[5:-4]))
for i in range(len(files)):
... | [
"rladnjsrb9999@naver.com"
] | rladnjsrb9999@naver.com |
28a18024931d35956963b6fac5363369c4a32ded | 47d6351c6a45b448857da5d4b597eb1d752d8612 | /newnew_collect.py | b99ea5990f9587fb6357fa278b372afe6f6db3b1 | [] | no_license | PotatoInHotToffeen/shixisenganalyse | 3074d02e902fab8f593d0515de801e307ade66af | 1fa14a6bf2ac811420ec8586b8df428a8e928a3c | refs/heads/master | 2020-03-13T03:03:44.123848 | 2018-04-25T02:52:16 | 2018-04-25T02:52:16 | 130,936,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,529 | py | # -*- coding: UTF-8 -*-
import re
import requests
import MySQLdb
import time
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from cStringIO import StringIO
from fontTools.ttLib import TTFont
_pat_font_content = re.compile('myFont; src: url\("data:application/octet-stream;base64,(.+?)"')
_pat_font = re.compile... | [
"786757336@qq.com"
] | 786757336@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.