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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20b37347f698040545ecd1e4a30cb8904bbafe5d | e7a9e0cf15653917550cc66b46a6186495662828 | /setup.py | 9f41eadfe9a0df0a643da3b6f918d1e00f12e0ff | [
"MIT"
] | permissive | paddymahoney/setuptools-antlr | b939020cbba038120c24f803e9aca3f8fb896efc | fc63c1b372d4fc5fd056b3f64b5c271dc49e0a27 | refs/heads/master | 2020-03-19T00:16:50.004848 | 2018-05-27T13:59:14 | 2018-05-27T13:59:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | """Setup script for setuptools-antlr."""
import sys
import setuptools
# need to guard script here due to reentrance while testing multiprocessing:
if __name__ == '__main__':
needs_pytest = {'pytest', 'test', 'ptr'}.intersection(sys.argv)
pytest_runner_opt = ['pytest-runner>=2.0,<3dev'] if needs_pytest... | [
"ferraith@gmail.com"
] | ferraith@gmail.com |
fbc6323c971bfc05403d49f31975f0959e172e9e | ae8a1d8f23ed08fcc14ecc9a6651cd738790ac00 | /tests/func/test_fetchdata.py | a4f6b1013135688f78c6a4ae54adee32aeb7ddcd | [] | no_license | murakami10/crawling-naist-lecture | 438ef9a6311630178641d2534b553e6ba20a8b5b | 7e4345983f452f20e9ba03495c42b2e922cb56f7 | refs/heads/main | 2023-05-19T10:45:34.863849 | 2021-06-08T09:17:47 | 2021-06-08T09:17:47 | 367,010,980 | 0 | 0 | null | 2021-06-08T09:17:48 | 2021-05-13T10:16:51 | Python | UTF-8 | Python | false | false | 4,696 | py | import threading
import time
from http.server import HTTPServer, SimpleHTTPRequestHandler
import pytest
import requests
from src.crawling_naist_syllabus.fetch import FetchData
from src.crawling_naist_syllabus.structure import Lecture
@pytest.fixture(scope="session")
def fetch_and_save_syllabus_html(tmpdir_factory):... | [
"m.kyoya777@gmail.com"
] | m.kyoya777@gmail.com |
d799c4acc7818e721ded896db9892a2d35873e8a | 333b85f4b15ec34faf3dc17636952884bf400787 | /ui_process.py | 00d265d3ef4a9e2dbab5db829effaa9bef4514e5 | [] | no_license | lidashuangok/opencv_makeup | 2a8a7cb8c00908b13ef411d163fff02f209cc092 | e39e609717ffe56efce96941c0096fa5c42e7c90 | refs/heads/master | 2020-05-23T23:35:27.639992 | 2019-05-16T09:38:28 | 2019-05-16T09:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,869 | py | # !usr/bin/python
# Author:das
# -*-coding: utf-8 -*-
from face import Ui_Dialog
from PyQt5 import QtCore,QtGui, QtWidgets
from PyQt5.QtWidgets import QFileDialog
import cv2 as cv
import numpy as np
face_cascade=cv.CascadeClassifier('haarcascade_frontalface_alt.xml')
eye_cascade = cv.CascadeClassifier('haarcas... | [
"noreply@github.com"
] | noreply@github.com |
ba09a1cc387f099788aa223d8debc0ebe5a146f7 | ff04e529b66fa6bcf32a9531535b1784bc3e118a | /app/forms.py | 6e56b60f923a651509553a7458997cfd92915334 | [] | no_license | adidam/doctorslog | aeae839c35218cb7a266411a1f51c5011673c364 | 435b846fe897d280571615a6ef328dedbcfa6565 | refs/heads/master | 2021-01-18T12:16:44.371489 | 2013-07-05T22:09:59 | 2013-07-05T22:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,538 | py | from django import forms
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django.forms import ModelForm
import re
from app.lookups import UserLookup
from app.models import ProfilePicture,UserPosts, Comments, StatusComments, StatusUpdates, Spam... | [
"prakash@LT009217.(none)"
] | prakash@LT009217.(none) |
b3d93a0f51a77a3d6dc44538c95e1ed5c3151ddc | 42403faf2ddc59c11f5ffc04a016f4faf9b26e7e | /horse/apps.py | 633a14783bf5bf496259fc52f562a6ad7cf470d7 | [] | no_license | stephen-a-barry/project-three | 5226b40080fdb6fbe73316982e3b73ccdc0b78f9 | ced814297f5efc774abe01b4f2feb372d3852a09 | refs/heads/master | 2021-01-20T12:55:51.525293 | 2017-05-06T01:33:45 | 2017-05-06T01:33:45 | 90,426,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class HorseConfig(AppConfig):
name = 'horse'
| [
"stephen.andrew.barry@gmail.com"
] | stephen.andrew.barry@gmail.com |
e8e687ac18f3cd5f4b32942b6aa49cc4d14996d6 | 02b9b15ce50b88828a8a249f0f115c72f6652d0c | /IO_exercise.py | a366e2a03dde709b753878db595b75875bbc43a9 | [] | no_license | YuhaoWANG47/input-output-analysis-tools | d7135aefa6287f02b6f8c288bc636e8d5ed0a249 | c59ccb39113fc2e53971665aac0b22cfa69e6200 | refs/heads/master | 2022-09-04T12:41:06.434469 | 2020-05-27T16:37:23 | 2020-05-27T16:37:23 | 267,372,204 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | import numpy as np
import IO_basic_function as IO
import IO_commodity_industry as SIOT
import IO_2Regions as IO2R
import IO_energy as IOE
# HW 1-4
A = [[1/8, 0, 1/4], [0, 1/8, 1/4], [1/6, 0, 1/6]]
Y = [50, 30, 20]
IO_1_4 = IO.IO(A, Y, 'A', 'Y')
print(IO_1_4.X)
print(IO_1_4.B)
# HW 2-3
Z = [[225, 600, 11... | [
"noreply@github.com"
] | noreply@github.com |
eac9f368e84b479def5f75232b6152e49a16a0b3 | 43ea15f44631d2317aaf41f47ef4cdfc0818be8b | /Weblamp_Server/weblamp.py | e813afa9fe8f887d75ce9d917a2fb32d7c76ff38 | [] | no_license | TheRealEdDawson/IoT_Lamp | 459f6e1045f12d4ad6aaad3388db1324f946c9f2 | 6bb50d2a8058d7d2d859044b5ca34cad6a7470b6 | refs/heads/master | 2020-12-24T18:12:38.598774 | 2015-03-13T02:18:20 | 2015-03-13T02:18:20 | 29,416,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | import RPi.GPIO as GPIO
from flask import Flask, render_template, request
app = Flask(__name__)
GPIO.setmode(GPIO.BCM)
#GPIO.setmode(GPIO.BOARD)
# Create a dictionary called pin to store the pin number, name and pin state:
# 24 : {'name' : 'coffee maker', 'state' : GPIO.LOW},
pins = {
23 : {'name' : 'la... | [
"edwin.dawson@gmail.com"
] | edwin.dawson@gmail.com |
e5dfdc4c092bc5518089553404c175f96dafac58 | 5003e6efbd5cfa9ac1d130b55845be6c718f99c7 | /lotto/migrations/0023_auto_20171123_2255.py | da3dca17589b8e989955899bbf524c363f667e1c | [] | no_license | kkmh/django_lotto | d1f49a8ee7c31adc1e375102568bfbf9bcc13a54 | f33944721071a4d83d1e80731370e4614119e5b2 | refs/heads/master | 2020-12-28T13:13:17.057031 | 2018-01-07T17:09:27 | 2018-01-07T17:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,974 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-23 13:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lotto', '0022_auto_20171123_2254'),
]
operations = [
migrations.AlterField(... | [
"neverfail03@naver.com"
] | neverfail03@naver.com |
3da455ce52d458b4773c267e53ec63b5dda4a8eb | 4f6a7ce9a2486a00810bda17c0230667440fbef2 | /busbooking/city/forms.py | 998eb80e37833a8aced4e3f9924f09b57bfa4263 | [] | no_license | vkit/busbooking | 0c71fca68911fd9c9d710bf0a3cb2cc5d425d643 | 2f6d84a5370b52a61ce0ba44f13113974812c964 | refs/heads/master | 2021-07-19T22:15:03.181331 | 2017-10-27T13:51:18 | 2017-10-27T13:51:18 | 108,551,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from django import forms
from .models import CityDetails
class CityForm(forms.ModelForm):
class Meta:
model = CityDetails
fields = ('fromcity', 'to', 'date_of_journey', 'return_journey')
| [
"noreply@github.com"
] | noreply@github.com |
f0e322df0b49843a3c0f900b8e7517b490b67e05 | 897943057b50258cd5fdabdc3450bfd6b6e009b2 | /def_func_001.py | 53fb64938a0d29a84c0d31a457cc5951c721736b | [] | no_license | fnqn/lphython27 | 6b9a1f8c55b5dcb9d81fa84de13deaf97bbfe101 | d794dc523f84d87e218082a49760d5d26fa58c04 | refs/heads/master | 2021-01-10T11:28:59.472879 | 2016-02-21T14:09:31 | 2016-02-21T14:09:31 | 47,382,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
####define mix parameters###
def func(a, b, c=0, *args, **kw):
print 'a =', a, 'b =', b, 'c =', c, 'args =', args, 'kw =', kw
print func(1,2)
print func(1,2,c=3)
print func(1,2,3,'a')
print func(1, 2, 3, 'a', 'b')
print func(1, 2, 3, 'a', 'b', x=99)
args... | [
"news.frank.zhang@gmail.com"
] | news.frank.zhang@gmail.com |
647fa850dcac00ce5a11b3d50c75205e799816d4 | 747c3405fa55e966421478eee7ff5ef171c2147a | /polls/models.py | 3f608e98af5f8b84ab88c48bf2950b604eb91bb8 | [] | no_license | mraghbeer/My-First-Blog | 2a7009e63a75642673a87e66042e27fd8311d498 | 895ebfd1b6799f54fb5e6913999e316f3b7cdf3f | refs/heads/master | 2020-12-29T01:11:22.810244 | 2016-08-23T16:14:47 | 2016-08-23T16:14:47 | 65,850,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from __future__ import unicode_literals
import datetime
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils import timezone
class Question(models.Model):
question_text = models.CharField(max_length=200)
pub_date = models.DateTimeField(... | [
"mraghbeer@gmail.com"
] | mraghbeer@gmail.com |
809258fbebe5a4d58326b515a82977274a9a9cba | 0bcd128368e2de959ca648960ffd7944067fcf27 | /infra/bots/assets/protoc/create.py | e363cc5068230dadf10809450d4bff5a04c530b9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google/skia | ac6e39179cd33cf0c8a46d29c1a70bf78b4d74ee | bf6b239838d3eb56562fffd0856f4047867ae771 | refs/heads/main | 2023-08-31T21:03:04.620734 | 2023-08-31T18:24:15 | 2023-08-31T20:20:26 | 15,773,229 | 8,064 | 1,487 | BSD-3-Clause | 2023-09-11T13:42:07 | 2014-01-09T17:09:57 | C++ | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python
#
# Copyright 2017 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Create the asset."""
import argparse
import subprocess
ZIP_URL = ('https://github.com/google/protobuf/releases/download/v3.3.0/'
'protoc-3.3.0-... | [
"skia-commit-bot@chromium.org"
] | skia-commit-bot@chromium.org |
226f6da13f11d8c831abfad5f9b926be152958cd | 7d3a5eed7ffa50518cbc8217853954bb9d75e0b6 | /09/IN/Resenja/zad2/Kvadrat.py | 29badebbd3cb5e576a77efbc483a4f04ea31ff0a | [] | no_license | Mladjenovic/Object-oriented-programming | 93a0aa615ca92d29bc7d55e39c921c33e5939099 | fe69a60ba078060c9ed8b8affb8855e4bad19f69 | refs/heads/main | 2023-04-22T22:34:13.744594 | 2021-04-29T07:44:26 | 2021-04-29T07:44:26 | 362,730,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 17 10:42:07 2018
@author: Marko
"""
from Pravougaonik import Pravougaonik
class Kvadrat(Pravougaonik):
def __init__(self, a):
super().__init__(a, a)
def setA(self, a):
super().setA(a)
super().setB(a)
def setB(self, b):
... | [
"mladjenovic.cvijetin.com"
] | mladjenovic.cvijetin.com |
154bb8fc3ec4ecff7d4664dd60a36d89d9e9c287 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/abc/abc034/d.py | 39cae32435a6c76186d919f097f04446d71aa1b3 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
N, K = map(int, raw_input().split())
w, p = [], []
for i in xrange(N):
wi, pi = map(int, raw_input().split())
w.append(wi)
p.append(pi)
wp = [[1.0*p[i]/w[i],i] for i in xrange(N)]
wp = sorted(wp, key... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
3bace174bfb11cc84ac1de4c0a142a16e80e8ed7 | f7447239dc053fd13d3c5f885ba6312a2b78c67b | /Sample_code/SMS Tests/SMS_Test.py | 9e84659081d7da2d6e4090a42646963901f06c33 | [] | no_license | sreece52/remoteroomalerts | 3fecb67bb650e88a6862667d317816094e85e7de | 973644c666c045224e6ffe59357e1d22d60adb74 | refs/heads/master | 2020-09-20T19:20:09.599625 | 2017-04-17T22:26:03 | 2017-04-17T22:26:03 | 67,724,284 | 1 | 2 | null | 2016-09-16T04:36:14 | 2016-09-08T17:16:18 | Python | UTF-8 | Python | false | false | 1,502 | py | """
This program sends an SMS message to any cell phone
using Gmail's SMTP gateway.
"""
import smtplib
# Establish a secure session with Gmail's
# outgoing SMTP server using your gmail account
server = smtplib.SMTP("smtp.gmail.com", 587)
# Puts the SMTP connection in TLS (Transport Layer Security Mode
# All SMTP com... | [
"brandonbabcock3@gmail.com"
] | brandonbabcock3@gmail.com |
38682846174ebf28907dec0acc8e91a95e9ba82b | 39d5ab0e89db80c02a39323f7c361335a4951ce0 | /http协议/返回固定页面的http服务器.py | 6e1468da08d1d91bb32db4f22d02269e6e80c295 | [] | no_license | JZY11/card_manager | ec6a34b6f21fd3190532dc81616138005894007e | 9425f1243c678ced90d6bf011babe5763aa0fe31 | refs/heads/master | 2020-04-04T23:08:16.190359 | 2019-06-25T06:14:17 | 2019-06-25T06:14:17 | 156,348,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | import socket
import re
def service_client(new_socket):
"""为这个客户端返回数据"""
# 1. 接受浏览器发送过来的请求即http发送过来的请求
# GET / HTTP/1.1
#......
request = new_socket.recv(1024).decode("utf-8") # 服务器对接收到的客户端发送过来的请求进行解码
# print(request)
request_lines = request.splitlines()
print(">" * 20)
print(req... | [
"1291813139@qq.com"
] | 1291813139@qq.com |
1618a929ae16e05df32674e09e3847394c55aeb1 | 1dde2ae19e8c50a6c49ac1929ef4f0d7948fc47b | /sorting/269_alien_dictionary.py | d1f89e9cd2b933fa677b80072496f8dd8b059177 | [] | no_license | ryanSoftwareEngineer/algorithms | 694786e970e99120bdd94ca5722ad91aed846589 | 9dbff6f4a40ba99c7310966e63f66e14174bdb61 | refs/heads/master | 2023-04-21T10:09:30.683266 | 2021-05-13T02:55:30 | 2021-05-13T02:55:30 | 330,536,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | '''
https://leetcode.com/problems/alien-dictionary/
There is a new alien language that uses the English alphabet. However, the order among the letters is unknown to you.
You are given a list of strings words from the alien language's dictionary, where the strings in words are sorted lexicographically by the rules of t... | [
"ryansoftwareengineer@gmail.com"
] | ryansoftwareengineer@gmail.com |
81d7b47bbfe39009a6c75b382323c8d1203263a6 | 2b79b62ea5fe0feed1600e8280bf951132f2b89a | /jogos/venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_internal/utils/compat.py | 2bcba41f300b84b38904fe12bddaf26453e2d3a2 | [] | no_license | gbbiancardi/Python | b58565b0878848274037637c1c50da5d355b9edb | 1ce30af0240a5343e976351b06eb2b528f1badb7 | refs/heads/master | 2020-08-02T03:15:45.164432 | 2019-10-17T23:25:08 | 2019-10-17T23:25:08 | 211,218,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | """Stuff that differs in different Python versions and platform
distributions."""
from __future__ import absolute_import, division
import codecs
import locale
import logging
import os
import shutil
import sys
from pip._vendor import text_type
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_R... | [
"g.bbiancardi@gmail.com"
] | g.bbiancardi@gmail.com |
3934a0510f07e80135d2e5646222dca7c9be0da2 | 75ec112ee628f05b1b859b2cad44240c9342a2dd | /Analysis/run26_Tscatter2.py | 7bab6123d4b055c53245602f4a37e44fce57e32a | [] | no_license | DJRumble/PHD | bf3f2731738ddd4880ef3cb1ae38b65dda1a48f9 | 71f2863c9ab70c6727e951afd3c41ab0752465e3 | refs/heads/master | 2021-01-17T06:14:50.358427 | 2016-07-19T14:11:20 | 2016-07-19T14:11:20 | 46,721,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,846 | py |
import numpy as np
from pylab import *
from scipy import stats
import matplotlib.pyplot as plt
import slfit
def line(intercept,slope,x):
X = np.array(x)
y = (slope*X)+intercept
return y
def dust_temp(a,d,Lx):
Go = 2.1E4*(Lx/(10**4.))*((0.1/d)**2.0)
Td = 33.5*((1.E-6/a)**0.2)*((Go/(10**4.))**0.2)... | [
"damian@astro.ex.ac.uk"
] | damian@astro.ex.ac.uk |
025a6f582d75ad70e4907d416234fcc4022ee584 | f675b1d95285b743cbc5825500c6000709cff64c | /newapp/migrations/0001_initial.py | 99d39e692de490aa35ed92eb308f5e42c48955ae | [] | no_license | SeniorFlacko/ArticlesDate | e95086560d199826fb8a8d420afcff7aefd18091 | afedf9d55a9c7488770a6704e91e2ec184e34f9a | refs/heads/master | 2021-01-20T15:19:41.774267 | 2017-05-09T14:31:55 | 2017-05-09T14:31:55 | 90,755,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-30 17:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article'... | [
"cristianalemanfuentes@gmail.com"
] | cristianalemanfuentes@gmail.com |
01fcec7760c05ab10eb738d95df70e642d7120ea | 066aa060a6e36f8777795d13949ee156e467f503 | /2018/RCTF2018/simplevm/exp.py | 3eb35600b89cd5cbedcf90b641f95eabdfe1ee61 | [
"MIT"
] | permissive | add01w/ctf | fb6146f468ced1fe03c0da9959dddaefba773e43 | 16c47f3ba620fff1946ab075af33a7cdcfd7db96 | refs/heads/master | 2020-04-03T05:22:59.286552 | 2018-10-25T20:13:22 | 2018-10-25T20:13:22 | 155,043,700 | 1 | 0 | null | 2018-10-28T06:54:41 | 2018-10-28T06:54:41 | null | UTF-8 | Python | false | false | 371 | py |
def trans(x,y):
return (x&y)^0xffffffff
table='\x10\x18C\x14\x15G@\x17\x10\x1dK\x12\x1fIH\x18ST\x01WQS\x05VZ\x08X_\n\x0cX\t'
def recver(x,x140):
x143=x
x141=trans(x140,x)
x142=trans(x141,x140)
x144=trans(trans(x143,x141),x142)
return x144
s=""
for p in range(0x20):
x=0x20+p
for i in range(0x100):
if recv... | [
"hzshang15@gmail.com"
] | hzshang15@gmail.com |
028fd3b59366f1017eddc45a58e8bd4318f73214 | dcc729bb49567fd0ca2eabba0a749ef81a12c376 | /ValidWord.py | 85909176cd63187eea0e14ee83fa238b3b44d0ae | [] | no_license | kkorolyov/algorithms | 512f0b9e6693df4b4ddae1a55c3f571ad3d56d63 | effd1457396e651eb0cec72ed1c534f031a0c7e2 | refs/heads/master | 2020-12-13T11:25:08.314689 | 2017-05-16T02:19:05 | 2017-05-16T02:19:05 | 83,632,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | def main():
word = input().strip()
print("Yes" if valid(word) else "No")
def valid(word):
word = word.upper()
vowels = {"A", "E", "I", "O", "U", "Y"}
for i in range(1, len(word)):
if (word[i] == word[i - 1]) or (word[i] in vowels and word[i - 1] in vowels):
return False
return True
if __name__ == "__mai... | [
"kirillk753@gmail.com"
] | kirillk753@gmail.com |
874a61ad25e6f5e3fb13dfdfa02f814cebfc737b | 631847fafbcfa07bf33eee078d9b59b464ce4b50 | /optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum3000/Output/Histos/MadAnalysis5job_0/selection_8.py | 63a5075a9c405cdb0b8114324ea73fc498ae8bb1 | [
"MIT"
] | permissive | sheride/axion_pheno | 7b46aeb7cc562800d78edd9048504fdbc0f5fa42 | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | refs/heads/master | 2021-07-01T08:47:59.981416 | 2021-02-03T23:03:50 | 2021-02-03T23:03:50 | 219,261,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,794 | py | def selection_8():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.lin... | [
"elijah.sheridan@vanderbilt.edu"
] | elijah.sheridan@vanderbilt.edu |
5982226ec1a45a7ebd9ed85ba1717841c71c3630 | b2ad1c004f40c3daad3236185302a8f01310e06b | /babyname.py | 64d95f018e73ea7fb4d0a7a8dc210da78bf743d6 | [] | no_license | yuzhiquan/BabyName | 405688c119cbd745fb6bcd351f837b4b2bb8c25b | 1418c1c2a90c7f008c31470493ac1fc5770541f4 | refs/heads/master | 2021-05-16T08:23:56.787651 | 2017-09-19T10:33:10 | 2017-09-19T10:33:10 | 104,061,238 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | # coding:utf-8
import os
import random
import time
import requests
prefix = "于"
sex = "male" # or female
dict_path = "./dicts"
api_url = "http://route.showapi.com/1026-2"
app_secret=""
appid=""
def make_baby_name(single=True, sex="male"):
sex_str = "boys" if sex == "male" else "girls"
name_count = "single" ... | [
"yuzhiquanlong@gmail.com"
] | yuzhiquanlong@gmail.com |
533a91d60926edf6f0aba6c93456e5854d8d9f50 | 5b9e70d576358695786b3d37d41bb6443e132e84 | /django_project/src/constants.py | ee16dde8f5a5d3daf6496860b0b4c38e8fa6adee | [] | no_license | Pratikkroy/important-stuff | 8961e65422a47978ea2fe0c660b89a9a35aed1a6 | 0ea5fa6e475ee32bafe8a3064474632430c9db98 | refs/heads/master | 2023-01-13T06:47:31.706079 | 2020-11-19T15:39:35 | 2020-11-19T15:39:35 | 236,268,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | class UserStatus:
ACTIVE = 'ACTIVE'
class UserGroups:
ADMIN = 'ADMIN'
MEMBER = 'MEMBER'
class Teams:
DEFAULT_TEAM = 'DEFAULT_TEAM'
class LoginType:
EMAIL = 'EMAIL'
PHONE = 'PHONE'
class UpdateCredentialsType(LoginType):
PASSWORD = 'PASSWORD' | [
"roypra@amazon.com"
] | roypra@amazon.com |
13b87f4c8ec89a56f8dc3e87c3df0cc6b9ab4c6f | 06ceb6fed05af1416031616936d0a0ec891032fa | /seriesus/__init__.py | f8ae63570bc255e98b83aa7445d349d6113a2d19 | [] | no_license | groves/seriesus | 3d466685496b0f8524151bff8037fbec0d0999c7 | d7e8781d284e5841d42e6b8fe0db959f85db4a6c | refs/heads/master | 2020-06-06T02:09:29.303603 | 2009-07-05T07:14:51 | 2009-07-05T07:14:51 | 173,760 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | import wsgiref.handlers
from google.appengine.ext import webapp
import service, views
application = webapp.WSGIApplication(service.urls + views.urls, debug=True)
if __name__ == '__main__':
wsgiref.handlers.CGIHandler().run(application)
| [
"charlie.groves@gmail.com"
] | charlie.groves@gmail.com |
13b9171f24990f1bce23cccc8caf0967d42f242b | 872269dc49bf9de4063f7549a79457b8043a4bba | /scraping_service/urls.py | 073c008c21c3fa2c758c20ad777d8cb2fb056f12 | [] | no_license | OMAY/scraping_service | 8a7c68b68304b89a06715004f362f003e34eb365 | 03a4f183f627d060c491b99a946c4213a6da0377 | refs/heads/master | 2023-07-17T17:44:26.049219 | 2021-08-31T07:18:09 | 2021-08-31T07:18:09 | 400,181,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | """scraping_service URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"mayvaldoff@gmail.com"
] | mayvaldoff@gmail.com |
11415f32b0fead31eb079e3b857c79c3789a36c2 | 95ace652acacea02f43ba82f8921d33f6fe20cf4 | /day01 初识Python/11 数据类型.py | 92da687271ac60c13c4dc74de971a33768435e3f | [] | no_license | 15271856796/python_study | fe90621cf980b5e2a1d753aaeee12b605212988d | 686711e56f47bb9f275ffdd3c773d6afa6ad48f2 | refs/heads/master | 2020-06-19T11:11:00.751360 | 2019-08-20T07:53:29 | 2019-08-20T07:53:29 | 196,688,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py |
# 1 整型 用于基本计算 int("10") str(10) bool(10)
# 2 bool型 用于判断语句
# 3字符,字符串 ①字符串的索引:从0开始,a="我是何睿,我最优秀" a[3]='睿'
# 索引也可以倒着数,那么最后一个元素是-1,即a[-6]='睿
# ②切片:a[3:7]='睿,我最' 顾头不顾尾,且默认从右往左切
# a[-7:-2]='何睿,我最'
# a[... | [
"15271856796@163.com"
] | 15271856796@163.com |
c72b8b73311cc3d3bad1df449bb796c35b90e76b | a0fb0a38ba28406399cf502ad302bbe68982698f | /Oladokun_Shakirah_FP/Transactionitem.py | ca72ac3c83ca35c45de0b3f6f467f0b23330ef89 | [] | no_license | shakirahola/Retirement-account | 15c16091e70d89c52458c81787c27d8519d3b0ef | 4d0ea472709efaf848edf8de083e7a55868090ad | refs/heads/master | 2023-02-27T22:04:59.512993 | 2021-01-19T06:02:16 | 2021-01-19T06:02:16 | 311,070,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | # Author : Shakirah_Oladokun
# Assignment number & name: Final Project
# Date : July 2020
# Program Description: Problem Solving and programming
#The TransactionItem class holds data fot ID,name,quntity and price
class TransactionItem():
#Initialize the data attribute
def __init__(self):
self.__id = 0
... | [
"69004363+shakirahola@users.noreply.github.com"
] | 69004363+shakirahola@users.noreply.github.com |
c8c4f725094964afc5188f8c40706a18a1b80a7e | e509da6081ebace6d48fcaf6438b113745a941a7 | /2020_3_18/venv/Scripts/easy_install-3.7-script.py | 5703c03895f489fad7cc01c049101af1854503fd | [] | no_license | bopopescu/PythonHomeWork | 41c801e78f934c886c1c986ca50f360832e28c33 | 1b5623deff1ce66593c0bb9d25b719888a51eaec | refs/heads/master | 2022-11-20T16:17:26.441881 | 2020-07-12T09:20:54 | 2020-07-12T09:20:54 | 281,798,813 | 0 | 0 | null | 2020-07-22T22:51:14 | 2020-07-22T22:51:13 | null | UTF-8 | Python | false | false | 460 | py | #!C:\Users\NsZoth\PythonHomeWork\2020_3_18\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.p... | [
"2367018272@qq.com"
] | 2367018272@qq.com |
fd94c8624e3ec245e0afe4ca4ebd2eee02329def | fff6286dfff0bf7ebbbfd50d72bad28fe2a8a8d5 | /cifar-100_pooling/maxpooling.py | 058c5101d759990a976fff0e2cdf969b4265c1df | [] | no_license | TyjChristy/Honours-Project | e3ed2fef52e10e4bc7d72d56c34c2273e35744a2 | 49edd2b546beba75c0f83f3f619002ae6f3069c8 | refs/heads/master | 2023-01-06T14:55:56.249173 | 2016-10-25T16:00:16 | 2016-10-25T16:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,427 | py | '''
maxpooling.py
Author: Adam Swart
Creates CNNs that use max pooling for subsampling
'''
from pylab import *
import matplotlib.pyplot as plt
caffe_root = '~/bin/caffe-master/'
import sys
sys.path.insert(0, caffe_root + 'python')
import caffe
from caffe import layers as L, params as P
def cnn_elu(sname, batch_size)... | [
"swartadam@gmail.com"
] | swartadam@gmail.com |
1e3330a4c2e9cde05fdaf6c2da64ce628aaaa22c | 217a9e18ae456cdbe1a0e7e48323a4cc539fa2c6 | /finalproject.py | 6a5a92cb829da152659f473779c20762cebed0ec | [] | no_license | krishna-pandey-git/Restaurant2 | abe8658e3604bde0d5f21ed75f066afb3cdab631 | f40b4800e1bd23262edb28fec1bbb8f702372215 | refs/heads/master | 2021-01-10T08:34:29.546580 | 2015-10-22T18:54:29 | 2015-10-22T18:54:29 | 43,980,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,020 | py | from flask import Flask, render_template, request, redirect, jsonify, url_for, flash
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Restaurant, MenuItem, User
from flask import session as login_session
import random
import string
# IMPORTS FOR THIS ST... | [
"naveen.pnd@gmail.com"
] | naveen.pnd@gmail.com |
e3be526e46c189f22a9e4132e74705ff0049d20a | 5fed8f59037727c62e8876fb7a54efe2514f7c8c | /mysite/settings.py | c81a4469a1591062517c6caf45d9406c08a5bc95 | [] | no_license | joseant1234/polls_django_tutorial | 0566e44a1547847c270f9582d385225fbc2c7b1d | e9218f881d94a9bf5c37679a9690dc9692cd0779 | refs/heads/master | 2020-11-27T06:09:11.254029 | 2019-12-17T19:06:25 | 2019-12-17T19:06:25 | 229,333,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"j-osea-nt@hotmail.com"
] | j-osea-nt@hotmail.com |
d39d490a9b2f428cbec4549a2011f2fd7bd69a94 | 732347557d7ab7d2151a7e3b2bc84971f56ec597 | /myapp/migrations/0009_portfoliophoto_makeup_portfoliophoto_makeup_column.py | 102b0050e1cc563f1ef82305a6abe886f1af9451 | [] | no_license | SabaSiddiqi/nfmakeupstudio | 28c6b841ebad21c88226aef839c0902e674a22e9 | a4f4f88ca32eaff5328ab4dd9529ed3ab93808b6 | refs/heads/master | 2022-11-24T08:59:57.375288 | 2020-07-29T16:56:10 | 2020-07-29T16:56:10 | 283,553,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | # Generated by Django 3.0.2 on 2020-07-28 16:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0008_html_info'),
]
operations = [
migrations.AddField(
model_name='portfoliophoto_makeup',
name='portfolio... | [
"saba.siddiqi@durhamcollege.ca"
] | saba.siddiqi@durhamcollege.ca |
6c693a328866fd950c2e532bdc60f252140a20d1 | ea674dbc36cca7888d878139a4ca94a2a3114cd7 | /ch02/fibonacci.py | f4cf42f4f5345132ef8d94de074c40ae8b62f103 | [] | no_license | cashev/algorithm-study-in-Python | 5353ba3ae721d58791148f54b9716d1afc0510f3 | 9b94042b79f57bb31fb44f1b0e44fe96f8b3e0c9 | refs/heads/main | 2022-12-29T12:34:13.149450 | 2020-10-11T15:16:11 | 2020-10-11T15:16:11 | 302,348,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | memo = {1: 1, 2: 1}
def fibonacci(n):
fib = [1, 1]
for i in range(2, n):
fib.append(fib[i - 2] + fib[i - 1])
return fib[n - 1]
print(fibonacci(6))
| [
"42924021+cashev@users.noreply.github.com"
] | 42924021+cashev@users.noreply.github.com |
5293142db0238e500bc8e112bb402720c56a2c77 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/vse-naloge-brez-testov/DN5-Z-146.py | 9e28868b4bb26ff8e9f3184e25bbf744f394f63e | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | def unikati(s):
t = []
for i in s:
if i not in t:
t.append(i)
return t
def avtor(tvit):
a = tvit.split(": ")
return a[0]
def vsi_avtorji(tviti):
t = []
a = [i.split(': ')[0] for i in tviti]
for name in a:
if name not in t:
t.appen... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
e3249bbc5af06c3b35e1755bfa64b8190fe92739 | 0da998963a839c53066749a3be9d03a38683f0fa | /node_modules/websocket/build/config.gypi | 6893e409916ba6a6ae04dab1b4146c497dae5cad | [
"Apache-2.0"
] | permissive | ShreyaB8/MedX | 9c8bcd98cd63345047f24246f5d7641ba778721f | 9fbbdf74f68a46604c6c2f35a6b19503bbb36d5c | refs/heads/master | 2022-12-19T06:43:28.396300 | 2020-09-11T09:15:52 | 2020-09-11T09:15:52 | 289,757,793 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,016 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v142",
"msvs_windows_target_platform_version": "10.0.18362.0"
},
"variables"... | [
"Shreyaroxx777@gmail.com"
] | Shreyaroxx777@gmail.com |
df4e038e22cf3c270f1a3a8f824801053e8e7e99 | 075b5dcce9425a9f8ede35c1880ca87499b03774 | /codes/step2_neural_networks_final.py | d2963fdf318fcbbea54f82c1ff48ec4024530d63 | [] | no_license | santonetti/SIGMA_neural_network | 99ff2133ea1bb245a7d6a2daafdf122300e90b9c | aced65bf93f3c7c7c1b72c8ba2c52910153a1542 | refs/heads/master | 2021-01-30T05:47:43.463145 | 2020-02-26T14:50:13 | 2020-02-26T14:50:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 19 14:50:55 2020
@author: Sam
"""
import tensorflow as tf
from matplotlib import pyplot as plt
#plt.style.use('dark_background')
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Flatten, Activation, Dropout, Conv2D, Max... | [
"h.ternisiendeboiville@gmail.com"
] | h.ternisiendeboiville@gmail.com |
13c2e647a3bdb166163cad63af99d575dd761ed7 | 6ca80a27688f18a1f00dab63f9f06ded969ebff7 | /helpdesk_custom/models/attachment.py | b06fa2500ccfc6593fe7ebb11c203fe55b48175d | [] | no_license | babarlhr/gems_ab | 698251aaaeb9a9e89c9096a691a8b4bc10de5d4a | f14d97ad2c36143eca15009f5a3f57682f422898 | refs/heads/master | 2021-09-14T17:07:32.694757 | 2018-05-16T11:18:08 | 2018-05-16T11:18:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from odoo import models, fields, api
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
helpdesk_ticket_ids = fields.Many2one('helpdesk.ticket', string="Helpdesk Tickets") | [
"younis@odoo.ie@gmail.com"
] | younis@odoo.ie@gmail.com |
5cc8ec80ccc8efeb23593a73ca96ed083f375377 | e4ddc13077ea1d4d2dd5372652f95e1399d1df22 | /mlcoursera/bin/pip | 3d7546894b976610e9fafdada828079d9f284d5e | [] | no_license | fmeiraf/machineLearningSpec | f69fd4f7cefe152eafbf123f489f69dac88bcbc9 | ea6a211645c4fb815fd83a480668933dde02912f | refs/heads/master | 2022-04-12T00:10:43.997735 | 2020-03-29T18:42:15 | 2020-03-29T18:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | #!/Users/fernandomeira/github/machineLearningSpec/mlcoursera/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"fernandomeira@Luizs-MacBook-Pro.local"
] | fernandomeira@Luizs-MacBook-Pro.local | |
f0677e9e22489c64caa430987f2fa897d19c4f1a | a931c53bc2a12558529dcbeb0ad2cf6286a8b673 | /software/logorec/setup.py | a784f4c87c5a588fcb45a798448ae3311b131d3b | [] | no_license | raikilon/logos-recognition | 2ff4ac5dc61dd52eeff7a020994d8759b2b30c5f | 63e2e965df38ca76b817bb05076035af1b272d24 | refs/heads/master | 2022-12-15T06:23:41.356617 | 2020-09-06T14:57:50 | 2020-09-06T14:57:50 | 293,298,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from setuptools import setup
setup(name='logorec',
version='1.0',
description='Logos Recognition for Webshop Services',
url='https://gitlab.ti.bfh.ch/nolim2/Logos-Recognition-for-Webshop-Services/',
author='Noli Manzoni',
author_email='noli.manzoni@students.bfh.ch',
packages=['logor... | [
"noli.manzoni@usi.ch"
] | noli.manzoni@usi.ch |
249edccc58def3f145249bf992e46462994a3161 | ab75122453d322d21068e4aff9a2862b26ce0790 | /nuts/nuts_app/migrations/0003_auto_20161127_0141.py | c8015995e82599feec10f89ab44c5142cde7801f | [] | no_license | wangluting/Nuts | d45909e25e5a320d5fd88f8fb45385f41ccccc45 | f41e89cc0b9f2dfedb1c9f34599726050808f42d | refs/heads/master | 2021-01-13T13:39:23.066510 | 2016-12-13T22:28:38 | 2016-12-13T22:28:38 | 76,403,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-27 01:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nuts_app', '0002_auto_20161125_0511'),
]
operations = [
migrations.AddField... | [
"lutingw@andrew.cmu.edu"
] | lutingw@andrew.cmu.edu |
6ab951fd0646632802dd3165aa8ec3568c2f6703 | f7b84dda5ef8a86ac4cf61a23a55c7525f8a765b | /multigenomic_api/services/organisms.py | f9d2459548ff41cea25c3cefd1e6bd9b0ce747aa | [] | no_license | PhillBet/multigenomic-api | 67da383a0b1b756bc4cf76308cbfbb9a1437a649 | 3195444236179650552245935ca802128912e09c | refs/heads/master | 2023-06-14T02:20:33.058322 | 2021-06-25T01:18:22 | 2021-06-25T01:18:22 | 380,089,026 | 0 | 0 | null | 2021-06-25T01:18:23 | 2021-06-25T01:10:49 | null | UTF-8 | Python | false | false | 220 | py | from ..models.organisms import Organisms
from . import base
def get_all() -> [Organisms]:
return base.get_all(Organisms)
def find_by_id(id_: str) -> Organisms:
return Organisms.objects.filter(_id=id_).first() | [
"pablo@makeitworth.com.mx"
] | pablo@makeitworth.com.mx |
f25ef27f64837ff2830860071a405eccc719e75b | 13eb5da1ec39374d79ab9d5d1cdabc034a4b45ac | /dbFinal/wsgi.py | 73abca37737ee52422616abc7ba5e97036632ef1 | [] | no_license | rubcuadra/dbFinal | f07a2861b4dcf6f484cde1131e1279cb4dfc3199 | 4c441bd835fa7e564c2995ece22e60f16615bb90 | refs/heads/master | 2020-12-25T07:17:10.134091 | 2016-05-18T17:38:26 | 2016-05-18T17:38:26 | 57,059,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for dbFinal 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.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"ru_cuadra_e_96@hotmai.com"
] | ru_cuadra_e_96@hotmai.com |
b754bab61dddb1da59d10a80567fad564d317780 | 815bd4efaa237844e7dbe3dcebca18ca920e2cd6 | /general/views.py | 8eaf76d5f2df163f02505e54612587e987c59940 | [
"MIT"
] | permissive | adityamittl/TravelX | 4c0c5a803e3fa56bb89a67283ba97cbeef29e4da | aea5cc1fc4d4eff61a86cd959fea3466e62561b1 | refs/heads/main | 2023-08-27T09:12:24.743541 | 2021-10-24T12:43:48 | 2021-10-24T12:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,401 | py | from django.shortcuts import render,redirect
from django.http import HttpResponse
from django.contrib.auth.models import User
from authentication.models import profile, friend_list,recieve_request,sent_request,bill
from django.contrib.auth.decorators import login_required
from django.core.files.storage import FileSyste... | [
"aditmttl@gmail.com"
] | aditmttl@gmail.com |
a8583f599bf78d44b1efb88128743bfc148fc2c1 | 215d5738d9bdc165082fef7cd48834c8c43db2b9 | /datapreprocessing.py | 960c15e28f738475eb0039b5c5fcce8bba2e6614 | [] | no_license | sarang-r/HZ-1 | 463a33a808a3052e5541f6c872faee72ef485b29 | d287c39db9379ac3c066a80b8dd1e5fbbc9a3f27 | refs/heads/master | 2022-12-19T05:33:13.520008 | 2020-09-12T17:17:54 | 2020-09-12T17:17:54 | 294,989,466 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from PyQt5 import QtWidgets, uic
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
def Func():
v = call.lineEdit.text()
v1 = call.lineEdit_2.text()
v2 = call.lineEdit_3.text()
a1 = call.lineEdit_4.text()
a2 = call.lineEdit_5.text()
a = int(v)
b = int(v1)
... | [
"noreply@github.com"
] | noreply@github.com |
941ad2b4e5aad14db3cc4a03f8ae8ecb5ef125b3 | 2b24506cbee5d3e542c425f21e31835bf7bc3cbd | /shopsite/mainapp/admin.py | cd9ea3d67a8c0ddb2a0a0a727b3aba719b7efffb | [] | no_license | Affsyan/Django1 | 6a0af5e8c54feb3fac71194d803186b1541f0f78 | a66b846feb606b69ec37dbab2540c1d58e0d8a2f | refs/heads/main | 2023-07-14T23:31:04.035185 | 2021-08-20T09:17:27 | 2021-08-20T09:17:27 | 378,864,673 | 0 | 0 | null | 2021-08-20T09:17:27 | 2021-06-21T08:45:11 | Python | UTF-8 | Python | false | false | 148 | py | from django.contrib import admin
from .models import ProductCategory, Product
admin.site.register(ProductCategory)
admin.site.register(Product)
| [
"Affsyan@gmail.com"
] | Affsyan@gmail.com |
9cd57aac93e134f3a0156540ec99b0c10d5ee4fa | 34749daac69bb0239655d96b795511eb1d5e7fa5 | /modelAnalysis/helper_files.py | eb618a6eda081afbc1191fada1949ccefc3e0abe | [] | no_license | JohanLundberg12/SecondYearProject2021 | 568a7c05e98dbf872b5a0f20a6a3cbb275d723c8 | 84703048683a8f419d2565ecfdef5d4bff54e70f | refs/heads/main | 2023-05-20T16:10:03.152140 | 2021-06-14T10:29:54 | 2021-06-14T10:29:54 | 349,030,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | import numpy as np
import pandas as pd
import pickle
def clean_nan(df):
df.replace(np.nan, '', regex=True, inplace=True)
return df
def join_columns(df, col1, col2):
df[col1] = df[col1] + ' ' + df[col2]
return df
def encode_labels(df):
df.replace({"sentiment":{"positive":1,"negative":0}}, inp... | [
"jolu@itu.dk"
] | jolu@itu.dk |
153eaf590327a3928e4f39de1f87e5e3b6434798 | cb0e7d6493b23e870aa625eb362384a10f5ee657 | /solutions/python3/0200.py | bf259566a4c651f2576a82f375668f59e4e04686 | [] | no_license | sweetpand/LeetCode-1 | 0acfa603af254a3350d457803449a91322f2d1a7 | 65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94 | refs/heads/master | 2022-11-14T07:01:42.502172 | 2020-07-12T12:25:56 | 2020-07-12T12:25:56 | 279,088,171 | 1 | 0 | null | 2020-07-12T15:03:20 | 2020-07-12T15:03:19 | null | UTF-8 | Python | false | false | 739 | py | class Solution:
def numIslands(self, grid: List[List[str]]) -> int:
def dfs(i: int, j: int) -> None:
if i < 0 or j < 0 or i >= len(grid) or j >= len(grid[0]) or visited[i][j] or grid[i][j] == '0':
return
visited[i][j] = True
dfs(i + 1, j)
dfs... | [
"walkccray@gmail.com"
] | walkccray@gmail.com |
7c7c490a043db3015b8dbbef12cc43020cbffd1a | 67dd5749b247915ce7a0d3d95964e30503c4aa0c | /dev/getting_indexing_right.py | 2c5e5b0945cafd7cd5a79d587531fd4bb7a72c15 | [] | no_license | yddream/timspy | d74d78825844b69ed9730373809e3f09ab52060c | 034788db83d85dfca01fa31281a6de391ea2fe23 | refs/heads/master | 2022-11-11T13:10:48.880175 | 2020-06-23T07:38:21 | 2020-06-23T07:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | """How to get the data."""
%load_ext autoreload
%autoreload 2
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from pathlib import Path
from timspy.timspy import TimsDIA
from timspy.plot import plot_spectrum
from timsdata import TimsData
# plt.style.use('dark_background')
pd.set_option('display.... | [
"matteo.lacki@gmail.com"
] | matteo.lacki@gmail.com |
bf554d8c9b063b46c0c66a280eb2a84d2121f75f | 89cffdaa59b08f7c46aae72c1c8356a4b9575c03 | /04_SQL/commerce/auctions/migrations/0012_listing_is_closed.py | 1f2ac3ec4d4f4ca2d6e265f6f9effabcac418c39 | [
"MIT"
] | permissive | DaviNakamuraCardoso/cs50w | 3ef5dd5b31e0de752220919ffb114a4f7afd96f4 | afec745eede41f7b294c3ee6ebaff9ac042e5e4c | refs/heads/master | 2023-08-24T23:53:34.037304 | 2021-09-24T01:12:38 | 2021-09-24T01:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.2 on 2020-11-04 20:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('auctions', '0011_auto_20201104_1711'),
]
operations = [
migrations.AddField(
model_name='listing',
name='is_closed',... | [
"davi.nakamura01@gmail.com"
] | davi.nakamura01@gmail.com |
493149b85cd8f8ac097c095a5d003bc8d8250e26 | 2f44cecd8fc447c9e2f2d9f55abdea36ebb40cc5 | /84.py | ef3779fbdfec69cf469c9f29d365c5b3495f449a | [] | no_license | yuzumei/leetcode | 751a234b429131169e3eaf4594ffeb3b94f6ab34 | b6708b03c92ec92e89fc7ecf13f1995dee346657 | refs/heads/master | 2023-07-28T05:48:53.192948 | 2021-09-11T06:16:07 | 2021-09-11T06:16:07 | 365,780,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | heights=[6,7,5,2,4,5,9,3]
def search(heights):
leftstack=[]
leftnum=[]
for i,num in enumerate(heights):
if not leftstack:
leftstack.append([num,i])
leftnum.append(-1)
else:
while leftstack:
if num<=leftstack[-1][0]:
left... | [
"973802530@qq.com"
] | 973802530@qq.com |
8b77e2b3847c06068ebcce617039102ed313640d | e87f95d7dc16a3a72177ef45b4ddbdc91980d992 | /djtutor/urls.py | 384df1bcce8c66d29c303c340fa66c7b14955687 | [] | no_license | lch277/djtutor | 8bbd9f99efa66f84d1e8cf08962a6c9ae76ab410 | c0f2eb9feb7b7aa5e6683f5388ada81c6aac7df6 | refs/heads/master | 2020-04-02T21:54:52.027894 | 2018-11-05T08:48:05 | 2018-11-05T09:14:14 | 154,815,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | """djtutor URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"lch277@qq.com"
] | lch277@qq.com |
4c4339bf363914fd7a109905c1cd7b2c9a025548 | 1bda594c37f133f52ee631a70a4604b1a32a4e6b | /0x11-python-network_1/3-error_code.py | f185ef44d669f7b4ac5a57db3a1f259217ddeb0e | [] | no_license | SeifJelidi/holbertonschool-higher_level_programming | 9b0b1168a6a357d01e78da1f0b70094b76f3bc77 | ecf5661314b3dd6361024b84576818f2bcbc4a00 | refs/heads/master | 2022-12-19T02:50:13.512222 | 2020-09-24T18:49:03 | 2020-09-24T18:49:03 | 259,368,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #!/usr/bin/python3
"""
____
"""
import urlib.request
import urllib.error
from sys import argv
if __name__ == "__main__":
url = argv[1]
req = (url)
try:
with urlopen(req) as response:
print(response.read().decode('utf-8'))
except HTTPError as x:
print("Error code: {}".format(x... | [
"seifjelidi3@gmail.com"
] | seifjelidi3@gmail.com |
794a7b41b94c6fea8b0cbc8edc0285153e063d0e | 6bdd70c742be5bf1f87839d2816e6eb80ba2c51b | /cogs/commands for helpers.py | 35ab5b3e195c11ace99e0b2b24902b6528d7bc1e | [] | no_license | clearly-elevated/rx-realm-x | d0840852a94677ecacf8fa3e6daa09d434fd384e | f119417dfb0c3fc74982ec0a28f4457b58985731 | refs/heads/master | 2020-07-16T13:53:11.960686 | 2019-09-02T07:29:27 | 2019-09-02T07:29:27 | 205,800,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,327 | py | import discord
from discord.ext import commands
import botdata
import time
import actions
data = botdata.d
emoji = botdata.e
client = data.client
class CommandsForHelpers(commands.Cog):
def __init__(self, client):
self.client = client
# update
@commands.command()
async def update(self, ctx):
... | [
"noreply@github.com"
] | noreply@github.com |
da425aa4d51a6ea808a27ee2cb207a787f7b13fc | 4824a2081eb864ec20623885c34b9672ce81ecfd | /Introduction to Programming Using Python/ex13.py | f6cd5dd30e6207d27be0b66e3497192b5d7acc1c | [] | no_license | flyerooo/learnpython27 | 971a44ec414694d4872d5453b81fc42b8844f42a | 136e2577bada45b9d0258d7bb5e792ea22869e9a | refs/heads/master | 2021-01-10T11:42:07.855961 | 2016-04-17T04:08:50 | 2016-04-17T04:08:50 | 54,001,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | for n in range(100,1000):
i = n / 100
j = n / 10 % 10
k = n % 10
if n == i ** 3 + j ** 3 + k ** 3:
print n | [
"wxlong@foxmail.com"
] | wxlong@foxmail.com |
e76a690db36ba43f38bfd305c85ba8a3cd8f57ce | f880a1aead566afbf8bbd9ab3bf5dc9328841086 | /src/plot.py | ead530d899f7d73ddc9bd48f5f5e03c90d5d0af8 | [] | no_license | Raidenkyu/FEUP-ECAC | 0b826d4e88716b6c7f38c4a48df54cbaee93c205 | e9d85ca70bc48e2e9383792fde2c4cc6deffa206 | refs/heads/master | 2023-01-04T23:20:17.232096 | 2020-11-06T20:05:05 | 2020-11-06T20:05:05 | 298,519,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import sklearn.metrics as metrics
import matplotlib.pyplot as plt
def plot_auc(model, X_test, y_test, algorithm):
metrics.plot_roc_curve(model, X_test, y_test)
plt.savefig(f"{algorithm}.png")
| [
"joao-carlos.14@hotmail.com"
] | joao-carlos.14@hotmail.com |
0b1ea520891319bd3ec29901ce458c89203a9974 | 15a992391375efd487b6442daf4e9dd963167379 | /tests/runner.py | 7356581365e84bd1ae22e702cf2f4a2df1dc1e59 | [
"Apache-2.0"
] | permissive | Bala93/MONAI | b0e68e1b513adcd20eab5158d4a0e5c56347a2cd | e0a7eff5066da307a73df9145077f6f1fec7a514 | refs/heads/master | 2022-08-22T18:01:25.892982 | 2022-08-12T18:13:53 | 2022-08-12T18:13:53 | 259,398,958 | 2 | 0 | null | 2020-04-27T17:09:12 | 2020-04-27T17:09:11 | null | UTF-8 | Python | false | false | 5,491 | py | # Copyright (c) MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | [
"noreply@github.com"
] | noreply@github.com |
1be85b201bf932f4cac21a2d25245f7b7fe46def | 090e69cccc669b6e3023d24131448f778e6b1463 | /erpcloud/accounting_double_entry/forms.py | 3599b1d198fd3de9cd3fbedb9f8fb761c986e1e9 | [] | no_license | abhishek-ag2000/clouderp | fcd87717c3a366648ba642bdae7236dcc7b8aeb0 | 00435e1b36e2aa39ac3265f4a4caf7c9ebb88f42 | refs/heads/master | 2020-03-25T20:49:40.029773 | 2018-12-21T08:46:21 | 2018-12-21T08:46:21 | 144,148,086 | 0 | 0 | null | 2018-09-27T13:13:01 | 2018-08-09T12:13:54 | JavaScript | UTF-8 | Python | false | false | 4,758 | py | from django import forms
from accounting_double_entry.models import journal,group1,ledger1,selectdatefield
from company.models import company
import datetime
class group1Form(forms.ModelForm):
class Meta:
model = group1
fields = ('group_Name', 'Master', 'balance_nature','Nature_of_group1', 'Group_behaves_like... | [
"abhishek.ag2000@gmail.com"
] | abhishek.ag2000@gmail.com |
fc5c8069e56100b0729d0b18ba7810553f0533fb | 365979c01401441e1c9788cf87ac4c6e98acc75f | /MetropolisTransport/MetropolisTransport.py | 96330ace8084e1205e23ab59614bd357d14c2d41 | [
"MIT"
] | permissive | forember/Pythonista | b16a52fe0a17e2b0559e602188c822506143e432 | 9871c8b4b1c99da79e771c6bcf4f2e6ab5e19485 | refs/heads/master | 2023-03-24T13:17:56.343710 | 2021-03-16T20:24:02 | 2021-03-16T20:24:02 | 231,895,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | def _makeHistogram(F, histogram, mutations, w, h):
from random import randint, random
# create an initial sample point
x0 = randint(0, w-1)
x1 = randint(0, h-1)
Fx = F[x0,x1]
# In this example, the tentative transition function T simply chooses
# a random pixel location, so Txy and Tyx are always eq... | [
"nighttimedriver50000@gmail.com"
] | nighttimedriver50000@gmail.com |
b16c1500d5cf13bff4b310bfc9109ddaaa18abc4 | 02d27314e0d7dde8c99d89f372e4c80bd2f1bace | /Rossiter-McLaughlin_Effect/Analytic_Description/Approximations.py | 3e57f05668e461fbd758023b4c34055ba283965b | [
"MIT"
] | permissive | Shubhonkar-Paramanick/Rossiter-McLaughlin_Effect_for_Transiting_Exoplanetary_Systems | 978f5b1bf350cefca1d87da52519f65ddadf75b1 | 58bd42501f8856f9132ced4e21820e8eb617cb7c | refs/heads/main | 2023-01-20T05:54:33.926810 | 2020-11-30T20:31:20 | 2020-11-30T20:31:20 | 317,334,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,433 | py | #!/usr/bin/env python3
import numpy as np
import scipy as sp
import pandas as pd
import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [12,7]
zhe=0.1
gani = np.linspace(0,1-zhe,1000)
I1 = ((1/(16*(1-(gani**2))**(3/2)))*(-(8*gani**6)+(31*gani**4)-(36*gani**2)+16)) + (((zhe**2)/(256*(1-(gani**2))**(7/2)))*(-(1... | [
"noreply@github.com"
] | noreply@github.com |
92764a0d1a1dc7e71473df73ed3f20ac41169931 | 035df35ddd35782b2aef2cb6c4b7caeec7bdc6db | /manage.py | 8ab57b97b9e73ab23fe2c3eaffd6bceb43fa2c52 | [] | no_license | JamalKimpaev/polling-project | 4c81f8a77364d1060574fd2a8b0adbc4644c8aae | 1845ecbde9d436caca042dd12e7d02ec1aeb30c0 | refs/heads/main | 2023-07-10T02:54:26.340407 | 2021-08-12T18:57:12 | 2021-08-12T18:57:12 | 395,396,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'polling_system.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"oblepiha228@gmail.com"
] | oblepiha228@gmail.com |
96563513dfb7547398607a69fda1c9f21742a124 | 1d8dcf67350b948f7233cc3cf6f5252642dd1996 | /DS_INTERSECT/five_apps_review_retrieval.py | 230f2847891da7ae187f2a0fb505aa7b47b29da5 | [] | no_license | mdkafil/python_programming | 975769228f08f7dcda9d9e35828af35cc90308e9 | d9fae912be49e660459ccd1a80a5aa84e114e9b1 | refs/heads/main | 2023-03-16T08:30:32.179612 | 2021-03-02T06:13:58 | 2021-03-02T06:13:58 | 343,663,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | import ijson
import csv
import re
import wget
import json
import os
import shutil
from pathlib import Path
""" Copy Review files in distination Folder """
read_dir = 'C:/Users/mdkafiluddin/Downloads/review/review/'
write_dir= 'C:/Users/mdkafiluddin/Desktop/Research/[1]DATASET_v1/Category/COMMUNICATION/Exp... | [
"noreply@github.com"
] | noreply@github.com |
2492d41babdb5ca2b4f3ae122d2edb8432bcdbf6 | 60509c5e1956cb64d0220e9fc4542db7ef18bbf9 | /secret_sauce/autoscale.py | ede7e586c08af37a0f7ad84f092f626d76fe105e | [] | no_license | Nemesisesq/streamsavvy_dataprocessing | 18989378c8aa6c5a250449e74d93d64303874092 | 6c814818c0bac27c99ad4a5c8799648a5d9e637a | refs/heads/master | 2021-06-15T02:38:32.982171 | 2017-01-17T16:38:49 | 2017-01-17T16:38:49 | 61,290,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | from time import sleep
import requests
import base64
import json
# from apscheduler.schedulers.blocking import BlockingScheduler
# from config import APP, KEY, PROCESS
import sys
APP = "ss-data-staging"
PROCESS = "celery"
KEY = "bc50be81-14ef-42cf-ae05-841d8f505d6c"
# Generate Base64 encoded API Key
# BASEKEY = ba... | [
"nemesisesq@gmail.com"
] | nemesisesq@gmail.com |
be5388e2c28f3cb8570f1430864ecc938e4987d7 | 648b9fc98790267934fae7eba44dff118d0d53d4 | /chats/migrations/0001_initial.py | fe6e60ae9356210b6a8dab29f05af639ad9677d3 | [] | no_license | slcushing/django-rest-chat-app | 6aa83d5dde3f8844bd317c24e5cfe3bd9e18f44c | 80e566225611777a5b596b602583e7982bb9af4f | refs/heads/main | 2023-08-29T13:56:27.177718 | 2021-10-28T14:55:44 | 2021-10-28T14:55:44 | 416,808,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # Generated by Django 3.2.8 on 2021-10-13 17:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Room',
fields=[
... | [
"slcushing@gmail.com"
] | slcushing@gmail.com |
8554912a8d043b6eb7ba2609bc2f017ec50a31cc | bc50264e99304bf11b3a8afc8e01472621446293 | /modules/bullet_physics/config.py | 969d613ef506f300af250c2732240cd7e2bfc8c4 | [
"MIT"
] | permissive | V-Sekai/godex | a37d28a92ce6585237da44d432d801c5d00a98b5 | d0ca9bf8ea303742a6aa2e88dadb85120e9504a5 | refs/heads/main | 2023-07-09T21:18:54.132422 | 2023-03-03T08:49:28 | 2023-03-03T08:49:28 | 664,382,957 | 2 | 0 | null | 2023-07-09T20:08:27 | 2023-07-09T20:08:26 | null | UTF-8 | Python | false | false | 138 | py | def can_build(env, platform):
env.module_add_dependencies("bullet_physics", ["godex"])
return True
def configure(env):
pass
| [
"info@andreacatania.com"
] | info@andreacatania.com |
e844e9144b2f9c281861b1368ca91b235d597ed1 | 4fe417b7ea1b5c3b7e80623aeba922f10e882e6e | /lib/struct/WorldPoint.py | a2b15a6d1b3cb3c2efe39435470748a536b1e8c2 | [
"MIT"
] | permissive | trewq34213/pb | 23f1dee0fa27a3a02c60657a13e4277922214d64 | 3142764e350f92034eb671cfc3d1dae42dea0f0a | refs/heads/main | 2023-02-01T20:35:06.839255 | 2020-12-07T08:28:11 | 2020-12-07T08:28:11 | 319,594,684 | 1 | 0 | MIT | 2020-12-08T09:51:26 | 2020-12-08T09:51:26 | null | UTF-8 | Python | false | false | 593 | py | # -*- coding:utf8 -*-
from lib.struct.Point import Point
# 表示一个世界坐标
class WorldPoint(Point):
def __init__(self, x, y):
Point.__init__(self, x, y)
# 将世界坐标转成地图坐标
def to_map(self, area):
from lib.struct.CoordiPoint import CoordiPoint
zoneRange = self.getZoneRangeByZoneName(area)
... | [
"49783121@qq.com"
] | 49783121@qq.com |
7289bc312ffabdb62b9022d4c3a0068b9fb51766 | a91336f416a159c891f679f590fa43ce487cb7f2 | /tools/accuracy_checker/accuracy_checker/statistics_collector/__init__.py | 160bbb83881b0f5312902a83166e726038290223 | [
"Apache-2.0"
] | permissive | LikHait/open_model_zoo | 76c5bc1e136f35d53942f7924ec74fb9bcefb7e3 | c15284b0b5f66adef7881471607a755fb386942e | refs/heads/master | 2020-09-15T14:26:38.276614 | 2019-12-04T07:22:45 | 2019-12-04T07:22:45 | 223,475,447 | 0 | 0 | Apache-2.0 | 2019-12-04T07:22:47 | 2019-11-22T19:48:41 | null | UTF-8 | Python | false | false | 96 | py | from .statistics_collector import StatisticsCollector
__all__ = [
'StatisticsCollector',
]
| [
"noreply@github.com"
] | noreply@github.com |
4f5cb6ac5fc8f462986f60724930e07914f404ef | 11805f3f0ca426ae21b754526578fe6b69c9fd52 | /chinese_sentiment-master/model/cnn/debug.py | 51826f9ec8e3a7b64d0e1ab283d15ad75040ac14 | [] | no_license | chensheng1/NLP_emotion | 106838156224cfc1ab9491df908d92bfdfac2915 | f43760e7493aa4d360dd0c4d0bca8ba100614612 | refs/heads/master | 2023-03-22T15:54:16.107975 | 2021-03-08T15:00:46 | 2021-03-08T15:00:46 | 345,604,118 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from .main import input_fn, model_fn, DATA_DIR
from pathlib import Path
import tensorflow as tf
tf.enable_eager_execution()
if __name__ == '__main__':
params = {
'dim': 300,
'nwords': 10,
'filter_sizes': [2, 3, 4, 5],
'num_filters': 128,
'dropout': 0.5,
'num_oov_buc... | [
"544740618@qq.com"
] | 544740618@qq.com |
2925bcfa9c34d3168ef64bc96abf34d2a6ca67f7 | 0a3d69e3d36e835df18b8077c4acf783fb39ddba | /mysite/main/migrations/0033_comment.py | cd25d25ca6e44bea00082235e40aa939852529f1 | [] | no_license | mdainur/SoTastyy | 6c140d8d672500c62cbe4ae54fda1bc282d141a4 | 5175bfa582d47cd225ba819e115ac15f81929870 | refs/heads/master | 2022-12-13T06:28:43.067094 | 2019-12-15T18:48:56 | 2019-12-15T18:48:56 | 228,232,352 | 0 | 0 | null | 2022-12-08T04:26:20 | 2019-12-15T18:37:56 | Python | UTF-8 | Python | false | false | 512 | py | # Generated by Django 2.2.6 on 2019-12-08 23:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0032_auto_20191209_0344'),
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
... | [
"123456789dfghj@gmail.com"
] | 123456789dfghj@gmail.com |
46f4838bef4eeb8fbc618a1af99d59f3b56201a7 | aa1587c93292e04e5fb004c5e887caea1d3782fb | /1-25/p024.py | 187f9efe916e7d52cc71f97c42580ceebcfaed63 | [] | no_license | borghol/eulerproject-python | 49588ab703a0030085c3c3b42ce637ffa791a932 | b5124b4357fab9afae6646a0cbf2187f403b2cb0 | refs/heads/master | 2020-11-24T19:32:42.870706 | 2020-01-05T05:33:22 | 2020-01-05T05:33:22 | 228,313,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import math
numbers = [str(x) for x in range(0, 10)]
finalOrder = []
count = 0
while len(numbers) > 0:
for i in numbers:
if (math.factorial(len(numbers)-1) + count < 1000000):
count += math.factorial(len(numbers)-1)
else:
numbers.remove(i)
finalOrder.append(i)
... | [
"khaled.abulborghol@gmail.com"
] | khaled.abulborghol@gmail.com |
d6eb4465d48173282e20e3c125a9d5baed2ab578 | 9c82377aed550817a0a569dd3bcb30bbe7dbb961 | /twitter-oauth.py | 18959ebd107274e6c9746a8e0cee28f3185b86b3 | [] | no_license | bixiayan/SI_OAuth | 4c6d169ebce0ce640365b0fe435774002be4a656 | b3416afb388ed5d7cbe25390d1aa191428c823c5 | refs/heads/master | 2021-05-08T11:06:22.647848 | 2018-02-07T03:30:06 | 2018-02-07T03:30:06 | 119,878,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,126 | py | from requests_oauthlib import OAuth1Session
import secrets
client_key = secrets.api_key
client_secret = secrets.api_secret
# STEP 1: GET A REQUEST TOKEN
# We have to start by obtaining a 'request' token
# We will supply our client key and client secret
# ...otherwise no token -- you can't even get in the doo... | [
"noreply@github.com"
] | noreply@github.com |
5ed635daa9f623e4ef0ee66dfb42d6b5a05d4bd9 | 61c9d62a62d2b649bca7ddebaf3e46fc1aa94973 | /print_program.py | c340fd0d59ddce7985edddb36df6a2284bbe0801 | [
"Apache-2.0"
] | permissive | nividata-consultancy/SVIT | 79f2032f2353ce1a815b23dc56917e22e3ee94d9 | 09948d182063076ee85f5aed9cdacf6bbdc24a3a | refs/heads/master | 2020-12-04T02:17:40.503506 | 2020-01-03T10:55:29 | 2020-01-03T10:55:29 | 231,568,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | avengers = ["Iron Man", "Captain America", "Thor", "Hulk"]
justice_league = ["Batman", "Flash", "Aquaman"]
justice_league.append(avengers)
print(justice_league[2])
print(justice_league[2][1])
print(justice_league[0:2])
numbers = [1,2,3,4,5,6,7,8,9,10]
print(len(numbers))
print(max(numbers))
print(min(numbers))
pri... | [
"gunjan@nividata.com"
] | gunjan@nividata.com |
2effeae7dc99bb7320d8dcf0a9f0946299302e1f | 46d396509807892de368ebcf454f04f21b2b6cc2 | /eCommerce/carts/migrations/0002_cart_subtotal.py | f2848a7b62140ab7a3094bc7dd5a100c218b23b6 | [] | no_license | akashbiradaar/Online-Shopping | 05ab3935599d42ffeed4c54fb17645b8599d0b33 | 5b72bfa786751c363e3099dd662fc9b6e4c7045f | refs/heads/master | 2020-03-30T12:47:15.728260 | 2018-10-04T08:32:24 | 2018-10-04T08:32:24 | 151,240,418 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-10-01 09:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"akashbiradaar@gmail.com"
] | akashbiradaar@gmail.com |
4c61c4c46681034659d2ba466d5e2ff56f42cfef | da622f6d6ddc27ec49b059c605edec069fcda64c | /Livegram/mod/sql/__init__.py | 8e4f7a28623b66e741a50bbab634d31ce5551289 | [] | no_license | arupmandal/Livegram | baf6b8112b7dc5b2969366049cad6879b64b7501 | 9650cb596ea649118e1b61421e9fb3d106ab7d1d | refs/heads/main | 2023-02-07T13:03:26.700542 | 2021-01-02T12:29:15 | 2021-01-02T12:29:15 | 326,177,404 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker, scoped_session
from Livegram import Config
def start() -> scoped_session:
""" returns SQLAlchemy ScopedSession """
engine = create_engine(Config.DB_URI)
BASE.metad... | [
"noreply@github.com"
] | noreply@github.com |
b1f89024a3e500dfc6d1a34a218c55c6d6d0b5e4 | 9a97520afb0fecb128915e1aa02c369100386a7e | /compressor_data/migrations/0003_auto_20190801_1925.py | 42ae0f6c5d707f2493416610e3d3c5647ac22845 | [] | no_license | ujjwalkumar93/iot_data_list | b7f95a7f48f5facf194c92200a243e879507fb3b | d9afab7b3c39471fe731808cfd9efefbdf8dbce6 | refs/heads/master | 2020-06-28T09:15:24.149077 | 2019-08-02T08:30:07 | 2019-08-02T08:30:07 | 200,008,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | # Generated by Django 2.2.4 on 2019-08-01 13:55
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('compressor_data', '0002_auto_20190801_1343'),
]
operations = [
migrations.AddField(
... | [
"pathakujjwal93@gmail.com"
] | pathakujjwal93@gmail.com |
4816a2acbc1cf68841ea04a6f45ec025e1faa0e9 | d7fa3a86f914d1d1afe7423cc7b50010402fee22 | /certidude/firewall.py | 0253f5fe1b1f459ed73b79b526bc8f41031cfb0e | [
"MIT"
] | permissive | kmteras/certidude | 96af2a14dd447795a9a0c560cbca164959b46b90 | f9bf85c7306423455c9c182f0e69539c1dc1544d | refs/heads/master | 2021-06-22T17:10:32.746780 | 2017-08-17T10:08:42 | 2017-08-17T10:08:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py |
import falcon
import logging
logger = logging.getLogger("api")
def whitelist_subnets(subnets):
"""
Validate source IP address of API call against subnet list
"""
import falcon
def wrapper(func):
def wrapped(self, req, resp, *args, **kwargs):
# Check for administration subnet ... | [
"lauri.vosandi@gmail.com"
] | lauri.vosandi@gmail.com |
988fcc3bad6c71902716794d5af98b5ed49ce94a | 1f936103af336af6bbd335f45d6baa55c426922b | /monatbx/test_cov.py | fed4bc94b6147527eeec78e5faf7cafd539bf891 | [] | no_license | monarin/monatbx | 2ec342d67f1fbccb82656218ffd136f2eb7d96ab | 43f56974f811e5b2b0dcc428d4f9b36043ed9d04 | refs/heads/master | 2020-06-18T13:08:58.893701 | 2016-11-30T00:58:18 | 2016-11-30T00:58:18 | 75,136,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import numpy as np
from cctbx.array_family import flex
G = [5, 6, 0.1, 20, 16, 12, 11, 10, 11.5, 15]
B = [100, 80, 200, 60, 70, 80, 85, 90, 70, 40]
rotx = [0.01, 0.002, 0.001, 0.05, 0.1, 0.025, 0.008, 0.01, 0.002, 0.001]
X = np.array([G, B, rotx])
print X
COV = np.cov(X)
print COV
CORR = np.correlate(X)
print CORR
| [
"monarin@gmail.com"
] | monarin@gmail.com |
83d3b865710e7cb7f3f1ba1af62f84ae8aff8d0d | 941de1ff0f0c3f1912343d6254a92d233cdb0c0b | /LoopRestToFile.py | 6730c7ec0150c6c0e3afa948939020bcd203394a | [] | no_license | MrMiguelHackz/LoopThroughFile | e90a7d3b5d09efe6cd6d40915c8a9aff43aef8c2 | 62683c244b524d4fdb84f1ad2c21c4236ac9770c | refs/heads/master | 2020-06-07T23:08:46.642969 | 2019-06-21T14:37:59 | 2019-06-21T14:37:59 | 193,112,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import requests
import json
import urllib3
import os
import os.path
import sys
import datetime
url = ''
pwd = '*'
user = ''
proxies = {
'http': '',
'https': '',
}
# Set proper headers
headers = {"Accept": "application/json"}
# Do the HTTP request
i = 0
x = 0
loop = 1
os.chdir("C:\\test\\")
while loop :
try:
... | [
"noreply@github.com"
] | noreply@github.com |
4c130f1d7ab50ea7707adef47c427ff415ec9ec4 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/aio/operations/_vpn_sites_configuration_operations.py | 528c2beb6e372606f8298a7459a2824db3f21598 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 8,266 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
dca8dd72172381372dcb94f00fbeecad81c8ddd6 | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg_old/scg_Route/test_c37280.py | e1f0802b3947f00158ecb0ded8f58e68ea24a2c8 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | import pytest
import time
import sys
from page_obj.common.rail import *
from os.path import dirname, abspath
from page_obj.common.ssh import *
from page_obj.scg.scg_def_static_route import *
from page_obj.scg.scg_def_interface import *
sys.path.insert(0, dirname(dirname(abspath(__file__))))
test_id = 37280... | [
"15501866985@163.com"
] | 15501866985@163.com |
558d7e2d5eb7fe97fc2f30016762844eacf6e83c | 31efb53fde64bf9a8cf3da5051bdd4af98ccbf13 | /share/share_decorator.py | 84fbaa89b9693789ea3af6a93996f8caeefe223e | [
"Apache-2.0"
] | permissive | harryliang/tmpshare | 96b881e0063d8987cd481932eceaa7e100f89256 | 154091498ad69eab4f8b61692d7712475efbc181 | refs/heads/master | 2020-04-06T07:09:33.474966 | 2014-09-02T03:29:59 | 2014-09-02T03:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #encoding=utf8
import functools
import json
import os
import settings
def ip_check(method):
@functools.wraps(method)
def wrapper(self, *args, **kwargs):
if settings.IP_CHECK:
remote_ip = self.request.remote_ip
try:
allowed_ip_list = set(json.load(file(os.path.jo... | [
"harry.liang@idiaoyan.com"
] | harry.liang@idiaoyan.com |
99fb00920c03a86a5554a9ae7a5368b59a0534bd | 2bfa09137c46f88b14c7b772eb0758d7461800ed | /models/two_tier/two_tier_generate16k.py | a81b3dea63984df69a9af1e96c87729625634507 | [
"CC-BY-4.0",
"Apache-2.0",
"MIT"
] | permissive | landmarco/mechromancy | e18fab6beba647f44f59dbdca7e065841745c6a9 | 5aba40c287978b9e957dba954be5078d0e33beb2 | refs/heads/master | 2020-06-23T18:38:40.792893 | 2019-10-10T17:56:49 | 2019-10-10T17:56:49 | 198,718,544 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,716 | py | """
RNN Audio Generation Model
Two-tier model, Quantized input
For more info:
$ python two_tier.py -h
How-to-run example:
sampleRNN$ pwd
/u/mehris/sampleRNN
sampleRNN$ \
THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python -u \
models/two_tier/two_tier.py --exp AXIS1 --n_frames 12 --frame_size 10 \
--weight_n... | [
"marc.loeffke@gmail.com"
] | marc.loeffke@gmail.com |
b11f0a5b1a074531753b3388db82d6ba54eb60f4 | b72226b758e3e7e14d63d5ab135bf090b2ef3747 | /visual/graphviz/tools.py | 06667527caa24e8080a57a380e02e941ea3041ad | [] | no_license | dylan-lawrence/ppredict | 44bd15cf868775fac5e2df274bf96acc48d0e1f3 | 2389aad2ea2fbc575f8fc5ac40425ccfb88c4816 | refs/heads/master | 2021-05-30T15:17:59.802950 | 2015-12-10T18:01:09 | 2015-12-10T18:01:09 | 45,797,831 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # tools.py
import os
import errno
from ._compat import iteritems
__all__ = ['mkdirs', 'mapping_items']
def mkdirs(filename, mode=0o777):
"""Recursively create directories up to the path of filename as needed."""
path = os.path.dirname(filename)
if not path:
return
try:
os.makedirs(... | [
"dlawre14@slu.edu"
] | dlawre14@slu.edu |
706658a5ad3c0ba6ba13b0b90069ae2c6aca8d3d | 47deebe6fefedb01fdce5d4e82f58bb08f8e1e92 | /python core/Lesson_2/io_4.py | b4c12d1fa85d38f06e385bcd672cb795c9629322 | [] | no_license | developeryuldashev/python-core | 5bb162603bdb5782acf05e3fb25ca5dd6347067a | 08fca77c9cfde69d93a7875b3fb65b98f3dabd78 | refs/heads/main | 2023-08-21T03:33:12.160133 | 2021-10-19T04:56:53 | 2021-10-19T04:56:53 | 393,383,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | d=10
pi=3.14
l=pi*d
print(l) | [
"81365808+developeryuldashev@users.noreply.github.com"
] | 81365808+developeryuldashev@users.noreply.github.com |
d91e55ee4978d6e82df75b4144ece6a112ac8abf | 7a383f9c146ea4cd506fb526d1e538d499ca3b9f | /Modul7/2.py | ab7ac5eea8c84effad13deba56c2ef72b004854a | [] | no_license | L200170174/prak_ASD_E | 1f6867709dd864f4b9e70cf940dc8d5ddc48aa0d | 21354758fe281b4856766bcacfdcd28225cdf880 | refs/heads/master | 2020-04-25T22:41:47.957380 | 2019-06-16T03:28:53 | 2019-06-16T03:28:53 | 173,119,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import re
f = open('Indonesia.txt', 'r', encoding = 'latin1')
teks = f.read()
f.close
pola = r'di+\w+'
print(re.findall(pola, teks))
| [
"noreply@github.com"
] | noreply@github.com |
a6ca78df6b38b09f43387e54190b5fc7fa7290d8 | b9ffddc4bc2bf325596bf212b3a137bd4e2b45d3 | /tests/snuba/api/endpoints/test_organization_discover_saved_query_detail.py | 6123b1b1828995050b5092450e0088af3d446643 | [
"BSD-2-Clause"
] | permissive | jeffjewiss/sentry | a6292cd191d48d78fc08e261863cd80d2f7e81c8 | aa991e51824f147b07639fdd5c3ff84eacf7ccef | refs/heads/master | 2020-05-02T14:38:18.291735 | 2019-03-27T14:12:26 | 2019-03-27T14:12:26 | 178,016,745 | 1 | 0 | BSD-3-Clause | 2019-03-27T14:55:27 | 2019-03-27T14:55:27 | null | UTF-8 | Python | false | false | 6,156 | py | from __future__ import absolute_import
import six
from sentry.testutils import APITestCase
from django.core.urlresolvers import reverse
from sentry.testutils import SnubaTestCase
from sentry.models import DiscoverSavedQuery, DiscoverSavedQueryProject
class OrganizationDiscoverSavedQueryDetailTest(APITestCase, Snuba... | [
"noreply@github.com"
] | noreply@github.com |
f4e9e05d8f49cab8f597e4920e0ebf279ac1185a | 32274e14bce27331626f734aaf2e9074dec9bbf0 | /great_expectations/data_asset/__init__.py | 9de24563be3757e723d06cee5b996be4c8d615f5 | [
"Apache-2.0"
] | permissive | dataguage/great_expectations | 1036a3d20dc320ce2e9986ae18a84932bb1fad3b | dc94522ca9b6742c0c1844cf378b781f74dfc9b5 | refs/heads/master | 2022-07-04T18:38:21.332245 | 2020-05-04T17:56:02 | 2020-05-04T17:56:02 | 261,509,508 | 2 | 0 | Apache-2.0 | 2020-05-05T15:24:58 | 2020-05-05T15:24:57 | null | UTF-8 | Python | false | false | 76 | py | from .data_asset import DataAsset
from .file_data_asset import FileDataAsset | [
"james.p.campbell@gmail.com"
] | james.p.campbell@gmail.com |
660587319535f41cf427a3c7fec40c3a4d6ee083 | 3ca25075381bf4381ae1f2d144c489f4a0bbc5e1 | /A2070_Count_Positive_and_Negative_In_Lists.py | 3596e30dd2f076a63dc252f59a56f7c02278e8a9 | [] | no_license | sudevansujit/2_Python | 7c44b58024b24027f3d15a5fd473d31250ef91ad | 5060ac7a0f94e91f11866afd7f772be71ae4fa8a | refs/heads/master | 2021-07-05T20:52:04.549852 | 2020-08-06T17:27:46 | 2020-08-06T17:27:46 | 156,524,984 | 0 | 0 | null | 2020-03-18T16:23:40 | 2018-11-07T09:51:14 | Python | UTF-8 | Python | false | false | 448 | py | # Count positive and negative numbers in a list
L1 = [1,-3,-5,-7,-2,2,4,8,9]
positive = 0
negative = 0
for item in L1:
if (item >= 0):
positive = positive + 1
else:
negative = negative + 1
print(positive, "numbers are positive")
print(negative, "numbers are negative")
... | [
"noreply@github.com"
] | noreply@github.com |
1fc3b7b27452778c90b70cbaf2d0890cbc7c878c | 2ea61e98627dd6b170590b69ead79a828614dec0 | /youtrack_api/models/__init__.py | b32db78643832993e6d781eddcfd07e3509c2415 | [] | no_license | alpduez/youtrack_api | 55dc25465f027645525efe5296c5699f7d824f33 | 2450523d87e6bdbbd53ca4908042a701a1a867e6 | refs/heads/master | 2023-09-01T01:34:33.356354 | 2021-10-20T15:32:05 | 2021-10-20T15:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,174 | py | # flake8: noqa
# import all models into this package
# if you have many models here with many references from one model to another this may
# raise a RecursionError
# to avoid this, import only the models that you directly need like:
# from from youtrack_api.model.pet import Pet
# or import this package, but before do... | [
"hank@sellerlabs.com"
] | hank@sellerlabs.com |
4605daa21593dccfe9560412c3fb87185a00fb91 | 726754863696235c66c8ed9aa184fc13ade33afe | /basics/rotation_count.py | 116e425096403014edc34a74e8a6695ac5528788 | [] | no_license | harshalms/python | ef6a3eeb93c5051528cb0b76fd600a2943e10616 | bfea8f00795c4308b09d80852cb995a8109c1568 | refs/heads/master | 2021-07-17T18:52:36.053780 | 2020-07-25T15:45:41 | 2020-07-25T15:45:41 | 189,624,661 | 0 | 0 | null | 2019-06-17T05:37:24 | 2019-05-31T16:20:52 | Python | UTF-8 | Python | false | false | 461 | py | '''GeeksForGeeks
Find the Rotation Count in Rotated Sorted array
Consider an array of distinct numbers sorted in increasing order.
The array has been rotated (clockwise) k number of times. Given such an array,
find the value of k.
Approch : Just find the index of minimum element.
'''
A = [15, 18, 2, 3, 6, 12]
def ind... | [
"harshal95iitk@gmail.com"
] | harshal95iitk@gmail.com |
cbeb7c52b69ccb08063d53ce62a2cf21c57256d2 | df6a2530aee50aa31aa025957201725a8a3bdbda | /coffee.py | 97476f8d2f0d4d49ecf811dc7c31196ec5bbffeb | [] | no_license | DragonofDwest/Tic-Tac-Toe | 6aee0b54b992385c3e8ce3f841c43fe78fbc8d0a | e34826157898ae8e66ea3880b02e732c5476eaa5 | refs/heads/master | 2023-01-01T21:07:57.491475 | 2020-10-31T14:51:00 | 2020-10-31T14:51:00 | 285,864,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,085 | py | # water_tank = 400
# milk_tank = 540
# coffee_bean_bag = 120
# disposable_cups = 9
# cash = 550
#
#
# def stock():
# print(f"The coffee machine has: \n{water_tank} of water \n{milk_tank} of milk")
# print(f"{coffee_bean_bag} of coffee beans \n{disposable_cups} of disposable cups")
# print(f"{cash}... | [
"noreply@github.com"
] | noreply@github.com |
fc88a0e18d5717a453a1707aa88e30ca3f5e565d | cd143b512f1357b49cefce25c4746d22ca32dc70 | /ArticleCollect/ArticleCollect/spiders/symantec_spider.py | 1a3e5b02c899a9069125ceeeb42437be59730cba | [] | no_license | Maggie147/ArticleSpider | 90be139d9ff9d49c099d0af2743f82b84f830e6b | 3daf080841b97f443b09b4a9fc1a674e134783d5 | refs/heads/master | 2021-09-12T15:28:50.095357 | 2018-04-18T02:39:38 | 2018-04-18T02:39:38 | 112,554,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,340 | py | # -*- coding: utf-8 -*-
#
# Project: ArticleCollect (https://www.symantec.com)
# author : tx
# Update : 2017-12-06
#
# from w3lib.url import urljoin
import scrapy
from ArticleCollect.items import ArticlecollectItem
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
import time... | [
"tianxueol@outlook.com"
] | tianxueol@outlook.com |
cb35567994667e4557959d82c254ecb10ebecead | e14669883c3fccbc79dd63f6edec7a9af9916611 | /erg5_test2.py | d53246d125b6a2786cb3eee9004f354e11cd53ad | [] | no_license | kostasartKKM/semweb1718a1 | 9fd48dcf99c517977689474b636e1b7349e36d58 | df314fdbd0fb1713e6ecd580101e981ae4c1e267 | refs/heads/master | 2020-03-18T11:55:23.906542 | 2018-05-24T10:41:17 | 2018-05-24T10:41:17 | 134,698,399 | 0 | 0 | null | 2018-05-24T10:16:49 | 2018-05-24T10:16:48 | null | UTF-8 | Python | false | false | 524 | py | import csv
with open('out.csv','r',newline='') as ifp:
ir = csv.reader(ifp)
for s,p,o in ir:
s = '_'+s[1:]
p = '<'+p+'>'
if p == '<http://dilab77.ionio.gr/sw/p14sken/myvocab#ΗΜΕΡΑ>' :
o = '"'+o+'"'
elif p =='<http://dilab77.ionio.gr/sw/p14sken/myvocab#ΕΝΑΡΞΗ>' or p =='<http://dilab77.ionio.gr/sw... | [
"noreply@github.com"
] | noreply@github.com |
dc4851b40cb641b66fe8f67c685289776001336a | 66fa0bcfe8fcd9e5087caf7e0b42e944ec636fc6 | /catalog/models.py | bcfdd700c38e2be4f0d8b7dac61af1245336ebd9 | [] | no_license | vintkor/for_prom | 899a7eb70978c1d4d77bf3a958d11423fd1bcda5 | 4b692c192d931e2ffb97dcd36bb7f31b242f848b | refs/heads/master | 2022-12-09T05:49:11.150879 | 2017-08-21T20:37:51 | 2017-08-21T20:37:51 | 99,605,489 | 0 | 0 | null | 2022-12-08T00:41:44 | 2017-08-07T18:02:53 | Python | UTF-8 | Python | false | false | 9,434 | py | from django.db import models
from testsite.baseModel import BaseModel
from ckeditor_uploader.fields import RichTextUploadingField
from mptt.models import MPTTModel, TreeForeignKey
from feature.models import Set, Feature, Unit, Value
from django.utils.crypto import get_random_string
from PIL import Image
from resizeimag... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
ca97a8123844f451a7a157676edc3882987f0da5 | 128cf1e8485a18f97df8afb391186ee9fe5e1620 | /lib/bot/__init__.py | dfe74beeaec15bb39bea4df62d705f028cdf9ee5 | [] | no_license | iDefault1337/updated-discord.py-tutorial | b1ed325da5e3b2fe06fea33e4d3dd6975797b0bb | c772ee4911d3602811b0451f02a98fda6ffa1372 | refs/heads/master | 2022-11-12T03:42:28.518978 | 2020-06-24T16:21:15 | 2020-06-24T16:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,206 | py | from asyncio import sleep
from datetime import datetime
from glob import glob
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from apscheduler.triggers.cron import CronTrigger
from discord import Embed, File, DMChannel
from discord.errors import HTTPException, Forbidden
from discord.ext.commands import Bot... | [
"43846948+parafoxia@users.noreply.github.com"
] | 43846948+parafoxia@users.noreply.github.com |
d0418164f2a0982bdf00edb775d1d603a7460649 | 20eb132f7c37c657c19fdd3ce6c1fc0418ac43c5 | /src/message.py | 90072fbc14faf441c11e77dea17af77de7037c99 | [] | no_license | ThomasVy/P2P-Messaging-App | 27663c317ae11f4fcab53840d593f7ebf198b8ce | 1bfe33b388518073bbacafd05d2ad1edf5524969 | refs/heads/master | 2023-07-30T23:03:35.673487 | 2021-09-09T23:06:16 | 2021-09-09T23:06:16 | 331,109,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # message.py file
# this class will hold the information that is used in UDP Server
# CPSC 559 Project
# By Zachery Sims & Thomas Vy
from address import Address
class Message:
def __init__(self, message: str, source: Address, timestamp: str) -> None:
self.__type = message[:4] #type of message
self... | [
"vythomas97@gmail.com"
] | vythomas97@gmail.com |
84316df917b8a72f472a5c7a2a0d9811cdf8385b | 72b660c3487a5484fb94cbd25855a6e6a146acbd | /api/utils.py | 04d689b49323431f013460a5cd0dec0c44c90a11 | [] | no_license | jitendrapurbey/qr_api | 77b17e387b4b34243be21ed8f1b3f0335e0435d1 | a12a6027b08a19a5eb1fb3365d4b1caf22b07086 | refs/heads/master | 2023-08-19T11:40:51.727393 | 2023-07-18T03:09:38 | 2023-07-18T03:09:38 | 198,996,041 | 11 | 4 | null | 2023-07-25T21:53:05 | 2019-07-26T10:15:53 | Python | UTF-8 | Python | false | false | 691 | py | import base64
import qrcode
import io
def generate_qr_code(data, size=10, border=0):
qr = qrcode.QRCode(version=1, error_correction=qrcode.constants.ERROR_CORRECT_L, box_size=size, border=border)
qr.add_data(data)
qr.make(fit=True)
img = qr.make_image()
return img
def generate_qr(url_text):
... | [
"jitendra.purbey@xtagelabs.com"
] | jitendra.purbey@xtagelabs.com |
3efd1076857cbe871a485e9d14e6898d2f15a523 | c679493b52a82875ffc862246a510649fb134601 | /visualization.py | 7040fe26fa73ba6d414ea5b3eae2e13bffdb864d | [] | no_license | ahj1592/EDA_tools | 77f55efb6811af2a252c2434981da9326b3732f2 | e9e214d7d5cd22f147dc9effac64d001cc5944e3 | refs/heads/main | 2023-04-24T08:40:22.931650 | 2021-05-01T06:51:31 | 2021-05-01T06:51:31 | 363,340,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | import numpy as np
import pandas as pd
from pandas.api.types import is_numeric_dtype, is_categorical_dtype
import matplotlib.pyplot as plt
import seaborn as sns
def init_plot_theme():
'''
Note:
palette ref: http://hleecaster.com/python-seaborn-color/
'''
sns.set_theme('poster', palette... | [
"noreply@github.com"
] | noreply@github.com |
493d520c0d07928df21fe61e3135dd80f8708dd2 | bd9744fcb00ad0884bc996cc314bbaab6644a165 | /kerasLSTMStock1to1.py | 8dc42fbf6bdc533e0c8bcd70befdfa7d94677112 | [] | no_license | q275212/tensorflow_study | 488e9c51d27230a74329dc1ab24fd5f15bfd205b | 1fa15c3787e8984bad393963f7949aad23d45b24 | refs/heads/master | 2020-12-21T11:09:45.280031 | 2020-01-05T09:21:23 | 2020-01-05T09:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,605 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 1 21:17:06 2020
@author: 64054
"""
import os
import sys
#数据预处理以及绘制图形需要的模块
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
##
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense, LSTM, ... | [
"horace@handytoo.com"
] | horace@handytoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.