blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6acf9c394b3567e8c8c10cc9511edefca51eb2c1 | d9d8f69d3c8bcde622f77335844266d837c0e869 | /computer-vision/image-classification/mnist_rmdl/cnn.py | 5222182808c98751a6b8076f3469746dbb3186ac | [
"MIT"
] | permissive | tyburam/paperswithcode | 3ec29bc5389170a5b747d98d9d82e0cebea2d95d | fcea3fac37e5bf10bb0284216ef7aded4c0c778b | refs/heads/master | 2020-05-03T11:08:22.282849 | 2019-03-31T09:46:17 | 2019-03-31T09:46:17 | 178,594,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | import tensorflow as tf
import random
from tensorflow.keras.layers import Flatten, Dense, Dropout, Conv2D, MaxPooling2D
from tensorflow.keras.constraints import MaxNorm
class CNN(tf.keras.Model):
def __init__(self, shape, number_of_classes, min_hidden_layer_cnn=3, max_hidden_layer_cnn=10,
min_nod... | [
"tyburam@hotmail.com"
] | tyburam@hotmail.com |
8d77c1ca5725c5efe3918715e630d4c0b280af6f | cf803d382d6e0bc7492d787e91a695a2fda944b8 | /model.py | a1971dd66b502e9a7ab9cad39d075165745a907a | [
"BSD-2-Clause"
] | permissive | parenthetical-e/fmri | d676d524cf1606f098864c5bf9e98607674db1ab | 32c5571d8767684ec6586320e85485cd89ed9327 | refs/heads/master | 2021-01-02T22:17:28.243141 | 2020-04-07T06:07:26 | 2020-04-07T06:07:26 | 3,848,746 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | """
A set of functions for creating or maipulating files needed for design
matrices, both in spm and python.
"""
def spm_onsets(trialfile='', durations=3, recode=None):
"""
Map <trialfile> (a 1d csv) into onset/TR time which is determind by
<durations> (which can be an int if every trial had the same leng... | [
"Erik.Exists@gmail.com"
] | Erik.Exists@gmail.com |
637b2c8cd0de5637b00c4895aefbfe5ad720f5b4 | fbac1fc19ca5736aa2ed4a8d846760bec35d9ec6 | /django_tutorial/django_tutorial/settings.py | c5b9d2ade23c39d7b1a6ac6b3d5c93cde9090ed8 | [] | no_license | dsmsfans/Router | 390984b0ee1045d13f55f8935d4a974ce3a23a36 | c685d50c799abadc8405c7bb64df7781cab08587 | refs/heads/master | 2020-03-27T02:41:02.178550 | 2018-09-04T06:22:09 | 2018-09-04T06:22:09 | 145,810,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,344 | py | """
Django settings for django_tutorial project.
Generated by 'django-admin startproject' using Django 1.11.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/setting... | [
"aaa40066@gmail.com"
] | aaa40066@gmail.com |
4906a33c2bde49d3d89e48c0aa86f333a1aef478 | 1602b8f6f40e27269a6d9fe42dbc720a5127b175 | /fleet/category.py | 9b756897fb0f2b29b020ab0444a68c1526aa3707 | [] | no_license | mit-jp/fleet-model | a9f581c2cb56196a13e2db8ef883c1f8b61b2682 | 2c1b293299741a076384114572dc74a988bb8581 | refs/heads/master | 2020-04-11T01:30:26.634473 | 2017-01-29T04:08:31 | 2017-01-29T04:08:31 | 32,412,401 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py |
class Category:
"""Rudimentary ordered tree data structure for vehicle classes."""
_parent = None
_children = []
_label = ''
def __init__(self, label, children=dict(), parent=None):
self._parent = parent
self._label = label
try:
self._children = list([Category(k... | [
"mail@paul.kishimoto.name"
] | mail@paul.kishimoto.name |
62d106841b8e0b9e817e8697892d3be053ff2269 | 7eab259c9134c862d423a3a2b98593ac9dea5cb4 | /pommerman/research/roberta_run_on_cluster.py | 018fc42b0a33cae3d8fe971b7284b17d91ccf21f | [
"Apache-2.0"
] | permissive | cinjon/playground | 73b8dc11f4dd7c3e4e4a5ad0ab219510c635a449 | ad9ec58b2157fa6102636e7f61ef9a712c507a90 | refs/heads/master | 2021-04-15T12:33:46.096603 | 2018-11-25T23:58:04 | 2018-11-25T23:58:04 | 126,177,416 | 1 | 1 | null | 2018-03-21T12:46:52 | 2018-03-21T12:46:52 | null | UTF-8 | Python | false | false | 5,020 | py | """Run on the cluster
NOTE: See local_config.template.py for a local_config template.
"""
import os
import sys
import itertools
import local_config
directory = os.path.join(local_config.cluster_directory, 'florensa')
email = local_config.email
slurm_logs = os.path.join(directory, "slurm_logs")
slurm_scripts = os.pat... | [
"raileanu.roberta@gmail.com"
] | raileanu.roberta@gmail.com |
438250392a8ae34b737cfa93c6142f5cde3b8700 | f7f66d1327238f34d0b3b85c1e221616a95aae8c | /memex_dossier/models/tests/test_soft_selectors.py | d39a3a1aee1c05eb19183ae075f968e1dc3530ee | [
"MIT"
] | permissive | biyanisuraj/memex-dossier-open | 820d5afc8a5cf93afc1364fb2a960ac5ab245217 | 43bab4e42d46ab2cf1890c3c2935658ae9b10a3a | refs/heads/master | 2020-06-07T01:34:51.467907 | 2018-10-09T15:44:58 | 2018-10-09T15:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py |
from memex_dossier.models.soft_selectors import make_ngram_corpus
def test_make_ngram_corpus():
corpus_clean_visibles = ['''
Enlarge Picture Enlarge Picture Enlarge Picture Enlarge Picture Enlarge Picture Enlarge Picture
''',
'''
Enlarge Picture Enlarge Picture Enlarge Picture Enlarge Picture Enlarge Picture En... | [
"jrf@diffeo.com"
] | jrf@diffeo.com |
d7e0e79c5cab0e0de407fa78ce58b54aa7a2fbb8 | 04586203f8a68e114cfcf3e1ffdea96e93a78712 | /Drowsiness_Detector.py | be535a3f694bbd9022806a2be49276f123847082 | [] | no_license | aaronsum1102/drowsiness_detection | a6c4f5e65a1565ccc4fee8f0ae6453e61b567c7d | 6e4a0e85edf642acab204f41f3909f7de355b11d | refs/heads/master | 2021-09-06T14:18:38.588739 | 2018-02-07T12:33:13 | 2018-02-07T12:33:13 | 111,120,988 | 0 | 0 | null | 2018-02-05T14:36:59 | 2017-11-17T15:44:59 | Python | UTF-8 | Python | false | false | 3,684 | py | import cv2
import dlib
import numpy as np
from scipy.spatial import distance as dist
import playsound
from threading import Thread
import os
folder_path = "/Users/PNCHEE/Virtualenvs/tensorflow/dlib"
predictor_path = "shape_predictor_68_face_landmarks.dat"
alarm_path = "Wake-up-sounds.mp3"
image_path = "photo2.jpg"
# g... | [
"noreply@github.com"
] | aaronsum1102.noreply@github.com |
87e8b16a2d83845e4d137ca080069e56f6a1690d | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/awentzonline_keras-rtst/keras-rtst-master/keras_rtst/models/style_xfer.py | d88c20d29b26ef489cc52a716031330e201234f5 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 5,226 | py | '''Texture Network for style transfer.'''
import time
import keras_vgg_buddy
import numpy as np
from keras import activations
from keras import backend as K
from keras.layers import advanced_activations
from keras.layers.core import Layer
from keras.layers.convolutional import AveragePooling2D
from keras.models import... | [
"659338505@qq.com"
] | 659338505@qq.com |
5d3214e939d97eed810c36824298bc5702d18f09 | c654a6f4a5168e4a5eefec1bb207a289a6a4f2fd | /mainpage/migrations/0001_initial.py | 1b0fa1ce32e6819a4c3128a9f937c4ee70a77896 | [
"MIT"
] | permissive | EnzioKam/nusmm | 98ed693b61dd0ac11a8a59ddf035a870e1519639 | ffd3c42b063ebbdefb4ab7114e216575a6b7ea2a | refs/heads/master | 2020-03-18T23:26:34.089809 | 2018-10-05T04:03:59 | 2018-10-05T04:03:59 | 135,403,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 2.0.6 on 2018-06-03 15:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Mapping',
fields=[
('id', models.AutoField(... | [
"enziokamhh@gmail.com"
] | enziokamhh@gmail.com |
366ad807aedcc7af54f5060dcaa12dc46f0f7613 | 4beb10c8a8023f4945c996a1487ec1b3968cb5da | /f5_lbaas_dashboard/enabled/_1480_project_loadbalancersv2_panel.py | d89ef94a631dd6c077b8bc716031d61c12c3ef69 | [
"Apache-2.0"
] | permissive | F5Networks/f5-lbaas-dashboard | 7aebb669a27d8ebdc9feaa7f088f9158fb157046 | 62cb1dfbb87c94bdcb3f53f6ec2ab0004ac43d54 | refs/heads/master | 2023-03-28T01:59:58.666570 | 2022-09-27T01:16:34 | 2022-09-27T01:16:34 | 147,327,541 | 0 | 0 | Apache-2.0 | 2022-09-27T01:16:37 | 2018-09-04T10:15:51 | JavaScript | UTF-8 | Python | false | false | 993 | py | # 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, software
# d... | [
"a.zong@f5.com"
] | a.zong@f5.com |
d8017250287f045e7fcc6c74bbd3730a455096c8 | 582cc4d5d711b26d16c67795e6d0e035c737b62f | /src/data/datasets/mimic_cxr/section_parser.py | 7904075b7c11dede08810f8bfc4e12b090cad734 | [
"MIT"
] | permissive | xiaoman-zhang/lovt | 821a1731be2f35f6b641426da4de6c5fc1a0474a | 91cf2094a0e140b8431b8e4ebadc56547a8df6b2 | refs/heads/main | 2023-09-02T12:16:49.168300 | 2021-11-15T14:30:10 | 2021-11-15T14:30:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,850 | py | """
From https://zenodo.org/record/3539363
"""
import re
def section_text(text):
"""Splits text into sections.
Assumes text is in a radiology report format, e.g.:
COMPARISON: Chest radiograph dated XYZ.
IMPRESSION: ABC...
Given text like this, it will output text from each section, ... | [
"philip.j.mueller@tum.de"
] | philip.j.mueller@tum.de |
b26436e93cc297033d7872567d5a1e8d9bfb742f | 741997b9a078969c889e3602537767341bc6fd86 | /IMDB_scrape_Top_rated.py | 7ac3f20015b8f6f5250c1cf793864ddade998b86 | [] | no_license | Jaseem-Mohammed/Scraping-IMDB-for-Movie-deatails | 8042c44776af5adb3763c5b4d4568c631bb61155 | 98b7954c444962ad771f544b4dd28462307028bc | refs/heads/main | 2023-02-05T13:03:30.537910 | 2020-12-22T07:03:16 | 2020-12-22T07:03:16 | 323,547,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,900 | py | from time import sleep
import requests
from bs4 import BeautifulSoup
import pandas as pd
rank = []
name = []
year = []
certificate = []
runtime = []
genre = []
rating = []
story = []
director = []
cast1 = []
cast2 = []
cast3 = []
cast4 = []
gross = []
base = 'https://www.imdb.com/search/title/?tit... | [
"noreply@github.com"
] | Jaseem-Mohammed.noreply@github.com |
f0708c24fd6f6ad48737cffa37907961622cd1ca | 911e7b25961067339c31957ff41ebdb3c355d948 | /_utils/python/libs_my_test/test_http_util2.py | bce813fa41030ee2228f882b54d33f586e0f1d73 | [] | no_license | qlong2012/notes-1 | c93efcc9a70f786929ef7e4c053e266e2bf354ad | 78913e8235845d4a94dd19f730d607df754da7fe | refs/heads/master | 2020-05-20T01:05:04.678662 | 2019-04-25T10:06:37 | 2019-04-25T10:06:53 | 185,303,355 | 1 | 0 | null | 2019-05-07T02:10:14 | 2019-05-07T02:10:14 | null | UTF-8 | Python | false | false | 17,681 | py | #!python
# -*- coding:utf-8 -*-
"""
公用函数(http请求处理) http_util2.py 的测试
Created on 2019/3/14
Updated on 2019/3/14
@author: Holemar
依赖第三方库:
tornado==3.1.1
通过用线程启动一个 tornado 服务器来测试 http 请求
(使用 mock 的方式需要很了解 urllib 库,暂没那功力,做不到)
todo:测试 压缩 和 线程 时,使用读取日志的方式,不太精确。后续需优化
"""
import os
import logging
import unittest
import t... | [
"daillow@gmail.com"
] | daillow@gmail.com |
0d71b5f5dcdcc4de44f8fc1705dd0fe879f6ca04 | 1494d703aeea5de217731b9c60d1b724cba299dd | /网络图片你的爬取和存储.py | 186949917035a199f47010734a7cc679db2b4b3c | [] | no_license | Thomas-Sue/Python | a4d55f04e94c70c7f6f47b6411dcd1be74b9d602 | 0f28d825e73cdb89cd8beb61fb3484ebe38b17ca | refs/heads/master | 2021-01-12T03:53:15.750428 | 2017-03-30T07:15:12 | 2017-03-30T07:15:12 | 78,280,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 15 11:14:56 2017
@author: hp
"""
import requests
import os
url = "http://image.nationalgeographic.com.cn/2017/0309/20170309051020267.jpg"
root = "F://"
path = root +url.split('/')[-1]
try:
if not os.path.exists(root):
os.mkdir(root)
if not ... | [
"noreply@github.com"
] | Thomas-Sue.noreply@github.com |
5bb9776224c4813a523963dc2805bc70a092fa60 | 40d5394eea0c1288fcdd57180a0141672cb198fa | /users/views.py | d8f37654f883f0bde0e2232915ec025e0a7e6ec4 | [
"MIT"
] | permissive | mornicamwende/ranker | 6c12b0297703ac559de84bb0b36396ec2738f970 | 107bcaad61bb5e726570a8250b55eb2e6245dc7a | refs/heads/master | 2023-01-07T00:18:54.192155 | 2020-10-27T17:07:21 | 2020-10-27T17:07:21 | 306,592,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from .models import Profile
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
# Create your views here..
def register(request):
if request.method =='POST... | [
"mornicamwende@gmail.com"
] | mornicamwende@gmail.com |
38772a45c69fa1ed780c9de5395c76f6ebc40017 | c035b7d588692d321a34c6c11d5064e99143a1fe | /idgo_admin/migrations/0038_auto_20180215_1517.py | 0abdf440cd07eec7eb8ff7068218abcc85a36da3 | [
"Apache-2.0"
] | permissive | jerbou/idgo | 2fbaf35ec3bdf62cd883c0465c3dccaaddceab75 | 89e5ddefd4d0cb1d1aea3820b0c17ba99b4cf8d0 | refs/heads/master | 2020-08-07T10:49:14.079562 | 2019-09-25T13:48:03 | 2019-09-25T13:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-02-15 14:17
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('idgo_admin', '0037_auto_20180215_1135'),
]
operations = [
migrations.RenameField(
... | [
"niark.hipps@gmail.com"
] | niark.hipps@gmail.com |
449e5f4d3e112507dc7540c319584658b70805eb | 560df0c3f859ae2d4c279f4669f9ab8758c486fb | /old/Euler063.py | defeccb9479085d6e4df2722c16167b7442a9de6 | [] | no_license | gronkyzog/Puzzles | 0e7cdd7fa5ab8139d63a721cac5ee30e80728c7a | cdc145857f123a98f1323c95b5744d36ce50355f | refs/heads/master | 2021-03-13T00:01:17.715403 | 2015-02-22T11:59:03 | 2015-02-22T11:59:03 | 17,100,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | import math
counter = 0
for p in range(1,1000):
for n in range(1,1000):
x = p**n
z = len(str(x))
if z == n:
counter +=1
print counter,p,n,x
if z > n:
break
| [
"smcnicol@gmail.com"
] | smcnicol@gmail.com |
ffa2de1f91cfcb7a68bd7165e4c32a091870427e | 3ee11cf1059030c5bd53c4f15c2a1c950df184ac | /app1/dino.py | f5803ebc09fe9bbbb46c7866727f36bf686ea681 | [] | no_license | kz2d/python_project | 6cb9216d029053574450d897ee75404ebd074ed5 | 7932e7d774476fcfb9ce99d3199e663a866bf94a | refs/heads/master | 2022-12-24T12:21:35.130070 | 2020-09-24T07:30:03 | 2020-09-24T07:30:03 | 296,802,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,595 | py | from PIL import ImageGrab
import os
import pyautogui as pq
import keyboard
def Jump():
#pq.screenshot('C:\\Users\\Professional\\PycharmProjects\\app1\\screen.png')
#f = Image.open('C:\\Users\\Professional\\PycharmProjects\\app1\\screen.png')
#g=f.load()
x=pq.position().x
y=pq.position().y... | [
"noreply@github.com"
] | kz2d.noreply@github.com |
b44c18c0337ef4ede7f2ee27dff0c56a32873a98 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5639104758808576_0/Python/hongkai/standing_ovation.py | 85c7aaf75714250e3ffa80b7c69e7aa3067301b0 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | fin = open("../../Downloads/A-small-attempt0 (1).in", "r")
out = open("standing_ovation.out", "w")
cases = int(fin.readline())
for i in range(cases):
d, shy = fin.readline().split()
min = 0
curr = 0
for x in shy:
curr += int(x)
curr -= 1
if curr < min:
min = curr
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
df50bd9305125ca4d70a7b757301e0385e8002ee | 61f21d076d1163529e37ef6cfe9911ce246fb653 | /hfcs-fffit/runs/r125-density-iter1/project.py | f501260a1afc15dcdd6f57f0eb9798c3bd06ab01 | [
"MIT"
] | permissive | helpscott/hfcs-fffit | e0e4cde1ef882e2146ea23781083b09d60b2d8fb | 4f94145a9473fa4b7f16ca4a2d18966d34f901b2 | refs/heads/main | 2023-06-20T07:54:56.610123 | 2021-07-13T20:55:53 | 2021-07-13T20:55:53 | 436,075,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,911 | py | import flow
from flow import FlowProject, directives
import templates.ndcrc
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
class Project(FlowProject):
pass
@Project.operation
@Project.post.isfile("ff.xml")
def create_forcefield(job):
"""Create the forcefield .xml file for th... | [
"r.s.defever@gmail.com"
] | r.s.defever@gmail.com |
399be31c3aaa0c2b7e32f93aef8afcabd90b474c | 647ef582232f0f6c35dc31a89c1cabde60caaadf | /sec7_bunnsann.py | 3c6fdce15870f34df43980944766bdb57655283d | [] | no_license | yuko-sasaki/my_chatbot | 0472d4976e01b6bf54c0d4cb6523cd058f0ea54c | 7a77c97b27cae3aa293c0b9dc7abadaf87849d58 | refs/heads/master | 2022-12-13T15:10:25.947397 | 2020-09-08T12:45:02 | 2020-09-08T12:45:02 | 292,828,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | from gensim.models import word2vec
import pickle
with open("dataset/ginga_words.pickle", mode='rb') as f:
ginga_words = pickle.load(f)
model = word2vec.Word2Vec(ginga_words,
size=100,
min_count=5,
window=5,
i... | [
"sasakiy.2233@gmail.com"
] | sasakiy.2233@gmail.com |
97f78d057353db5df358e1e31bac1b98392279f5 | 646b0a41238b96748c7d879dd1bf81858651eb66 | /archive/memd.archive/gulp/Potential.py | ac129df6be3cb0a4594a14181a7914d174181b84 | [] | no_license | danse-inelastic/molDynamics | ded0298f8219064e086472299e1383d3dff2dac3 | c8e0bfd9cb65bcfc238e7993b6e7550289d2b219 | refs/heads/master | 2021-01-01T19:42:29.904390 | 2015-05-03T17:27:38 | 2015-05-03T17:27:38 | 34,993,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Brandon Keith
# California Institute of Technology
# (C) 2005 All Rights Reserved All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~... | [
"jbrkeith@gmail.com"
] | jbrkeith@gmail.com |
9450412ca95624708fe0ba54ba1780d0d0691d95 | 4c639c521834f4349ba2165e72c5857ddecee625 | /acoustic_X_text_X_visual/AttComb_aXtXv/gender/attention_fusion_network/archived_models/archived_model_1_(MSE_best)/metrics.py | 9b7d3a09c1cd9ee948834703374dc115f06d923e | [] | no_license | arbaazQureshi/attention_based_multimodal_fusion_for_estimating_depression | f4ea86746d9961fe4b9cf4f88f6cec604a201656 | e4c57ac51c271c36c244c260b01a22fa1897ffcb | refs/heads/master | 2020-05-19T22:48:03.665953 | 2019-05-06T19:34:31 | 2019-05-06T19:34:31 | 185,252,875 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import numpy as np
import sklearn.metrics
from load_data import load_development_data
from load_model import load_model
import os
os.environ["CUDA_VISIBLE_DEVICES"]="1"
if __name__ == "__main__":
model = load_model()
model.load_weights('optimal_weights.h5')
dev_COVAREP_X_FORMANT, dev_facial_X_pose, dev_gaze_X_... | [
"arbaaz.qureshi29@gmail.com"
] | arbaaz.qureshi29@gmail.com |
a2453d90db22aca756d619b74b525d6186f4875d | 699c7f26a91106a2fc79bb15299ce0cee532a2dd | /xrayspecprocessing/multi.combine.group.py | ff57d3b4c05ec312c219fc8fc8133076e2dafd82 | [] | no_license | samconnolly/astro | 70581a4d3f2086716aace3b5db65b74aaaa5df95 | 3731be313592c13dbb8af898e9734b98d83c0cc2 | refs/heads/master | 2020-04-06T03:40:27.454279 | 2014-03-12T14:36:34 | 2014-03-12T14:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | # multi.combine.group.py
# Uses the HEADAS tool addspec and grppha to sum sets of spectra, assign their
# summed background and response files and produce a grouped spectrum
# Uses a text file of input spectra. Does so from output file from listbinmin.py
# Sam Connolly 4/3/13
import os
# ====================== PARAM... | [
"sdc1g08@soton.ac.uk"
] | sdc1g08@soton.ac.uk |
afe6fb6ea78861b1fe883e0bd6d315b4ab07ef6f | deeb2ecb908bff31d529d2a62f55402f31b6f6d4 | /lib/bracket/match.py | 571746ee1a95978cf691490ea01f4fc5c54d6582 | [] | no_license | kaahanmotwani/BracketOdds | 15c1cf47d6a63026f4ea0a16208bd93c8c916b77 | 9eba08a8eb92bab49e1432e6e322c54d13cfd48b | refs/heads/main | 2023-04-01T20:22:54.294503 | 2021-04-04T19:24:17 | 2021-04-04T19:24:17 | 354,626,772 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | #!/usr/bin/env python
import json, random
from .round import Rounds
from .team import Team
class Match():
'''
Defines one game between two teams.
Attributes
----------
t1 (Team) : Team name representing one team in the game.
t2 (Team) : Team name representing the other team in the game.
rn... | [
"noreply@github.com"
] | kaahanmotwani.noreply@github.com |
d6be39975503b9ee74494283f53f20958abe1ebb | ed4ac9c066c717e633cabd9c5e2468536fa62eae | /csv2coco.py | 55562a83e0e01fbcdbaba8a9eee312ef138ed098 | [] | no_license | riven314/Image-AffineSynthesis | 252c9fc1eacc919dfb210fba6b76712e4542e5c9 | d6253a3f18a0c149d261fb1b48ebcb64828bb8df | refs/heads/master | 2022-03-26T02:36:20.032469 | 2020-01-07T09:29:06 | 2020-01-07T09:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,466 | py | """
REFERENCE:
https://github.com/spytensor/prepare_detection_dataset/blob/master/csv2coco.py
"""
import os
import json
import numpy as np
import pandas as pd
import glob
import cv2
import os
import shutil
from IPython import embed
from sklearn.model_selection import train_test_split
np.random.seed(41)
... | [
"alexlauwh@gmail.com"
] | alexlauwh@gmail.com |
6081db8cf57edcbf12e218e1c892028efc17a9ee | 7bfa66eab25be71e8d7552e873904879fa86d3e4 | /WorkSpace/DL_STUDY/GradientDescent.py | 219df9a0ed7ece615c00ce82c36eb3eeff663acc | [] | no_license | imzkj/BigDataNote | 2393338cba0db1f32beb466c20d1253fff681605 | e1760e73af3b7581a07f3fe48ee438407cb52adc | refs/heads/master | 2022-12-24T12:05:58.238614 | 2020-11-14T11:00:23 | 2020-11-14T11:00:23 | 88,461,322 | 4 | 2 | null | 2022-12-16T11:39:09 | 2017-04-17T02:50:58 | Jupyter Notebook | UTF-8 | Python | false | false | 4,496 | py | #-*- coding: utf-8 -*-
# y=3*x1+4*x2
# BGD(Batch gradient descent)批量梯度下降法:每次迭代使用所有的样本
#用y = Θ1*x1 + Θ2*x2来拟合下面的输入和输出
#input1 1 2 5 4
#input2 4 5 1 2
#output 19 26 19 20
input_x = [[1,4], [2,5], [5,1], [4,2]] #输入
y = [19,26,19,20] #输出
theta = [1,1] #θ参数初始化
loss = 10 #loss先定义一个数,为了进入... | [
"kejia_zheng@suishouji.com"
] | kejia_zheng@suishouji.com |
90f3a1579b03c885d357847d03aa880941393c76 | 8b3929c64c241a7c378a8c61370ab0446d4e9627 | /mysite/settings.py | 8fd3b3d637fe2b35a611cac53bade48699469348 | [] | no_license | nianzifan/zn2169_hw15 | 0de2e2370bfa1d1687fc58f19bfe993f370b2db3 | f620f29b9f374876161b0a9be235ac1ad1caef37 | refs/heads/master | 2020-09-13T12:42:12.315119 | 2019-11-19T20:45:04 | 2019-11-19T20:45:04 | 222,784,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,088 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"zn2169@columbia.edu"
] | zn2169@columbia.edu |
0c625d404b4ddb129d061a2da51d7713e3882858 | ec765b7bfab4d064811545059f4adb91dc7925bb | /src/collective/hello/testing.py | 65edffc85b01fddd34758ab2d0b2429fcd027234 | [] | no_license | collective/collective.hello | e552bdc4384aa08105b1954b4a52938079ff18ce | 124dd900a63a40a6cdefea5118863ea5bbcb34e8 | refs/heads/master | 2023-06-26T15:39:12.434036 | 2015-12-15T14:15:24 | 2015-12-15T14:15:48 | 47,541,044 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # -*- coding: utf-8 -*-
from plone.app.contenttypes.testing import PLONE_APP_CONTENTTYPES_FIXTURE
from plone.app.robotframework.testing import REMOTE_LIBRARY_BUNDLE_FIXTURE
from plone.app.testing import applyProfile
from plone.app.testing import FunctionalTesting
from plone.app.testing import IntegrationTesting
from pl... | [
"simon.previdente@free.fr"
] | simon.previdente@free.fr |
d3249edfbd3bfe038c605e6a6c80a59a783bba05 | 4bd5e9b67d98bfcc9611bd8b774c9ab9f4f4d446 | /Python基础笔记/19/代码/2.协程.py | b87a5c7b38c3ac5ebbe4f72a39d93ec54e0ed60b | [] | no_license | zhenguo96/test1 | fe21510aea7feb674e52fd7a86d4177666f841c5 | 0d8de7e73e7e635d26462a0bc53c773d999498be | refs/heads/master | 2020-05-03T13:09:53.592103 | 2019-04-06T07:08:47 | 2019-04-06T07:08:47 | 178,646,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # 协程
def sub():
print("开始")
x = yield
print("x = ",x)
y = yield x + 1
print("x = ", x, "y = ", y)
yield
x1 = sub()
next(x1)
print(x1.send(3))
x1.send(4)
| [
"1148421588@qq.com"
] | 1148421588@qq.com |
6fad72c47d5212ee3f01f4250924bd36d19c42dd | 9d59216e63ca62b8daa9033a3bab3fae390b3d07 | /solutions/python/shortest_word.py | 85d63cfeb9bfb1b65279cd40d6ae594140e98b08 | [
"MIT"
] | permissive | kgraves/codewars-kata | 6e3ffa0ba9717d3a812d15525ebf9a434fff499f | 47721fb0ec04fffdb43d41409a7b006a262d8d40 | refs/heads/master | 2021-01-18T17:58:55.232617 | 2017-05-25T06:02:08 | 2017-05-25T06:02:08 | 69,683,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | def find_short(s):
srted = sorted(s.split(' '), cmp=lambda x,y: len(x)-len(y))
return len(srted[0])
import unittest
class TestShortestWord(unittest.TestCase):
def test_shortest_word(self):
self.assertEquals(find_short("bitcoin take over the world maybe who knows perhaps"), 3)
self.assertEq... | [
"kylgrvs@gmail.com"
] | kylgrvs@gmail.com |
50de13f4dab09e45adff88729a6fda2d7a4f4061 | 11207733bbb065123f14e42d5f2b12cbf2446317 | /prog/quast/quast_libs/fastaparser.py | 64f479b670ed6f56e8e94bcb2226424240d9294a | [] | no_license | evaldocosta/melc | 81a93bbe84cf8a55a5754931d903816d9d9210e2 | f9fd9f6994efe82cf1557f164cd8c85c43bd80a3 | refs/heads/master | 2022-03-17T17:24:42.571608 | 2022-02-27T22:45:42 | 2022-02-27T22:45:42 | 65,914,720 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,179 | py | ############################################################################
# Copyright (c) 2015-2018 Saint Petersburg State University
# Copyright (c) 2011-2015 Saint Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
##################################################################... | [
"evaldodacosta@gmail.com"
] | evaldodacosta@gmail.com |
2e6c96eebb6bfd7df53fac17a2a7426d3b7e2769 | 60eb98538025c61cf94a91f6c96f9ee81dcd3fdf | /monai/metrics/regression.py | 044f99f1a540fd04348675877a6d73fce7eb1cd9 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | gagandaroach/MONAI | 167e7746995d4b6136731881e22ad4df333b16a9 | 79b83d9fac41efae9b90ed2f9ad078d6d664bf64 | refs/heads/master | 2023-06-02T19:54:47.737846 | 2021-06-24T18:34:02 | 2021-06-24T18:34:02 | 270,741,899 | 0 | 0 | Apache-2.0 | 2020-06-08T16:29:32 | 2020-06-08T16:29:31 | null | UTF-8 | Python | false | false | 9,758 | py | # Copyright 2020 - 2021 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 wri... | [
"noreply@github.com"
] | gagandaroach.noreply@github.com |
29d0e0ec5b2fe97cccdec9c22eb438321a537b2f | 68405fe5bec0b374867f44effda2cba3b6c1ebaa | /src/wscript | f00c671bc10cc29f13fb109cbb091ca449571257 | [] | no_license | unnonouno/oxelon | fce3dfd3d6d617d0268e34ed875e152989d60859 | 3686863b81db2dc23996cf305001e2ad56332086 | refs/heads/master | 2020-04-04T01:53:12.896018 | 2014-01-23T17:08:59 | 2014-01-23T17:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | def build(bld):
bld.recurse(['oxelon', 'cmd'])
| [
"unnonouno@gmail.com"
] | unnonouno@gmail.com | |
30d43569f10434bcbbcdb184ca740ab472a7f4f7 | 79e04c2bdf8ad0d44770fa7266c8d8a3b8f6679a | /server/search.py | 7949bffe550f405eab2e3e859618f890562a6f2b | [] | no_license | AmitProspeed/Songle | 313374082827fffd2b93490672440a6522e7fa4f | bdedcff371bc5dc08cee46bd43ca0951534ab61f | refs/heads/main | 2023-05-04T01:36:56.126669 | 2021-05-19T18:23:38 | 2021-05-19T18:23:38 | 368,962,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,239 | py | #assuming database is filled, and somebody is searching for a song by lyrics
#query database with the lyrics the user input, based on search algorithm
#return song names that match
import re
import regex
import gc
import sys
import copy
import nltk
import math
import bson
import pickle
import os.path
nltk.download('s... | [
"amitbaranroy@gmail.com"
] | amitbaranroy@gmail.com |
3745e86fb8119a35d2f2f9caf1792e4035e1ef5a | 1ea184317bc7f54850a54853a0815a8947ea227d | /api/migrations/0001_initial.py | 9dc8fb8ecb8532e626a9450ee6a80e90f6be4025 | [] | no_license | loskuta42/api_yamdb | f94d2e8bba6a941e3b0d79a87bb20f67bb7b4252 | 685013943190697706289523b35925a165d8f06f | refs/heads/master | 2023-07-16T20:49:59.920392 | 2021-08-10T12:56:03 | 2021-08-10T12:56:03 | 372,467,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,821 | py | # Generated by Django 3.0.5 on 2021-06-05 13:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"loskuta42@yandex.ru"
] | loskuta42@yandex.ru |
09a1c2eadde05478740f790fe20f7e55020adb08 | dfa77374ba7f3f8bf7965e646527dedc622085d7 | /gcastle/castle/algorithms/gradient/pnl/torch/utils.py | 7a978d2524e188ff65788d77e735f87e62c67e54 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/trustworthyAI | 7aa72721df59c3c4f75b7b9a037c5b71fb1284a1 | 238cbc41865ddf629bb6ae92c2e1445be27f98b8 | refs/heads/master | 2023-08-28T13:36:10.929075 | 2023-08-15T12:51:46 | 2023-08-15T12:51:46 | 248,501,097 | 832 | 206 | Apache-2.0 | 2023-08-15T12:51:47 | 2020-03-19T12:46:47 | Python | UTF-8 | Python | false | false | 2,031 | py | # coding=utf-8
# Copyright (C) 2021. Huawei Technologies Co., Ltd. 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
#
# ... | [
"zhangkeli1@huawei.com"
] | zhangkeli1@huawei.com |
69d188c6f93746880df493c31c31a89e158a418c | e4d9d73b13355abdc6f0832b213d17668a5f3e83 | /Restaurant.py | 1dbcf0bc0498073f71a36cf7313bb6952e1730c2 | [] | no_license | liuhpleon1/MenuApp | 1a8f49ff5fc68ff5aa05717721104c1927b637df | 2af5ebf85654b0c9f6d462dc6c55321b9cdf6b55 | refs/heads/master | 2021-06-10T08:24:19.073434 | 2017-01-26T10:34:53 | 2017-01-26T10:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | from flask import Flask, render_template, request, url_for, redirect, flash, jsonify
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from DB_setup import base, Restaurant, Menu
engine = create_engine('sqlite:///restaurant_menu.db')
base.metadata.bind = engine
DBsession = sessionmaker(bind ... | [
"liuhpleon@gmail.com"
] | liuhpleon@gmail.com |
5b4e3462306a648b157f6340293fdfc26fdf4b03 | d2e128aa8c13014b01f3a3add200c0a577a87b20 | /newspaper_project/settings.py | afa2abe90a16bd37585af6040a2056d8ed40bc8c | [] | no_license | wmbusse/news | 4e3cfe8bcba6f30c18e967af3ebd093384d1845b | 7e52517d12e5ce1890d462ff39b79729e408590a | refs/heads/master | 2023-08-01T06:37:50.224820 | 2020-07-27T18:09:43 | 2020-07-27T18:09:43 | 282,973,767 | 0 | 0 | null | 2021-09-22T19:38:40 | 2020-07-27T17:51:27 | Python | UTF-8 | Python | false | false | 4,039 | py | """
Django settings for newspaper_project project.
Generated by 'django-admin startproject' using Django 3.0.8.
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/
"""
im... | [
"wmbusse@gmail.com"
] | wmbusse@gmail.com |
f04c84b7d356a6ac5d58c10a9bbba43264002465 | d399440c95e932776dad729797df541c841832f4 | /accounts/migrations/0005_auto_20210103_1313.py | 28f6c02962235c087f210dc534392088339e058c | [] | no_license | Shanan93/Build_Django_Vezzeta_Site | acb0e0dece5a700c3777e2deb8bac782cdc81384 | 36260a90ea7822a1a33154548cd2e68d7f9812a0 | refs/heads/master | 2023-02-12T00:34:14.363582 | 2021-01-06T13:36:02 | 2021-01-06T13:36:02 | 326,609,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | # Generated by Django 2.2.7 on 2021-01-03 11:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20210103_1156'),
]
operations = [
migrations.AddField(
model_name='profile',
name='adress',
... | [
"Mohamed.shanan48@gmail.com"
] | Mohamed.shanan48@gmail.com |
b1e654c2984d2ebd3ab95a77fda83557950cc4a3 | ed51198afe77d2000806665891f53c9ed1217c41 | /pythonfile.py | 35da26c0dbe1d00075c7b570891193f8ca741d96 | [] | no_license | mrubakh/Statistical-Regression-and-Python-Web-Scraping-Colgate-Enrollment-Numbers | 46c27a7361c0b744b679a7813119453f1c71e64e | 6f283598d20be043c17a0b415922fed5b695bc3b | refs/heads/master | 2020-05-30T10:46:19.876338 | 2019-07-03T15:59:14 | 2019-07-03T15:59:14 | 189,680,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | import requests
import urllib.request
import time
from bs4 import BeautifulSoup
import csv
dept_list = [] #This will contain all the department prefixes
term_list = ['201802','201801','201702','201701','201602','201601'] #Hard-coded for simplicity; we want a few years of data for comparison
##url = "http:/... | [
"noreply@github.com"
] | mrubakh.noreply@github.com |
bf35281edad5c88f696d993ba8f8d3de915998fa | 20fa612597a0cbc920d400864e09d54d6847aa29 | /data_visualizer.py | b0aae8a02f45745609f39175140e8f4b6947b05f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | inspiros/pcmvda | 87670fbcec04e39385e5dc5ba2c4172b5841bb5c | a05c0d5a297983675550f029495ff96073506161 | refs/heads/master | 2023-06-07T20:40:52.095547 | 2023-05-27T10:35:15 | 2023-05-27T10:35:15 | 307,844,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,629 | py | import os
from typing import Optional, Union, Sequence, Tuple
import matplotlib.colors as colors
import matplotlib.gridspec as gridspec
import matplotlib.lines as lines
import matplotlib.patches as patches
import matplotlib.pyplot as plt
import numpy as np
import seaborn
from matplotlib.axes import Axes
from matplotli... | [
"inspiros.tran@gmail.com"
] | inspiros.tran@gmail.com |
0ef155308b1d5158ba8cfdab7c3d8f932d9fa5ad | e7e0723b4df5a47a56dad23036f21a77b0600452 | /Old-web/src/admin.py | ae46cd78eabffd87ecb1bae4d4c3778ee7e96af8 | [] | no_license | aryanaces/MSC-Official-Website | 7c5803f34577c6cc32873df10abcf24d4e3c59bb | 7e6890701d7a81c467648c3bbfeb18f7bcca3fe3 | refs/heads/master | 2020-09-24T18:32:50.359613 | 2019-11-15T13:25:49 | 2019-11-15T13:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,095 | py | from django.contrib import admin
from .models import *
from .actions import export_as_csv_action
#from import_export.admin import ImportExportModelAdmin
# Register your models here.
class core_team_model(admin.ModelAdmin):
list_display=["name","post","fb_link","git_link","linkedin_link"]
class Meta:
m... | [
"arjavjain59998@gmail.com"
] | arjavjain59998@gmail.com |
3260dc302f4391afe755256b44ea9ca140f33a0e | 8ad8ee4e3a4e0e8ae0ed8e92c68cf122f5ba3723 | /jk_en/jk_en/sendEmail.py | e87f6f678832966b752cbb243ab64a762fe3c534 | [] | no_license | yangyangyanga/automatic_update | 5b5065713853c4a1225142ece4ea39be1a05d011 | 53c1777cbb84e489b887f38e2745477d6b6f4604 | refs/heads/master | 2020-05-25T21:18:24.979779 | 2019-05-22T08:34:02 | 2019-05-22T08:34:02 | 187,996,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | import smtplib
from email.mime.text import MIMEText
from email.header import Header
from email.mime.multipart import MIMEMultipart
import pymysql
def sendEmail(subject='无标题',messageText='无内容'):
# accepter = 'zjlhyd0422@163.com'
accepter = "625786425@qq.com"
sender = "cyh6257@163.com"
# 三个参数:第一个为文本内容,第二个... | [
"1102213456@qq.com"
] | 1102213456@qq.com |
6e13a86a38a7074885b34f89dead98ef3c467f1b | 2dc613c1e66e20e5e400c91beee9251da20f5b23 | /cameras/migrations/0001_initial.py | 8db906111a230d9e4dfc5a2b3e1378ddc22e0fd6 | [] | no_license | Lol-Devs/what-the-pic-server | b86c6708befe024e0e4586d339bf2a95d3ff66e9 | 5a0c569576076e1871d3fe488b60d6eb3962b579 | refs/heads/main | 2023-07-06T08:27:42.198937 | 2021-08-07T11:42:50 | 2021-08-07T11:42:50 | 393,531,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | # Generated by Django 3.2.6 on 2021-08-07 02:06
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Camera',
... | [
"ivan.gufler@tfobz.net"
] | ivan.gufler@tfobz.net |
f736b689aa16b25f7ebcc257bdcb50e7e1fb736b | 6c3aecc9c37e7e0264c508dd781d2ad20c8b41b0 | /fakecsv/settings.py | ed6e28c328ddc6affd09b84ffc54de581e1cd2b8 | [] | no_license | shams0910/fake-csv | c53186111be61c1119e3167cedcbdac42e28d3f2 | 90aefb28fd3583f5d79bbd54d0f81f8742662981 | refs/heads/master | 2023-04-23T12:54:06.472701 | 2021-05-11T07:09:35 | 2021-05-11T07:09:35 | 364,623,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,924 | py | """
Django settings for fakecsv project.
Generated by 'django-admin startproject' using Django 3.1.4.
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/
"""
# import djan... | [
"shamsiddin2000.09@gmail.com"
] | shamsiddin2000.09@gmail.com |
64183f6a05e4f1c1c9a3020a36e2d519263948ec | 581b4d9507f9580bbcd1a9acfad9fbff018173af | /Books/TextMiningABC/4-00.3.plot.py | fe509d5bded68c51664afebf2221a7200fb967fd | [] | no_license | matoken78/python | 0e6c79bccfa13df2f4e400dad0a1a071a8ecfd5f | d76492dfc6ba33735ca6ee5085782a139b8b7549 | refs/heads/master | 2021-06-05T01:21:45.239174 | 2020-03-01T05:13:31 | 2020-03-01T05:13:31 | 133,585,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,843 | py | import matplotlib.pyplot as plt
import numpy as np
import nltk
from nltk.corpus import inaugural
from collections import Counter
text = inaugural.raw('1789-Washington.txt')
sents = nltk.tokenize.sent_tokenize(text)
# sents の文ごとの文字数のリストを作り、Counterで頻度を数える
cnt = Counter(len(x) for x in sents)
# 長さと頻度の降順にソートして表示(頻... | [
"matoken78@gmail.com"
] | matoken78@gmail.com |
4a6d0e9e62e869dd1c32e50729222a00bdb0eb19 | 8d6788e459af7e457bd2ceb97fc3b0aeb7a7d093 | /task1_understanding_OTP/otp.py | bba69fc5f6558e9c80dab3cc2de88fc7e0a5a973 | [] | no_license | cris391/Cryptography | bc593dd523a119d903d3f19a9f0695f54ffb75e2 | 27070d6cd043bcf66fd73852fe14e317e6d37c88 | refs/heads/master | 2020-04-01T21:21:24.347541 | 2018-12-11T09:36:10 | 2018-12-11T09:36:10 | 153,651,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from PIL import Image, ImageChops
plaintext = Image.open("./example/plaintext.jpeg", mode='r').convert("1")
key = Image.open("./example/key.gif", mode='r').convert("1")
encrypted = ImageChops.logical_xor(plaintext, key)
encrypted.save('encrypted.gif', 'GIF')
print(plaintext.format, plaintext.size, plaintext.mode) | [
"cristianpand@yahoo.com"
] | cristianpand@yahoo.com |
65b9341d74e0d9ee36c3676d0dd08ee9bd7ca9be | b35c288c0b534e2714c7ff73bf87f2265737e39e | /practice3.py | dbf4b2a78ff25fff3091627b6265ada6aa975aa7 | [] | no_license | PaulLiuEngineering/python_practice | 26ddfd82157c168d09e35113df8cae8fc957bfb6 | c5dbbd80464bcadbaa0f29915141ea29d6b92762 | refs/heads/master | 2020-04-14T06:43:36.936019 | 2018-12-31T19:55:48 | 2018-12-31T19:55:48 | 163,694,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import random
word_file = "/usr/share/dict/words"
WORDS = open(word_file).read().splitlines()
n = len(WORDS)
word = WORDS[random.randint(0,n-1)]
print(word)
# c = 12
# while(c > 0):
# letter = input("Guess a letter: ")
# if letter in word:
# a = 0
# show
# for a in len(word):
# ... | [
"paulliu14@gmail.com"
] | paulliu14@gmail.com |
c424a4fe81c9efd0308c124f6b3b50fda90d747f | f87877d22e6c80f5bbc27ae44fb74518779a9afd | /ariac_behaviors/ariac_flexbe_behaviors/src/ariac_flexbe_behaviors/robotselectorstate_sm.py | d66459fa3a418b333e35f981a3aa49239f58ff36 | [] | no_license | Bgompie2000/Fase2_robotica_machinebouw | c5500860c7834f504fe05cb0611cf87caec91dd8 | b9dada0431cbfa92d5a08e7e7fdfebb14503637c | refs/heads/master | 2022-07-31T19:43:18.802065 | 2020-05-19T13:16:50 | 2020-05-19T13:16:50 | 261,993,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###########################################################
# WARNING: Generated code! #
# ************************** #
# Manual changes may get lost if file is generated again. #
# Only code inside the [MANUAL] ta... | [
"bgommers@avans.nl"
] | bgommers@avans.nl |
bfe6665bbfad17b4af69155aaa293cd1909810cf | 6d9e1aa1361f8330a4867b7f4ff337d6cfc27d81 | /main.py | 809a5b173b85366d2a810e4e9c1a17486e9ca203 | [
"CC0-1.0"
] | permissive | ykrods/pyobjc-webview-mtls-example | f97afe2455efa1c7f12d6ea0271fbdd086f9155d | d3b37c8861747d5651012fed0428514caf0bc76a | refs/heads/master | 2023-03-21T18:21:15.133047 | 2021-03-17T12:56:19 | 2021-03-17T12:56:19 | 347,983,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import logging
import sys
logging.basicConfig(level=logging.DEBUG)
if __name__ == '__main__':
if sys.platform == "darwin":
from browser.cocoa.main import main
main()
else:
raise RuntimeError("Unsupported platform")
| [
"890082+ykrods@users.noreply.github.com"
] | 890082+ykrods@users.noreply.github.com |
16b94d1ee6177ff15cbcf4c32d01a3ff9d2f6844 | ecf53ca75324e9a293c2aecd46b27888ec541bf7 | /riam_api_client/models/inline_response20044_message.py | 6fff66167dcaf09f5028f5abdbad8b032a1e6351 | [
"MIT"
] | permissive | RiskAmerica/api-client-python | 9bcede4cac091ca42b7c534555c63223fb1c315f | 468c554a0440bef5086828631e25d99d41e28571 | refs/heads/main | 2023-07-07T14:02:25.601988 | 2021-08-20T19:33:36 | 2021-08-20T19:33:36 | 329,913,363 | 0 | 1 | MIT | 2021-08-20T19:33:37 | 2021-01-15T13:01:30 | Python | UTF-8 | Python | false | false | 7,445 | py | # coding: utf-8
"""
APIs RISKAMERICA
A continuación les presentamos la documentación las **APIs** **de** **RiskAmerica**, el cual es un servicio pagado ofrecido por RiskAmerica que se contrata por separado a nuestras otras ofertas de software. Algunas consideraciones que debe tener al momento de usar las API... | [
"inicovani@riskamerica.com"
] | inicovani@riskamerica.com |
d9c6b22c0d9d0930c5c499a903e64b5ffc183378 | a356e44897f8f618af30a17b38dc73695562e01b | /Day_2_exercise/animals/fish.py | 1246c64d9df0ad817bce056a4e6b2edadef6baaf | [] | no_license | phimiwo/Advanced_Python_Programming_Philipp_Wolf | e530073d7360a5494e3b2b29649d966de9f2fd34 | 4590cb9aad433a342ca800bf01995ab73e611b24 | refs/heads/master | 2023-03-12T10:00:41.940807 | 2021-03-01T21:13:01 | 2021-03-01T21:13:01 | 339,799,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | class Fish:
def __init__(self):
''' Constructor for this class. '''
# Create some member animals
self.members = ['Salmon', 'Trout', 'Hering', 'Shark']
def printMembers(self):
print('Printing members of the Fish class')
for member in self.members:
print('\t%s ' % member)
| [
"philipp.wolf@physics.uu.se"
] | philipp.wolf@physics.uu.se |
49e767fa58dad8a46d203ecfb58f86aa51295f65 | df1518e039d1f2232705cc5e4b66f68aeb21eb31 | /utils.py | 50b4b58be5cb9e1bd3c443f439808371c9b573f8 | [
"Apache-2.0"
] | permissive | archgroove/pytorch-transformers-classification | eef2667eb57de4d1c42e3650c9fec85da29fb484 | 2eb97aa6f3081f1d0ae44210f5c13b9846f2d03d | refs/heads/master | 2020-07-28T16:51:59.723315 | 2019-09-25T01:30:26 | 2019-09-25T01:30:26 | 209,471,440 | 0 | 1 | Apache-2.0 | 2019-09-19T05:44:56 | 2019-09-19T05:43:29 | null | UTF-8 | Python | false | false | 12,933 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"chaturangarajapakshe@gmail.com"
] | chaturangarajapakshe@gmail.com |
363953484217fd1729ea121e7d4b99926dc59bd7 | 5d9908f1b5516ae2dcf2258f78d04f509e7554e3 | /sort.py | d6ce2fdf79c859603c9d058b0f213a0ea5d392ab | [] | no_license | farhanaqazi/sortPY | c8d7ef3d0cb24152b8b0113d3d87b5f8f412f986 | b20a347d8b6799dbe8d5f5e16f18c936177a9410 | refs/heads/master | 2020-03-25T09:13:11.246582 | 2018-08-27T23:14:04 | 2018-08-27T23:14:04 | 143,654,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | ''' sorter program'''
x = int(input("Enter first Number Please: "))
y = int(input("Enter second Number Please: "))
z = int(input("Enter third Number Please: "))
mylist=sorted([x,y,z])
print(mylist)
| [
"noreply@github.com"
] | farhanaqazi.noreply@github.com |
836aa6db7bc353f8f51112830011ad012d786779 | 6ecd18dd5a35b7d739f7f8246467eef20180a962 | /backend/XGBoost/DataGen.py | f292d5c50529dd2b4f0ea154da90f8f82f4a06eb | [] | no_license | PurdueEats/backend | 86c0416c9dbccaae74b0280e6b6ef5aaf5fa9271 | a2f3aeed7095ad9251a4eff9e20c5e6b050fbf49 | refs/heads/main | 2023-04-14T13:48:00.868914 | 2021-04-23T19:35:23 | 2021-04-23T19:35:23 | 331,550,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import requests
from datetime import date, timedelta
URL = 'https://api.hfs.purdue.edu/menus/v2/locations/'
LOCATIONS = ['Earhart', 'Hillenbrand', 'Ford', 'Windsor', 'Wiley']
DATE = ''
# Change based on local file system
FILENAME = 'temp.csv'
START_DATE = date(2016, 8, 22)
END_DATE = date(2021, 3, 1)
def daterang... | [
"arora74@purdue.edu"
] | arora74@purdue.edu |
9a93a2420acc3eb462984f16192bf378b923dbf2 | 0f880fab72fe18a2e5c4718ba4bf78fbe800f988 | /code/CityList.py | 6dd00a6060c4d7c719719ac0c9f538ffcdc1ab89 | [] | no_license | clwater/GetCityGeo | ce208abb69130b091acaf9ac77b194035d7d96d4 | c82b922c25c07ace0245eaa20055bfe8290d7072 | refs/heads/master | 2021-01-19T17:33:09.171032 | 2017-08-24T16:23:00 | 2017-08-24T16:23:00 | 101,068,888 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,244 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import sys
reload(sys)
sys.setdefaultencoding( "utf-8" )
import requests
import json , re
import mysql.connector
conn = mysql.connector.connect(user='root', password='root', database='Utils')
def getCityGeo(cityname):
url = 'http://ditu.amap.com/service/poiInfo?query_... | [
"gengzhibo@gengzhibo.net"
] | gengzhibo@gengzhibo.net |
b4b07278d2bdd76b4fcc168e8ca4a5e2f2b61686 | 4a027b32b1e2dfebd6d65c9e7afce1f2e93f16bc | /webblog/blog/admin.py | c103bbbe9137099f88f5d13d6b08262854240b18 | [] | no_license | Jethet/DjangoProject-WebBlog | 92aa2959349129b2ef192163ab5637dbd4099224 | f64a79d889abe6a2d3caa9aa5350178d97b5c5eb | refs/heads/master | 2020-05-29T23:32:53.154542 | 2020-02-11T21:59:24 | 2020-02-11T21:59:24 | 189,438,086 | 1 | 0 | null | 2020-02-11T21:59:25 | 2019-05-30T15:28:38 | Python | UTF-8 | Python | false | false | 197 | py | from django.contrib import admin
# First import the model that you want to show up on the admin page:
from .models import Post
# Register your models on the admin page:
admin.site.register(Post)
| [
"henriette.hettinga@gmail.com"
] | henriette.hettinga@gmail.com |
044048b2ab53cf63e68a9202507e3b6e27c8705e | 82b7d00eec2ce90acb12cbc74ea5a217862d26ac | /tarkov/models.py | 6095f0529724099e3082b1051b048d470e0ba551 | [
"MIT"
] | permissive | yakumo1255/jet_py | 565242d44068f616a5507d89d6a48cd7c87ba5ce | 2f352b5e6f5d88594d08afc46e9458e919271788 | refs/heads/main | 2023-05-29T07:17:56.823366 | 2021-06-17T22:28:16 | 2021-06-17T22:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | from __future__ import annotations
from pathlib import Path
from typing import Any, ClassVar, Generic, Optional, Type, TypeVar
import pydantic
import yaml
from pydantic import Extra, ValidationError
from pydantic.generics import GenericModel
class Base(pydantic.BaseModel):
class Config:
extra = Extra.fo... | [
"thirvondukr@gmail.com"
] | thirvondukr@gmail.com |
978881310e18797911f55de4a40517a6a5407761 | 214264c77b802a8437cb6e4380c976afa35c0b34 | /fib.py | 032c339426d94f0602ac62b28f86610c8f92dfab | [] | no_license | ire-and-curses/python_examples | 804896e13b1300526ac21b9493c2cf61e952e508 | 71095e6c35e4ad90017f0e1bd070271cb2c5888e | refs/heads/master | 2020-04-28T12:41:54.199552 | 2012-09-26T07:52:00 | 2012-09-26T07:52:00 | 5,798,983 | 3 | 0 | null | 2012-09-13T19:24:25 | 2012-09-13T18:23:21 | Python | UTF-8 | Python | false | false | 1,325 | py | #!/usr/bin/env python
def simple_fib(n):
a = 0
b = 1
for i in range(n):
c = a + b
a = b
b = c
return c
def iter_fib(n):
a, b = 0, 1
for i in range(n-1):
a, b = b, a+b
return b
def fib_series(n):
a, b, = 0, 1
series = [0, 1]
if n == 0:
... | [
"eric.saunders@gmail.com"
] | eric.saunders@gmail.com |
ce555ee518fcfbdb43e59334bdddd885f194b341 | 1a24def8879972f21d846ffb3813632070e1cf12 | /Chapter08/0813exception-while-true.py | fa0b51fa722222322031c355be5fd5b499f32cbf | [] | no_license | mushahiroyuki/beginning-python | 03bb78c8d3f678ce39662a44046a308c99f29916 | 4d761d165203dbbe3604173c404f70a3eb791fd8 | refs/heads/master | 2023-08-16T12:44:01.336731 | 2023-07-26T03:41:22 | 2023-07-26T03:41:22 | 238,684,870 | 5 | 4 | null | 2023-09-06T18:34:01 | 2020-02-06T12:33:26 | Python | UTF-8 | Python | false | false | 397 | py | #ファイル名 Chapter08/0813exception-while-true.py
while True:
try:
x = int(input('最初の数を入れてください: '))
y = int(input('2番目の数を入れてください: '))
value = x / y
print(f'{x}/{y}は{value}です。')
except:
print('入力が正しくありません。再度入力してください。')
else:
break
| [
"hmusha@gmail.com"
] | hmusha@gmail.com |
5b3cbdb9ee3124e0fee05d82c702f0c9e56923ec | fc77fc08e983385521f7073e160cf05b8484dc9d | /Music App/mapp/db_setup.py | 7d68ace0c79aa6840b2127f24640c4be99f1da1e | [] | no_license | Icode4passion/Apps | e561a179147ab0f9bd074998f2b3e3a9bfedc539 | 51e5f2c9026a7f6a6efef33f4f54c9d7573a3070 | refs/heads/master | 2020-05-04T15:22:59.139023 | 2019-04-03T07:57:58 | 2019-04-03T07:57:58 | 179,238,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine('sqlite:///mymusic.db', convert_unicode=True)
db_session = scoped_session(sessionmaker(autocommit=False,
... | [
"yogeerama@gmail.com"
] | yogeerama@gmail.com |
27f2e8d188e5e25adfa5a3b17dd7b04f7506bcf8 | fc09bb758c37ce5f04f7a40f89e35476c5f9c497 | /venv/Scripts/easy_install-3.6-script.py | 562e51ddf3923e3fd6c0128389c17d5ec1ee83df | [] | no_license | sarahwang93/python-leetcode | c71b23ccd300ba49f72a375d0bc8df6f343e7999 | 59b9e22c5e15a361b5120e3bbd13a209c8dbd53f | refs/heads/master | 2022-10-29T04:15:38.284332 | 2020-06-18T18:47:28 | 2020-06-18T18:47:28 | 261,823,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!C:\pyproject\Assignment\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ''... | [
"wanggeo93@gmail.com"
] | wanggeo93@gmail.com |
4804af56b10ae70dcf40078e2d78cc84cb65e93f | 8ed6932e4df311177144d3c37763030c3c23bc01 | /kvadratni_koren (1).py | a220165a60a37a8932a9daf621ad72bc549c54ec | [] | no_license | pengu5055/RacunalniskiPraktikum | c3261d7a432f160e77b1c66445d5dddb563e53d7 | 3a585d5edd0967d6bf943c631beb1c13a46db587 | refs/heads/master | 2020-12-19T23:48:31.152076 | 2020-01-30T15:17:01 | 2020-01-30T15:17:01 | 235,889,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,367 | py | # =============================================================================
# Kvadratni koren
#
# Približke za kvadratni koren števila $n$ lahko izračunamo po naslednjem
# postopku. Začetni približek $x_0$ je enak $n / 2$. Vsak naslednji približek
# $x_{k + 1}$ pa izračunamo kot $(x_k + n / x_k) / 2$.
# ===========... | [
"urbancmarko1@gmail.com"
] | urbancmarko1@gmail.com |
d99e7ce41fbb8fefe6664bce5bb89164292919a9 | 93d1bb284dd6fee32e4aed81794d9c7a10f3d870 | /課題1-2/humanrank/calcPagerank.py | 82c2ae9355365ed02cfd47b6042e043f7bc37991 | [] | no_license | SakuragiYoshimasa/WikiPageRank | 3d88ab71318e16785f3c0ea003f4c0794869b50b | 94953541d82fb93203fd45739f80d9426b389b8d | refs/heads/master | 2021-01-10T15:39:12.949559 | 2015-05-28T14:07:28 | 2015-05-28T14:07:28 | 36,161,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | # -*- coding: utf-8 -*-
import MySQLdb
import GetTitleFromIdApi
import LinkTargetAmountApi
import LinkedPagesListApi
import page
import PageManager
import GetIdFromTitle
import numpy as np
import time
import InertHumanPageRankApi
def calc(depth):
#n次正方行列の生成(depth >= 0,targetID)
#pageManager = PageManager.Pa... | [
"ysrhsp@outlook.com"
] | ysrhsp@outlook.com |
6c1bf6fab2e22592689f50f485e73331b10f3260 | 8b45220fa03e6f4352e9f52532f271b33b40512a | /branches/wx/grafit/project.py | feb382213dfa3ee2a5617a1d85d89656668f0a00 | [] | no_license | BackupTheBerlios/grafity-svn | de04a2e9a646992b8b89a2ed1f24f8437e7c1d89 | 06d45668abd4c9fccc56f8a409f61c42518308b0 | refs/heads/master | 2020-05-18T18:19:48.539045 | 2006-07-28T11:07:54 | 2006-07-28T11:07:54 | 40,603,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,396 | py | import sys
import re
import time, random, socket, md5
try:
import metakit
except ImportError:
import grafit.thirdparty.metakit as metakit
from grafit.actions import action_from_methods, action_list, action_from_methods2, StopAction
from grafit.signals import HasSignals
# by (Carl Free Jr. http://aspn.actives... | [
"danielf@9c678b79-fe04-0410-97bf-b6137538dda5"
] | danielf@9c678b79-fe04-0410-97bf-b6137538dda5 |
2955ad1171d290d6996293625599f01a37fe7871 | 175f9f142dcee56dde4b3e98775a7990a508ee55 | /reserve2/pipelines_store_to_mongo.py | 7d03913ccf5e134d5088840e8322323203828288 | [] | no_license | estrellaouyang/spiderredis | 1bf46eedf633f3504d8f01e7ac28a31726632389 | 1417e83989c945b26240fae16ef2a8b6ed2b5839 | refs/heads/master | 2020-05-02T03:05:59.775816 | 2019-03-26T10:48:41 | 2019-03-26T10:48:41 | 177,719,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
class Store2MongoPipeline(object):
collection_name = 'scrapy_items'
def __init__(self,mongo_uri,mongo_... | [
"support-jec@hotmail.com"
] | support-jec@hotmail.com |
4c98cf8a1b6b479bd5006e410e7bcfef77126afc | 88c2c7e9970c7bd26f960d10366021a9f6163b6e | /Feat_script/transformer_feat.py | 3703de9d9324e40ec8318c0e1c6124d1af2a4495 | [] | no_license | soumyadip1997/qepsilon | ee71ec4056e1e2db73c8f4fe2008b3ca2609eaef | aeb70ea651f0e5e14a9b24ab10ab29d880fdb9a1 | refs/heads/main | 2023-09-03T13:59:10.217963 | 2023-08-23T20:20:07 | 2023-08-23T20:20:07 | 607,034,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,369 | py | import torch
from Bio.PDB.PDBParser import PDBParser
from transformers import BertModel, BertTokenizer,XLNetLMHeadModel, XLNetTokenizer,pipeline,T5EncoderModel, T5Tokenizer
import re
import os
import warnings
import requests
from tqdm.auto import tqdm
import glob
import numpy as np
import os
import pandas as pd
import ... | [
"noreply@github.com"
] | soumyadip1997.noreply@github.com |
c12c05a686344fc864f389e20514f16676a6f4b6 | de4e1332950d37707620c54a9613258c1dd9489c | /donghae/6주차/BOJ_2231.py | 71d0e943eacb4344e6752ef02d7569bf22d28dea | [] | no_license | PnuLikeLion9th/Summer_algorithm | 8fe74066b9673fb891b7205f75f808a04c7fe750 | dcfcb6325854b3b4c529451d5c6b162298b53bc1 | refs/heads/master | 2023-07-10T13:57:05.511432 | 2021-08-15T07:50:00 | 2021-08-15T07:50:00 | 378,679,514 | 3 | 10 | null | 2021-08-15T07:50:01 | 2021-06-20T15:32:18 | Python | UTF-8 | Python | false | false | 323 | py | n= int(input())
res = 0
for i in range(0,n+1): #n까지의 수 모두 계산
n_sum = list(map(int, str(i))) #자릿수 합 구하기
res = i+sum(n_sum) #분해합 구해서 res에 넣기
if n == res:
print(i) #생성자 찾으면 출력 후 break
break;
if n == i:
print(0)
| [
"ldonghae320@gmail.com"
] | ldonghae320@gmail.com |
6ef1afb8fd47c9869fbc831c11b4d24aacbf704c | 9062c1b2b1715d4b5b34062dd52b6007fb2ca537 | /tensorflow/python/ops/collective_ops_gpu_test.py | d12d6240cf97e1d80b16ed5dd9f5a36901f73d69 | [
"Apache-2.0"
] | permissive | robotastic/tensorflow | 54c4c7cbcde5e9d374897d5038a96eb5feff16aa | b88f9f60de706dbe78acf9189b9fa04bdc7a6836 | refs/heads/master | 2020-08-30T06:13:07.176029 | 2019-11-05T01:49:44 | 2019-11-05T01:49:44 | 218,283,699 | 2 | 1 | Apache-2.0 | 2019-10-29T12:38:51 | 2019-10-29T12:38:50 | null | UTF-8 | Python | false | false | 12,428 | py | # Copyright 2019 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 applicab... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
831824ea60627955c3668694fcdecb08741b2688 | 9b62b0d104f4ae9ca7ffd1c330bbc7b9252d6a3c | /sms_sender/urls.py | 340dbf2b5d655d5bcff7d88cca0753a319c77258 | [] | no_license | KONAPAVANKUMAR/sms_sender | efd403dd9881c55298df460c8ce096220e4de2ff | 4e1ac07dfbee466abd6afb29894136d2b023ada8 | refs/heads/main | 2023-08-25T07:40:39.713335 | 2021-10-01T13:03:08 | 2021-10-01T13:03:08 | 412,468,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | """sms_sender URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-ba... | [
"konapavankumar.pk@gmail.com"
] | konapavankumar.pk@gmail.com |
192f1edf5a7c689278a89613efd7f7460b9516b8 | 1f6a85330596eb86a55e631ce5a0a643e200e977 | /muddery/server/typeclasses/script_room_interval.py | 2048e8b16d3f7555894ca832a36db1eb0acbe74d | [
"BSD-3-Clause"
] | permissive | kwer8080/muddery | ba41765c6245d33978b431ef490f10873ca8615c | 8b712eeb90cfee2d602aad4505a4929528d44afd | refs/heads/master | 2022-12-02T14:27:22.363386 | 2020-08-16T03:51:12 | 2020-08-16T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,549 | py | """
Scripts
Scripts are powerful jacks-of-all-trades. They have no in-game
existence and can be used to represent persistent game systems in some
circumstances. Scripts can also have a time component that allows them
to "fire" regularly or a limited number of times.
There is generally no "tree" of Scripts inheriting ... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
fe5f044c311bdc55c5a7fdfcf1035ade7b9bada9 | 99de45be1c5707fd2c06c5cfef09e1737aaadf53 | /Week 2/Chapter 8/8-13.py | 4bb92b96b6d6a1f09b7c91aee0282acc1cc272cb | [] | no_license | ArnoBali/book_exercises | d3cffb86fdec609499e5974d2491d3c4d5a57136 | b7b17f90fc2cbb369f8eaacd1c3d03db3328cbd8 | refs/heads/master | 2020-04-25T15:18:47.701114 | 2019-02-28T08:36:04 | 2019-02-28T08:36:04 | 172,874,365 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | '''
8-13. User Profile: Start with a copy of user_profile.py from page 153 .
Build a profile of yourself by calling build_profile(), using your first and last names and three other key-value pairs that describe you .
''' | [
"akoldewee@gmail.com"
] | akoldewee@gmail.com |
4d89d6885d89e3ef8dd81d55898bbf73e87b17df | 4f0d0e5833999fec1a6a7ffb44977148b0453ccd | /singleton.py | 24acbe52d0cf530efcbbe2b616c8a542ebf9459a | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jlisee/filelock | 3eb6d100463183fb11bdaecd416ee057298024ee | 470e0a92b0e77401a217e5cc52f1a8d6c3e409c4 | refs/heads/master | 2016-08-05T11:46:54.529152 | 2014-11-23T23:05:32 | 2014-11-23T23:05:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,936 | py | # Software License:
# Python Software Foundation License Version 2
# See: PSF-LICENSE.txt for the full license.
# Python Imports
import sys
import os
import tempfile
import logging
# Our Imports
import lockfile
class SingleInstance(object):
"""
If you want to prevent your script from running in parallel jus... | [
"jlisee@gmail.com"
] | jlisee@gmail.com |
c2d66a86bc8c1bdefdcc8f232bcd6f31506bf870 | 02e1875e7073f91bec47da5e260e39602129fb14 | /strings.py | ba4fe947466f02d8e3fc551874a3dfe92554ea43 | [] | no_license | lipewinning/python | aeee6a270dd69902e91dd14ef5089a157cccbebb | 7d8b383f6fedc0eb09600723955de24500adfcab | refs/heads/master | 2022-08-02T17:00:51.750014 | 2020-05-24T16:01:50 | 2020-05-24T16:01:50 | 266,376,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | hello = 'hello world'
print(hello)
run = "I'm going on a run" #using '
print(run)
print('hello \nworld')
print( len(hello) )
print( hello[0])
print( hello[-3])
print( hello[6:])
print(hello[6:9])
print(hello[:5])
print( hello[::2] )
print(hello[:5] + ' ' + hello[6:])
letter = 'z'
print(letter * 10)
print(hello.rep... | [
"felipealvesdesousa@gmail.com"
] | felipealvesdesousa@gmail.com |
cb72bed745489fd0e982e080dff5966200d993e3 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/pydev/third_party/pep8/lib2to3/lib2to3/fixes/fix_intern.py | e7bb5052b4b5d9571da6b4b40941ddd27288a488 | [
"Apache-2.0",
"EPL-1.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,405 | py | # Copyright 2006 Georg Brandl.
# Licensed to PSF under a Contributor Agreement.
"""Fixer for intern().
intern(s) -> sys.intern(s)"""
# Local imports
from .. import pytree
from .. import fixer_base
from ..fixer_util import Name, Attr, touch_import
class FixIntern(fixer_base.BaseFix):
BM_compatible = True
or... | [
"dmitry.trofimov@jetbrains.com"
] | dmitry.trofimov@jetbrains.com |
ede56eb757eb2fc97eb75d30cbfbbdeecdf49398 | a0c26df97a4f4aede90a65b8a66de06e9b6284fe | /account/urls.py | 4712a3606d0bc263c28b4de9dee277568839602a | [] | no_license | Kelmac/django | fa8444a29cba967fa8ffadacca3c215067a54413 | ec71e4ca18d54ab236f338b553db46ef4e871cea | refs/heads/master | 2021-09-06T16:29:48.151034 | 2018-02-08T14:03:37 | 2018-02-08T14:03:37 | 120,091,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from django.conf.urls import url
from . import views
urlpatterns = [
# url(r'^login/$', views.user_login, name='login'),
url(r'^login/$', 'django.contrib.auth.views.login',name='login'),
url(r'^logout/$', 'django.contrib.auth.views.logout',name='logout'),
url(r'^logout-then-login/$', 'django.contrib.auth.view... | [
"pteresiak@gmail.com"
] | pteresiak@gmail.com |
c4baca129a1ab492e6a184dae0870b3e22f04a9d | 430f3f80e364e7f800eedb97f26c527be6c1439f | /modules/parser/parser.py | de89fbce6d6013151339e12e1c89a1e374e916a2 | [] | no_license | stas12312/tensor-test-task | 3094dab330b2f7ffa5f96e7ca4aa784eec835098 | de3ee237cf8bfdcae58e7a793c704650f566ad6c | refs/heads/main | 2023-06-26T11:21:28.301665 | 2021-07-21T15:46:07 | 2021-07-21T15:46:07 | 388,165,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | from typing import Union
from bs4 import BeautifulSoup, Tag, NavigableString, PageElement, Comment # noqa
from .converter import Converter
from .strategy import Strategy
class Parser:
"""
Класс для процесса поиска полезной информации
на странице и его преобразование в текст
"""
def __init__(s... | [
"911rush@gmail.com"
] | 911rush@gmail.com |
1b87cae6819e4ab4adf9f153f5d57e83421a7aab | c2252e7cfc871c8fc0d5647253e7e5f0899622e5 | /gleu.py | d30568612324c3c797e3f90f8709442b291eb704 | [] | no_license | X11/DAST | 41ab740ee8e05bb5a7942b1a0945320b37697669 | f924cf0cacfbfc69e735461b41dec92cc3577c69 | refs/heads/master | 2021-04-23T17:14:49.463410 | 2020-04-08T18:55:34 | 2020-04-08T18:55:34 | 249,942,641 | 0 | 0 | null | 2020-03-25T09:57:55 | 2020-03-25T09:57:54 | null | UTF-8 | Python | false | false | 8,698 | py | # -*- coding: utf-8 -*-
# Natural Language Toolkit: GLEU Score
#
# Copyright (C) 2001-2020 NLTK Project
# Authors:
# Contributors: Mike Schuster, Michael Wayne Goodman, Liling Tan
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from collections import Counter
from nltk.util import ngrams, everyg... | [
"ikzelf@protonmail.com"
] | ikzelf@protonmail.com |
aa3457cc12ed40f2852ce66f093c9aa02a053d63 | ed9721a0a3660e1621a88811fe026be1dd7dc92d | /problems/l11-problem4.py | 12431ae734bd5a620b9999b14f64d5ca91355001 | [] | no_license | buyfn/6.00.1x | 413f1559bec58018080701c88a1f014e9376fb14 | c0483bbb19bac433d41180e83a886df3117e3633 | refs/heads/master | 2021-01-16T18:03:05.020938 | 2015-10-30T15:07:51 | 2015-10-30T15:07:51 | 41,844,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class Coordinate(object):
def __init__(self, x, y):
self.x = x
self.y = y
def getX(self):
return self.x
def getY(self):
return self.y
def __str__(self):
return '<' + str(self.getX()) + ',' + str(self.getY()) + '>'
def __eq__(self, other):
return self.x == other.x and self.y == othe... | [
"buyfng@gmail.com"
] | buyfng@gmail.com |
068a260875e758d0ed56acb09ea6b0c0307e8367 | de2069916279ed8e618cba3f268c0552049aeff3 | /Parser.py | 23cd9d3bb2d5c61d54ba0675f0df9231713bc316 | [] | no_license | rpbeltran/Cantor | f2f135d497c0e4448bd5743ca3783135d737dc0c | ced4fe1e4e282364244818f31ef70bab7112ff4a | refs/heads/master | 2021-09-10T14:25:16.594841 | 2018-03-27T21:32:45 | 2018-03-27T21:32:45 | 116,281,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,796 | py |
from Tokenizer import CTokenizer
import ply.yacc as yacc
tokenizer = CTokenizer()
tokens = CTokenizer.tokens
# ------------------------
# - - - Structures - - -
# ------------------------
class Name_Engine:
def __init__ ( self, label ):
self.namespace = label
self.subspaces = {}
self.definitio... | [
"rp.beltran@yahoo.com"
] | rp.beltran@yahoo.com |
9b462eeafdaa588a48edbed76431aeda39f7bc5f | 6f37c71ac7d4bba77a19761cb080ce7fd4c8904f | /forbuy/migrations/0001_initial.py | 11cf632a5f0789bb11139b57f68fbd7519d504e8 | [] | no_license | Willian-H/houseInfo_vistual | d55abe7f6a5be45b209a95ee04e47890a867f2c7 | f5b8aeddaf3a3312a49cd2f62046ab603adf276c | refs/heads/master | 2023-06-19T22:19:52.736229 | 2021-07-22T10:14:18 | 2021-07-22T10:14:18 | 388,418,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # Generated by Django 2.2 on 2021-07-22 02:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='forbuy',
fields=[
('id', models.AutoField(aut... | [
"3025946783@qq.com"
] | 3025946783@qq.com |
deac4dc9c416a85a1b186d22b702e4fd17d953c0 | 436177bf038f9941f67e351796668700ffd1cef2 | /venv/Lib/site-packages/sklearn/decomposition/_pca.py | 01906b2b0cc5586c35abeabb5c496f37ee7c9cf0 | [] | no_license | python019/matplotlib_simple | 4359d35f174cd2946d96da4d086026661c3d1f9c | 32e9a8e773f9423153d73811f69822f9567e6de4 | refs/heads/main | 2023-08-22T18:17:38.883274 | 2021-10-07T15:55:50 | 2021-10-07T15:55:50 | 380,471,961 | 29 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,683 | py | """ Principal Component Analysis.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Denis A. Engemann <denis-alexander.engemann@inria.fr>
# Michael Eickenberg <michael.eickenberg@i... | [
"82611064+python019@users.noreply.github.com"
] | 82611064+python019@users.noreply.github.com |
daa30f428287b6beaea3a731e63905cbc2ce21b6 | dd5e1cb7aa3cdc9bd0d56437b1019e7f630e3aa3 | /Python/Curso de Python/Dir e Help.py | ce390a9dad319702f922d893ba86f240ab6fb9ff | [] | no_license | Renan-S/How-I-Program | c1f25e81a5364bef2567e05fee83f4395b50a2ae | d6025b9794f3adaf34825ee3bbdf019d77a462dd | refs/heads/master | 2020-08-22T17:43:29.727720 | 2020-02-14T18:20:28 | 2020-02-14T18:20:28 | 216,450,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | """
dir - Apresenta todos os atributos/propriedades e funções/métodos disponíveis para determinado tipo de dado ou variável
help - Apresenta a documentação/como utilizar os atributos/propriedades e funções/métodos disponíveis para determinado tipo de dado ou variável
"""
print(dir('Nigga'))
help('Nigga'.... | [
"noreply@github.com"
] | Renan-S.noreply@github.com |
cdd4522df9b400c1f869ee63223f4b046e646df0 | b4d1b640b36bf68e0cf1a354be882f1b8cd5d8ef | /infoCollecter/infoCollecter/middlewares.py | 54773c9cf56863f01d73c5bfbd17fe223fccdb3d | [] | no_license | liyingxuan89/enterpriseInfo | d5965f74f82b5db274492c5073f6cbdc700866ff | 047c52c4b71e06ea34c16052bae5e6086562659f | refs/heads/master | 2020-03-25T01:37:18.131581 | 2018-08-28T15:06:27 | 2018-08-28T15:06:27 | 143,247,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,611 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class InfocollecterSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# s... | [
"8199714@qq.com"
] | 8199714@qq.com |
8e8fc9760cf997901255dbed108d815c0d7153d5 | 9d8e4c88bdca341bc32a40ead1f9549b066e29a3 | /containers/inference/index.py | cfb74fb9257dfc300abad0a808c60c6c5e5f0990 | [] | no_license | sergioarmgpl/mlops-argo-k3s | daaaa4b5d689e759e75258c1161d0e883facf562 | 17f12ec3a10393f2522693e1d77827d22bae1500 | refs/heads/master | 2023-03-29T18:36:44.621824 | 2021-04-03T23:14:26 | 2021-04-03T23:14:26 | 332,510,367 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | from google.cloud import storage
import pandas as pd
import os
import requests
import urllib3
#Ignore SSL Warnings
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
def upload_blob(bucket_name, source_file_name, destination_blob_name):
storage_client = storage.Client.from_service_account_json('a... | [
"sergioarm.gpl@gmail.com"
] | sergioarm.gpl@gmail.com |
5c7276944bdc8248c6f71658827a21c3b55926ff | c212044cc7da47d1ed6b1b82ea6a4180875b39ab | /Homework-2/hw2.starter code/french_count.py | fd2b093b6d1f9604990a9ad07155ce9631a7867b | [] | no_license | TATimo/544NLP-project | bf57e9378a1592498f0cbcc650987eb1bb520160 | 1b6d223ba24a1119b62eff7c6c86afcf72451e1a | refs/heads/master | 2021-05-08T17:36:08.263324 | 2018-01-30T03:32:57 | 2018-01-30T03:32:57 | 119,476,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,359 | py | import sys
from fst import FST
from fsmutils import composewords
kFRENCH_TRANS = {0: "zero", 1: "un", 2: "deux", 3: "trois", 4:
"quatre", 5: "cinq", 6: "six", 7: "sept", 8: "huit",
9: "neuf", 10: "dix", 11: "onze", 12: "douze", 13:
"treize", 14: "quatorze", 15: "quinz... | [
"noreply@github.com"
] | TATimo.noreply@github.com |
6f64803b680f530118f50d12f840345200374827 | 001ca88155c90447ae3564bb51c503500d4fdcdd | /apps/christmas/migrations/0001_initial.py | 2f33cc812b526ca9d65d097c3b32136603943187 | [] | no_license | andre23arruda/cartas-de-natal | b7d5766b2806814dc7aaed1315b0d51d4aa53582 | b704b28137256e9c52a7d716e462334928c9d2bd | refs/heads/main | 2023-04-28T04:33:28.139797 | 2021-05-14T04:56:05 | 2021-05-14T04:56:05 | 367,122,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | # Generated by Django 3.1.4 on 2021-05-13 03:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Letter',
fields=[
('id', models.AutoField(a... | [
"andre23arruda@gmail.com"
] | andre23arruda@gmail.com |
656edae8b743f0b4d8b9b4f62d5f3411137c9016 | 6993d7b0ddf752b59d89674ec1b1758855ccef57 | /show_config.py | deca24c6d086950b953ef8fca9b0bad81350ea80 | [] | no_license | jrglasgow/timelapse | 0691e41cf1e1d87c3a6dd4bd3dde02a4b87a6332 | 3fb1b6886fc3ce3cc53372beae5d072b01f3421e | refs/heads/master | 2021-01-24T06:05:56.289618 | 2015-04-15T19:31:59 | 2015-04-15T19:31:59 | 32,296,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,014 | py | #! /usr/bin/env python
import gphoto2 as gp
context = gp.Context()
camera = gp.Camera()
camera.init(context)
text = camera.get_summary(context)
#print('Summary')
#print('=======')
#print(str(text))
#camera.exit(context)
config = camera.get_config(context)
def tl_gphoto2_type(this_type):
if this_type == gp.GP_WIDG... | [
"james@jrglasgow.com"
] | james@jrglasgow.com |
616042fd1ec2e56ac3a0c9702803669b7b868276 | a8bd64e730a4633e4f678f0833efb9ae8160f58d | /python/MITx/6.00.1x_Introduction_to_ComputerSCience_and_Programming_using_Python/power function.py | 577f3b6f3c8a4d21efe4bb2459d1232ca7f022c2 | [] | no_license | basantech89/code_monk | ddc9c4fe598c3f5d9cebd772bff86d9f8880c97c | f80cfaec8212201443454018be408f4b263ebfee | refs/heads/master | 2023-07-23T15:36:20.531102 | 2023-07-18T05:50:34 | 2023-07-18T05:50:34 | 143,033,881 | 1 | 0 | null | 2022-12-30T16:38:21 | 2018-07-31T15:35:09 | Java | UTF-8 | Python | false | false | 291 | py | x = int(raw_input("Type any integer: "))
p = int(raw_input("Type an integer power: "))
result = 1
def iterativePower(x,p):
result = 1
for turn in range(p):
print "iteration: "+str(turn)+" current result "+str(result)
result *= x
return result
z=iterativePower(3,5)
print z
| [
"basantech89@gmail.com"
] | basantech89@gmail.com |
8b1fa50ca360ec5a538377d6f93566e574a2295b | 6efa6748c749f4b2d77a9ddc83038f4616f73972 | /leetcode_2.py | 07569518e95e80291e4f9fcabac397a052fa978f | [] | no_license | IvanYerkinov/SPD1.4 | 040015a523fc6e55be815cdccd7a55d37c5b1240 | 1a843c892fcff25714f3fa3edd31840be411376b | refs/heads/master | 2021-05-24T13:48:34.540049 | 2020-04-19T21:12:47 | 2020-04-19T21:12:47 | 253,590,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.
# Hard problem
class Solution:
def longestValidParentheses(self, s: str) -> int:
highestnum = 0
r = len(s) - 2
num = 0
i = 0
while i < r:
... | [
"darkblackvoid@yahoo.com"
] | darkblackvoid@yahoo.com |
bd52bb1039bba3f6e62021f5e1b5035e90a422c1 | 7bc0075367290ff06565991e19033b13f0604f96 | /Mundo 2/aula13/desafio047.py | 531922ef5ea3d9c949fd2497d363dc2cbe2bf5db | [] | no_license | iamtheluiz/curso_em_video_python | 298acd90e36473fbf797ba7bf85d729d0ca28407 | aa4247b7d206771f9c9b08ad5d8585c3813ddaff | refs/heads/master | 2020-04-12T16:17:51.672662 | 2019-01-22T00:10:41 | 2019-01-22T00:10:41 | 162,608,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # imports
print("""
|******************|
| Desafio047 |
|******************|
""")
print("Números Pares de 1 até 50")
result = ""
for i in range(1, 51, 2):
if i == 1:
result += str(i + 1)
else:
result += ", "+str(i + 1)
print(result)
| [
"iamtheluiz.dev@gmail.com"
] | iamtheluiz.dev@gmail.com |
5291f471b2d5e46a05cd5e2ec8fd990b3acf7711 | 33114a0f96406008da69adac757b271229fb81bf | /__init__.py | 5488e89bfa7b2ba3c29c0da45814f981069162df | [] | no_license | ROB-Seismology/simpledb | 9f1eaf3ad4cd2367a03b5e79931a18959e9a370d | 4993dd472d1cb37023751ffca80e4dde7a6ad7fc | refs/heads/master | 2021-06-24T12:13:34.309067 | 2020-10-20T10:30:34 | 2020-10-20T10:30:34 | 90,835,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | """
Module providing basic read-write access to SQL databases.
Currently supports MySQL, PostgreSQL and SQLite/SpatiaLite databases.
Author: Kris Vanneste, Royal Observatory of Belgium
"""
from __future__ import absolute_import, division, print_function, unicode_literals
## Reloading mechanism
try:
reloading
exce... | [
"kris.vanneste@oma.be"
] | kris.vanneste@oma.be |
8626563455dc17cda7a8a62f924deeded4bea943 | f083496832666105ae2369df3c6c7943dfcb9eb6 | /src/transformers/models/auto/auto_factory.py | 0d82184be57882677ad60997b568afd6e3022ead | [
"Apache-2.0"
] | permissive | seujung/transformers | b54fe19e581d414b932ca79d94260471f90b8b49 | ef74d5aaebd9b3ccf0623c38c9929f503d869a50 | refs/heads/master | 2023-06-04T15:57:11.681334 | 2021-06-25T02:27:52 | 2021-06-25T02:27:52 | 294,680,346 | 1 | 0 | Apache-2.0 | 2020-09-11T11:44:46 | 2020-09-11T11:44:45 | null | UTF-8 | Python | false | false | 28,249 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# 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... | [
"noreply@github.com"
] | seujung.noreply@github.com |
4016b3761cfd5ec4682849313798fe876b99d853 | 21300b2723f6a161753cc286a4662d1d65111d2a | /src/offline/terms_filter.py | 19717b72a46f5b4e914c98729e9f198c75743566 | [] | no_license | fagan2888/linkedin-tags | 275d85b7dbccae5f650573ecb99ea1017c719321 | f6a955079355022e8500be797cd16175bd6353b3 | refs/heads/master | 2021-06-19T06:08:02.179016 | 2017-07-04T15:40:22 | 2017-07-04T15:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | from directories import Directories
from operator import itemgetter
from os import listdir
class Terms:
def __init__(self):
self.terms = set()
@staticmethod
def enlist_termfiles():
all_files = listdir(Directories.TERMS_FOLDER)
return Directories.only_data(all_files)
def include_shortlist(self, shortlist... | [
"samuelfzhang@gmail.com"
] | samuelfzhang@gmail.com |
a0a3ea768d64f88cd14469cd9615137023869813 | aabb5bff92930439c37535589b827d44a8e4e66b | /AcmeExplorer/urls.py | cebbc838e5e71d66e857a4296210ab394f1f496f | [] | no_license | Dobloq/Django | c8d029bf905ced30f4ac573a42ab4732f012c8a0 | f5262e5892547eef4ff05155b62dfffee342cb94 | refs/heads/master | 2021-08-02T07:29:25.554978 | 2021-07-23T23:17:00 | 2021-07-23T23:17:00 | 132,141,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | """DP URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-ba... | [
"dobloq@gmail.com"
] | dobloq@gmail.com |
ced93fedbfb6a93b2af0345ded4072f4e6ddfd54 | 9470c82b2bb848c18750cfc2593304cefa9ece08 | /geomloss/__init__.py | bd098a464a6b8d0441635e2d398fbb9952f654e0 | [
"MIT"
] | permissive | arthurmensch/geomloss | 450e8f2e43a4dc77f637d0ee97d69526a482407e | 9188d051302cbc4a9a7c2224cfab8ed4a31b23b7 | refs/heads/master | 2020-06-15T09:43:29.327790 | 2019-05-05T16:54:10 | 2019-05-05T16:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | import sys, os.path
__version__ = '0.2.1'
from .samples_loss import SamplesLoss
__all__ = sorted(["SamplesLoss"]) | [
"jean.feydy@gmail.com"
] | jean.feydy@gmail.com |
7f788150cb65d8a9dd0618a8bae8840a7efe7aac | b788f1f8bfa8949177e28dd4be436572162c418b | /regular expression.py | 5622c6603c31b7c63a0a789938965fc66832786f | [] | no_license | KaziMotiour/pyhton-OOP | bc9506f3afe7686a7451de9a5448c759f3cdcbac | 8e85cbe31809a11293fb90d6e39b2d0293cff9b5 | refs/heads/master | 2022-02-18T09:40:05.274955 | 2019-09-02T17:46:53 | 2019-09-02T17:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | import re
def multi_find(text_patterns,phrase):
for pat in test_patterns:
print("Search for pattern {}".format(pat))
print(re.findall(pat,phrase))
print('\n')
patterns = ['Team1', 'Team2']
text = "This is a starting! with Team1, 1234567, not to others arr arrr"
# for pattern in patterns:
... | [
"kmatiour30@gmail.com"
] | kmatiour30@gmail.com |
f19bfda0103aa1651fbc00ef6c04a78931717828 | 7830408f95e24bf0f7ea7a7c2b3f52fb98ec83a7 | /assignment7_sum_of_n_numbers.py | adb3860371053d517159dfe7dcdd1fd336be1a92 | [] | no_license | gsaikarthik/python-assignment7 | d76b78f435a104030a255ddfbf7ed1cdead6f7fc | 214bc32d8dca00ed08b52a738471fcd4c7cc713f | refs/heads/master | 2022-11-05T14:45:08.833102 | 2020-06-25T14:39:02 | 2020-06-25T14:39:02 | 274,939,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | num=int(input("Enter a number "))
sum = 0
i = 1
while i <= num:
sum = sum + i
i = i+1
print("The sum of natural number is ",sum) | [
"noreply@github.com"
] | gsaikarthik.noreply@github.com |
43de0f25b05156487048885ff2232634c02ff850 | afd333532543f7e650ef3796e5b6b929fb997524 | /Python/Activities/Activity17.py | 8a45371ac505020b40421157950bb85519ebade2 | [] | no_license | ShaliniSS93/FST-M1 | d2434fea9f1c7222249c034a4d43803792d29a41 | 20785a1df0e55523ddba965c1914757eb28b6637 | refs/heads/main | 2023-08-28T00:38:32.751616 | 2021-10-23T17:18:10 | 2021-10-23T17:18:10 | 408,321,526 | 0 | 0 | null | 2021-09-20T05:30:42 | 2021-09-20T05:30:41 | null | UTF-8 | Python | false | false | 503 | py |
# Import pandas
import pandas
# Create a Dictionary that will hold our data
data = {
"Usernames": ["admin", "Charles", "Deku"],
"Passwords": ["password", "Charl13", "AllMight"]
}
# Create a DataFrame using that data
dataframe = pandas.DataFrame(data)
# Print the DataFrame
print(dataframe)
... | [
"noreply@github.com"
] | ShaliniSS93.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.