blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1335c1e683e0f3a387c4f90ecc635733f2dbce5 | 05a175090ffebdd0713802aba1469f2673fda3d3 | /IntroNN/hw2_delvalle_network.py | 1ad44467d98f1d231d562f3ccbe7f7afbf9dfee4 | [] | no_license | gdelvalle99/CS691-Deep-Learning-Projects | c41d8a835eeb4247d88d8121dcacba96b431ac1c | d6f6e1b9a2caf24e283d15acf78da1c4bf521897 | refs/heads/master | 2022-10-04T22:26:52.728823 | 2020-05-23T21:56:18 | 2020-05-23T21:56:18 | 266,417,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,952 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
from sklearn import svm
N = 250
size = int(N/2)
Uh = 20
Ul = -1
x_min2 = [Ul, Ul]
x_max2 = [-Uh, Uh]
x_min4 = [Ul, -Ul]
x_max4 = [Uh, -Uh]
o_min1 = [Ul, ... | [
"gdelvalle@nevada.unr.edu"
] | gdelvalle@nevada.unr.edu |
3c36c0d10742f9c25af173e2077d9c835a3e3ff8 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2015/12/graph.py | d441a54ca1edf2545aaaa16e0d18be8ec8d7318d | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 6,432 | py | # -*- coding: utf-8 -*-
"""
The :program:`celery graph` command.
.. program:: celery graph
"""
from __future__ import absolute_import, unicode_literals
from operator import itemgetter
from celery.datastructures import DependencyGraph, GraphFormatter
from celery.five import items
from .base import Command
__all__... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
1ac1bf0d486a318d12379426563fee9a8f6f22d6 | fe85138c949c6198184c591780831fd2e183a24a | /Address Book.py | 251c32fc6f328cd1f9352bc08e897b68bbe90efc | [] | no_license | valeri1383/Personal-Python-Projects | e98f6b7171298def019db4e28f6d176a709615cc | b7db81cb44668f549a7fd15de84c0cb23654ac3d | refs/heads/main | 2023-05-26T09:02:24.260700 | 2023-05-22T14:40:28 | 2023-05-22T14:40:28 | 337,518,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | from tkinter import *
root = Tk()
root.geometry('400x400')
root.configure(bg='cyan')
root.resizable(1, 1)
root.title('Address Book')
contact_list = [
['John Smith', '07567374343'],
['Terry Adams', '07569984343'],
['Allen Gibson', '07564474743'],
['Grant Foster', '07567396843'],
['Hall... | [
"noreply@github.com"
] | noreply@github.com |
9b8b028c0c0efe89315744409a6b69fe90a07bea | 7930635dae78d050ebe158303aa5343a8440a884 | /lesson05/lesson05-3.py | c57400cea3fe4ec5bba9412246963cfa06edd93d | [] | no_license | lexpol/python_homework | 1211bda3db32b869e34c4cca2264372f5c99b240 | 667fe61f7e23ed834f13c68c40a99ef21c39d5a7 | refs/heads/master | 2023-05-30T22:04:09.144029 | 2021-06-09T01:04:40 | 2021-06-09T01:04:40 | 365,838,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | # 3. Создать текстовый файл (не программно), построчно записать фамилии сотрудников и
# величину их окладов (не менее 10 строк). Определить, кто из сотрудников имеет оклад менее 20 тыс.,
# вывести фамилии этих сотрудников. Выполнить подсчет средней величины дохода сотрудников.
#
# Пример файла:
#
# Иванов 23543.12
# Пе... | [
"lex@poltor.ru"
] | lex@poltor.ru |
9a9b63a8daca2426c5e7f92f421d90edd8b68eb5 | ca0556d3dc6fb6b92e194c4ff0a979619e7be0e4 | /I2c7SegmentLed.py | 8baadc4d53fbc559a2402174d86b34a339e609fe | [] | no_license | dcityorg/i2c-7-segment-led-library-raspberrypi | 2216c46eb945faf1dab2c15f1a123208d0e0a889 | 62910936e6a43d6585925f493cf72b2d609e9ffe | refs/heads/master | 2021-06-13T20:01:15.431573 | 2021-03-10T19:47:50 | 2021-03-10T19:47:50 | 146,506,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,329 | py | # -*- coding: utf-8 -*-
'''
I2c7SegmentLed.py - class library for using 7 Segment LEDs
Written by: Gary Muhonen gary@dcity.org
Versions
1.0.0 - 7/31/2016
Original Release.
1.0.1 - 9/1/2018
Transfer to GM, and some minor changes
Short Description:
The... | [
"“gary@dcity.org”"
] | “gary@dcity.org” |
706b1412b4d839f20812fa99a5bf77bacc68ade1 | 7aa82a17d3545ad418ce6defd84ec9e460937299 | /work/views.py | 8352fb4b2c73b7e59d3ae78eb6c4f4a00b58243f | [] | no_license | parin-2002/CRUD-IN-DJANGO | ad28052b69814a9f35c0427c82418440a82cb47a | 34557e9f9fc6a8e3e5d0d7edc7d070237b0387e5 | refs/heads/master | 2022-11-19T18:23:11.677185 | 2020-07-23T03:39:26 | 2020-07-23T03:39:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.shortcuts import render,redirect
from .forms import rgstudent
from .models import student
# Create your views here.
def reg(request):
if(request.method=='POST'):
form=rgstudent(request.POST)
if form.is_valid():
form.save()
form=rgstudent()
else:
form=rgstudent()
data=student.objects.all()
... | [
"1akashsuvagiya1999@gmail.com"
] | 1akashsuvagiya1999@gmail.com |
988e35a1c0043ed6844775a7278008acc5bd01fd | d6f7273500f28fcc0a378620cc4e417a08542992 | /turnedOn/turnedOn/wsgi.py | c1d388723b28d037f6d884e93b8b7bb43cc723a9 | [] | no_license | katelyndunaski/Turned-On | 109e1ecd168f97255c178b95cc289739da443fbb | 80b0e01d9ffd2c7b142a6ecbeb96e48a0f22f8fb | refs/heads/master | 2016-09-10T08:38:40.314407 | 2015-02-08T17:24:11 | 2015-02-08T17:24:11 | 30,468,506 | 0 | 0 | null | 2015-02-08T02:04:38 | 2015-02-07T20:07:49 | JavaScript | UTF-8 | Python | false | false | 391 | py | """
WSGI config for turnedOn 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.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "turnedOn.settings")
from django.core... | [
"ubuntu@ip-172-31-39-124.us-west-2.compute.internal"
] | ubuntu@ip-172-31-39-124.us-west-2.compute.internal |
4eb09dfed6ad25c8eddd6132f2dc73dff3fcc6a3 | 1933ef2c5b3ec58feeb50dd092d670f58a3ec2bb | /kospeech/models/modules.py | 352b6a0bd0bf59f8861fa3d7e573569560a2ad30 | [
"Apache-2.0"
] | permissive | hephaex/KoSpeech | 68275af311ae5c53548f7c7bc27fe9dd5b1e441b | bf3fa0dc6d50089164fd0b47e02620062718d407 | refs/heads/master | 2022-12-02T02:00:01.164265 | 2020-08-05T08:47:55 | 2020-08-05T08:47:55 | 285,344,731 | 0 | 0 | Apache-2.0 | 2020-08-12T14:53:11 | 2020-08-05T16:22:59 | null | UTF-8 | Python | false | false | 1,579 | py | import torch
import torch.nn as nn
import torch.nn.init as init
from torch import Tensor
class Linear(nn.Module):
"""
Wrapper class of torch.nn.Linear
Weight initialize by xavier initialization and bias initialize to zeros.
"""
def __init__(self, in_features: int, out_features: int, bias: bool = T... | [
"sh951011@gmail.com"
] | sh951011@gmail.com |
525051e2943540875900fe0b6db434ee527c30ba | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.py | 60afb66b6f88d5918aba22ca4b3b72c0ab5be76d | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 599 | py | """
Get hourly usage for Network Flows returns "OK" response
"""
from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi
configuration = Configuration()
with ApiClie... | [
"noreply@github.com"
] | noreply@github.com |
9a704f28f280264c0f0f116eb2b5f892f3e8a617 | 2b3e562da5d9b473f3a7dcb3ba833552e649b675 | /session3.py | 6c0c799a912ea879733bcd1f02e38c53ad9dadf3 | [] | no_license | Aakashdeveloper/python-web | 51f89c34e30beb0be1d8fdd2e01b3e2617a334b0 | fe163c193b20d23794eb327d2d580124e32fe152 | refs/heads/master | 2020-07-25T12:38:13.416166 | 2019-09-27T15:07:32 | 2019-09-27T15:07:32 | 208,291,750 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
x = 10
# In[3]:
y = 20
# In[4]:
x+y
# In[5]:
x*y
# In[6]:
x/y
# In[7]:
x-y
# In[8]:
10<<2
# In[9]:
10>>2
# In[12]:
x == 10 & y ==20
'''
docker run --rm -u root -p 8080:8080 -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/... | [
"ahanda205@gmail.com"
] | ahanda205@gmail.com |
707c7cb4f5f704f84ee4f3b07f62df36cb7bb8a2 | e1152ed447cf32f12acc1d71fddce1f6a1830023 | /zhaquirks/xiaomi/aqara_vibration_sensor.py | d1d8defe395ddaab7cea4adfeecbf5bcbd0962a7 | [
"Apache-2.0"
] | permissive | Gamester17/zha-device-handlers | f85d2ca864f7e6f977e46c3562b06ce9a3225790 | e7260ebb31025fbbbe5c5a9c2c8e7077aa85b66f | refs/heads/master | 2020-04-25T04:51:05.210691 | 2019-02-22T13:55:10 | 2019-02-22T13:55:10 | 172,523,970 | 0 | 0 | Apache-2.0 | 2019-02-25T14:44:06 | 2019-02-25T14:44:05 | null | UTF-8 | Python | false | false | 7,119 | py | import asyncio
import logging
import homeassistant.components.zha.const as zha_const
from zigpy.quirks import CustomCluster
from zigpy.profiles import PROFILES, zha
import zigpy.types as types
from zigpy.zcl.clusters.general import Basic, Groups, PowerConfiguration,\
Identify, Ota, Scenes, MultistateInput
from zigp... | [
"david.mulcahey@icloud.com"
] | david.mulcahey@icloud.com |
106c53998b513b93b70be5cc2982f708c3ecf2b3 | 5a4124eea866334a9e3ddd94c57dbf1df7e3378a | /virtual/bin/pip | 6d53621274d2a5698a9d66f0e36ee6c3cd195680 | [
"MIT"
] | permissive | Elrophi/Housing | 6eb465c06918e67faadbc0cdad4bfe6d139a178f | dc3ccc545eb9d609a62495cbea76f4f849d4658a | refs/heads/master | 2023-05-12T23:45:58.201434 | 2021-06-08T13:09:29 | 2021-06-08T13:09:29 | 373,784,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | #!/home/el/Desktop/moringa-core/python-django/Housing/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"elrophilskwaila@gmail.com"
] | elrophilskwaila@gmail.com | |
16ffe2ce0b7d1d05344cc7814fd04b63e4a84196 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/hrbmax002/piglatin.py | 32eb09647dd7f6c75cec56edc0b28a10e8811327 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | def toPigLatin(s):
if s[len(s)-1] != " ":
s = s + " "
answer = ""
while len(s)>0:
temp = s[0:s.index(" ")]
s = s[s.index(" ")+1:]
if temp[0].upper() in ["A","E","I","O","U"]:
temp = temp + "way "
else:
temp = temp + "a"
w... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
51705550782e5a0f8c41b524d7d0cf60b7edc565 | fcbf3ddca275606830d455a69df73e20ced6546a | /doc/conf.py | 9ca4ca664b3f765a31dd264254f24c060e447023 | [
"Apache-2.0"
] | permissive | KarchinLab/probabilistic2020 | 5f56e30e0c8484ac524081dd022c0159f24508ce | 8e0b1b9578bd8189b1690dd2f17476c3305b98dc | refs/heads/master | 2023-07-26T12:06:28.647117 | 2019-07-28T12:37:50 | 2019-07-28T12:37:50 | 57,408,263 | 8 | 7 | Apache-2.0 | 2023-07-06T21:02:44 | 2016-04-29T19:32:49 | Python | UTF-8 | Python | false | false | 8,727 | py | # -*- coding: utf-8 -*-
#
# 20/20 Permutation Test documentation build configuration file, created by
# sphinx-quickstart on Mon Jul 28 13:53:42 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerate... | [
"collintokheim@gmail.com"
] | collintokheim@gmail.com |
9a1838d05d52c92ed2187545c5cfa8e07d8125ed | d7871f3ff716919da9e7a7c9d7ba3a0732114d63 | /3DMean.py | 015010600c692df66f624d29270865533cf62baf | [] | no_license | eric-risbakk/kework | 337040d2b8df6915c9d9ed8ccd5303bf51b82f62 | 705556213a6f5fb9da28f4010d2ca4999b1f0915 | refs/heads/master | 2021-07-10T10:36:12.665117 | 2017-10-12T13:05:24 | 2017-10-12T13:05:24 | 103,539,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py |
import scipy.stats as spstat
import numpy as np
import numpy.random as npr
import scipy.stats as spstat
import numpy as np
import numpy.random as npr
__author__ = 'Eric Risbakk'
__date__ = "2017-09-14"
__maintainer__ = "Eric Risbakk"
__email__ = "e.risbakk@student.maastrichtuniversity.nl"
DEBUG = False
TEST = True
... | [
"I6146197@unimaas.nl"
] | I6146197@unimaas.nl |
391b5234dde1dd8a811356eeeaa2d4e5f9d7a7ac | 1ae56f2ebb35f75c9e4ccb108b5eff2b158fa355 | /process_data.py | ab43b0172e6485bb40f1c534cb6c33c1d0795694 | [] | no_license | crrcgeorgia/air_quality | 5670d3b7390c2484d09238b9a985deb54688b27c | c16d8cd9b816cabccf425c4acb70d12dc32c9be1 | refs/heads/master | 2021-05-18T11:41:15.670321 | 2020-03-30T08:12:02 | 2020-03-30T08:12:02 | 251,230,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | from pull_data import pull_airq_range, pull_weather
from datetime import date, datetime
import pandas as pd
from fbprophet import Prophet
import progressbar
def air_processed(start_date, end_date, cut_points, cut_labs, *args, **kwargs):
air = (
pull_airq_range(start_date, end_date)
.quer... | [
"noreply@github.com"
] | noreply@github.com |
21ffffe2f10c8650b232760086dfbefe96216764 | c09f02ebc1c4418bf9324afd803532234293d6f5 | /CS61A/Project 2/trends_old3.py | d4d524fd8cdc2005ba0b1e2a888c2e360f710ecb | [] | no_license | jesseyli/OldProjects | a2fddabfbb6207616572c807fde71455f5197a6e | edc28b02bfdb2ea1f4041d879a20858b797e674f | refs/heads/master | 2021-01-10T09:05:07.294910 | 2016-02-05T07:34:04 | 2016-02-05T07:34:04 | 50,936,330 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,330 | py | """Visualizing Twitter Sentiment Across America"""
from data import word_sentiments, load_tweets
from datetime import datetime
from doctest import run_docstring_examples
from geo import us_states, geo_distance, make_position, longitude, latitude
from maps import draw_state, draw_name, draw_dot, wait, message, draw_top... | [
"jesseyli@berkeley.edu"
] | jesseyli@berkeley.edu |
6408b1b91926c28f6a0816eef12e75332aba15ac | 4113e7c9f1beb13a0ef963a6760e43b5cab676ce | /__init__.py | 4781cbd159824f702baafe799f5dee329fb4d432 | [] | no_license | charlieb/flowers | b413595b8ce1839123305ad96bdae6213a8b7faf | dca18ef10b849ee01518818279426699749a655e | refs/heads/master | 2020-04-19T08:36:48.699934 | 2017-01-09T04:12:00 | 2017-01-09T04:12:00 | 66,811,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | from .petals import petal, flower, draw
| [
"charlie.burrows@gmail.com"
] | charlie.burrows@gmail.com |
33e3abf7249f08d1377e5d1805da84937ab779eb | 379934f86f2e7fce60c88222ed61bc106390271e | /glasslab/dataanalysis/misc/gr_project_2012/v1/boxplots_from_p65_gr_peaks.py | e7313cb2c1ebf8f13f60ddced648317001bc413a | [] | no_license | karmel/glasslab | a022fb3e1147382ba5f64c67d6db9b87b9bca2de | 754774390f03852d1385c5fffeb32fcdab5cd7e4 | refs/heads/master | 2021-09-04T18:00:49.650817 | 2014-10-06T19:37:25 | 2014-10-06T19:37:25 | 5,957,226 | 1 | 1 | null | 2019-09-22T16:55:29 | 2012-09-25T21:56:42 | Python | UTF-8 | Python | false | false | 1,966 | py | '''
Created on Oct 1, 2012
@author: karmel
'''
from __future__ import division
from glasslab.dataanalysis.graphing.seq_grapher import SeqGrapher
if __name__ == '__main__':
yzer = SeqGrapher()
dirpath = 'karmel/Desktop/Projects/Classes/Rotations/Finland_2012/GR_Project/'
dirpath = yzer.get_path(dirpath)
... | [
"karmel@arcaio.com"
] | karmel@arcaio.com |
b2b18b0466f68363ec428575924ddb25850628e3 | 0ce934553a854e5a3d28971f73be19d0912449bf | /homePage/migrations/0002_auto_20190311_1333.py | e5ee1021a560d11d27a4092636182d934d75cbd7 | [] | no_license | keennhlc/GKWeb | d0c1c2617e2334ee9aba6e3b741d049cf75c9a62 | db34c14a4be13fab1cf16de66fc406b7142d7fcb | refs/heads/master | 2020-05-01T09:19:13.871041 | 2019-03-24T10:20:40 | 2019-03-24T10:20:40 | 177,397,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # Generated by Django 2.2b1 on 2019-03-11 05:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('homePage', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='newscontent',
name='news',
),
... | [
"keennweb@gmail.com"
] | keennweb@gmail.com |
a8e3cce479c0b620026b4944db203dae7b0979bd | b29d80506512e9cec2aa820c043c616751b13dcf | /serializers.py | 671d4c81e4ccca93029d7c7bbb733c0ca80d62a2 | [] | no_license | luvjoey1996/storageManager | f25e8d359294f28799e592f49febeea0ca1acb06 | 2d66820f05a80245e2c5ef2bcf56b00d3c747b8a | refs/heads/main | 2023-08-03T17:41:18.327926 | 2021-09-17T10:23:49 | 2021-09-17T10:23:49 | 407,498,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from marshmallow import Schema, fields, validate
from config import Configuration
from models import ServiceType
class CreateServiceSchema(Schema):
type = fields.Str()
class ServiceCreateSchema(Schema):
type = fields.Int(validate=validate.OneOf(choices=ServiceType.as_choices()))
memory = fields.Int(val... | [
"luvjoey1996@gmail.com"
] | luvjoey1996@gmail.com |
eb085418aab782c970d7166273fd9b9262c46f5b | c858d9511cdb6a6ca723cd2dd05827d281fa764d | /MFTU/lesson 7/Test work/test_F.py | b6885f38ec053864866d442146f62a2ba115c3a5 | [] | no_license | DontTouchMyMind/education | 0c904aa929cb5349d7af7e06d9b1bbaab972ef95 | 32a53eb4086b730cc116e633f68cf01f3d4ec1d1 | refs/heads/master | 2021-03-12T11:15:02.479779 | 2020-09-17T08:19:50 | 2020-09-17T08:19:50 | 246,616,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Необходимо найти НОД двух чисел, используя алгоритм Евклида.
#
# Формат входных данных
# На вход подаются два натуральных числа, по числу в новой строке.
#
# Формат выходных данных
# Одно число - НОД входных чисел.
def gcd(a, b):
if a == b:
return a
elif a > b:
return gcd(a - b, b)
e... | [
"tobigface@gmail.com"
] | tobigface@gmail.com |
ad0cdab693cf632e6b1795e623fb5a5965e77727 | 18a0f4ddefae1e9a0ddae86de7315bacd1a96491 | /apps/users/views.py | 6681229876742a55d927c790d13ae2c52aa24ef3 | [] | no_license | ZVR999/belt_reviewer | f1a2d41bcced69f906d73178f06acc4f6b215431 | ffe0099813bfb1389c0a52f400ba00fc2d9acf86 | refs/heads/master | 2020-03-29T04:05:46.229105 | 2020-02-11T17:40:10 | 2020-02-11T17:40:10 | 149,515,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,310 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from .models import User
from ..reviews.models import Review
from ..books.models import Book
import bcrypt
from django.contrib import messages
# Create your views here.
# Create a User
def create(request):
... | [
"zachkery999@gmail.com"
] | zachkery999@gmail.com |
0450edaf3b101ccb33050e851f1cf7ff76c42e14 | 8fd279f728b7a83e6f14fd6ab77da67459bd21df | /test.py | eed4c5c5c238b7175223f43ce87c4e216551fbf3 | [] | no_license | yiebo/stt-transformer | ec4de39fb3f54c8ab264aaa69f1b9b41c83d303f | 78a06451085064de0fd2417764183a1f4ea4b4d0 | refs/heads/master | 2022-09-09T11:32:19.265157 | 2020-06-05T16:06:16 | 2020-06-05T16:06:16 | 266,639,088 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,302 | py | from tqdm import tqdm
import glob
import os
import numpy as np
from prefetch_generator import BackgroundGenerator
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torch.utils import tensorboard
from torchvision import utils
import torchaudio
from torchaudi... | [
"yiebo-c@hotmail.com"
] | yiebo-c@hotmail.com |
07dc4711d757ebe944fcd4427827ad60b56c0574 | 6aaea15dbf99219f03b08f14582c4bbe085b41fc | /0304/bj7576_토마토.py | 16dd692c61cbd5d68aae8be8e2e55edb6aa70529 | [] | no_license | kkkin02/Algorithm | f6ade2d7bebc3bd878b0e1fb1b22206f146fcea7 | 797223528b344faea497fe8390d78cd683cd063f | refs/heads/master | 2023-03-17T02:40:38.407345 | 2021-03-05T14:01:54 | 2021-03-05T14:01:54 | 337,080,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | def tomato(t, box):
l = len(t)
if l == 0:
return -1
elif l == n * m:
return 0
dr = [-1, 1, 0, 0]
dc = [0, 0, -1, 1]
visited = [[0] * m for _ in range(n)]
q = []
for i in t:
q.append(i)
visited[i[0]][i[1]] = 1
while q:
p = q.pop(0)
r... | [
"rkddlsdud0720@gmail.com"
] | rkddlsdud0720@gmail.com |
6450073c33cb50db18dc4b145b95d18e75ee47b0 | e2d22f12f8e540a80d31de9debe775d35c3c5c22 | /blousebrothers/confs/migrations/0037_auto_20170117_1535.py | 6841343b2a40c2fbb431ff15ae9ddfd4cd5a80ee | [
"MIT"
] | permissive | sladinji/blousebrothers | 360c3b78ec43379977dbf470e5721e6a695b2354 | 461de3ba011c0aaed3f0014136c4497b6890d086 | refs/heads/master | 2022-12-20T10:24:07.631454 | 2019-06-13T13:17:35 | 2019-06-13T13:17:35 | 66,867,705 | 1 | 0 | NOASSERTION | 2022-12-19T18:15:44 | 2016-08-29T18:04:33 | Python | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-01-17 15:35
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('confs', '0036_auto_20170110_1100'),
]
operations = [
... | [
"julien.almarcha@gmail.com"
] | julien.almarcha@gmail.com |
1465bbad98fe6c51d22d31a82efaa6fba3362f45 | e8a285cb1dcdae6f1b6d8506b8d25a1d031d6cd7 | /cpptools/tests/test_write_pythia_hepmc3.py | d4e73a3185bc0137d2756b3b3f25a6b491647b97 | [] | no_license | matplo/heppy | f30558e4ff3c1720c63b4d82f739b3f8acadc53e | 88c931e3e7dcf57a3a476ef0a92f0204491cafb9 | refs/heads/master | 2023-07-07T18:17:04.486149 | 2023-06-29T20:45:32 | 2023-06-29T20:45:32 | 201,352,733 | 5 | 8 | null | 2023-07-04T21:57:31 | 2019-08-08T23:33:39 | C | UTF-8 | Python | false | false | 782 | py | #!/usr/bin/env python
import pythia8
import pythiahepmc3
def create_and_init_pythia(config_strings=[]):
pythia = pythia8.Pythia()
for s in config_strings:
pythia.readString(s)
for extra_s in ["Next:numberShowEvent = 0", "Next:numberShowInfo = 0", "Next:numberShowProcess = 0", "Next:numberCount = 0"]:
pythia.re... | [
"ploskon@gmail.com"
] | ploskon@gmail.com |
66f6e4500621285bbbbaf51d4c572120cb3598e7 | 3b1229c458aa232bfcf11cd6da5f1275e9bb3a8f | /python/Python基础/截图和代码/if、while、for/PaxHeader/01-if比较运算符.py | 147895a71cc09ac233a82e6fae85d44e6ae21569 | [] | no_license | sunjianbo/learning | 4fee3ddc5e3d4040a49f2ef3e6f239fd6a67b393 | 384cb4e73cc67e390ee2f4be0da9fe0319d93644 | refs/heads/master | 2021-02-17T16:32:22.557614 | 2020-03-09T05:29:51 | 2020-03-09T05:29:51 | 245,111,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | 78 path=Python基础/截图和代码/if、while、for/01-if比较运算符.py
27 mtime=1491131771.711676
| [
"sunjianbo"
] | sunjianbo |
e3015d6511a097f72860e5b54e64757741b0778b | 7401dac35fa6ea9bdbddb9dad15f5879ba2c0507 | /acadbehaviour.py | b63e506090b12ae2641e0ab31f24d2ad1c551201 | [] | no_license | airrakeshkumarsharma/student-classification | 995b096dd612806faf49b60a9c1e22678db53e1d | 9b46cbe0d6d8747ce78762e327473861ee44b7a2 | refs/heads/master | 2020-03-28T01:27:46.794113 | 2018-09-06T13:00:46 | 2018-09-06T13:00:46 | 147,506,789 | 2 | 1 | null | 2018-09-06T05:13:55 | 2018-09-05T11:22:52 | null | UTF-8 | Python | false | false | 3,725 | py | import pandas as pd
import random
#Serial Number
sno = []
#Academic Behaviour
active = []
sem = []
#Higher Studies
name = []
mba = []
ms = []
mtech = []
#Job
govtjob = []
it = []
entrepreneur = []
#Co-circular activities
sports=[]
music=[]
dance=[]
others=[]
#General Behaviour
result=[... | [
"noreply@github.com"
] | noreply@github.com |
e372c12cb3b68da6d60f0b9badb77c5351675ea6 | dfd0036b13141f0a61ce29325044d9fc3accfa67 | /prob20.py | 165d4cd80e0efaa2f74d5cae6b4c7d1396f817cc | [] | no_license | V-Neck/Euler | a909a9265ce8b0b09204189adcf7655ffe9bec5d | 4710f1456cc9c23eb0564122878b4245bd6c33d8 | refs/heads/master | 2021-05-06T17:58:49.316448 | 2018-04-09T02:48:03 | 2018-04-09T02:48:03 | 111,858,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | from prob15 import fact
print sum([int(i) for i in str(fact(100))])
| [
"evilepicproductions@gmail.com"
] | evilepicproductions@gmail.com |
b1dc9e505c919a677e4ad516ba5eb32f5820c244 | 610dedfb6e21d297e8cdbcba599a4e564bd785cb | /EstruturaDeRepeticao/estruturaderepeticao-09.py | 8b4c1153a41989cbf2047c8067840d6a96441880 | [] | no_license | zumbipy/PythonExercicios | f7b2ddf2376b9ecb2aedc77531e3571dc746a12b | 7a17b78cf927a2889b93238542e90e00810c43e6 | refs/heads/master | 2021-01-23T10:43:47.997462 | 2018-07-22T14:58:44 | 2018-07-22T14:58:44 | 93,086,120 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Telegram: @ZumbiPy __ _ ___
# /_ / __ ____ _ / / (_) _ \__ __
# / /_/ // / ' \/ _ \/ / ___/ // /
# /___/\_,_/_/_/_/_.__/_/_/ \_, /
# E-mail: zumbipy@gmail.com /___/
"""
09 - Faça um programa que imprima na tela apenas os números
ímpares entre 1 e 50.
"""
# ===============================================... | [
"zumbipy@gmail.com"
] | zumbipy@gmail.com |
6a5596e9f5936e591842035cd79dd7c31355ad3f | d169aaea184d13b92a79db7ddcdf6cafc8696fb7 | /ArrayMathematics.py | 40acb0b5e066a3de3f3559ea5c8b44e7419747c9 | [] | no_license | sahilshah1610/HackerRank | 71dcc6c5d5f8411240e12c2e74c31fc5c62d5ed0 | 1fd63624b05927bf5ac38ee206d4f7e79b000b68 | refs/heads/master | 2023-01-28T23:21:42.383578 | 2020-12-14T05:21:36 | 2020-12-14T05:21:36 | 314,386,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | import numpy as np
if __name__ == "__main__":
n,m = map(int, input().split())
arrA = np.zeros((n,m),int)
arrB = np.zeros((n,m),int)
for i in range(n):
arrA[i] = np.array(input().split(), int)
for i in range(n):
arrB[i] = np.array(input().split(), int)
print(arrA + arrB)
print... | [
"sahil.shah56@gmail.com"
] | sahil.shah56@gmail.com |
097f6aa61829185596618db0242a9f7088507c1b | 98005f697f615e55d1a34bbb8f71fb45dd11f2be | /agmapi/__init__.py | 275199dc36eeee47ba48903ed7abfd9d83c8931a | [] | no_license | sreecodeslayer/khub-task | 0a2bf12cc4d65c6feea0e3fde4cf0484ce5d779b | 97edf6670bcaa0675aed2f589644e31747d54862 | refs/heads/master | 2020-03-10T06:42:04.900308 | 2018-04-17T05:10:19 | 2018-04-17T05:10:19 | 129,244,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | from flask import Flask, render_template
from flask_restful import Api
from .db import init_db
from .utils import init_logger, get_logger
app = Flask('agmapi')
app.config['DEBUG'] = True
app.config['MONGODB_SETTINGS'] = {
'db': 'AGMAPI',
'host': 'mongodb://localhost:27017/AGMAPI'
}
init_db(app)
init_logger... | [
"kesav.tc8@gmail.com"
] | kesav.tc8@gmail.com |
971a9e6462e076e0cd93f1bffaa93f96f40d2ccd | d8648e2c56452c6ee09aced281b0810a702467ec | /blog/migrations/0003_auto_20181217_1108.py | 69e6236703fe51a9a139a9de960baa01582cb1e5 | [] | no_license | nikhil0162/django_Project | c51018eacf4965b7edf62d1067c636476454e2e1 | 25c4f4c1c5065bcb127590a2339e4d7725078be8 | refs/heads/master | 2022-12-14T04:20:36.839251 | 2020-10-29T17:39:27 | 2020-10-29T17:39:27 | 159,532,188 | 0 | 0 | null | 2022-12-08T02:28:32 | 2018-11-28T16:30:36 | HTML | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.1.4 on 2018-12-17 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20181215_0712'),
]
operations = [
migrations.AlterField(
model_name='carpost',
name='launched_date... | [
"nikhil0162@gmail.com"
] | nikhil0162@gmail.com |
c55fcbc5290050fda7ddeebb2c0e6adec8d9980c | 703e6baed8e2b1efbd1aaee7eba3b6af1fb3fd84 | /nndist.py | 22521fb8082fa049edcfbd3e6d691c0c444eea03 | [] | no_license | deyh2020/EIT-computations | 12969400c2bec3810112a69da9a8d9a594ab2934 | 9159bff4bfda8b308a486b3404c90c0376e576eb | refs/heads/master | 2022-03-07T18:21:36.656263 | 2018-06-19T21:04:27 | 2018-06-19T21:04:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | import pylab
import matplotlib as mpl
import numpy as np
import matplotlib.pyplot as plt
import scipy
from qutip import *
from scipy import linalg
from math import *
def nndist(x, n):
return np.exp(-4*pi*x*x*x*n/3.)*4.*pi*x*x*n
def nndistV(C, V, n):
x = (C/V)**(1./6.)
return np.exp(-4*pi*x*x*x*n/3.)*4.*pi... | [
"hudpsa@gmail.com"
] | hudpsa@gmail.com |
e3bb0a08160c3b5afbb1561fc67f5e5b2b320380 | 43a676d507c9f3e007d46b9335c82f77e35350f6 | /config/wsgi.py | df17ccb416ed061cc0afd7cf24b277bc198a94b4 | [] | no_license | Zoxon470/nekidaem-blog | 79136fd9f4747afd01beb02bfd9d0c524493a6f6 | c2539963d149841397e9eb2d4153a73abea15da2 | refs/heads/master | 2022-05-02T20:14:05.805564 | 2019-06-27T21:50:57 | 2019-06-27T21:50:57 | 194,165,211 | 0 | 2 | null | 2022-04-22T21:53:15 | 2019-06-27T21:25:07 | JavaScript | UTF-8 | Python | false | false | 340 | py | import os
import sys
from django.core.wsgi import get_wsgi_application
app_path = os.path.abspath(os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.pardir))
sys.path.append(os.path.join(app_path, 'nekidaem-blog'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'config.settings.dev')
application = get... | [
"zoxon470@gmail.com"
] | zoxon470@gmail.com |
51d514b03c5d8f55cd4062f7f5d8f84380a4ae58 | 8288c6f44ed26292b0795d2290763e19043a058d | /lab9gradient.py | 81a01b213cfa165f7db1d35c6a268be0b35c433e | [] | no_license | szymonln/Mownit2 | d763a1a40b44c45a6a95f26b355cf7442ff58943 | d27d1e194133e6930109eb4d2261bb10dd0590fa | refs/heads/master | 2020-04-03T15:33:26.161354 | 2019-02-08T14:31:46 | 2019-02-08T14:31:46 | 155,366,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | cur_x = 3
rate = 0.01 # Learning rate
precision = 0.00001
previous_step_size = 1
max_iters = 10000
iters = 0
df = lambda x: 2*x - 2.71 #Gradient
while previous_step_size > precision and iters < max_iters:
prev_x = cur_x # Store current x value in prev_x
cur_x = cur_x - rate * df(prev_x) # Grad descent
pr... | [
"szymonln@gmail.com"
] | szymonln@gmail.com |
d820ae424b8b015df2aa8aee36762d571e6921f2 | 7b4d83e0e476110ed8ebf444da4f3125774ddcba | /projeto_extensao/PIL/ImageWin.py | 37cf8f26b7eecf295e7211894b42dde741dcf8a1 | [] | no_license | gefferson/projeto_extensao | 5fa70f99ac75b9dc2a09dbd5f458f6f74dcb7cf4 | 9ae9b232f6aabbe590b2791fda04ca4430f3655a | refs/heads/master | 2021-01-10T20:55:52.424534 | 2014-09-02T06:27:32 | 2014-09-02T06:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,375 | py | #
# The Python Imaging Library.
# $Id$
#
# a Windows DIB display interface
#
# History:
# 1996-05-20 fl Created
# 1996-09-20 fl Fixed subregion exposure
# 1997-09-21 fl Added draw primitive (for tzPrint)
# 2003-05-21 fl Added experimental Window/ImageWindow classes
# 2003-09-05 fl Added fromstring/tostring me... | [
"geffersonvivan@187-68-19-51.3g.claro.net.br"
] | geffersonvivan@187-68-19-51.3g.claro.net.br |
c5b435586383bec7e14c2017d6182ce5f217272e | 449147399b91db8ca3192e9960834a73967cd01d | /pandas-ml-utils/pandas_ml_utils/ml/data/reconstruction/__init__.py | 52b22fdb3e0d667496a779c3c98ac6e25c9b2549 | [
"MIT"
] | permissive | brunoreisportela/pandas-ml-quant | 04b81568b900d226bb7028ccbe81ea97d0c00587 | a80b06aab28f38c3c6cb298e96f497e4fcdb95a5 | refs/heads/master | 2022-12-18T23:51:38.297857 | 2020-09-08T06:14:16 | 2020-09-08T06:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from .prediction import assemble_prediction_frame | [
"ch9.ki7@gmail.com"
] | ch9.ki7@gmail.com |
3227cb4f2668033863586798ab35d19867aa42b8 | 443690c3b6e0ab294cd24fee3db164b756a45f02 | /cs308app/migrations/0008_auto_20201116_2352.py | e1618e0313c80ad4fc2fba800e3361402dd86fee | [] | no_license | oziyildirim/DjangoSoftEng | 19175770fdce3c66506d0f48ce9309912cd42912 | 97bf4d8821867f94d70802d65bde92b1f3aeb1d9 | refs/heads/main | 2023-04-01T06:55:03.421094 | 2021-04-07T16:55:06 | 2021-04-07T16:55:06 | 336,238,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | # Generated by Django 3.1.3 on 2020-11-16 20:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cs308app', '0007_auto_20201110_2233'),
]
operations = [
migrations.AddField(
model_name='basketitem',
name='quantity... | [
"oyildirim@sabanciuniv.edu"
] | oyildirim@sabanciuniv.edu |
dc6940ccab54fe26f6cdd8418152ac93e3a870f6 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/tpu/feature_column_v2.py | 1a5bddb173a599ee196c98ef4cd8bf3483151377 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,102 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
b2cd196a4e77d83e542be25199838e0b8ec80ff9 | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/assessment/automate/formatters.py | dac02f8f9749219cec476cf1e0392f3c9036f96a | [
"MIT"
] | permissive | uktrade/market-access-api | 6b4680e6455eb5c25480ccd3e3d9445654269f36 | 4da26d1be53843d22411577409d9489010bdda09 | refs/heads/master | 2023-08-30T14:47:10.373148 | 2023-08-29T13:58:08 | 2023-08-29T13:58:08 | 131,856,014 | 2 | 3 | MIT | 2023-09-14T08:04:42 | 2018-05-02T13:38:37 | Python | UTF-8 | Python | false | false | 2,065 | py | def rca(import_value, export_value):
if import_value is None or export_value is None:
return "NA"
elif import_value > 0 and export_value > 0:
return "Specialised"
elif import_value < 0 and export_value < 0:
return "Unspecialised"
return "Inconclusive"
def rca_diff(import_value,... | [
"noreply@github.com"
] | noreply@github.com |
b0f8b3dc5a6fbec391eb180abdea385a1eda72cf | 3dab50196ae7c93ec7f0bb7ddc84c2409a989e15 | /13305.py | acc6652e9e7bfc9a919643103706dd5812e3ceb7 | [] | no_license | seounjin/baekjoon_algorithm | 7d8b6a8f51356ad862cdb3229ff628a9e1ca49d8 | a7a3f212992fd9248db9680c901536d68e5680bd | refs/heads/master | 2022-12-21T03:15:17.968041 | 2020-09-16T15:25:23 | 2020-09-16T15:25:23 | 185,127,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # 주유소
import sys
input = sys.stdin.readline
N = int(input())
# 도로의 길이
road = list(map(int, input().split()))
# 도시당 가격
city = list(map(int, input().split()))
road_len = sum(road)
road += [0]
answer = [0] * 100000
answer[0] = city[0] * road[0]
temp = city[0]
for i in range(1, N):
temp = min(temp, city[i])
... | [
"invanda7@gmail.com"
] | invanda7@gmail.com |
c8e2155ef68a3eba87ea0e8c4cab9b582c3f5355 | 8bc3e7bd0fa1714b3d0466e940ed801cf9a4c5d4 | /pyvisual/node/io/system_var.py | 2e6dfeaf5a70761d5951b4abff26e7ec2a04eaae | [] | no_license | m0r13/pyvisual | d99b3512fefaf4a2164362a0b7aabd1df9ecee03 | f6b3e2217e647b80f1379716c00e8adb53975bca | refs/heads/master | 2022-02-21T22:24:22.467475 | 2019-06-17T20:38:48 | 2019-06-17T20:38:48 | 140,211,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | import json
import os
import time
from collections import defaultdict, OrderedDict
import imgui
from pyvisual.node import dtype, value
from pyvisual.node.base import Node
from pyvisual.editor import widget
SERIALIZATION_WRITE_INTERVAL = 5.0
SERIALIZATION_FILE = "system_vars.json"
# if you add another variable with a... | [
"moritz.hilscher@gmail.com"
] | moritz.hilscher@gmail.com |
494f4579cf7fca7b1eb90c375efb34a67f6d3cd4 | e319b3f9b80f0e8a843cec7edd65f19baa0c9f3b | /Interface/Dialogs/SpendOrRestoreSpellPointsDialog.py | 3aa7c90fe3e39e7fa58af55d966d06d1c6e5583f | [
"MIT"
] | permissive | Snackhole/PyFifth | 0e852ece4ef37d0cfa952d0b47d1d9c42ea6b1fd | 2a5419dea0309119d3ffbb5ba33ec14395d6dd59 | refs/heads/main | 2023-08-19T02:00:20.433299 | 2023-08-01T00:21:56 | 2023-08-01T00:21:56 | 125,868,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,083 | py | from PyQt5 import QtCore
from PyQt5.QtWidgets import QComboBox, QLabel, QPushButton, QDialog, QGridLayout, QSizePolicy, QSpinBox
class SpendOrRestoreSpellPointsDialog(QDialog):
def __init__(self, CharacterWindow, RestoreMode=False):
super().__init__(parent=CharacterWindow)
# Store Parameters
... | [
"snackhole.dev@gmail.com"
] | snackhole.dev@gmail.com |
cbf179d79502288c0887998e124e14e76e67a723 | c271c196bf2730c20de42f75568336cd8ccd07d1 | /password_generator/settings.py | b735e335e8541b7ca0067bb54d2db2e9ee2e225f | [] | no_license | entry-dev/django3-password_generator | e68f97565944355c8001ad35a73118a8741a1106 | 74f2684e9cdd597bccf9a4aaedbc208625e42de2 | refs/heads/master | 2023-01-04T03:23:48.416370 | 2020-11-04T23:52:36 | 2020-11-04T23:52:36 | 310,145,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | """
Django settings for password_generator project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
f... | [
"ivan.krstic@yahoo.com"
] | ivan.krstic@yahoo.com |
ca649f8cd329ae6e3c66facc2dfe5d27aa53dc6b | a70538105d0cb172c2f5628f083d53529904941b | /Watermelon.py | 04c38d409a4fa100bf7fb7a115aef465f1a1019a | [] | no_license | Raihan-009/Codeforces | 792be79991d1ade5aa87e779506173b5d4fac442 | 3bb53f2561a29793964ebaf76848de5be8ba975e | refs/heads/master | 2022-09-12T09:40:45.988289 | 2020-06-01T14:24:48 | 2020-06-01T14:24:48 | 268,368,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | '''
One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and the scales showed w kilos. They rushed home, dying of thirst, and decided to divide the berry, however they faced a hard problem.
Pete and... | [
"64744693+Raihan-009@users.noreply.github.com"
] | 64744693+Raihan-009@users.noreply.github.com |
62d9fb786e671921898f8a2ecbece758e2046377 | a5f5f19615d1af450338b8d1071b940bcc68ab91 | /core/mixins.py | 9beda68da1934370bd1b925f13dde7f55033d5b7 | [] | no_license | duydo131/hotel | 987943dc184d3f98fe96ddbd16c6a4453605c9e3 | b010d84a657ddb54c1f6c6add656fe21e5f74a31 | refs/heads/main | 2023-06-15T09:14:37.109199 | 2021-07-16T03:26:02 | 2021-07-16T03:26:02 | 369,415,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from rest_framework_extensions.mixins import DetailSerializerMixin
class GetSerializerClassMixin:
serializer_action_classes = {}
serializer_detail_class = None
queryset_detail = None
def get_serializer_class(self):
try:
return self.serializer_action_classes[self.action]
ex... | [
"dotheduybk131@gmail.com"
] | dotheduybk131@gmail.com |
15834731332573ccf1a384394228b16286a05343 | f2e7442f38465fdd237c763c80f436e3f103221c | /experimental/HandKeyPointsCustom.py | caf05d577f753b76b5d6fd0187ac6e81faa72eb9 | [] | no_license | SuhelNaryal/Sign-Hawk | fda0f35efd9b0a7c17e0562efd7faac76367ab57 | 52e3e150b1ea30c7c4c15ee54f0dba09d0408dc7 | refs/heads/main | 2023-01-24T13:24:57.984937 | 2020-11-23T11:30:16 | 2020-11-23T11:30:16 | 303,287,298 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | import keras
import tensorflow as tf
def HandKeyPointsLoss(y_true, y_pred):
y_pred = keras.backend.cast(y_pred, dtype=tf.float32)
left_hand_true = y_true[:, :, 0]
right_hand_true = y_true[:, :, 1]
left_keypoints_true = y_true[:, :, 2:65]
right_keypoints_true = y_true[:, :, 65:]
lef... | [
"noreply@github.com"
] | noreply@github.com |
bb78b536e10ed1c070713095bc6926c0d668fe9b | 680ef089e77f3d510f0fbe7d632c01fb497e2a57 | /manage.py | 6b33c09231ad589a05eba9ffb021c19d258c0cd0 | [] | no_license | kupuk090/idaproject_test | 3fa4ef68ba9ca921edb4ad603ba39e5c9a3f9b7f | e92cbf615bc360fc44f45c746be3f4431b48ee41 | refs/heads/master | 2023-04-09T10:29:22.869203 | 2021-03-21T22:59:41 | 2021-03-21T22:59:41 | 350,136,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'image_resizer.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"kupuk090@gmail.com"
] | kupuk090@gmail.com |
0ee27c2b6c2029409b39052286ba40d81a836616 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShHBJJMM/YW_HBJJMM_SHSJ_067.py | 4cb90cd9223c79893514c907a5e29a58cc20a03f | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from log import *
sys.path.append("/home/yhl2/workspace/xtp_test/MoneyFund/moneyfundservice")
... | [
"418033945@qq.com"
] | 418033945@qq.com |
b7b979b04b0a3ebb22cfc3527178b9ed7832184d | e104a337a1e3ced474511d258645109641aca01d | /movie/views.py | 71f002084a1d9a6d4d76757bebb7e17068740b8b | [] | no_license | mjkya/MovieVersity | 3be879faa68ce6855cc8e935723a50f7b5ed790f | 7eede648bb9d8bb8108c780feb513bfc8884bc89 | refs/heads/master | 2020-05-19T10:51:18.997948 | 2019-09-01T06:32:26 | 2019-09-01T06:32:26 | 184,977,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | from django.shortcuts import render,redirect
from django.views.generic import ListView, DetailView
from django.views.generic.edit import CreateView, UpdateView, DeleteView
# Create your views here.
from .models import Movie
from django.urls import reverse_lazy
from .parser import parse_movie
def movie(request):
re... | [
"noreply@github.com"
] | noreply@github.com |
aecb50d16e4b98d83419ea535baee6629c26a325 | 8060b19318440ff2fbd728afd9435d4b5a3f1da6 | /code/metadata/build_nodelist.py | ae79eb7f27e1ed301c80a478032048397612d20c | [] | no_license | Irallia/IZW-HU-Parasites | dae82db2600a96bdce7cffb228c07cdc6dde5226 | b0d70f671fa489ba132e2cffb81ff6d6fc431fe5 | refs/heads/master | 2021-01-25T08:13:18.646633 | 2018-05-20T20:25:51 | 2018-05-20T20:25:51 | 93,733,091 | 4 | 3 | null | 2018-03-21T13:36:06 | 2017-06-08T09:43:17 | TeX | UTF-8 | Python | false | false | 4,547 | py | import csv
import datetime
import sys
from code.utilities.Helpers import print_time
from code.utilities.nodelist_util import read_tags, tag_node
from time import gmtime, strftime
from Bio import Phylo
from termcolor import colored
# path_freelivings = "./data/interaction_data/reduced_freelivings.csv"
# path_parasites... | [
"irallia@chrigelyra.de"
] | irallia@chrigelyra.de |
9207dc3cabf5a523ba87298730ea3d3b9f8d7750 | 7a01d168819027ed74021395edf55c79419b1e74 | /miSitio/urls.py | 06f844768f45cce9e92f4a22619de57896d7bf07 | [] | no_license | TeresaHRivas/my-first-blog | 4f2347f53faf222f7279de1d89f282815cf94422 | a6794fca9249ec2d41730f4e420c537e09d045d4 | refs/heads/master | 2020-07-20T15:21:27.431700 | 2020-02-28T22:36:38 | 2020-02-28T22:36:38 | 206,666,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """miSitio URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"teresahrivas4@gmail.com"
] | teresahrivas4@gmail.com |
50956f529320e551f07a71600677d930f51f66ab | 4b7883843049d01fa718368f09ee0aa41167f595 | /1HelloWorld.py | e27b7c5f2a359339b94f53dc65f6d1b6e00538f6 | [] | no_license | rickyjreyes/Python_Tutorial | fac324fa94e28e45f8c1293b6c4f0fe8db714052 | 00c1e90e732a6066f1324df52ee6832a85b5d6bb | refs/heads/master | 2021-06-12T03:33:53.140440 | 2017-03-19T08:25:15 | 2017-03-19T08:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # HelloWorld.py
#
# First Program!
# This prints hello world
print("Hello World!")
# More Practice: Make 5 of your own prints
print("My name is Ricky!!!!")
print("My favorite color is blue!!!!")
print("Video games are cool!!!!")
print("I love to code!!!!")
print("This is Python :)")
# This is a... | [
"noreply@github.com"
] | noreply@github.com |
99e00483b2fcb94681bab327da53cc9bd655b160 | 9644e6b9b8bf64dac7b95cd527b5364653bf7ea7 | /stuff_map/migrations/0002_car.py | 7969ea652672628e197f29e5bbe827b897c46cb4 | [] | no_license | mittonface/stuff_map | d6e651cb0fc96c3985e4ca4cfa0f75000c4f78e0 | 5b758ee713c4c11c3a5c4ffceac04ea80b5583bb | refs/heads/master | 2020-06-14T03:59:39.848546 | 2016-12-04T17:21:16 | 2016-12-04T17:21:16 | 75,493,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-03 17:37
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stuff_map', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"bmitton@gatech.edu"
] | bmitton@gatech.edu |
b739d2efc981f15f251d102759aa0a3696382421 | 975a3b8189fffde47256b52901bcce9b5d8b1001 | /app.py | 6e0e28db9d423cdf8e340b69678b4ee67aaaa5b4 | [] | no_license | FrancisGKing/RedditToMessengerBot | f7db66e7b6b3150dd42473002ddd7eb11efc47df | 25c4f09da5c5b456f88738b00cd6674bedb984ef | refs/heads/master | 2020-04-17T03:39:27.733581 | 2019-01-17T09:09:19 | 2019-01-17T09:09:19 | 166,194,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,438 | py | from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy
import json
import requests
import os
import praw
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ['DATABASE_URL']
db = SQLAlchemy(app)
reddit = praw.Reddit(client_id='QhZh0AZf4HlrXg',
client_secret='g7vBRIAfYRFEBJtXr... | [
"francis.kingjr@gmail.com"
] | francis.kingjr@gmail.com |
8664746b874b28b034fc07228953772e842c71df | 392b644e8be2bdd5cb0e2656483786a7ce6c1ef9 | /setup.py | ffbe34a51be9405e0e1d23e19a09f3910435ace8 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"Python-2.0"
] | permissive | pandrey76/python_client | 67287b41a826ed6c2c1c5b87f30582261e35777c | 3b8a8ca471dbb2178687e7febbf216f81b49fcca | refs/heads/master | 2022-04-12T15:29:49.863787 | 2020-02-13T03:31:08 | 2020-02-13T03:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | #!/usr/bin/env python
"""
setup.py file for GridDB python client
"""
from distutils.command.build import build
try:
from setuptools import setup, Extension
except ImportError:
from distutils.core import setup, Extension
try:
with open('README.rst') as f:
readme = f.read()
except IOError:
rea... | [
"katsuhiko.nonomura@griddb.org"
] | katsuhiko.nonomura@griddb.org |
840981ee699fd005cdcb4fa9ecbb2214b62fced0 | a6986f430351dcc871d035f8361ca377ddc90edf | /HouseAnalysis/house/migrations/0001_initial.py | afdaea7fc6b90257183f31bc00fc8691e54c02e0 | [] | no_license | qijianchuan/HouseAnalysisWeb | d9f65a91cb1dba2bfea482214c6b532a59e21a8c | 8a619c77bdfb3516c37df912d6fe7bf14d27e706 | refs/heads/master | 2023-03-15T23:23:02.677191 | 2020-04-30T14:59:19 | 2020-04-30T14:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,836 | py | # Generated by Django 2.1.5 on 2020-03-12 07:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Api',
fields=[
('id', models.AutoField(auto... | [
"zj20162325@163.com"
] | zj20162325@163.com |
0e65d65def490ae82f7776d64b2d70c86abf7d55 | b838b2ecce195d1293b0ff485b3d76bc0adb5d70 | /st36/Film.py | 1b7fe8b7ddd61874118e09afd00ffd4cf7fdb2cb | [] | no_license | BelyaevaSveta/ASM.17.Lab1 | e4d37c8b7600cf3f7bf787dd396678315b19d57d | ee20998877a4e511a778a7afd52cb977b55aa2f5 | refs/heads/master | 2021-05-07T04:52:05.904334 | 2017-11-28T10:30:42 | 2017-11-28T10:30:42 | 111,489,081 | 0 | 0 | null | 2017-11-21T02:36:19 | 2017-11-21T02:36:19 | null | UTF-8 | Python | false | false | 1,363 | py | from .Actor import Actor
import pickle
class Film:
def __init__(self):
self.enter_film_name()
self.actors = {}
def enter_film_name(self):
self.film_name = input('Enter new film name: ')
def print_film_name(self):
print('Film name is %s' % self.film_name)
def print_al... | [
"noreply@github.com"
] | noreply@github.com |
1df207e3ac0e742b82e1992b634d3bbf48dbfbe2 | 70331cc864c44a3f30883d40073f048d1a5a8e3f | /main.py | 69d7007bdd8659110ec9a209219a24a98be176d3 | [] | no_license | rmar6544/Day-7-Hangman-3-Start | 5c0f310925b8ba4b3f87db019c7f25e94865cfd8 | ea538f6cff8433bc9ee90c32794593c938d8a4e5 | refs/heads/master | 2023-04-04T23:43:08.966646 | 2021-04-07T23:06:28 | 2021-04-07T23:06:28 | 355,696,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | #Step 3
import random
word_list = ["aardvark", "baboon", "camel"]
chosen_word = random.choice(word_list)
word_length = len(chosen_word)
#Testing code
print(f'Pssst, the solution is {chosen_word}.')
#Create blanks
display = []
for _ in range(word_length):
display += "_"
#TODO-1: - Use a while loop to let the use... | [
""
] | |
1c5c459904e78434ad22ecd6cb261de1f2c29f83 | 4c378e60497ce892f5c25cbe7d6fc439124141ea | /solutions/226. Invert Binary Tree.py | 96d9017e0473c9f2cd4b047c540206dea030ce6d | [] | no_license | udhavsethi/play | 8008369d4c582f6db33a5737a3d9d68e5afc38c3 | 885d5b6e0a05051554fb61eb501a44a785098f3a | refs/heads/master | 2021-11-27T11:40:52.847607 | 2021-11-23T18:49:40 | 2021-11-23T18:49:40 | 147,461,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]:
if root:
root.left... | [
"udhavsethi@users.noreply.github.com"
] | udhavsethi@users.noreply.github.com |
92cd077f58237f62504c76208cda5a489cb6ee9f | 525252226b3c6b76fd0916084e9de7de9db2ae60 | /backend/tests/test_gasfeed.py | d13ec3c809b000f2b5ee40bcdbc9ac1753047945 | [] | no_license | james4388/gas-price | 8215f429249d2985ea964eea6ea7e63b74faf7b8 | 3e380146a8698c84443bba2b11f3829710ad0e69 | refs/heads/master | 2022-12-02T14:17:15.893681 | 2020-08-06T05:29:25 | 2020-08-06T05:29:25 | 278,273,476 | 3 | 0 | null | 2020-07-15T18:17:16 | 2020-07-09T05:41:30 | JavaScript | UTF-8 | Python | false | false | 1,221 | py | from flask import url_for
from tests import BaseTestCase
from gasprice import config, create_app
class GasFeedTestCase(BaseTestCase):
def test_brands(self):
with self.app.app_context():
resp = self.client.get(
url_for(
'GasFeed.station_brands'
... | [
"nhutrinh@leafgroup.com"
] | nhutrinh@leafgroup.com |
e706179c11effcfa8f133d63d2655724fca4d1e9 | 0005e05b9d8b8ad0d3c3c0539b2ded9db6e9f1dd | /codechef_client/models/tag.py | 4cdd6e64295823ef02e369ae6ce1a056970ea646 | [] | no_license | termicoder/codechef-client-lib | a3e3de2b300355c5daa5ed3fad03a9859af13d86 | 74d6b21787c75a987e3451751f5554e4cc6cf469 | refs/heads/master | 2020-03-27T17:58:45.298121 | 2018-09-30T18:03:14 | 2018-09-30T18:03:14 | 146,889,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | # coding: utf-8
"""
CodeChef API
CodeChef API to support different applications. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Tag(object):
"""NOTE: This class is auto... | [
"diveshuttamchandani@gmail.com"
] | diveshuttamchandani@gmail.com |
3084a00a20347e2a00d4110f699cde1dff559340 | d1a5d8bdaf7c27daf3a5aebde84be7cefa371723 | /dlc2_model_training (copy).py | 115e631869346886b255211c96b48c7808389be2 | [] | no_license | sambeettiady/dlc2_he | 1c7b811f3294022edaeb59494a19731badfbf56d | c54d5365b742951524458b92d0b31b028f9e195d | refs/heads/master | 2020-03-30T06:07:49.117344 | 2018-09-29T08:05:31 | 2018-09-29T08:05:31 | 150,840,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,333 | py | #Import image transformation packages
import skimage
from skimage import filters, io, exposure, color, segmentation, feature, morphology
from skimage.feature import canny
from scipy import ndimage as ndi
from scipy import misc
import skimage.transform as skt
#Import required packages
import numpy as np
import pandas a... | [
"noreply@github.com"
] | noreply@github.com |
dffede7cbbfa98929853b8241f6a1e945007f560 | e5fb2d912415c302221604126afa7cbbb0a039c0 | /keras_gym/policies/test_special.py | d19afe8e363fc4399127c8f76a179ab42414bef4 | [
"MIT"
] | permissive | KristianHolsheimer/keras-gym | fc034025a1180b1124fe1a25886b54088d2f3552 | 0296ddcc8685e1ce732c3173caaa0fd25af9ef58 | refs/heads/master | 2021-06-28T21:57:50.122753 | 2020-09-30T04:29:15 | 2020-09-30T04:29:15 | 174,637,157 | 17 | 5 | MIT | 2019-08-02T22:48:41 | 2019-03-09T02:09:03 | Python | UTF-8 | Python | false | false | 1,012 | py | from gym.envs.toy_text.frozen_lake import FrozenLakeEnv, RIGHT, DOWN
from .special import UserInputPolicy
class MockInputFunction:
def __init__(self, return_value=None):
self.return_value = return_value
self._orig_input_fn = __builtins__['input']
def _mock_input_fn(self, prompt):
pri... | [
"kristian.holsheimer@gmail.com"
] | kristian.holsheimer@gmail.com |
d5c3dd5a7e5b2f8332dda72ef2737f66f62832b9 | 4f35782ac42f1cc65581b6f21b7a80be8f0164cc | /resources/todo_item.py | 86400c55f8c6821098187dc26050847564cb707d | [] | no_license | Rhemm/berry | 2da3cb202040b130ff566a78f6fb98efac1cace4 | 0c908bc4cbbdf770ac8c5b66d0cbf2b115ac456b | refs/heads/master | 2020-04-23T21:04:40.382398 | 2019-02-21T04:47:18 | 2019-02-21T04:47:18 | 171,459,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | # -*- coding: utf-8 -*-
# pylint: disable=R0201
"""
Module providing todo item resource.
"""
from flask_restful import Resource
from flask_restful.reqparse import RequestParser
from flask_restful.inputs import date, boolean
from bson import ObjectId
from application import mongo
from common.utils import validate_id
... | [
"yslfhe@gmail.com"
] | yslfhe@gmail.com |
8001d2f7a9d565237552aea7cbf4fd1650d437b9 | 912196d86c93c29b3b031792e3cf886420a0fbde | /core/rnn/rnn_minibatch_test.py | c8e233c8e50eb5ebf1c20a8a41d63c0c12daa8c2 | [
"Apache-2.0"
] | permissive | brian-lau/guac | fce363745c9a778733f1df765fd9c3b832fdeef4 | c3db6cdbe56a1cb04486650ea5473287ba159ad4 | refs/heads/master | 2020-05-29T11:55:34.494957 | 2015-10-28T02:17:34 | 2015-10-28T02:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,065 | py | # adapted from https://github.com/lisa-lab/DeepLearningTutorials
from collections import OrderedDict
import copy
import os
import re
import random
import timeit
from hyperopt import STATUS_OK
import numpy as np
import pandas as pd
from scipy import stats
import theano
from theano import tensor as T
import common
... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
ad050bdca9957e37be1ca71048282a0569e623be | 736d1945173d89c0ba50d47e70a1e7ff7be9b432 | /run.py | 354a11aa27a4774879b9bd841f52cf9772f7169d | [] | no_license | cuglilong/Stacking_Algorithm | 1ce0643eae94b4fe908ea9d035d8f2e5d42cbca5 | dc0da245eb9db10576cc2ff56063ce99d4232001 | refs/heads/master | 2022-02-27T09:05:21.741039 | 2019-08-23T09:40:39 | 2019-08-23T09:40:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import Stacker
import Hawaii_Stacker
import Stacker_Test
import sys
from obspy import read
import pickle
from numpy import random
import numpy as np
import clustering_scripts as cs
import plotting_scripts as ps
sys.path.append('./CCP_stacks/Plotting_Scripts')
#import plot_CCP
# Reading in
file =sys.argv[1]
print("R... | [
"mh826@syrma.esc.cam.ac.uk"
] | mh826@syrma.esc.cam.ac.uk |
ca9384417c7381029549dc4cefe6c3c2371e83ab | 9547ba5d65029c7eb3975d888bc1c5579bd455c2 | /Spark-DF-Sql/10-AggregationsDemo/AggDemo.py | e8ad9a72a4caf8bdd34de50850b03aef84c65224 | [] | no_license | vinayavs/spark2-python | 53ebd2769525eca2e3727cb171fd43de87fd9d84 | bba1eedd232bd0ea3d1ac72293475d561326c1a4 | refs/heads/main | 2023-04-08T15:29:25.391387 | 2021-04-06T07:32:34 | 2021-04-06T07:32:34 | 352,007,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | from pyspark.sql import SparkSession
from pyspark.sql import functions as f
from lib.logger import Log4J
if __name__ == '__main__':
spark = SparkSession.builder.master("local[2]").appName("Aggregations Demo") \
.config("spark.sql.shuffle.partitions", 2) \
.getOrCreate()
logger = Log4J(spark)
... | [
"vinayavs@gmail.com"
] | vinayavs@gmail.com |
ad0df481b83aad3cb9398d08e94d900100182e33 | 1db17195776328739b465902f6bf2d53bff0f9ac | /logs/2021-09-08-11-39-20/ricequant.py | 24df136b934372a0a551256e7528110b92791d25 | [] | no_license | eulancer/convertible_bond | 01f56d3d318dd7343e2547b3c6a1ad184c25880d | 2778fb5ee2c0145758565e5cfe83392a879d429b | refs/heads/main | 2023-07-28T22:43:45.553292 | 2021-09-18T09:16:40 | 2021-09-18T09:16:40 | 407,878,522 | 1 | 0 | null | 2021-09-18T14:12:34 | 2021-09-18T14:12:33 | null | UTF-8 | Python | false | false | 5,808 | py | # -*- coding: utf-8 -*-
from datetime import date
import rqdatac
import pandas as pd
def read_data(today):
txn_day = rqdatac.get_previous_trading_date(today)
df_all_instruments = rqdatac.convertible.all_instruments(
txn_day).reset_index()
df_latest_bond_price = rqdatac.get_price(
df_all_in... | [
"paulhybryant@gmail.com"
] | paulhybryant@gmail.com |
a20070b324979ddb978268aa926e7c238120fb98 | 94354828fc025e091165d2a68d692d6645290140 | /apps/user_operation/adminx.py | 8e02327027feb7c3efba6a92eb832823ded15720 | [] | no_license | simon-wxm/MxShop | 02350944a9756887dcd4a95aebf8801fea6df54f | 309b9e52b9e018b9ab5a7631492d59b280b085d6 | refs/heads/master | 2022-12-13T13:41:43.660462 | 2019-07-04T10:40:16 | 2019-07-04T10:40:16 | 191,779,173 | 0 | 0 | null | 2022-12-08T01:04:15 | 2019-06-13T14:31:42 | JavaScript | UTF-8 | Python | false | false | 543 | py | # coding = utf-8
import xadmin
from .models import UserFav ,UserAddress,UserLeavingMessage
class UserFavAdmin(object):
list_display = ['user','goods','add_time']
class UserLeavingMessageAdmin(object):
list_display = ['user','message_type','message','add_time']
class UserAddressAdmin(object):
list_disp... | [
"wangxm5721@163.com"
] | wangxm5721@163.com |
1fabea699593b6f7717d53f0a54019114c626198 | 470c55bca410969d772593c5b0cc7f63fc97354f | /compiler/tools/conf.py | 3fb06ce1918cb2e16b6a819e5802c9294f1a0a41 | [
"BSD-2-Clause"
] | permissive | knz/restcrumbs | b19fd250a021f1b77c25a48c7163204d4021381d | 494ea1fc5788b0ec8823e0000607da4187c39986 | refs/heads/master | 2016-08-08T15:22:52.301680 | 2011-02-28T18:38:56 | 2011-02-28T18:38:56 | 1,422,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,928 | py | # -*- coding: utf-8 -*-
#
# Blah documentation build configuration file, created by
# sphinx-quickstart on Tue Nov 9 10:40:39 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | [
"r.c.poss@uva.nl"
] | r.c.poss@uva.nl |
3e0492db360ce01a76f540ff3bf14d2133ae8153 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bogies.py | e575bb083362fdfd4e25d0bf21f424dc5070f88d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._bogy import _BOGY
#calss header
class _BOGIES(_BOGY, ):
def __init__(self,):
_BOGY.__init__(self)
self.name = "BOGIES"
self.specie = 'nouns'
self.basic = "bogy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
83da69b3ca2edaf7ca26891e03e9d0eafd7f5cb2 | 3cbf8706ea6655aad48d6bb0c34a4d7f5d6b2fdf | /depth/self_supervised_sfm/train.py | 73671c45601f5f768f1fe3bf22a2e3a02d20caad | [
"MIT"
] | permissive | seo-dev/cvml_project | cf166f7aa513bdbc5b23941d8cb19b53bbdc400b | 7c95ce22db6f31dc4624af9417edffde021b5351 | refs/heads/master | 2022-12-06T07:43:11.906512 | 2020-08-27T03:08:38 | 2020-08-27T03:08:38 | 290,434,881 | 1 | 0 | MIT | 2020-08-26T08:04:37 | 2020-08-26T08:04:36 | null | UTF-8 | Python | false | false | 14,224 | py | import argparse
import datetime
import os
import tensorflow as tf
from dataset import KittiSFMDataset
from disparitynet import DisparityNet
from posenet import PoseNet
from utils import pixel_coord, ssim_loss, smooth_loss, bilinear_sampler, forwardproject, backproject, disp_to_depth
parser = argparse.ArgumentParser(... | [
"daryl.tan@easymile.com"
] | daryl.tan@easymile.com |
6a08c2f08d79f432c3bf319defed10312a65bde4 | 3501c13c0465b6a4a333840243b583710dbeb959 | /kodēšana.py | 48b2a7a204b83790edb1610465ad2a5f88ac9fcf | [] | no_license | DaigaSarkane/RTR105 | e5032330fe42e08c925013ccc815118bfd23b7cc | 13a619bc8e61938758643be95b163fb58c6758ad | refs/heads/master | 2020-03-28T03:24:01.695389 | 2019-05-03T08:46:25 | 2019-05-03T08:46:25 | 147,642,367 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,205 | py | Python 2.7.12 (default, Dec 4 2017, 14:50:18)
[GCC 5.4.0 20160609] on linux2
Type "copyright", "credits" or "license()" for more information.
>>> original = "To be or not to be"
>>> type(original)
<type 'str'>
>>> len(original)
18
>>> original[0]
'T'
>>> original[1]
'o'
>>> original[2]
' '
>>> original[18]
Traceback... | [
"daiga.sarkane1@gmail.com"
] | daiga.sarkane1@gmail.com |
097439d4e5e15a04cbe777f77fd0434256fd16d1 | a61ca7b89ef5817b2027239ece9dd175f776c8f3 | /rcsb/app/chem/LogFilterUtils.py | 86c6b9113eaef1e38f51a767d80d66d89057586c | [
"Apache-2.0"
] | permissive | rcsb/py-rcsb_app_chem | 7da2941f6e0d0f8ff0f5a802a3edb689d283659b | 64ca10e6ccf8b604fa3d16ab72406408b22c0aca | refs/heads/master | 2023-08-17T21:33:51.660687 | 2023-01-09T17:30:07 | 2023-01-09T17:30:07 | 245,858,180 | 0 | 0 | Apache-2.0 | 2023-01-09T17:30:08 | 2020-03-08T17:31:37 | Python | UTF-8 | Python | false | false | 866 | py | ##
# File: LogFilterUtils.py
# Date: 29-Jun-2020 jdw
#
# Pre-filter for Gunicorn/Uvicorn health check requests -
##
# pylint: disable=E1101
import logging
logger = logging.getLogger(__name__)
class HealthCheckFilter(logging.Filter):
def filter(self, record):
return record.getMessage().find("/healthcheck"... | [
"john.westbrook@rcsb.org"
] | john.westbrook@rcsb.org |
b696c2d48b27c31a6a2b374d40a31649b1a5774c | 28d5b9d208a861703840837ad6302cd7e3f84d42 | /process.py | 87a80d181d435e34caf88251aacfe4543cab462d | [] | no_license | jagmeet787/Malicious-App-Detection | d4f5ee9b747d05799886483b157c62a15a94420b | c5925a36aafcbc60ccd30c69685220644652c34c | refs/heads/master | 2020-05-14T17:58:33.647278 | 2019-04-18T18:26:04 | 2019-04-18T18:26:04 | 181,902,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,421 | py | import time
from permissions import PermissionsResource
from database import database
from androwarn.warn.report.report import generate_report
from androwarn.warn.analysis.analysis import perform_analysis
from androwarn.warn.search.search import grab_application_package_name
from androguard.misc import AnalyzeAPK
... | [
"jagmeet787@gmail.com"
] | jagmeet787@gmail.com |
8ada09c41d2c212d35513c2278b4de86e8462604 | 1619eff6f62daf2109134cf49f1a1f8c4a45d639 | /product/urls.py | eea12a79437bfc40a6f0fb188604935c3db8daec | [] | no_license | Loay159/esntls.co | aa92a4647cdecaa159f69b175aefa813c5af358d | 5cafef4267e1bdf115c5a49a0fdf66580721a478 | refs/heads/master | 2023-08-03T10:12:27.188706 | 2021-09-23T09:15:01 | 2021-09-23T09:15:01 | 403,773,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | from django.urls import path
from .views import *
from dynamic_rest.routers import DynamicRouter
urlpatterns = [
# path('', ProductsAPI.as_view(), name='All_products'),
# path('<int:id>', ProductItem.as_view(), name='specefic_products'),
# path('category/<slug:category>', CategoryAPI.as_view(), name='Men_p... | [
"88399225+LoayAshraf@users.noreply.github.com"
] | 88399225+LoayAshraf@users.noreply.github.com |
83275e5deed513d8e87891c2e7afdb10a3f39919 | 95588c0bb9861fd45a620512cfb798dd5cd4efab | /flask_qaq/forms.py | 42d937b06fe2fa045ba96ad2b9979eca2e8d6806 | [] | no_license | Nauman1971/flask_final_project | ddb5fb07023b7082933a747959098cec794a81ef | 084f92242ee7ad1bb14e5fc56e9ed1d8eae2bb3a | refs/heads/master | 2021-07-08T19:00:42.472388 | 2019-12-18T16:29:59 | 2019-12-18T16:29:59 | 228,384,907 | 0 | 0 | null | 2021-03-20T02:24:11 | 2019-12-16T12:41:32 | HTML | UTF-8 | Python | false | false | 917 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SelectField
from wtforms.validators import InputRequired, Length, Email
from flask_wtf.file import FileField, FileRequired
class SignupForm(FlaskForm):
username = StringField('Name', validators=[InputRequired(), Length(min=4, max=15)]... | [
"nauman81007@gmail.com"
] | nauman81007@gmail.com |
5da9adf25b89d369656bd244e97b7be62c895405 | ce918cd9b23a4cd44861a8ba7448abac218c9761 | /0x03-python-data_structures/11-delete_at.py | 22abba5f9291ba9766a7213758d301401397b5fc | [] | no_license | adrielt07/holbertonschool-higher_level_programming | 80318056730a5c1bea0e95f7308b1499fab93a22 | adb04252e63ba714d2c65f25597778c89f6878a9 | refs/heads/master | 2020-03-09T14:48:29.225685 | 2018-10-07T00:48:45 | 2018-10-07T00:48:45 | 128,843,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/python3
def delete_at(my_list=[], idx=0):
if idx < 0 or idx > len(my_list)-1:
return my_list
del my_list[idx]
return my_list
| [
"adrieltolentino@outlook.com"
] | adrieltolentino@outlook.com |
26288ab26b891bd354d684ad66484d83d8fb746a | bf0b7643d9d9f83ea2820df9847a11cf52c8a5bc | /app/models.py | a9b6171b3936f4c683ccee0846d8cfc24309bd39 | [] | no_license | ducknessman/dust | 269851e4f420e01da14247565d65deff7c7c2a17 | 5dad23fd39aa5302f2e17dd286beca7b82446fcc | refs/heads/master | 2023-05-11T07:44:23.914855 | 2020-08-17T12:30:45 | 2020-08-17T12:30:45 | 259,030,166 | 2 | 1 | null | 2023-05-01T21:40:59 | 2020-04-26T12:54:17 | CSS | UTF-8 | Python | false | false | 7,069 | py | #!/usr/bin/env python
#! -*-coding:utf-8 -*-
#!@Author : zhuxx
#!@time : 2020/05/06 19:04
from datetime import datetime
from exts import db
from werkzeug.security import generate_password_hash,check_password_hash
# 用户表
class User(db.Model):
'''
_password:对内密码
password:对外密码
'''
__tablename__ = 'us... | [
"1160154212@qq.com"
] | 1160154212@qq.com |
937ca15e0fcc69c211f17b69de785760dbc1afb7 | 9e87897c988af634c3fddc42113992a65ec006f4 | /sims/repfam_fs/test/metrics_v2.py | e6aeb826dec6e7fd91e6f424c75731b25e4345ea | [
"MIT"
] | permissive | luiarthur/cytof5 | 152eb06030785fdff90220f0d0a244a02204c2e9 | 6b4df5e9fd94bfd586e96579b8c618fdf6f913ed | refs/heads/master | 2021-07-20T13:39:45.821597 | 2021-03-02T23:27:35 | 2021-03-02T23:27:35 | 145,253,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,927 | py | import collections
import os
import sys
import re
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import rcparams
KTRUE = [4, 5]
def parse_Rs(path_to_Rs_csv):
Rs = pd.read_csv(path_to_Rs_csv).rename(columns=dict(mean='Mean'))
return Rs
def get_ks(results_dir):
# Get dir names for e... | [
"luiarthur@gmail.com"
] | luiarthur@gmail.com |
2e3fcba553d7bb1fd1bf38c8ca6fd92ca74e91d4 | be862c96024320595afd7736605f94928be5f90d | /Crawler/私活/person_info.py | a8ea63dff59472dc088f8a2670225911586b8e2d | [] | no_license | SmasterZheng/leetcode | 1b35b72efc6ea6add605d08b13d7abcffbdf05e8 | 11b33fcbab47969ebd0bfc2f41cb50a976881910 | refs/heads/master | 2023-04-24T14:45:53.285565 | 2021-05-15T06:52:29 | 2021-05-15T06:52:29 | 264,981,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,091 | py | # -*- coding: utf-8 -*-
# @Time : 20201228
# @Author : zhengxz
import requests
import json
from bs4 import BeautifulSoup
import pandas as pd
def get_html():
'''获取html'''
headers = {
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-e... | [
"xiaozhangzxz@163.com"
] | xiaozhangzxz@163.com |
f496a31b97699a52d2a516cdc3c0651dbc0f2db5 | ce68b4e79620f8209b22bb72f8896c9a7cc01698 | /dis_train_week.py | 3f6b93b0465af25304fb167aef7fb7d8d25cdf62 | [] | no_license | ajithpad/Indian_railways | 2eb82f093361ce891026e6d88a7adbcff75f76bc | f6d9d2908127e3f945180c95b47191d74949add9 | refs/heads/master | 2021-01-20T17:07:12.057935 | 2016-11-11T07:57:01 | 2016-11-11T07:57:01 | 62,805,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,440 | py | #Code to use bokeh to plot the distribution of trains for a given station across the week
import pickle
import numpy as np
from bokeh.charts import Bar, output_file, show
import pylab as pl
import seaborn as sbn
from bokeh import mpl as mpl
from bokeh.io import output_notebook, show
dis_trains = pickle.load(open("da... | [
"ajith.physics@gmail.com"
] | ajith.physics@gmail.com |
5264b881370b18425a4a90f409799984552d35c9 | 21cb4f3f52168e31484c6389a9a08772b78a992d | /basic/list1.py | 7e6bb873cf62559d476044ed498561cfae6d2385 | [
"MIT"
] | permissive | Riverfount/estudos | 806f4592bf0f00fdc62c30ed04a7f61720d943fe | 03e5339de23b9fc49a2e26174d0241e923adb580 | refs/heads/master | 2022-12-11T08:13:19.994566 | 2019-11-02T13:26:19 | 2019-11-02T13:26:19 | 87,834,875 | 0 | 0 | MIT | 2021-02-26T02:35:23 | 2017-04-10T16:46:49 | HTML | UTF-8 | Python | false | false | 3,304 | 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 list exercises
# Fill in the code for the functions below. main() is already set ... | [
"vicente.marcal@gmail.com"
] | vicente.marcal@gmail.com |
dd8c8a83f383e751d627d7bf77583460548b6891 | edc73196fd98b01c380ae83696169d427778fe43 | /ex15.py | ef807db295410f013fdebd23c5987af002716b0b | [] | no_license | floatingman/pythonthehardway | 145773c130350cb26a88be8baca87489ad580047 | ab89b119b186e06b090db1a138b858287b8ca3df | refs/heads/master | 2020-03-27T16:53:17.359580 | 2018-09-18T21:55:50 | 2018-09-18T21:55:50 | 146,812,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from sys import argv
script, filename = argv
txt = open(filename)
print("Here's your file %r:" % filename)
print(txt.read())
print("Type the filename again:")
file_again = input(">")
txt_again = open(file_again)
print(txt_again.read())
| [
"dwnewman78@gmail.com"
] | dwnewman78@gmail.com |
1f5a4de9ed4c15d42484b3ef33e2021054fbd9b5 | 200896b4c28291d2019d14e1fa7bbdd68abdf47f | /modelv3.py | 25c0ad0ed6bdb1832383cf5d355db28e119699cc | [] | no_license | danielhoadley/caselaw-classifier | 0d382e7d8d65e00a9bce1428b983075aaf7bd997 | f5714e5745a9c20e4a70dc6c7a6dc9af6dc6cc00 | refs/heads/master | 2021-05-04T14:38:30.397200 | 2018-02-04T17:24:37 | 2018-02-04T17:24:37 | 120,206,129 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | import sklearn
#from pprint import pprint
import numpy as np
from glob import glob
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
#from sklearn.naive_bayes import MultinomialNB
from sklearn.feature_extraction.text import Tfid... | [
"noreply@github.com"
] | noreply@github.com |
c304cc7227d2255c4dde942808b00c572699cabc | bbc35e3c7e35b5219e06027c1798ac36775305ff | /LeeCode/topic575/python/topic575.py | 5dbedfc04f4cc9fa5df6110fa5aab30da4507267 | [] | no_license | zabcdefghijklmnopqrstuvwxy/leecode | 7f261dfde880f4755cf3b35b0ca08b36025cd5e9 | 35018a3e0506a77d425d0aff6a1c50bfa67afeaa | refs/heads/master | 2023-03-07T06:27:51.292041 | 2023-02-26T03:50:34 | 2023-02-26T03:50:34 | 211,665,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | class Solution:
def distributeCandies(self, candies: List[int]) -> int:
return len(set(candies)) if len(set(candies)) < len(candies)//2 else len(candies)//2 | [
"sai14790085178@163.com"
] | sai14790085178@163.com |
1aab06356a5b872431d143f6f90ed5c62541a83c | fad681997737905b8f5f7be126cc74302069f503 | /Sudoku/Solver.py | e666976f27ecb047863c371154c90555d271a4ca | [] | no_license | jerdytjandra/JerdyTjandra_ComputationalMathematics2018_FinalProject | f5766a6f988701c55d05a916b9972b6041a39dcd | b64eeb978d0f20120b526ee72323de9b865a48ee | refs/heads/master | 2020-03-19T04:11:39.190755 | 2018-06-05T11:50:02 | 2018-06-05T11:50:02 | 135,804,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | def find_empty_location(grid, current):
for row in range(9):
for col in range(9):
if(grid[row][col][2] == 0):
current[0] = row
current[1] = col
return True
return False
def used_in_row(grid, row , num):
for i in range(9):
... | [
"noreply@github.com"
] | noreply@github.com |
9f944b69899522352c0060c3f4a975d4d14cda6d | cde99055d9b180e63e01e7230d142b0c83d74243 | /index_calc_0.3.py | db8815b4b88f02e707ad3ef23bdab56629654f85 | [] | no_license | ibobriakov/clickstream | bfbca5611fc9e5921fba6b765fbe01541ab262f4 | 7ac62c607dce1ff1cf8d5c05b68810f6bb0cb942 | refs/heads/master | 2021-01-25T12:14:18.330846 | 2014-06-25T06:52:20 | 2014-06-25T06:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,562 | py |
# coding: utf-8
# In[335]:
import pandas as pd
import fnmatch
import os
import numpy as np
# In[336]:
android = pd.DataFrame()
itunes = pd.DataFrame()
# In[337]:
for file in os.listdir('.\data'):
if fnmatch.fnmatch(file, '*android*.csv'):
fname = "data\\" + file
print "appending: " + fname
... | [
"bobriakov.igor@gmail.com"
] | bobriakov.igor@gmail.com |
8d6daaa7554f3704a12d3df4f8a956e1c910f1cc | 027086eff4acaf865f0cf3786a2093f8f8088e46 | /OpenCollegePro/module/Cluster.py | 6a1b48260e9d250df6e117a7447bb8840767f33b | [] | no_license | pxz000git/OpenCollege | c44236b9987e762116f418b7fc209d2eb22d4b31 | da7b0fffa1662a1affad0b5fca4b02246969e969 | refs/heads/master | 2021-05-03T11:18:55.362285 | 2018-03-06T04:06:04 | 2018-03-06T04:06:04 | 120,548,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
# autho:pxz
from pyspark.sql import SparkSession
def spark_context():
spark = SparkSession \
.builder \
.appName("myApp") \
.config("spark.mongodb.input.uri", "mongodb://175.102.18.112:27018/OpenCollege_kw.art2vec_syn") \
.config("spark... | [
"pxz015@163.com"
] | pxz015@163.com |
609b88845909ba5d98028e29508d62209ad9e6bd | 33db7d03970bf12a2e15d256cc4b9b3f7773ca4d | /numsp.py | ffb1932214520ffcc82e6dc73882394f2c622108 | [] | no_license | preethika2308/code-kata | 7f57baeda030eebc4713519d9b94d0c8aafb91ec | 6b9ef096bfb4d46055575af201813ca928b00118 | refs/heads/master | 2020-06-03T03:01:38.693920 | 2019-07-06T02:22:37 | 2019-07-06T02:22:37 | 191,408,292 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | input_string = input()
coun = 0
for s in input_string:
if s.isdigit() == True:
coun = coun + 1
print(coun)
| [
"noreply@github.com"
] | noreply@github.com |
094154e1bdcc4fe286692401721c016cf778e4f5 | 2228333066709d365d4e59f7ea4e43fe0a2e8b37 | /loja/migrations/0014_pedidos_quantidades.py | 31ea459288fde4164c474e87e7ad365ec457e90a | [] | no_license | MathiasDias/paes_tania | 759f159eb3411d4ed204413b3cddd3d9f2416a9b | 13f24302689f8d9ede9e2675c52696f6db08a440 | refs/heads/master | 2023-01-24T05:00:01.889325 | 2020-12-09T16:14:16 | 2020-12-09T16:14:16 | 274,463,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.0.5 on 2020-07-02 17:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loja', '0013_userprofile'),
]
operations = [
migrations.AddField(
model_name='pedidos',
name='Quantidades',
... | [
"mathias.gadias@gmail.com"
] | mathias.gadias@gmail.com |
a4f8110f6f05523eaa4cf4d211ae35fa5e01ed6e | 5f61a5738f7c253c3696eb78cb8fe8f448824733 | /tests/unit/test_fixtures.py | b4da5a15c51ae33e2f68992a2b1f9f7864fca60a | [] | no_license | JuanBer/PyTestBook | 8986779471a3598a068466a4bad60c7343e57b9a | 6ef5843da58f3f7dd872527d8e5d23eb9a67cb23 | refs/heads/master | 2020-04-26T19:13:52.735648 | 2019-03-17T23:50:17 | 2019-03-17T23:50:17 | 173,767,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import pytest
@pytest.fixture()
def some_data():
"""Return answer to last question"""
return 42
@pytest.fixture()
def some_other_data():
"""Raise an exception from fixture."""
x = 43
assert x == 42
return x
@pytest.fixture()
def a_tuple():
"""Returning something more interesting"""
... | [
"jm_bertoni@yahoo.com.ar"
] | jm_bertoni@yahoo.com.ar |
6d9ae5d1e897d019452dba963fae79bc1ac70972 | 94d006caa0abbfd2b4602f8698580af38bf6534d | /todo/models.py | dfe434060f7acbcd4e271e2d15727697646ce6de | [] | no_license | anas4488/django_todolist_freecodecamp | fc0e3b6bbd5fd6286ed91b761e62f4771d67b23f | 441a0f28752bbee253fe5855c26a40abea955ee2 | refs/heads/main | 2023-04-01T11:48:57.624790 | 2021-04-12T06:14:31 | 2021-04-12T06:14:31 | 356,867,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.db import models
# Create your models here
class Todo(models.Model):
title = models.CharField(max_length=1000)
def __str__(self):
return self.title | [
"anassayed63@gmail.com"
] | anassayed63@gmail.com |
9273c39ec8598daef4fda559c0c6b1c84d56a0bf | 29bb6f76bff9a9c40d5ca8176d94a5f57e331f0b | /backend/translations/migrations/0015_auto_20210616_1104.py | 0b5169906dc44bf6ea37656dac0e79370fd2dca3 | [] | no_license | zetkin/translators-interface | 697f320ed3e7bf737ebbe2a7ef58ffdba6c245b1 | efa525e76f36d05d7ee2ec10d17b679c97355ada | refs/heads/master | 2023-06-05T09:27:40.923506 | 2021-06-28T11:31:47 | 2021-06-28T11:31:47 | 363,886,140 | 1 | 0 | null | 2021-06-28T11:31:48 | 2021-05-03T09:58:34 | Python | UTF-8 | Python | false | false | 691 | py | # Generated by Django 3.2 on 2021-06-16 09:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('translations', '0014_auto_20210611_1148'),
]
operations = [
migrations.AddField(
model_name='translation',
name='delet... | [
"eribloodlust@grrlz.net"
] | eribloodlust@grrlz.net |
e05a1a54e6e39d37cc0f1f6579fe22cb3f50df22 | d0ce596ce34a3ec8b3c20e6594dd4ad6ad321d53 | /followunfollow.py | a5d51f00adb368a4421a5c942eafb5e6dc956db7 | [] | no_license | scottyallen/instafan | 6174077f2ddcfc6634d257da789c2e5669e7f1ec | a921c8a0cc7c8a129c2cd44ba2874d4251ea88e4 | refs/heads/master | 2021-01-12T08:02:23.888803 | 2016-12-22T08:31:53 | 2016-12-22T08:31:53 | 77,108,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | import datetime
import json
import random
import sys
import time
from selenium import webdriver
import instagram
import utils
import gflags
gflags.DEFINE_string('credentials', None,
'Login credentials. Filename for file with USERNAME= and PASSWORD= on separate lines')
FLAGS = gflags.FLAGS
def... | [
"scotty@scottyallen.com"
] | scotty@scottyallen.com |
7fa22c168188a99368332d49c68e039d9a147a2b | 4c72e1817245404aeb7caa6be70bdbbacb574053 | /exerciciosCev/Mundo 3/Aula 17/081.py | af84c8df260ba757c0503072626639af8d50d390 | [] | no_license | Viniciusadm/Python | 9b88e1dc626346661ac6a43fc5e9ca9d12fa6610 | 9ee066c99a0f0cbf00865cd82ea61b2464afa425 | refs/heads/master | 2021-09-25T15:31:04.159070 | 2021-09-16T02:28:47 | 2021-09-16T02:28:47 | 251,954,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | numerosLista = []
cont = 0
while True:
numerosLista.append(int(input('Digite um número: ')))
resposta = str(input('Você deseja continuar? [S/N] ')).upper()
if resposta == 'N':
break
numerosListaContrario = sorted(numerosLista, reverse = True)
print(f'Você digitou {len(numerosLista)} elementos')
p... | [
"viniciusam.22@gmail.com"
] | viniciusam.22@gmail.com |
f6d7fbc403d0e1a6e8c96270631e6613f7065501 | 7f17c66a7bfdd93877af8f4d1f2dc377cc5ef5ff | /ceph_pool_plugin.py | 0c7d2afbcfe8a233c786b8e2e608deb425fd7fd2 | [] | no_license | ksingh7/ceph-collectd-plugin | 4910b381b3854e66821b87d3d9a2472f5c6863cd | ebaa708769e02d79c9c9bf484d54abde345825a8 | refs/heads/master | 2020-12-25T13:44:53.294780 | 2016-06-04T00:31:36 | 2016-06-04T00:31:36 | 60,381,525 | 2 | 4 | null | 2017-06-06T16:18:29 | 2016-06-03T22:32:52 | Python | UTF-8 | Python | false | false | 4,601 | py | #!/usr/bin/env python
#
# vim: tabstop=4 shiftwidth=4
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; only version 2 of the License is applicable.
#
# This program is distributed in the hope th... | [
"karan.singh731987@gmail.com"
] | karan.singh731987@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.