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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9d9e59cfb1c0b5c982676b2b0e139cae6120010 | 618bb00f2e647b58ed69295f1d6fd869eab35525 | /preprocess_imgs.py | 0954091fd29b4410558dcec114946d382f3f3ca9 | [] | no_license | hbata/tourstic | a7d807006b0551ce76a64daaf9079eecda254436 | b0bba3c5cbca5debd1c4ca6b06b46151508decd7 | refs/heads/master | 2020-04-09T23:56:18.137971 | 2018-12-06T13:39:01 | 2018-12-06T13:39:01 | 160,670,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,896 | py | import numpy as np
import cv2
import PIL
from PIL import Image
import os
from multiprocessing.pool import Pool
def rename_imgs():
data_dir = 'dataset'
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
folders = [f for f in os.listdir(data_dir) if os.path.isdir(data_dir) and f.endswith('h') or f.endswi... | [
"hesham.bataineh@aiesec.net"
] | hesham.bataineh@aiesec.net |
e9ba71831df58fe8207554f2e696a50742e9640a | 20c81ad33259a381080d0a03c72894fea79fa374 | /ClassLabs/Lab8/Python_Lab8_Home.py | bb733d069074b6f6f45bbfe36ea1bd0d936ee049 | [] | no_license | Verbs2004/Python-Programming-In-Context | c9985c59ad6ea2919ad9f5c0f5d343ee61342347 | 5aa5e571c62e070004190b09b85bd9d2628ec3bf | refs/heads/master | 2021-01-23T14:39:57.094228 | 2013-07-15T14:59:41 | 2013-07-15T14:59:41 | 102,695,111 | 1 | 0 | null | 2017-09-07T05:28:45 | 2017-09-07T05:28:45 | null | UTF-8 | Python | false | false | 2,217 | py | # 1: Write a function that takes a single character digit and returns
# its integer value. For example, if the function name is intval, intval('9')
# will return 9(the integer 9, not string '9')
def intval(i):
i = int(i)
return i
# 2: Write the letterToIndex function using ord and chr. letterToIndex is
# ... | [
"thyrusg@thyrusgorges.com"
] | thyrusg@thyrusgorges.com |
b3a045a004cc3bffc590d6b0196b26d6b5724efd | 3a66cdcf904fa317ea6cd590effab1a6136e2ec0 | /Calculator/calculator.py | 326ad42a13f119b0335fe970519a13f1a81e9f16 | [] | no_license | Ronjaek/TDT4113-Programming-Project | 471c0127a3ff7519d029f21b6571b02cb506c02f | eea151adcb00db12892b8b27fc6f0163bc4a6a31 | refs/heads/master | 2022-12-14T13:21:50.114141 | 2020-09-03T17:11:51 | 2020-09-03T17:11:51 | 292,629,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,179 | py | """Hovedklassen i programmet"""
import numpy
import numbers
import re
from function import Function
from operator_ import Operator
from queue import Queue
from stack import Stack
class Calculator:
def __init__(self):
"""gir kalkulatoren tilgang til regneartene og funksjonene"""
# definerer funks... | [
"ronjaek@Ronjas-MacBook-Pro.local"
] | ronjaek@Ronjas-MacBook-Pro.local |
b2ca28488c94f3f941e3240dbeca0d5ce18d1b19 | 5288d737d3d68e86b666be03dc62600b324a2910 | /main_app/filters.py | 23ddd9ad6fb44e369f4235f9f2c3cbc845160d64 | [] | no_license | aerastov/SkillFactory_D4 | 8b127baca51c69198e8e76d57d69f2567b5bd6c4 | 11bbc5cb936749483c27d9e4c7212270847eb7b1 | refs/heads/master | 2023-08-27T14:30:14.515050 | 2021-10-26T22:46:06 | 2021-10-26T22:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from django_filters import FilterSet # импортируем filterset, чем-то напоминающий знакомые дженерики
from .models import Post
from django_filters import DateFilter
from django import forms
class PostFilter(FilterSet):
class Meta:
model = Post
fields = {
'title': ['icontains'],
... | [
"a.erastov@gmail.com"
] | a.erastov@gmail.com |
3ec0749c8b2c8d3d54cf97e11f641dfbced8701d | 6a9b9d2e6f811423ab411c83952b9a2ff69b3471 | /code_snippets/process_data.py | 615cf89eb5b96d9598182b2c793997e5496130fb | [] | no_license | thebeancounter/flask_keras_train_and_prediction | 017848e70bc03cac66143d94d3b18a174b786534 | 55e4b488fe30f98824187dd75c72c915cf50aa34 | refs/heads/master | 2020-03-27T13:20:40.308695 | 2018-11-06T14:26:28 | 2018-11-06T14:26:28 | 146,603,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from keras.datasets import mnist
import keras
(x_train, y_train), (x_test, y_test) = mnist.load_data()
x_train = x_train.reshape(60000, 784)
x_test = x_test.reshape(10000, 784)
x_train = x_train.astype('float32')
x_test = x_test.astype('float32')
x_train /= 255
x_test /= 255
y_train = keras.utils.to_categorical(y_trai... | [
"shai2go@gmail.com"
] | shai2go@gmail.com |
8d551813a916a1c05fba0afca7bf63e06802bd88 | 72f43041a2645c10295b2e9c17d72274ddf765ef | /src/test/test_benchmarks.py | 7b70d82b518ec30458cbddb7017d3e0057be845f | [
"MIT",
"BSD-3-Clause"
] | permissive | zhaowill/stata-gtools | 85918134c741a32b534786e57208f7640dc181cd | 6409f703a265aa28ee32da9989a276188e83f46e | refs/heads/master | 2020-05-17T23:33:53.840993 | 2019-04-04T16:45:54 | 2019-04-04T16:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# import matplotlib.pyplot as plt
# import pandas as pd
# import numpy as np
# import json
| [
"mauricio.caceres.bravo@gmail.com"
] | mauricio.caceres.bravo@gmail.com |
8b9ad83e2464b381fd7db608eb689d5927b9c029 | cac10d84dc970078f5c4bc31f433cd5c3aa186cf | /bikeshare.py | 2c1278a32198c321ab3d0a79fdb481df82257eda | [] | no_license | sarahg/python-bikeshare-stats | 5a9ee03276c25330a978c040768e6a2e008bac8e | 77578021a58fa43560a55a5db1128d1c96513438 | refs/heads/master | 2022-10-30T13:46:09.359330 | 2020-06-15T17:39:29 | 2020-06-15T17:39:29 | 272,494,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,533 | py | import time
import calendar
import pandas as pd
CSV_PATH = './csvs/'
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
SEPARATOR = '-' * 40
def get_filters():
"""
Asks user to specify a city, month, and day to analyze.
... | [
"sgerman@pantheon.io"
] | sgerman@pantheon.io |
327cab1f61b7fc63a691fa1106537977cd19c625 | e273ac58c34f6a0fba8360aef75f52a7ef03d5bb | /ansiblemetrics/playbook/num_unique_names.py | 86e83089e546f11c6247dd51d9b902c4e8b68bfe | [
"Apache-2.0"
] | permissive | valeriapontillo/radon-ansible-metrics | e25b6c848fd40eb4b5802f540a6fd1ad20a77ce4 | 8a8e27d9b54fc1578d00526c8663184a2e686cb2 | refs/heads/master | 2023-09-06T06:21:43.417616 | 2021-11-04T14:28:04 | 2021-11-04T14:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | import re
from collections import Counter
from ansiblemetrics.ansible_metric import AnsibleMetric
from ansiblemetrics.utils import key_value_list
class NumUniqueNames(AnsibleMetric):
""" This class measures the number of plays and tasks with unique a name.
"""
def count(self):
"""Return the numbe... | [
"stefano.dallapalma0@gmail.com"
] | stefano.dallapalma0@gmail.com |
748b5d931eb15cc7bc4633096be19fd44f691168 | 454c29a8fec880afdc6841b5468aeb89b5f3051c | /project1/urls.py | d0b226636a6d16e748de50d2c4897bdee8ac3437 | [] | no_license | gauravhans8/Lawyered | 24bf5710d5f5b4d89b71c386203c07c06d078431 | 70ee812b1f4887a0cf4b5fb68186ae474758b9a4 | refs/heads/master | 2021-01-11T03:57:02.993476 | 2016-10-18T06:05:43 | 2016-10-18T06:05:43 | 71,244,215 | 1 | 0 | null | 2016-10-18T12:08:26 | 2016-10-18T12:08:26 | null | UTF-8 | Python | false | false | 578 | py | from django.conf.urls import include, url
from django.contrib import admin
from django.contrib.auth import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
# Examples:
# url(r'^$', 'project1.views.home', name='home'),
url(r'^lawyered/', include('lawyered.urls... | [
"kratigyarastogi0705@gmail.com"
] | kratigyarastogi0705@gmail.com |
89531794da9e58caea0fdbc37413f91c45f8d070 | 9ad903f3873e82c91026066e80d9fe77b02d4bc4 | /graph_generator.py | 18a3346519cb40855a90b3229342235926efc25f | [] | no_license | anirudhSK/drmt | c6fa05c6cc1def571ad7ed1b095654211a85009e | b287d31d50f371284cfb3a1f810990ae26637ae1 | refs/heads/master | 2021-04-29T09:30:02.996494 | 2017-09-10T10:13:27 | 2017-09-10T10:13:27 | 77,659,675 | 12 | 10 | null | 2017-02-24T22:45:14 | 2016-12-30T04:12:46 | Python | UTF-8 | Python | false | false | 3,461 | py | import sys
import math
import matplotlib
import importlib
matplotlib.use('Agg')
matplotlib.rcParams.update({'font.size':18})
import matplotlib.pyplot as plt
if (len(sys.argv) != 5):
print("Usage: ", sys.argv[0], " <result folder> <drmt latencies> <prmt latencies> <folder for figs>")
exit(1)
else:
result_folder = ... | [
"sk.anirudh@gmail.com"
] | sk.anirudh@gmail.com |
4b07fb305ff28845f8393a96c6bf69fafb122469 | d5b526977adfce0ac21588598a61d0fabbd6ed48 | /tkinterBasic.py | 555ee324d4a6d9c89c44116dd5132240a671f8bd | [
"MIT"
] | permissive | anishmo99/Python-Functionality | b001cdd40828fc0b6879d34ad057dab3524de933 | 91e963609b0ce600d0c46073748611ecbab61dae | refs/heads/master | 2022-12-15T18:46:47.534669 | 2020-09-10T07:14:13 | 2020-09-10T07:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | import tkinter as tk
m=tk.Tk()
m.title('hi anish')
m.mainloop() | [
"ani10sh@gmail.com"
] | ani10sh@gmail.com |
c0bd9094de5b1e54fc83d99f8152fdce3ed29c0a | 4a9c10f838128a1c401b2df91a458596bdea7cca | /mysite/settings.py | d89cf373db46f9cdfea7b2856710a471d70cb679 | [] | no_license | daichimitsuzawa/djangolesson | fc587005454fa5e49f8dc6282b1d4122e7fe2463 | ea71bdb9cea13831423639b3620fd7915aba908c | refs/heads/master | 2022-09-09T02:39:58.447149 | 2020-06-01T08:46:09 | 2020-06-01T08:46:09 | 268,469,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.12.
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
#... | [
"mitsuzawadaichi@Daichi-no-MacBook-Air.local"
] | mitsuzawadaichi@Daichi-no-MacBook-Air.local |
cdee9bbc3982ee481c0bf44afc8e682f9146e6db | 216e1d474cf04cd0a9b3cabac22bef95716e08e7 | /Intro to Python/Homework/CSC110_2_Ch04/hw_04_ex_02.py | f9125cdcaff0fefd2985cf256718f7ec7d24022a | [] | no_license | RPMeyer/intro-to-python | 9c36a97dcad39d3060f626ab5a1d789b470ba32c | d2283c8902e0699036ef3b117d272691eaf9b490 | refs/heads/master | 2020-12-03T00:06:59.087698 | 2017-08-17T16:56:01 | 2017-08-17T16:56:01 | 95,989,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # Write a program to draw this ( 5 concentric squares of decreasing size) Assume the innermost square is 20 units per side
# each successive square is 20 units bigger (size += to 20), per side, than the one inside it.
import turtle
wn = turtle.Screen()
wn.bgcolor("lightgreen")
wn.title("Alex draws a line of squares")
a... | [
"haru.haru77haruko@gmail.com"
] | haru.haru77haruko@gmail.com |
fb4e8cc6019e4b13f7755cdb495d918f89adcf83 | d24632eb9f35ac144bee042facd9f8a596622b15 | /minimos_cuadrados_regresion_lineal.py | 7b1a2cd38d84804eb58dffdf1a9f742c001a047b | [] | no_license | fiscompunipamplona/taller-interpolacion-RobertoCuellar2019 | 02a7b24db597e3e9e2d2b3e130c07c8fcb0366be | 9129885b332f153f003682d5bfae79530565fb44 | refs/heads/master | 2020-05-23T08:34:59.891349 | 2019-05-17T03:41:15 | 2019-05-17T03:41:15 | 186,690,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 9 08:16:01 2019
@author: usuario
"""
import numpy as np
import matplotlib.pyplot as pl
from sklearn.linear_model import LinearRegression
from regresion_lineal import regresion
from time import time
###implementacion con libreria
x1 = 1e-9*np.ar... | [
"lozano.roberto.2018@gmail.com"
] | lozano.roberto.2018@gmail.com |
27243d518c4d54514aa0ed20d368f35eaf505dbd | 033fb08be4d1ebd99ff9d4a790dc5c86d82f686c | /landing_page/models.py | 5f0a4b81205b47f558357e621dd5a083c75a2954 | [] | no_license | MasoudMusa/Django-Blog-App | 8a145c68520d50d8384fd48badbebcb097c663ed | 48b8bd31608a9d3a0e65a977b7961be9ad774fa6 | refs/heads/master | 2020-04-25T18:38:32.919036 | 2019-02-27T21:14:38 | 2019-02-27T21:14:38 | 172,991,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from django.db import models
from django.conf import settings
from datetime import datetime
from django.contrib.auth.models import User
# Create your models here.
class BlogStuff(models.Model):
title = models.TextField(max_length=200)
description = models.TextField(max_length=100, default='This is the descript... | [
"mwendamusa20@gmail.com"
] | mwendamusa20@gmail.com |
4e2542ef9400252a5e53cd863018ba77e7f9302f | 8ec71b40687f2ebabc2d961c9efa2f9a6fc17666 | /src/padronelectoral/views/views_orm.py | e4138bbf85b30898696c30a1cae785b8c0673a2f | [] | no_license | luisza/Training | 37af0c17f2b97bc0a5b812469a5c47d8cd299e2c | 32b901efd0cccc618a26f34f8c1702133f5fac68 | refs/heads/master | 2020-04-15T12:34:08.270263 | 2019-02-25T23:46:11 | 2019-02-25T23:46:11 | 164,680,331 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,339 | py | from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator
from django.http import JsonResponse
from crpadron import settings
from django.shortcuts import render, get_object_or_404, redirect
from django.conf import settings
from padronelectoral.forms import ElectorForm
from ... | [
"miguel1796@live.com"
] | miguel1796@live.com |
98f37383c32f1daedec53a0bb197ecf616effd71 | 96a37825fa81ba748edccc0a71b6c78f2a530503 | /wrangle_data/packages/__init__.py | 6851a907cfde581029ac137e0f8ba1be1bc95cf7 | [] | no_license | ErinMa10/gwshm-machine-learning | c0c3ed1c7c5327686b66a0581efb943aa6e10b86 | 02210564dc1a39e297d23413f313bb092c22e86c | refs/heads/master | 2022-04-22T08:20:20.375609 | 2019-02-05T19:36:31 | 2019-02-05T19:36:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | #from .two_ray_model import RayModel | [
"dibgerge@gmail.com"
] | dibgerge@gmail.com |
a45a07dd66cbbfa57b6a3b8f8445747b4300de28 | 1d9e681b204e6ec2d7a710ef45b7dec082239491 | /venv/Lib/site-packages/od_python/models/inline_response_200_33.py | 2f87d5fa2b2a17141b43a2b9c133a4e168221558 | [] | no_license | 1chimaruGin/DotaAnalysis | 0e0b85805cc83e4cc491d46f7eadc014e8d6b1f1 | 6a74cde2ee400fc0dc96305203d60c5e56d7ecff | refs/heads/master | 2020-07-21T20:48:07.589295 | 2019-09-07T12:20:15 | 2019-09-07T12:20:15 | 206,972,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | # coding: utf-8
"""
OpenDota API
# Introduction The OpenDota API provides Dota 2 related data including advanced match data extracted from match replays. Please keep request rate to approximately 1/s. **Begining 4/22/2018, the OpenDota API will be limited to 50,000 free calls per month.** We'll be offering a... | [
"kyitharhein18@gmail.com"
] | kyitharhein18@gmail.com |
59b4a7e0dd46c5e83fc418f6782d8c48fd7a89e1 | be27afb51cbdcc321ee7e80d147d62c0c321ebba | /rocon_client_sdk_py/virtual_core/hooks/bootstrap.py | f396c58086d4ef720832affed70f281b92985e6a | [
"MIT"
] | permissive | boklae/rocon_client_sdk_py | 18cf6dadb5782d34e74e013d500c7ad3a5d36fa8 | 47ffd3a466fbbcb43f77338eddd9a9fa32b3a763 | refs/heads/master | 2022-11-29T19:02:20.386179 | 2020-03-04T06:31:52 | 2020-03-04T06:31:52 | 244,824,897 | 0 | 0 | MIT | 2022-11-22T05:22:10 | 2020-03-04T06:29:21 | Python | UTF-8 | Python | false | false | 3,522 | py | import pydash
class HookBootstrap():
def __init__(self, context):
self._iniitializers = {'battery':self._init_battery, 'location': self._init_location}
self._validators = {'battery': self._validate_battery, 'location': self._validate_location}
self._api_config = context.api_configuration
... | [
"blcho@yujinrobot.com"
] | blcho@yujinrobot.com |
de18f9e297b8b2c8cb0d4eb962556836670c4046 | a22a76d50a376ab9184df61d73e872cc80ff1a6f | /REGRIDDING/regrid_PRIMAVERA_on_CORDEX.py | 42db1c9ef1e1f7228246440e20a3d85f234ec280 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | PRIMAVERA-H2020/PrecipDistribution | e3eb7c4a224aab1ed4606b553edce906ad53014e | 92c2faf428d1e8809c34473831ac9fbf0e5a0e0a | refs/heads/master | 2023-01-05T15:57:51.768864 | 2020-11-04T11:02:07 | 2020-11-04T11:02:07 | 227,361,674 | 0 | 1 | Apache-2.0 | 2020-02-24T21:35:11 | 2019-12-11T12:32:40 | Python | UTF-8 | Python | false | false | 5,431 | py | import european_masked_subregion as ems
import iris
import subprocess
import os
from cf_units import Unit
def main():
outdir = '/gws/nopw/j04/primavera3/cache/sberthou/'
country = 'prudence'
frequency = 'd'
n512 = False
other = 'PRIMAVERA'
time_con = iris.Constraint(time=lambda cell: 1950 <= ce... | [
"segolene.berthou@metoffice.gov.uk"
] | segolene.berthou@metoffice.gov.uk |
4f594bdd576600a328c0961d7f08f576815b4e3e | 0b3279cc150b85f5daf48e74ed164d91d5b0f522 | /week4/linked_lists/odd_even_linked_list.py | bef041c87b7c695c26acea8361a17d270c8aad75 | [] | no_license | membriux/Wallbreakers-Training | 42a0e4bf64f178e48f5228f6559929b7b0b772b7 | 5ec134f964cc87ae6399027bcf8b573e9ea83503 | refs/heads/master | 2020-06-08T05:24:13.204769 | 2019-07-19T21:19:43 | 2019-07-19T21:19:43 | 193,166,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | '''Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.
You should try to do it in place. The program should run in O(1) space complexity and O(nodes) time complexity.
Example 1:
Input: 1->2->3->4->5... | [
"sanguillermo98@gmail.com"
] | sanguillermo98@gmail.com |
7e8e0c92157894f81c595a9d31c7422fe1804de2 | b80130d763793ee3151b94530adb273ec06bdc04 | /test_synch/optimize/cplx_dream.py | cd9305a6a83f1cbb73ae4df07a71e1ed4a4fc89d | [
"MIT"
] | permissive | mgricci/am_cdbn_mirror | 18d14a354704a2f674758b52b9603a849b66b42d | 6e7539da0a550550b8510bcc84c7063fc90fc701 | refs/heads/master | 2020-04-05T04:36:56.769925 | 2019-03-05T18:04:03 | 2019-03-05T18:04:03 | 156,558,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,189 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.ioff()
import numpy as np
import torch
from torchvision import datasets, transforms
from mnist import Net
import scipy.ndimage as nd
from torch.autograd import Variable
from test_utils import cplx_imshow
from tqdm import tqdm
import... | [
"junkyung_kim@brown.edu"
] | junkyung_kim@brown.edu |
6b1570a94afa10a3418bbfa5637e016112f5af3d | 3f8cc11f2322a2939a992378e1d3e478684ce770 | /6_2_3_Natürliche_Kubische_Spline_Interpolation_mit_LGS_4_Stützpunkte.py | 4f5ead4b0aec03ae3e7895c8f3f46df7520f29bf | [] | no_license | Finrod-Amandil/hm-scripts | 6b37f0c0df2b6b34a9edd2b8f36ad3dd3731f3d8 | ddd98ba2194933dc4654030eb4fa6a72fdb3b604 | refs/heads/main | 2023-06-10T04:06:02.448179 | 2021-06-27T14:24:39 | 2021-06-27T14:24:39 | 372,249,707 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,578 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.array([4, 6, 8, 10], dtype=np.float64) # Stützpunkte (Knoten) xi
y = np.array([6, 3, 9, 0], dtype=np.float64) # Stützpunkte (Knoten) yi
x_int = 9 # Zu interpolierender Wert
n = x.shape[0] - 1 # Anzahl Spline-Polynome
dim = 3
print('{} Spline-Polynome {}.... | [
"severin.zahler@gmail.com"
] | severin.zahler@gmail.com |
fca0f3066fbd42e823817547f2c01715501558b4 | 046d9405f06774ab8d52cd356b137007e6c9599a | /python/python/老师笔记/python/day01_pm/day01/exercise/salary.py | 9b74a9a7b0e9d1efad83c45d995a6132447b113d | [] | no_license | jluocc/jluo2018 | 3a49d9884bd2bc2e02e0d6ef9f066269c2e430a8 | 30e39f93ef65810d39423a4b66dd253cdeaddae5 | refs/heads/master | 2020-04-07T15:24:07.850373 | 2019-01-06T06:05:19 | 2019-01-06T06:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # 2. 一个学生毕业薪资是10000元,
# 每年涨20%,问十年后它的薪资是多少?
# (要求打印出来)
print((1 + 0.2) ** 10 * 10000)
| [
"473145009@qq.com"
] | 473145009@qq.com |
0a38129fb32469a1590e8cefd7d32d74d316bd54 | c2447adecfdbb05a772f1d84e6e5f229de33d0c6 | /talleres/taller04/taller04.py | e6becc912735e6b385b632684b07b48b1b75a4bd | [] | no_license | Juanesfon5/ST0245-respuestas | e9aa433fedc1ef24891ae66cf3f1d06830b5f248 | 04bd676cd20393447427e8a976714be9b73cae8e | refs/heads/master | 2020-03-28T12:46:38.339203 | 2018-08-21T20:08:19 | 2018-08-21T20:08:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | #!/usr/bin/python
import random
from matplotlib import pyplot as pl
import time
def array_generator(len):
"""List generator"""
array = [0] * len
for i in range(len):
array[i] = random.randrange(0,100)
return array
def array_sum(array, sum = 0):
"""Add the elements in the list"""
for e... | [
"noreply@github.com"
] | Juanesfon5.noreply@github.com |
1c517b59b04939c02b21ddefa13d2f904e19f7e0 | 9f549fbac72919299cb032bb33aa6595c8ac5789 | /hackerRank/python/set_d_r_p.py | cd6a678a7ec09b7d13de08d04a60eb833ab41922 | [] | no_license | jerilMJ/onlineCoding | 67a1fe24d79c1c681ab2cbc731444209ea02801b | 1630d9a0869e62f4725bc517e1cd834000b039da | refs/heads/master | 2020-07-19T01:05:51.447936 | 2020-01-02T06:24:20 | 2020-01-02T06:24:20 | 206,348,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | ''' Solution to 'Set .discard(), .remove() & .pop()' under Python in HackerRank '''
n = int(input())
s = set(map(int, input().split()))
numOfCommands = int(input())
commands = []
skip = 0
for _ in range(numOfCommands):
command = input().split()
commands.extend(command)
for i in range(len(commands)):
if s... | [
"jeril.0ff@gmail.com"
] | jeril.0ff@gmail.com |
7a203d32c16d289fef8f26566ec33d36956c6123 | b11b16bf88d4d9be80986631ba161883cd9a28a4 | /examples/rc/packages/gnu.py | 1d096f2cec2adb7a006c51d7ab8534210bfb4da8 | [
"Apache-2.0"
] | permissive | simone-campagna/zapper | 8ec11f68fdf6904cab3031789cd7553aa71f7869 | fee2aaddcb13f789768a30761670c8c142d2b54d | refs/heads/master | 2020-04-26T01:42:32.180173 | 2013-12-07T14:45:57 | 2013-12-07T14:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | from zapper.package_file import *
gnu = Suite('gnu', NULL_VERSION)
gnu.add_conflicting_tag('compiler-suite')
for version in '4.1.2', '4.5.2', '4.7.0':
version_name = version.replace('.', '_')
gnu_version = Suite(version_name, NULL_VERSION, suite=gnu)
gnu_version.add_conflicting_tag('gnu-suite')
libf... | [
"simone.campagna@tiscali.it"
] | simone.campagna@tiscali.it |
80df44273e2f313dce7038b7329a31df34e2b601 | 7358fef64817a640f224f6a1b0ef22f7e4812d4b | /Materi/Materi 8 Fungsi/isGenap.py | 926f99fc36b94ff6225596af70dc71181e8fc136 | [] | no_license | bimarakajati/Dasar-Pemrograman | 8d4124701c61900c2cc41ec89be2b08c492c8541 | af5e7abf122b8b151625504ac6739ab98996fb7f | refs/heads/master | 2023-08-24T19:32:00.591820 | 2021-10-13T20:10:12 | 2021-10-13T20:10:12 | 302,336,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | def is_Genap(i):
"""
diberikan suatu bilangan i dengan tipe
integer untuk mengecek apakah bilangan
tersebut bilangan genap atau bukan
"""
print('keterangan didalam fungsi is_Genap')
return i%2 == 0
is_Genap(4) | [
"bimandugal@gmail.com"
] | bimandugal@gmail.com |
57b3602e7f6251032bfd21f91cf0b5da466d7f53 | a0b53f6638af5b67cc591994eea7eb3aec0e44f9 | /misago/threads/tests/test_floodprotection.py | 9b8d42c5085c7017af247a4b8703dfe8a2cd13ab | [] | no_license | FelixFreelancer/react-django-forum | bb4d4ed3bac1c77694bd0ef50a122e5bd2efc3a6 | 442db7e56714f2baad17aac525e725873bdf1650 | refs/heads/master | 2022-12-12T21:28:50.301365 | 2019-05-09T03:12:56 | 2019-05-09T03:12:56 | 185,715,690 | 1 | 0 | null | 2022-12-08T01:22:57 | 2019-05-09T02:57:02 | Python | UTF-8 | Python | false | false | 1,525 | py | from django.urls import reverse
from misago.acl.testutils import override_acl
from misago.categories.models import Category
from misago.threads import testutils
from misago.users.testutils import AuthenticatedUserTestCase
class PostMentionsTests(AuthenticatedUserTestCase):
def setUp(self):
super().setUp(... | [
"explorerpower@hotmail.com"
] | explorerpower@hotmail.com |
a6866da48739be0c4f8ee125b99b4f00db8ce727 | 90882482926884e9d1bf8db393596b9b392eb3db | /4-repetition/1-while-loop/4-len/bot.py | ca51c1f85e27e69f0df0b92bdf35c8c5544b2f77 | [] | no_license | 4mayet21/COM404 | cc2eee29433c0a5f59985ac4c02af82f0cc01c10 | 377ae5cca76af883c59d208f17178d5697ceeb4b | refs/heads/master | 2020-07-31T09:15:03.783979 | 2019-11-26T12:11:53 | 2019-11-26T12:11:53 | 210,556,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #asking for input
phrase = input("please enter a phrase: ")
bopLen = (len(str(phrase)))
bops = ""
while bopLen > 0:
bops = bops + "bop "
bopLen = bopLen - 1
print(bops) | [
"4mayet21@solent.ac.uk"
] | 4mayet21@solent.ac.uk |
2702b2b19ddfb0b10a4f4ce3f46c6c567491e9d2 | dbb4d1de645b16fe900d05d93f1fc31545ba9c99 | /Object_Design/5_class_and_static_decorator.py | f14252fb5c3d823baa15cf45b95dee522e1fc067 | [] | no_license | 0x-Robert/Algo_python_Study | 731d5902aec0e9d73b60b8f96e4f931efdcb28ce | 1940b46e5466e060aa69295b167173a316e3247d | refs/heads/main | 2023-07-31T11:49:49.483596 | 2021-09-08T07:24:51 | 2021-09-08T07:24:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | class A(object):
_hello = True
def foo(self, x):
print("foo{0} {1} 실행".format(self,x))
@classmethod
def class_foo(cls, x):
print("class_foo({0}, {1}) 실행: {2}".format(cls,x, cls._hello))
@staticmethod
def static_foo(x):
print("static_foo({0}) 실행".format(x))
... | [
"smartdragon417@gmail.com"
] | smartdragon417@gmail.com |
30bfa11e0595824edd8f03e6b69ce3e066a2646d | 389b781aaa933f431ee4f4bcc5b8df256ad0c967 | /kevin.py | 06d95b7a94959fd35deca7ffab80ca24a91d5e97 | [] | no_license | FrankJunkar/FavoriteThings | fcf9c133c1a5147489a26b7aef5b58e4cbf7ca59 | 419fa425f472f04ff7cf3324a87c76fe16d94acf | refs/heads/main | 2023-03-13T10:23:10.824339 | 2021-03-02T00:03:10 | 2021-03-02T00:03:10 | 341,363,777 | 0 | 0 | null | 2021-02-22T23:09:49 | 2021-02-22T23:09:48 | null | UTF-8 | Python | false | false | 427 | py | import random
import binascii
favorite_things = "c3ba01c3b35e2bc3b70e70c38c25307719c29427051dc38dc294c3b1c3b50918c297c2b7c2adc39e17c2b272c38e20c2b3386463c2863ac3a3c2b27450c38bc291c2a724c396c382c390c292"
def printfavs():
decoded = binascii.unhexlify(favorite_things).decode()
random.seed("53c437_k3y")
decrypted =... | [
"kevin@drymail.com"
] | kevin@drymail.com |
9b42a9e7e46436d0ff8326b0eda12b97ff858ab2 | f1ff4a61c6b850734c58ec114884cb0fa8f5d82a | /Francesco Raco/src/spotifyGroupingService.py | e86efd94089cba27c8991bad03acd1ae076f7e0e | [] | no_license | Fafixxx96/BigDataAnalitycs | 23227a9dab35345cfc6e81ad06c8781e71571979 | 8e21d3ce9c5dc1d9c4dbfc0023b90d0b5bf38994 | refs/heads/main | 2023-07-01T07:04:07.869518 | 2021-08-01T15:44:52 | 2021-08-01T15:44:52 | 323,847,283 | 0 | 0 | null | 2021-08-01T08:48:53 | 2020-12-23T08:35:17 | Python | UTF-8 | Python | false | false | 11,961 | py | import logging
import matplotlib
from numpy import double
logging.basicConfig(level= logging.ERROR)
import numpy
import math
import spotipy
from spotipy.oauth2 import SpotifyOAuth, SpotifyClientCredentials
import json
from pyspark.sql.session import SparkSession
from pyspark.sql.functions import Column
fro... | [
"noreply@github.com"
] | Fafixxx96.noreply@github.com |
e4a8b726e97e5b7e572f45b81f4f0dcf2eabafe5 | 8a932777c890284c5eabc203c4916516f4e314ce | /examples/example_flask.py | cbe30bd866157ced8d7a031e179630bf396f4a4f | [] | no_license | watxaut/flask-project | da58e5da06a865f2619fac2cc4ef63405cb8a9d0 | a81d0e701fc2845157bb346083149ee74985e989 | refs/heads/master | 2021-06-17T18:27:32.656865 | 2019-11-02T08:56:58 | 2019-11-02T08:56:58 | 169,991,536 | 0 | 0 | null | 2021-03-20T00:34:35 | 2019-02-10T15:16:18 | Python | UTF-8 | Python | false | false | 838 | py | from flask import Flask, jsonify, request
# __name__ == "__main__" if executed. It will give the module name if imported and printed
app = Flask(__name__)
# main page (like 'index.html')
@app.route("/")
def home():
# Flash automatically looks at the 'templates' folder, very important to have the same folder name... | [
"watxaut@gmail.com"
] | watxaut@gmail.com |
ca6f20af4089ca0e8e1ecd2c061a2b5fc46bdd11 | a7ed2f9d4cbdadd159dab7c817d8e3955beed2b5 | /home/migrations/0005_product_url.py | 9fa38e0bfdc6143565ad53cb075a891f5ea4ed02 | [] | no_license | m0rtez4/1 | d8cd47613d666b9598fdf111a0da98b074e624b4 | d291dda1f60628287fc9090256c681f758499ff0 | refs/heads/master | 2023-07-21T10:40:20.145749 | 2021-08-19T20:53:29 | 2021-08-19T20:53:29 | 396,295,471 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.2.5 on 2021-07-13 00:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0004_remove_product_total_price'),
]
operations = [
migrations.AddField(
model_name='product',
name='url',
... | [
"m.golalipour@yahoo.com"
] | m.golalipour@yahoo.com |
2a61130e38abfdb993ca7a5d2c63578e361d5ba3 | 7ff908b0d3196d9170e37590654d21288ba0afc7 | /lotto.py | f9fd1a6553693d0bc6e5011740b42c182493c411 | [] | no_license | my0614/python | 9fca95adf7175344e61b13b5c2940284e6cc5fc8 | de87665e8d63c3c878abeef1be55173113c810ad | refs/heads/master | 2021-11-22T23:35:02.103330 | 2021-08-29T05:06:19 | 2021-08-29T05:06:19 | 212,062,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import random
lotto_value = []
count = 0
one = 0
for i in range(7):
a = random.randrange(1,46)
lotto_value.append(a)
print(lotto_value)
lotto_input = input('로또 번호를 적어주세요').split(' ')
print(lotto_input)
for i in range(0,6):
if int(lotto_input[i]) == lotto_value[i]:
count += 1
if int(lotto_input[6]... | [
"noreply@github.com"
] | my0614.noreply@github.com |
a5182a3592a73630ecc56a742be9063f21eaa18f | 1084f6e49cb5bc119e269074abeb19892936ced0 | /2_estruturas_de_condicao/exercicio_21/exercicio.py | 8c043089dab08a77a37dbb68de6301db7f4ba225 | [
"MIT"
] | permissive | ericsporto/Logica_com_Python | b14c68856156d20e54451064bc2854636a724740 | 6036de44776c69da1381d4b4e05abbfd7523c9f5 | refs/heads/main | 2023-09-04T13:25:14.591405 | 2021-10-22T10:44:16 | 2021-10-22T10:44:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | rodas = int(input("Digite a quantidade de rodas: "))
print(rodas)
if rodas > 2:
print("Pagar pedágio!")
if rodas == 2:
print("Pode passar livremente!")
| [
"89411680+ericsporto@users.noreply.github.com"
] | 89411680+ericsporto@users.noreply.github.com |
cbea8d19bfec7562e32c00134f80b76fc7ac3e63 | 035b9151e3e35e9c697c04eb54aca4a44d4a4cd2 | /polls/views.py | 50f21bedcaca2320703383f31f2dda3beebf35b9 | [] | no_license | ghm8418/mysite | 1139e4c8fc3980c0afdaa7ea9945f58444269697 | 4103faef9df2d921c9124190661353c474bf4ed2 | refs/heads/master | 2020-04-07T06:59:28.660217 | 2018-11-19T07:53:24 | 2018-11-19T07:53:24 | 158,159,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | from django.shortcuts import render
from django.http import HttpResponse
from polls.models import Question
# Create your views here.
# def index(request):
# q = Question.objects.all()[0]
# choices = q.choice_set.all()
#
# print(q.question_text)
# print(choices[0].choice_text)
# print(choices[1].ch... | [
"ghm8418@gmail.com"
] | ghm8418@gmail.com |
d27c1611bd3737bd6b4d8b6aecbf4c536cec23b3 | 015098bcb0e7b5595337c1b3e702942ed5b01272 | /setup.py | 6036b2725a5bdc962a01ccd158e2d7961c4446af | [] | no_license | ASSNAKE/assnake-core-binning | f0e0676aa6bcdc4fc60fa98fcdb49d0f5fa960a7 | 7b7e539722e18226b1dd9cd23231a4fda4ba78c9 | refs/heads/master | 2022-12-25T18:39:22.303737 | 2020-10-09T09:53:07 | 2020-10-09T09:53:07 | 236,690,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from setuptools import setup, find_packages
from setuptools.command.develop import develop
from setuptools.command.install import install
import os, shutil
setup(
name='assnake-core-binning',
version='0.0.1',
packages=find_packages(),
entry_points = {
'assnake.plugins': ['assnake-core-binning ... | [
"fedorov.de@gmail.com"
] | fedorov.de@gmail.com |
3a5a5002e2468ce50e405be4a11ab9223ceffb70 | 19d6b853089421142d46e2db26ff639dc4546b6f | /walkietrackie/wsgi.py | 3562f32968095906c9ac6d302791103a0446afc3 | [
"Unlicense"
] | permissive | polmuz/walkietrackie | 478d52857c835d63f69d9c4290e669daca149076 | f498c9b0b833c481292ad60432fc9bc7e15816b3 | refs/heads/master | 2020-04-25T23:30:39.719767 | 2014-12-31T19:19:41 | 2014-12-31T19:19:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | """
WSGI config for walkietrackie project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "walkietrackie.settings")
from d... | [
"pablomouzo@gmail.com"
] | pablomouzo@gmail.com |
6d3d0232ab5ec62fd9963d3b5f279118a4925235 | beb315cb6c2ef23652d2de7a9adee062e02c5722 | /shop/auth_/views.py | 4ade748693bcef96cde288bf837051476c857524 | [] | no_license | Yessenaly/SoftProject | 8a537038f15542dd5939187d549ee89816811ebc | 4e9cfeab21d47a05bf658267a4304fe0724cc123 | refs/heads/master | 2020-04-23T10:18:36.927426 | 2019-02-21T20:15:21 | 2019-02-21T20:15:21 | 171,100,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | from django.shortcuts import render , redirect
from django.http import HttpResponse
from django.contrib.auth.models import User
from django.contrib import auth
# Create your views here.
def register(request):
if request.method == 'GET':
return render(request , 'register.html')
else:
username ... | [
"yessen3103@gmail.com"
] | yessen3103@gmail.com |
ebe0c7c995796cf5a3412cdf516158f9b5ae94b9 | 8ae22e2027a87c26e18d02febb436960321f005c | /core/migrations/0021_causas_tecnico.py | 45db335b9a6856aa892ab5464df19c5111b410ec | [] | no_license | Astralroth/Proyect-Lex | 67b8136d7b7e0824506e76a8f0924f23a61b50e3 | 9ec756cf2733bd937739a9268e0ef4f566a24cfd | refs/heads/main | 2023-06-11T03:45:11.608048 | 2021-07-01T18:10:15 | 2021-07-01T18:10:15 | 380,637,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # Generated by Django 3.2.4 on 2021-06-30 22:04
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),
('core', '0020_auto_202106... | [
"francosandoval003@gmail.com"
] | francosandoval003@gmail.com |
a2236073f0785781b83840404f7b1e3f300e4246 | d083fcc77d98c9724d8de534f91e6bdd403925d4 | /CodingTemplate/datasets/kittidataset.py | 100e0c4725f23f040fd7b5bafb717457dadb9c1c | [] | no_license | htXin/CodingTemplate | c17c0b913102f380e53bf9856001aacd14a2d237 | f9232abf069c39586dbaa92f5b71c749ce831f8a | refs/heads/main | 2023-04-15T11:00:22.552421 | 2021-04-20T08:34:18 | 2021-04-20T08:34:18 | 359,731,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | import os
import numpy as np
from PIL import Image
from torch.utils.data import Dataset
import datasets.datastruct.label_object as label_object
import datasets.datastruct.calib_object as calib_object
import argparse
class KittiDataSet(Dataset):
def __init__(self, root_dir, split):
IS_TRAIN = sp... | [
"noreply@github.com"
] | htXin.noreply@github.com |
56845e58bbe8305e5bc3d7b2e20895a2f7696084 | 6eb0fb83ab926be3835973ab2703fb9fb0f384c7 | /traintest/binary_trainer.py | 65f3055dbaf78d395029d7e151e6a818af5f0259 | [] | no_license | meetsiyuan/MCTS | 26a64434b512303b87787923d6047d9e20b29ed4 | 2d34ec72c2358a5bf4dd0b2855a7900fbb8feae7 | refs/heads/master | 2022-10-13T16:17:29.742075 | 2020-06-07T11:48:35 | 2020-06-07T11:48:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | import torch
import numpy as np
import random
import time
from traintest.trainer import Trainer
from utils import *
__all__ = ['BinaryTrainer']
class BinaryTrainer(Trainer):
"""
Binarynet专用
"""
def __init__(self, model, dataloader, criterion, optimizer, device,
vis=None, vis_interva... | [
"1934455602@qq.com"
] | 1934455602@qq.com |
8275b4667d792989ce88f4409448f56247504e74 | 74518c42d7d909f134e6958e6aea3e555307d73f | /crawler.py | 1d5722874c768a550cb9ae2d50440f8dfec0d804 | [] | no_license | pariweshsubedi/simple-python-crawler | bc03ae55a76a92ab68b1f4d781b273778daf63a0 | d471c3c2e5d1def259a57046805117ad81eefb6a | refs/heads/master | 2021-01-20T21:06:20.492448 | 2016-06-15T05:32:47 | 2016-06-15T05:39:28 | 61,180,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,152 | py | #coding:utf8
from bs4 import BeautifulSoup
import requests
import json
import re
class Crawler():
"""
A crawler that fetches the latest ads from
site : http://hamrobazaar.com/
with input keyword
to output json in format:
[{
"price" : "",
"ad_url" : "",
"... | [
"pariwesh123@gmail.com"
] | pariwesh123@gmail.com |
b86275ae56f9d0014b5c3a45b2b8249d042a0397 | c74b29b68211a51d7283d57b24d7cf83422a8ceb | /historischekranten2folia.py | 49a1dadee9ba395be694155de271a6c80da1c684 | [] | no_license | proycon/nlpsandbox | 63359e7cdd709dd81d66aed9bf1437f8ecf706a0 | 22e5f85852b7b2a658c6b94c3dedd425a5d6396f | refs/heads/master | 2020-12-09T19:37:10.040962 | 2019-04-23T17:17:15 | 2019-04-23T17:17:15 | 2,347,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | #!/usr/bin/env python3
import csv
import sys
from bs4 import BeautifulSoup
from pynlpl.formats import folia
for filename in sys.argv[1:]:
with open(filename, 'r',encoding='utf-8') as f:
reader = csv.DictReader(f, delimiter='\t', quotechar='"')
for row in reader:
docid = "historischekr... | [
"proycon@anaproy.nl"
] | proycon@anaproy.nl |
b776e05c4aebbeae77ba412fb2ebf0fec81ef261 | d3aef2ce0ee88c92516e64018f6d9f880911438c | /demo/urls.py | 0137d9575b7afac8bf893f382ea0ac49ae67e9f8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Apkawa/django-material | 648451d28a21270ddff937abf92931592ab9a56e | 426e845ac27db0e1351bbb7f68377949581dfbd7 | refs/heads/master | 2021-01-15T17:51:49.304338 | 2016-02-26T10:34:15 | 2016-02-26T10:34:15 | 52,146,120 | 0 | 0 | null | 2016-02-20T09:29:25 | 2016-02-20T09:29:24 | null | UTF-8 | Python | false | false | 6,434 | py | from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views import generic
from django.shortcuts import render
from formtools.wizard.views import SessionWizardView
from material.frontend import urls as frontend_urls
from . import forms, widget_forms
d... | [
"kmmbvnr@gmail.com"
] | kmmbvnr@gmail.com |
a08dc9693ab281fca9297639b0196989edb536ed | 64f368cdf1555260bcdbdd556cefa4aac99aea77 | /armgcc/aarch64-cortexa53-linux-gnu/lib64/libstdc++.so.6.0.22-gdb.py | ca3f171e4176b78758cca5835b650befc7053c70 | [
"MIT"
] | permissive | best008/BC_ARMGCC_S5P6818 | a3d01e574d4118439b0c922bb25920469c44f7db | 570f410a7f4a10be3416da0aac022443f3bffd24 | refs/heads/master | 2020-04-11T10:46:43.957194 | 2018-12-14T03:23:52 | 2018-12-14T03:23:52 | 161,725,902 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | ../../aarch64-cortexa53-linux-gnu/sysroot/lib64/libstdc++.so.6.0.22-gdb.py | [
"2362317758@qq.com"
] | 2362317758@qq.com |
d69a60ce1ac5bc784e7be8caf9b4d419321c1239 | c0a1c7d0df229cd0236311f8344ae85d20560868 | /Numpy/August-23-2019/calculating_Volume_Weighted_Average_Price.py | 090e9e9a978f33964952f4ee7cd4fbde0578c60c | [] | no_license | edaaydinea/python-libraries-study | a67cc72a954723da92e798e3cd7f10105ad30b6c | 1431f778f6edab0b7209ddbbe4a4adb5805cb251 | refs/heads/master | 2020-07-06T02:39:20.677670 | 2019-09-11T19:47:15 | 2019-09-11T19:47:15 | 202,862,334 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from __future__ import print_function
import numpy as np
c,v = np.loadtxt("data.csv",delimiter=",",usecols=(6,7),unpack=True)
vwap= np.average(c,weights=v)
print("VMAP=", vwap) | [
"noreply@github.com"
] | edaaydinea.noreply@github.com |
1adbedc4b372ae1eec8d80d473a2248610c0e861 | 41288c85ba5bbb644efd36310858034153893bb2 | /k_medoids.py | cde790f76334ea1421fdd4ecc4f264cd2cab8554 | [] | no_license | suhamida/pythonPractice | 796247652069d5d73c865bbd923c101ee08f6071 | 6345015b66c370a26fb3918b8dd3725a0df42d11 | refs/heads/main | 2023-07-06T19:36:43.915297 | 2021-08-08T07:15:27 | 2021-08-08T07:15:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py |
import numpy as np
import matplotlib.pyplot as plt
from copy import deepcopy
from IPython import embed
import time
def _get_init_centers(n_clusters, n_samples):
#return random points as initial centers'''
init_ids = []
while len(init_ids) < n_clusters:
_ = np.random.randint(0, n_samples)
... | [
"hamida.cse@gmail.com"
] | hamida.cse@gmail.com |
8f6074736677b40ad3abc447c437659f71c7eb0f | fbf4f26a2b97d4fe35aa7b66e9cfed4cd0224e89 | /chlamdb/eutils/sequence_exact_match.py | 83e231040a3d492e29ca337400d07a339d4fe140 | [] | no_license | metagenlab/chlamdb | a100ab93407e15c33684b8d7175873adc6720d0b | f1829cf19ac1ded032d65689fbbff2d37489f739 | refs/heads/master | 2023-03-07T05:30:02.793914 | 2023-03-02T10:30:57 | 2023-03-02T10:30:57 | 179,291,344 | 6 | 1 | null | 2022-11-01T07:01:54 | 2019-04-03T13:02:40 | HTML | UTF-8 | Python | false | false | 4,816 | py | #!/usr/bin/env python
def process_tag(tag):
return tag.split('}')[-1]
def get_UPI(seq):
for element in seq:
if element.tag == '{http://model.picr.ebi.ac.uk}UPI':
return element.text
def get_hit_attributes(hit):
accession = ''
version = ''
taxon_id = ''
db_name = ''
for... | [
"trestan.pillonel@gmail.com"
] | trestan.pillonel@gmail.com |
4d11d38be8a5327f5b2570194e363b7d16a02a24 | 05ef845deda7863134c65da01679b92196a6dab2 | /configs/models/classifier-basic.py | c6cdd3eb98ef2e7375cca5517508a66cd5d40cfe | [
"MIT"
] | permissive | gleb-t/S4 | 6dc6dd417519a8a93b5ef9ac52f412857776eb54 | e88abf5f630aae7f2a825a7f686c23db6066d6ff | refs/heads/master | 2023-01-24T22:26:50.756351 | 2022-04-24T09:51:35 | 2022-04-24T09:51:35 | 399,844,486 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from typing import *
from Siamese.config import SiameseConfig
# noinspection DuplicatedCode
def build_classifier(config: SiameseConfig, inputShape: Tuple[int, ...]) -> 'keras.models.Sequential':
import keras
classifier = keras.models.Sequential()
classifier.add(keras.layers.Dense(1, activation='sigmoid'... | [
"gleb-t@users.noreply.github.com"
] | gleb-t@users.noreply.github.com |
4f03dcbb3a4981e832ea2ada8019b8427ffa6e1e | 7173d5322427947dcf09174e61193f99901ffb40 | /common/samples-generator.py | 4c47a6f5b8170a21f364dd79e55b8fb6435c433d | [
"MIT"
] | permissive | mksoc/ISA-filter-design | 8b917822e196ebd6496407760723b81e0c4ebfa8 | bc2af7f8ca85a06ffa2e9c3a572c9093ef42cef3 | refs/heads/master | 2020-03-31T12:27:44.488771 | 2019-03-21T10:12:26 | 2019-03-21T10:12:26 | 152,216,761 | 1 | 0 | MIT | 2018-11-11T17:18:37 | 2018-10-09T08:37:41 | Verilog | UTF-8 | Python | false | false | 1,275 | py | #! /usr/bin/python3
from sys import exit
import random
# define possible modes
modes = {1:"Random", 2:"Special (only 0 and extremes)"}
for key, value in modes.items():
print("{} - {}".format(key, value))
# prompt user for mode selection
try:
mode = int(input("Select the generator mode: "))
except ValueError:
... | [
"27402195+mksoc@users.noreply.github.com"
] | 27402195+mksoc@users.noreply.github.com |
06cf5691c097f29cecbf4016aadddc46e96c8ec1 | 6b520836bf5caedb064af02bc7b9ec9c828f0885 | /03 Num Dates Times/C04binhexdecoct.py | 6610c06e7b6cfbaf416801949101b4c708c49cf1 | [] | no_license | tomtom0516/python-cookbook-3rd-edition | bc2c641133f96b4d5718335f8d17eee3d4426114 | e72545f99622b1f46fd05ff63e3c8d3d6841ab42 | refs/heads/master | 2022-03-10T22:10:19.179123 | 2019-12-05T02:25:04 | 2019-12-05T02:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | x = 1234
bin(x)
hex(x)
oct(x)
int(0x4d2)
int(0b10011010010)
int(0o2322)
int('4d2', 16)
int('10011010010', 2) | [
"pyptom76@163.com"
] | pyptom76@163.com |
7b5f8b2dd459f5a56b4dde5383683cdeec6ffa7a | e7324a597faef537e96d0c1d27b1877d229591bb | /odoo-venv/bin/pysassc | 12341ce28b1a5fff3024ced4898cc0812035101b | [] | no_license | ledonhomeweb1/ming | 6a95c02e456c808b061fd5e7862d51504ba0fca8 | c663fbfe6c2b3d7b0b9f7e5b94dddaca9fd8b7ed | refs/heads/master | 2022-12-16T10:51:23.767786 | 2020-09-14T08:59:02 | 2020-09-14T08:59:02 | 295,359,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | #!/opt/odoo13ming/odoo-venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pysassc import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ledonhome.web1@gmail.com"
] | ledonhome.web1@gmail.com | |
077d1f303b1d8e4453ccf710e00fdc43e75bd68c | 1f38f3cd0ba6d42dd73f273e3dc9df4ebdc0dc9d | /BuzzScoreSite/manage.py | 5463761455fffd46cd530a6382b889c5bc5c5ee1 | [] | no_license | MenshovSergey/BuzzScore | 2a5f8cfd9b46a85665455c2a5cfa298c9a3a698b | 348d1b2feb76a892e489016682f16e7a70a504a9 | refs/heads/master | 2021-01-16T19:49:40.996213 | 2013-10-12T09:43:46 | 2013-10-12T09:43:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "BuzzScoreSite.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"snailandmail@gmail.com"
] | snailandmail@gmail.com |
faebc71ced6cff2f4f66945a372fd278748ac68c | 52e3f68d59615dab6928befa4b31f8bcf23595fa | /algorithm/재미있는 오셀로 게임.py | 9870c96a88804b09da5615cef24c5993cf78dad0 | [] | no_license | talkin24/python | 0b40f2ab8893b3137195987e149a9dc79493392a | b12ba8f97dbadf41fe534a57c57d1600852e00d2 | refs/heads/master | 2023-01-06T14:37:45.480144 | 2020-10-29T08:46:34 | 2020-10-29T08:46:34 | 281,813,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | import sys
sys.stdin = open("재미있는 오셀로 게임.txt", "r")
T = int(input())
for t in range(1, T + 1):
print(f"#{t}", end=" ")
N, M = input().split()
N, M = int(N), int(M)
acts = [list(map(int, input().split())) for _ in range(M)]
b, w = 0, 0
board = [[0] * (N + 2) for i in range(N + 2)] # add padding... | [
"35341110+talkin24@users.noreply.github.com"
] | 35341110+talkin24@users.noreply.github.com |
443fdd4993d3dad8cc8a84552bb38aad7f19f7ec | e0a991bbc1cc6ff2c595ad4952315028dd5d83a1 | /memory_ver3/finPID_by_processName.py | fca50bc27f77600c7b3d3b7307ae07ade32da906 | [] | no_license | fordivil/python | 1ff40e6995622e0fb3a13cc1e137fc8d528c35b1 | 4d2634158226c4c5ac4881d56ac1eac9253cdcd9 | refs/heads/master | 2021-01-21T14:01:25.461498 | 2016-05-26T04:53:06 | 2016-05-26T04:53:06 | 55,599,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import psutil
def find_Process_Name(process_name):
for proc in psutil.process_iter():
process = psutil.Process(proc.pid)# Get the process info using PID
pname = process.name()# Here is the process name
#print pname
if pname == process_name:
return proc.... | [
"fordivil1@gmail.com"
] | fordivil1@gmail.com |
731b016384695c7fbf09a1241bfce9fa6e6acf50 | 2ca90c4da88dd233fd1102d75c6a023263c1d891 | /netbox/netbox_inventory.py | 1633f238f3270a58cfed414e4e1e9ccdcc59026f | [
"Apache-2.0"
] | permissive | mtbutler07/netcfgbu | 499b93d7ee346e6a01dfc10929894d569dc68db6 | d3c5945f50f49c9e646fda47954bd92014282087 | refs/heads/master | 2022-10-07T19:51:17.790289 | 2020-06-10T00:46:29 | 2020-06-10T00:46:29 | 271,167,326 | 0 | 0 | Apache-2.0 | 2020-06-10T03:12:32 | 2020-06-10T03:12:31 | null | UTF-8 | Python | false | false | 4,296 | py | #!/usr/bin/env python
#
# This script is used to retrieve the device inventory from a Netbox system and
# emil the CSV file to either stdout (default) or a filename provided
#
# The following Environment variables are REQUIRED:
#
# NETBOX_ADDR: the URL to the NetBox server
# "https://my-netbox-server"
#
# NET... | [
"noreply@github.com"
] | mtbutler07.noreply@github.com |
bca0bdb8b08da22691ffa39b5e1104087b4180c0 | 9b79dc0b4b2f13dea85a1d29177e5eb266b6e7f7 | /var/lib/python-support/python2.6/rdflib/store/REGEXMatching.py | b7500a712c707ce0fccfdef7843481cac2b31775 | [] | no_license | haniokasai/netwalker-rootfs | 0bc87efc0ae478338b6326fd9118befcbcc5cd06 | d08f7bf370a82b6970387bb9f165d374a9d9092b | refs/heads/master | 2021-01-10T11:04:34.436513 | 2016-01-12T06:09:50 | 2016-01-12T06:09:50 | 36,504,146 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | /usr/share/python-support/python-rdflib/rdflib/store/REGEXMatching.py | [
"htek@haniokasai.com"
] | htek@haniokasai.com |
a25684a49262357be881aa5757e6209498b9ed21 | 51199e2c76498e67049a8e8d8308f551044c262a | /Python/GUI/PyQtLayout.py | 7763f69da7b2716765f481b486f3a7c04b0e08d0 | [
"MIT"
] | permissive | yishantao/DailyPractice | 9ab7129b7a573a9ff5f018bc293a40a6278675b8 | ee26859af3faf48e63d6c2850db1d895a8a88fb1 | refs/heads/master | 2020-03-18T18:59:11.153508 | 2018-08-02T10:58:50 | 2018-08-02T10:58:50 | 135,126,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | # -*-coding:utf-8-*-
"""使用布局组件布置多个标签"""
import sys
from PyQt5 import QtWidgets, QtCore
# 通过继承QtWidgets.QWidget创建类
class MyWindow(QtWidgets.QWidget):
def __init__(self):
QtWidgets.QWidget.__init__(self)
self.setWindowTitle('PyQT') # 设置窗口标题
self.resize(300, 200) # 设置窗口大小
grid_layo... | [
"38241025+yishantao@users.noreply.github.com"
] | 38241025+yishantao@users.noreply.github.com |
b81d4344b6186530702ceb706cebe876dde0b167 | 8259611d9ad49cca99e26ce07d1d792ab8c28b13 | /geopandas/_vectorized.py | 82e3d08d21a48de2dda8b0db3faed73dcbef410d | [
"BSD-3-Clause"
] | permissive | maifeeulasad/geopandas2 | 83218432bae245d691b592cb4f1ca8814221f23b | 12038d99dade80cacc7af6a55c42bcce8d9964a9 | refs/heads/master | 2023-06-03T23:21:21.857793 | 2021-06-30T05:42:55 | 2021-06-30T05:42:55 | 381,581,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,294 | py | """
Compatibility shim for the vectorized geometry operations.
Uses PyGEOS if available/set, otherwise loops through Shapely geometries.
"""
import warnings
import numpy as np
import shapely.geometry
import shapely.geos
import shapely.wkb
import shapely.wkt
from shapely.geometry.base import BaseGeometry
import _c... | [
"maifeeulasad@gmail.com"
] | maifeeulasad@gmail.com |
9fdf1fcd02e82e69e482cbdf80c02a24fcb02aef | 01200401ef046a917df1205268fa92f23cfd28d8 | /tests/test_histogram.py | f59279d6ed0771159428df32ce8d3a52d8e06d3d | [
"BSD-3-Clause"
] | permissive | murodin/pyclesperanto_prototype | 5fa8922dcbbc98aa69e1aab779c62a326a6937d7 | 4687e3085a5f8bc12e798bf25acd295ee249fb5e | refs/heads/master | 2023-01-20T14:34:47.858014 | 2020-11-30T11:56:47 | 2020-11-30T11:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | import pyclesperanto_prototype as cle
import numpy as np
def test_histogram():
test = cle.push_zyx(np.asarray([
[1, 2, 4, 4, 2, 3],
[3, 3, 4, 4, 5, 5]
]))
ref_histogram = [1, 2, 3, 4, 2]
my_histogram = cle.histogram(test, num_bins = 5)
print(my_histogram)
a = cle.pull(my_his... | [
"haesleinhuepf@users.noreply.github.com"
] | haesleinhuepf@users.noreply.github.com |
1f3b8ca61fb87703a1d5b7ee53112abbc6cca035 | 80e3a4fd8921ea6794f31f2f3dda13d049675f7d | /utils/__init__.py | 15f6d6d9659925861c4be53aa16ef68ac9c94192 | [
"MIT"
] | permissive | dan-kez/lambda-ftp-to-gsheet-transform | e228ce9d6948aa9f15a547a519988c6676c8bef0 | e6707542719ed133ee90addc6b73c9c057b7898a | refs/heads/master | 2023-02-02T18:37:56.947431 | 2020-04-04T20:50:01 | 2020-04-04T20:50:01 | 237,648,380 | 2 | 0 | MIT | 2023-01-24T01:17:05 | 2020-02-01T17:09:14 | Python | UTF-8 | Python | false | false | 37 | py | from .s3 import get_matching_s3_keys
| [
"daniel.kez@gmail.com"
] | daniel.kez@gmail.com |
555e2b6b866cd6328a6db4f4f3185a895ce25130 | 9f517ba528665be4f1065b95ed13b414b19b4580 | /Tutorials/MachineLearning/SirajologyMusicDemo/tf_music_generation_demo.py | c436288ce6c8053baa70f0c7919ef031c2516ab1 | [] | no_license | bgenchel/practice | d6120bf2b047ac49c0741040cbe17f17e4846883 | ddd10410165bf63ef9786af8421d3d39bae8d153 | refs/heads/master | 2020-06-18T00:53:04.717907 | 2016-11-28T10:29:43 | 2016-11-28T10:29:43 | 74,961,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | # Generate Music in TensorFlow
# https://www.youtube.com/watch?v=ZE7qWXX05T0
import numpy as np
import pandas as pd
import tensorflow as tf
from tqdm import tqdm
import midi_manipulation
from rbm_chords import *
## 4 steps to generate music! (Using restricted boltzmann machine)
##############################
### Ste... | [
"benjiegenchel@gmail.com"
] | benjiegenchel@gmail.com |
c03058bdab453ed37f520ba3c345fbea4559e0f9 | 2a2777d02a0c99206d19e637a1c13ccf0f8e8fbb | /djangoWeb/iqc/migrations/0012_iqcuploadrecord.py | 0cbf6e98bbc65489a2f59073af241cdb0d7c4cf0 | [] | no_license | huangle63/DjangoWeb | 38360d190feb9c201cf1cfe8e820634d6e09662c | 7861e012c3788fd2e88927c0897c7ac8c4082b9c | refs/heads/master | 2021-01-13T11:20:20.111551 | 2017-03-10T03:13:09 | 2017-03-10T03:13:09 | 77,189,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-03-06 15:14
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"huangle63@163.com"
] | huangle63@163.com |
05646c325d4d03bded9609b2dd0420a49fcb62fa | 1a806c868d43fc87999a89e892b9a446b433c58f | /assignment/material/migrations/0013_auto_20201203_1126.py | e4321548bb7f2cd1a8b8e26200eb04f917dca58a | [] | no_license | MalsawmaKhiangte/material_management | ec0281eb0da4a8067e37d4823577d8b0b273acfa | dc31a7eb53b139db533effa379b7210ab58b30ae | refs/heads/main | 2023-01-25T02:23:56.912193 | 2020-12-06T18:18:09 | 2020-12-06T18:18:09 | 318,254,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.1.3 on 2020-12-03 05:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('material', '0012_auto_20201203_1126'),
]
operations = [
migrations.AlterField(
model_name='district',
name='email',
... | [
"mskhiangte00@gmail.com"
] | mskhiangte00@gmail.com |
8e6a40aabb5d98acecdf713ba9a997923ae08b27 | 7bf617f77a55d8ec23fa8156c1380b563a5ac7f6 | /CG/SciPy/mm_color_cluster.py | c069d4d292db408ca47cdbeff36617ac590abb43 | [] | no_license | anyatran/school | c06da0e08b148e3d93aec0e76329579bddaa85d5 | 24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec | refs/heads/master | 2021-06-17T10:45:47.648361 | 2017-05-26T12:57:23 | 2017-05-26T12:57:23 | 92,509,148 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | # Auto-clustering, suggested by Matt Terry
from skimage import io, color, exposure
from sklearn import cluster, preprocessing
import numpy as np
import matplotlib.pyplot as plt
url = 'http://blogs.mathworks.com/images/steve/2010/mms.jpg'
import os
if not os.path.exists('mm.png'):
print "Downloading M&M's..."
... | [
"panhtran249@gmail.com"
] | panhtran249@gmail.com |
16620636c556a91a3c0e8574830ea3e9a9f2ee90 | 9db2c871d1715d4068cc638458e573d58567d0f2 | /labs-neural-networks/hw-lab6/mnist-improved.py | 5e91ede4c5f63b28357f13c39b6c2de7769a6ad3 | [
"MIT"
] | permissive | xR86/ml-stuff | ec2bff6e57aaa89ca8740cece562a4e7b8cfe685 | 2a1b79408897171b78032ff2531ab6f8b18be6c4 | refs/heads/master | 2021-05-01T10:36:22.362741 | 2021-04-08T22:22:20 | 2021-04-08T22:22:20 | 63,726,853 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,159 | py | import cPickle, gzip, numpy as np
f = gzip.open('mnist.pkl.gz', 'rb')
f2 = open('matplot-text.txt', 'w+')
train_set, valid_set, test_set = cPickle.load(f)
f.close()
print 'train_set length: ', len(train_set[0])
epochs = 1
learning_rate = 0.1
class MLP(object):
def __init__(self):
# Layer init =>
... | [
"9412441+xR86@users.noreply.github.com"
] | 9412441+xR86@users.noreply.github.com |
e43483e4f83e7c1f95abb3cc02b7dce519a7661a | b0f0f72f60f4d0524a696eb67818f7bdec64f8fd | /places/migrations/0004_auto_20200827_1343.py | 7457b304f34cd3240427202b307ba3e875942940 | [] | no_license | denisorionov/where_to_go | 7fa9c15a831f32a7e8ac1e59775b58ddb44aeecd | 54107ce61de9a08cf61e3768a6f6de04cb549a4b | refs/heads/master | 2022-12-18T21:56:28.200461 | 2020-10-01T04:47:58 | 2020-10-01T04:47:58 | 290,710,605 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | # Generated by Django 3.1 on 2020-08-27 10:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('places', '0003_image'),
]
operations = [
migrations.AlterField(
model_name='image',
name='img',
field=mode... | [
"orionovdv@gmail.com"
] | orionovdv@gmail.com |
936a5b37ef17d1036536797c91be42c6e52793c9 | 58563dbe063c2ed612a59ca78a99faa3611a0144 | /SteetVector.py | 19144468c684db0a1d91347e644adb8443ef6333 | [
"MIT"
] | permissive | DieuwerH/AE3537 | 13b2f087a0af6414460be3c3cbcfe1079e978acc | 3957a58374b5783725565fc874ed1829c6208106 | refs/heads/master | 2020-04-07T14:27:43.658590 | 2019-02-14T19:17:29 | 2019-02-14T19:17:29 | 158,448,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | import numpy as np
import datetime
import time_helper
class StateVector:
def __init__(self, pos=np.array([0, 0, 0]), vel=np.array([0,0,0]), time=datetime.datetime.now()):
self.pos_eci = np.array(pos)
self.vel_eci = np.array(vel)
self.time = time
self.pos_ecef, self.vel_ecef = self... | [
"dieuwer.hondelink@gmail.com"
] | dieuwer.hondelink@gmail.com |
e2fa124d83cd3c760b0eff2d53eef09fec49c3aa | 7e266469a84e06e3551a7ba0dca25e894f2f3111 | /Bloomy_Core_CreateQualityInspection_TestCase/test_createqualityinspection_testcase.py | 7f7b7aeeb1520353cfd2c98e5bd56a96ac51aa33 | [] | no_license | Bloomstack-Test-Automation/Bloomstack-Test-Automation | 43862b6761951effee5f17d7428f5be0c34b4499 | 2450df2018715cf6f0ec080ca1dc0751a230d969 | refs/heads/main | 2023-06-06T10:52:57.695175 | 2021-06-30T11:33:30 | 2021-06-30T11:33:30 | 368,438,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,647 | py | import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.select import Select
from src.testproject.classes import DriverStepSettings, StepSettings
from src.testproject.decorator import report_assertion_errors
from src.testproject.enums import SleepTimingType
from src.testproject.sdk.driv... | [
"noreply@github.com"
] | Bloomstack-Test-Automation.noreply@github.com |
afad18cb8a7156f474cc091590422f26708cce8a | 417a35ad8b20c4ef5a8f1f346163811e514b84d6 | /app/main/__init__.py | 8cb55b9004a6418394bef59469386a16ab5ff076 | [] | no_license | Heaveniost/Flask_Web | c045fb783f8d200ddb7ef2f5c742136eed5f1e04 | c14438f9743b6b60055cc7c1871156350cc61c5d | refs/heads/master | 2022-12-12T21:38:52.217316 | 2018-06-23T03:33:58 | 2018-06-23T03:33:58 | 136,014,275 | 1 | 0 | null | 2022-12-08T02:17:44 | 2018-06-04T11:19:06 | Python | UTF-8 | Python | false | false | 216 | py | from flask import Blueprint
main = Blueprint('main',__name__)
from . import views,errors
from ..models import Permission
@main.app_context_processor
def inject_permisssions():
return dict(Permission=Permission) | [
"304090717@qq.com"
] | 304090717@qq.com |
fdec849742b2c5fc11f45cd91469855165bf18e9 | c6b1d783937d5b77ac25de55f3e8a17b503fbada | /sheet-3/LTH/exercise-12.py | 7d7ca5f814d4540b8140e30fa87d44e9d76d2ac7 | [] | no_license | thierschi/python-exercise | 5a136c990d1a7ec269511b997a98bd245a26aeba | 975cfbc9a48eb985ffd584e30cc95273e456af6a | refs/heads/main | 2023-06-26T02:18:42.348957 | 2021-07-20T13:47:31 | 2021-07-20T13:47:31 | 358,187,095 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | # ------------------------------------------------------------------------------
# Sheet 3 Exercise 12
# Niklas Markert - 1611460 / bt70985
# Lukas Thiersch - 1607110 / bt708626
# ------------------------------------------------------------------------------
# a) What happens to variables in a local scope ... | [
"lukas.thiersch@lansco.de"
] | lukas.thiersch@lansco.de |
757d03bce27b39fac9e2f1c38ab480780eb5d862 | 9194df1ff1de9425af605b84e59334832b577de8 | /litter/q2.py | 16daa943a2990f67c257b6f0688299d35672ff92 | [] | no_license | wuc6602fx/ws | 42aa8b7fcdd460b6847694be7d3d093b5067abfd | 3b2da54dc031c299e5908225464bf8d8a8b4ffc3 | refs/heads/master | 2021-09-14T22:26:06.081344 | 2018-05-21T08:48:42 | 2018-05-21T08:48:42 | 107,844,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | #ques2
from collections import OrderedDict
#tuple
myTuple = list()
with open('example.csv') as f:
for line in f.read().splitlines(): #avoid \r\n
myTuple.append(line.split(', '))
myTuple = sorted(myTuple) #by alphblet
myTuple.pop(len(myTuple)-1) #remove header
print 'Tuple = ', myTuple
#dict
scores = [x[2... | [
"cat5530xm@gmail.com"
] | cat5530xm@gmail.com |
eac4f52c73cf9c889363316c2fbb245274207d84 | 713711cce4d1ab1bd17439d9ab7913c0147a54f7 | /pyton.py | 4facf2c583a18183b4885f5e92a1d9b4c0eaf771 | [] | no_license | IliaLuksha/labs | eb05a0cdb2438d56b77df4b8a02d9c7d61b5d4a4 | 220bc86f272d0cddf83b9888847190a4c742ddd5 | refs/heads/master | 2021-07-24T08:22:20.035558 | 2021-06-08T20:43:01 | 2021-06-08T20:43:01 | 252,173,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | def fibonachi(n):
numb = 1
if n > 2:
numb = fibonachi(n - 1) + fibonachi(n - 2)
return numb
number = input('Enter the number: ')
number = int(number)
answer = fibonachi(number)
print(' sequence element = ' + str(answer)) | [
"ilich.02@yandex.ru"
] | ilich.02@yandex.ru |
b9ad5d3f538a6de721c9603acde868d0da3788d0 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav388.py | 2b4f02b7722c2854864b1dddca35aacd975e7d93 | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = prey[0] + prey[1]
if temp0 > prey[0]:
temp1 = min(temp0, temp0)
else:
if prey[1] != 0:
temp1 = prey[1] % prey[1]
else:
temp1 = prey[1]
temp0 = max(prey[0], temp0)
temp0 = temp0 - temp1
if prey[1] != 0:
temp2 = prey[0] / prey[1]
else:
temp2 ... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
ab074c76f1cd3c7b21498b686f78ed8ea7f39077 | 0fa7eaca5da443628461b429d7d1bcb4f2cbb7e2 | /code_review.py | 100be4af32af533c7020f3c01c313700c50a09d0 | [] | no_license | Boehrer/technical-screen | f45b285c143c9fca63c17c5359787cdd748171a6 | b4144b2a8041a8b9bf9d491caf900d94e3673bd3 | refs/heads/main | 2023-08-13T22:27:20.771354 | 2021-09-22T19:00:49 | 2021-09-22T19:00:49 | 356,362,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,855 | py | import unittest
import pandas as pd
ETLS = {
"us_spending": {
"steps": [
{
"function": "download_csv",
"args": {
"path": "https://www.usgovernmentspending.com/rev/usgs_downchart_csv.php?year=1990_2026&state=US&units=b&view=2&fy=fy21&chart=F0... | [
"jack@kevalaanalytics.com"
] | jack@kevalaanalytics.com |
721c16210b081c6ce406706a8bf7b814db33d02e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayDataAiserviceHellobikeSiteQueryModel.py | dc06ebbcb58713b563f9fd0994a388c9ab3da002 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 896 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayDataAiserviceHellobikeSiteQueryModel(object):
def __init__(self):
self._plan_id = None
@property
def plan_id(self):
return self._plan_id
@plan_id.setter
de... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
b02cacc52666b9eb02ec53c25a36fbf0ce87c48c | 2b86c931e2a85b285897f5ef6b120ea3dbfe79e7 | /core/settings.py | fff98839188d485665ccaa568ec075a8ffe8b912 | [] | no_license | mobinkazak/django-blog | bae4ed47045e3a304e4507ef9da972c562ddaf8b | bf1d15a30a51cccb03a7ff18124658306f1efff6 | refs/heads/main | 2023-06-22T18:30:17.018487 | 2021-07-25T06:10:51 | 2021-07-25T06:10:51 | 430,067,686 | 1 | 0 | null | 2021-11-20T10:05:51 | 2021-11-20T10:05:51 | null | UTF-8 | Python | false | false | 3,505 | py | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib im... | [
"kzmasut@gmail.com"
] | kzmasut@gmail.com |
41adb72dc70a7653c92e9b5e7b57f5a021b21354 | 4129c8f94e113ea9bb18986a1fabefe7b08d5022 | /biggerDataHeatmiser.py | 911a228d97c08c59461c008fd0b4b1e4fe27b415 | [] | no_license | NylaWorker/AI_assignmentOne | f225d49d18d934dbddc271899e2bd7ed32ef2690 | 3bbba4e500f0a54a7cc84d691d09315952ef9606 | refs/heads/master | 2021-05-11T08:15:42.264189 | 2018-01-19T05:32:35 | 2018-01-19T05:32:35 | 118,046,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,728 | py | import numpy as np
import math
import decimal
import csv
'''
Generating initial conditions of the 12 rooms.
'''
maxTem = 75.
minTem = 65.
maxHum = 55.
minHum = 45.
temps = np.random.uniform(low=minTem, high=maxTem, size=(12,))[np.newaxis]
humidity = np.random.uniform(low=minHum, high=maxHum, size=(12,))[np.newaxis]
r... | [
"nyla.worker@gmail.com"
] | nyla.worker@gmail.com |
7578264ef7177ae35cfa708b9ce8fceb34121745 | 6065db223f746b5c65ad33945e88d2105526d30d | /Leetcode/85-Maximal-Rectangle/solution.py | 0d5cf2eac4dc57a085c4ab57450d479f9d58768e | [] | no_license | chocoluffy/leetcode-cpp | ce245a18c24ec5818e0b493c0360f0f6c73f991f | 7f7e8325500b335ffc35c41b3d41b01472cce7cb | refs/heads/master | 2020-03-16T06:11:15.057166 | 2018-12-05T15:24:08 | 2018-12-05T15:24:08 | 132,548,814 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | """
- Construct a matrix by a bottom-up fashion, each entry record (m, n), meaning
the consecutive 1s in two directions as bottom and right. Such as at position
(i, j), there are m consecutive 1s from current position towards the bottom,
and n such consecutive 1s towards the right.
- then one more pass to find ... | [
"yushunzhe951104@gmail.com"
] | yushunzhe951104@gmail.com |
4b96a0e33cc538fef822e3e29414a224c8b0e26e | 86048feeeb4f741061637e69ab1a6bc59fffa553 | /methcomp/regression.py | 2c16f0b2c6e1143bec2832bbea3589f24759185f | [
"MIT"
] | permissive | FloEll/methcomp | 258f65a2d84335b16e757a43936c3f7d81b0d191 | 920c51b2f799cd6041c7013ad7ed6c2444cbff3f | refs/heads/master | 2020-09-29T16:26:55.800583 | 2019-12-09T19:54:42 | 2019-12-09T19:54:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,820 | py | import matplotlib.pyplot as plt
import pandas as pd
import scipy.stats as st
import math
import numpy as np
from collections import Iterable
__all__ = ["deming", "passingbablok"]
class _Deming(object):
"""Internal class for drawing a Deming regression plot"""
def __init__(self, method1, method2,
... | [
"wptmdoorn@gmail.com"
] | wptmdoorn@gmail.com |
5feb48a56df0215523400f5f2217468fc2545777 | 2a610b820d7964601fcf5e3228ad7b31dd2fe98d | /Reddit_Files_Scrapper copy.py | 9cb0dcc14429a0215bb700489c43fda9d7def3a2 | [] | no_license | adnanhaider/RedditScrapper | f7e075d5ff0f52103a5f8f45f8140bee495f7922 | 334a63a09da150e039b25901824a6c1673c51784 | refs/heads/master | 2023-03-14T02:27:10.940190 | 2021-03-13T08:39:25 | 2021-03-13T08:39:25 | 338,262,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,015 | py | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import ElementNotVisibleException
from... | [
"adnanhaider530@gmail.com"
] | adnanhaider530@gmail.com |
b495e97bd11ddc3e52cae162040ef09ee78e3920 | cc9b87da7d710fc0c873e9a968b1b578a460c3d1 | /Practical 6/prac6_bubble_sort.py | fc2094f2dcebc248a73ca0215b0ce6f83400f907 | [] | no_license | nikmalviya/Python | 480434edce8480ac826ca72dc03b7a3017048861 | a03f1d325ebe62282de91bc3eee57f84db9965b3 | refs/heads/master | 2020-04-25T05:34:53.726313 | 2019-03-26T15:27:10 | 2019-03-26T15:27:10 | 172,548,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import random as r
nums = [r.randint(1, 50) for x in range(10)]
print('list : ', nums)
def bubble_sort(nums):
for i in range(len(nums)):
for j in range(len(nums) - i - 1):
if nums[j] > nums[j+1]:
nums[j], nums[j+1] = nums[j+1], nums[j]
return nums
print('list sorted : ', ... | [
"nikhilmalviya1662000@gmail.com"
] | nikhilmalviya1662000@gmail.com |
825ee6d09c56019645eeafe4b5e563ef3a057a23 | 251c7aa5b09cd3c260acb6eb37332755358e34f8 | /Python_DataAnalysis/02reading_writing.py | adf1af8a0f7f472228b4d489c2259f00b4419a9a | [] | no_license | izaromanowska/ABM_tutorials | 3efc82eb2f483d761f09d3ec6d06843098ff29dd | f0d8b0425345d31fc454f953588d0e5ffca6f361 | refs/heads/master | 2021-01-19T00:26:18.266606 | 2017-10-12T10:42:31 | 2017-10-12T10:42:31 | 87,171,411 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 13 18:41:21 2015
@author: user
"""
# import libraries
import pandas as pd
import matplotlib.pyplot as plt
#__________ READ A FILE __________
Acheul_Afr = pd.read_csv("Acheulean.csv", header = 0) # read in the file
print Acheul_Afr.head() ... | [
"izaromanowska@gmail.com"
] | izaromanowska@gmail.com |
d574e853ce03ff5093d2f5b1f586476ab7c17043 | 17c897fa76df9fb5d8106649327d68f54ed7ef40 | /Python/Flask/python_stack/flask_fundamentals/flask_mysql/server.py | c948051547e0f0bd9f20daeb024b21813ff2b4bf | [] | no_license | gitRobV/DojoAssignments | 5c23b75b2d8d57c92b4eccb04395091d1cf3127a | 472d13c0461847973abc57cac345047811066157 | refs/heads/master | 2021-01-21T20:11:56.534898 | 2017-06-19T04:48:54 | 2017-06-19T04:48:54 | 92,205,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | from flask import Flask, render_template, request, redirect, session, flash
from mysqlconnection import MySQLConnector
import re
from validation import Validation
app = Flask(__name__)
app.secret_key = 'This is some secure issh'
mysql = MySQLConnector(app, 'registration')
@app.route('/')
def index():
query = "SEL... | [
"robertv1979@gmail.com"
] | robertv1979@gmail.com |
59a80fd32689ab9609a62db3fbe8835124d957d7 | b36eace4a335f2518988f5929ffdba6e48c9e97e | /mysite/settings.py | 81460bc3bd4c4677073bbf0441cd2810bd8e8926 | [] | no_license | berkyaglioglu/Post-Sharing-Application | d3c4187a8b05cf34c65fee5cc90ab6b85740e754 | c169af6d27dd55ea711207e3e4b04cc61e678dca | refs/heads/master | 2020-06-22T22:42:56.720956 | 2019-08-01T08:40:04 | 2019-08-01T08:40:04 | 198,419,497 | 0 | 0 | null | 2019-08-01T08:40:06 | 2019-07-23T11:46:57 | Python | UTF-8 | Python | false | false | 3,318 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"berkyaglioglu@sabanciuniv.edu"
] | berkyaglioglu@sabanciuniv.edu |
99599038e3f80650a765e87ef0ff275f2dcf95a0 | 21d89e598ceae51ff889f3788c728b25cdbc9dbc | /critical_critiques/critical_critiques/views.py | 0f1633895ac0c2e01b1c57e268f1891ebcf1a1c6 | [
"MIT"
] | permissive | team-stroller/critical_critiques | 5723938f49dcfff07f6cfd914ae8202a4354b4d5 | 99f3b073abbfda3ad62ea01f72d39756a1e5b088 | refs/heads/master | 2016-08-08T03:20:21.607260 | 2013-05-11T17:00:08 | 2013-05-11T17:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.contrib.auth import logout
from django.views.generic.base import RedirectView
from django.core.urlresolvers import reverse
class LogoutView(RedirectView):
url = "/"
def get(self, request, *args, **kwargs):
logout(request)
return super(LogoutView, self).get(request, *args, **kwargs... | [
"mike@mike-burns.com"
] | mike@mike-burns.com |
8679364a43e61b2d99d04acba5b49a59559584f4 | 60e4ce6fd4089e481dc130f0f0e7e95ae3de2e71 | /知识图谱11 数据大清洗1.1.py | 7c10902ddad998c6ae693eb6d3b40c615c47ae19 | [] | no_license | hhxx2015/KnowledgeGraph1.1 | fd6aa1c176eb827fcdfb872b4473cf2c6c6cb308 | a2077762e4d12d5724600dfa8680e98f7dc560c4 | refs/heads/main | 2023-02-03T17:01:06.351425 | 2020-12-28T08:59:15 | 2020-12-28T08:59:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | with open('./data/zstp11_sjdqx_ALL_LABLE.csv', 'w', encoding='utf-8') as ff:
ff.close()
with open('./data/zstp11_sjdqx_ALL_LABLE.csv', 'a+', encoding='utf-8') as ff:
with open('./data/zstp10_gxcz1d2_ALL_LABLE.csv', 'r', encoding='utf-8') as f:
count=0
for line in f:
count+=1
... | [
"noreply@github.com"
] | hhxx2015.noreply@github.com |
b039e6acf62b07e17f702ba4b667476922ffc9f5 | ea003fc657c1da911d3389bd627459f7460335f7 | /wagtail_env/lib/python3.5/site-packages/wagtail/core/middleware.py | 3c0181223bd3631ccbcbd22bd2e602db25bc6ad0 | [] | no_license | saikrishnasri/wagtail_project | db839c393ab48001947bd437bd2d7606cd6ed7c0 | f749813943871bd57951636259d451464be581be | refs/heads/main | 2023-02-26T23:59:23.063936 | 2021-02-03T12:14:29 | 2021-02-03T12:14:29 | 335,604,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | import warnings
from django.utils.deprecation import MiddlewareMixin
from wagtail.core.models import Site
from wagtail.utils.deprecation import RemovedInWagtail211Warning
warnings.warn(
'wagtail.core.middleware.SiteMiddleware and the use of request.site is deprecated. '
'Please update your code to use Site.f... | [
"saikrishnakerla@gmail.com"
] | saikrishnakerla@gmail.com |
ef3871e6e0bd3f1773995a76bbdcc659792a2f07 | 440f84cb332dc4a9970143a8eac45cfb34dbcc62 | /Semana6_pythonF/ej6.py | dc0dd63f6b19d2380a93eb4b9cef793d6074ff73 | [] | no_license | INS125/Laboratorio | 1c73dc1df50739ad3c8293bbaec30d8210d37dd7 | 4dc2d967a28032e07a4f05e67f1089cdc6cfce38 | refs/heads/main | 2021-07-14T07:59:00.647876 | 2021-06-26T22:33:25 | 2021-06-26T22:33:25 | 356,095,644 | 12 | 16 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | from functools import reduce
lista = [10, 20, 30, 40 , 50, 60]
reduccion = reduce(lambda x,y: x+y, filter(lambda x: x!= 10, lista))
print(reduccion)
red_mult = reduce(lambda x,y: x*y, lista)
print(red_mult)
lista_de_listas = [ [1,2], [3,4], [5,6], [7,8,9] ]
#[ [1,2], [3,4], [5,6], [7,8,9] ]
#[ [1,2,3,4], [5,6], [... | [
"nhormazabal@geovictoria.com"
] | nhormazabal@geovictoria.com |
029601d73023044b3cbf50c8f580bd1ea21d97fb | 37e49d0866f2a3668333e438f89d91c5de181f3b | /singlepage2/singlepage2/urls.py | 1648b5a218ce4d5e55d0a83d6f4d2db94aa70a92 | [] | no_license | pireats-abhi/user-interface-js-django | f6146f128bdb522db4f2b08356b29d5736ffb173 | 56128bea7b1128974401c1ff190f89438dd9e077 | refs/heads/master | 2022-12-23T20:22:53.796265 | 2020-10-02T07:11:48 | 2020-10-02T07:11:48 | 300,529,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | """singlepage2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"pireats.abhi@gmail.com"
] | pireats.abhi@gmail.com |
a07c34f83feb8c45f87b09c7e1834de971aaafb7 | 65306b41168a5afa6fc80904cc0fbf737939a01a | /scale/recipe/seed/recipe_connection.py | 6c80d4edab2353b587342b6305fb77cb63e50ceb | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | kfconsultant/scale | 9e5df45cd36211d1bc5e946cf499a4584a2d71de | 28618aee07ceed9e4a6eb7b8d0e6f05b31d8fd6b | refs/heads/master | 2020-12-07T00:04:37.737556 | 2020-01-06T12:57:03 | 2020-01-06T12:57:03 | 232,587,229 | 0 | 0 | Apache-2.0 | 2020-01-08T14:53:36 | 2020-01-08T14:53:35 | null | UTF-8 | Python | false | false | 10,510 | py | """Defines connections that will provide data to execute recipes"""
from __future__ import unicode_literals
from recipe.configuration.data.exceptions import InvalidRecipeConnection
from recipe.configuration.data.recipe_data import ValidationWarning
from storage.media_type import UNKNOWN_MEDIA_TYPE
class RecipeConnec... | [
"jon@gisjedi.com"
] | jon@gisjedi.com |
90a81f052f088c36ebd6b1e883906c583d2493e2 | 96b55c342ca2269270d7f6623c050fac10651aa7 | /valid-palindrome.py | 3267eaad299a06784671bc60cecebf642d768614 | [] | no_license | nancy-cai/Data-Structure-and-Algorithm-in-Python | bbb5e54b9c8fc23669b8e4df9daeb1ee0480ff39 | 84258f5d848d1d9aed5a0ea98af0a06b70b716f4 | refs/heads/master | 2022-07-19T04:04:27.861406 | 2022-06-24T06:49:02 | 2022-06-24T06:49:02 | 199,798,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # https://leetcode.com/problems/valid-palindrome/
# def isPalindrome(s):
# trimmedS = ''.join(c for c in s if c.isalnum()).lower()
# reversedString = ""
# for i in range(len(trimmedS),0,-1):
# reversedString += trimmedS[i-1]
# print(reversedString)
# print (trimmedS)
# if trimmedS == reversedString:
#... | [
"noreply@github.com"
] | nancy-cai.noreply@github.com |
6a19fed144487fa7d519f1231fecc8f5b63bc650 | 830bcc71b7924094644f36a1e3f670086a8ea109 | /deep_cluster/triplets/triplets_gui.py | 7295591f07163a9076a557d3c766497efc442060 | [] | no_license | ysterin/deep_cluster | 550ec9b6a4266603cf275e5094b2d435426b0359 | e1d5f8d01332d3bcb9c7de75340a68e06e14e88e | refs/heads/master | 2023-06-13T08:48:25.566379 | 2021-07-11T17:53:15 | 2021-07-11T17:53:15 | 294,084,774 | 0 | 0 | null | 2020-12-22T17:47:53 | 2020-09-09T10:54:11 | Jupyter Notebook | UTF-8 | Python | false | false | 17,920 | py | import sys
# sys.path.append('..')
import os
import numpy as np
import cv2 as cv
from scipy import signal as sig
from collections import defaultdict
from pathlib import Path
from contextlib import contextmanager
from deep_cluster.dataloader import LandmarkDataset, SequenceDataset
from matplotlib import pyplot as plt
fr... | [
"shukistern@gmail.com"
] | shukistern@gmail.com |
77858201d3e474368bf11eb53a147fa09d12a3b1 | cc4269b6b2c7ca8a9869a36452237d22ae251754 | /backend/app/api/routes/root.py | a8dafb1437439f1968fd823ab8f07f72f777cfad | [] | no_license | AKCEJIEPATOP/peak_flow_meter | f6ef7ac559d6941d2e8b375ca3e2288ac2b18769 | ad4aedd61ddcc5027d052437ed3a7ec28670f9d7 | refs/heads/master | 2023-01-19T14:54:12.063563 | 2020-12-02T23:48:02 | 2020-12-02T23:48:02 | 297,611,999 | 0 | 0 | null | 2020-12-01T06:09:33 | 2020-09-22T10:17:40 | JavaScript | UTF-8 | Python | false | false | 210 | py | from fastapi import APIRouter
from . import user
router = APIRouter()
router.include_router(user.router, prefix='/user', tags=['User'])
@router.get('/ping')
async def ping():
return 'pong'
| [
"zhek26rus@google.com"
] | zhek26rus@google.com |
8f6d37f5508564a602db569ef8a1464aa1e84a87 | 53c983bbae20ec053ac6edfacbdf8f85b304911b | /tfomics/model_custom.py | eb243b858ee904170acc8ffac5de6836d65adb24 | [
"MIT"
] | permissive | p-koo/tfomics | 4efcad5c94c77a2522e004d9eb169aead893118a | 3db5e7ae7fd379b3c1a26f693504e28d4e3dceb0 | refs/heads/master | 2022-06-17T09:57:29.843982 | 2021-12-05T03:48:43 | 2021-12-05T03:48:43 | 269,372,383 | 4 | 7 | MIT | 2022-05-10T21:23:36 | 2020-06-04T13:50:15 | Python | UTF-8 | Python | false | false | 2,382 | py | from tensorflow import keras
import tensorflow as tf
import numpy as np
class CustomModel(keras.Model):
""" Example of a custom model in keras """
def train_step(self, data):
# Unpack the data. Its structure depends on your model and
# on what you pass to `fit()`.
if len(data) == 3:
... | [
"koolaboratory.gmail.com"
] | koolaboratory.gmail.com |
dfc012c6ff96ced457c4637729049e7122b56867 | b186998016df23c04a2104537f16adad6b76bce2 | /turtle dot using loop.py | 19721c21c769c439c4fde7781fb67ff47ada6319 | [] | no_license | SoyabulIslamLincoln/Home-Practice | 13f7fbc7e2320477876f44231efd8640b7e9e031 | 09183ce5a5a0808c14b2eba273ccf5799c37316d | refs/heads/master | 2022-12-12T09:31:24.699697 | 2020-09-03T15:59:18 | 2020-09-03T15:59:18 | 292,612,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import turtle
>>> turtle.shape("turtle")
>>> turtle.speed(1)
>>> for i in range(20):
turtle.forward(10)
turtle.penup()
turtle.forward(2)
turtle.p... | [
"noreply@github.com"
] | SoyabulIslamLincoln.noreply@github.com |
efe09aef39889d38f44489e3f2c1b0308a60216d | 39c7c59020e823b3cff15537a8e336d4bcd8d801 | /getSolidotContentByDate.py | d45905d1b5d92bf11b9e965540d62e9026cbb830 | [] | no_license | glodsky/curlSolidotNewByDate | 7638a24797a96600432fc5fd683bf664ef031255 | 423c7cb1a7fdfe186bd6c574c0e7b7af945b6a64 | refs/heads/master | 2020-04-08T18:53:37.052279 | 2018-12-04T04:35:00 | 2018-12-04T04:35:00 | 159,629,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,493 | py | # -*- coding: utf-8 -*-
# python version : 3.6
import urllib.request
import pandas as pd
import os
import json
import datetime
import random
from lxml import etree
Proxies_POOLs =[]
def init_proxiesPOOLs(): #初始化IP代理池
global Proxies_POOLs
with open('./prxies_pools.csv','r') as f:
contents = f.readlin... | [
"noreply@github.com"
] | glodsky.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.