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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb9243e75fe304ea4dbc0e62d4c110f0c746bb46 | a72779f0ad08264df5115c3eb9b2c14bfaa7de88 | /mfscrm/crm/views.py | 87f5782c10fcab678ed462894ed5cd31f142702a | [] | no_license | NicholasWade/foodservice | e627dc40480dd13df7d98881a25f17843f2ba1d8 | 697d509e5b0acf00e0f3c00d8ce1270cf78e49e3 | refs/heads/master | 2022-04-30T01:01:47.558734 | 2019-11-12T03:33:45 | 2019-11-12T03:33:45 | 214,385,430 | 0 | 0 | null | 2022-04-22T22:27:35 | 2019-10-11T08:35:19 | Python | UTF-8 | Python | false | false | 5,880 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from .models import *
from .forms import *
from django.shortcuts import render, get_object_or_404
from django.shortcuts import redirect
from django.db.models import Sum
from rest_framework.views import APIView
from rest_framew... | [
"nwade@unomaha.edu"
] | nwade@unomaha.edu |
8b89c68e7303685142a77d74dcc62498a287979f | 032abfaec5740adee2a0802f0a9acf671be93b51 | /tests/strategies/empty.py | 72a691bc418b6de4bfbcad0a26b55bde7ea02333 | [
"MIT"
] | permissive | lycantropos/memoir | 200882374f62ff36daecd5ee595c7dbd77b236d1 | 65ad876ea8eb8ad33c19396c7b18ec655625cb55 | refs/heads/master | 2020-05-28T05:20:54.826218 | 2020-03-18T09:00:08 | 2020-03-18T09:00:08 | 188,892,031 | 0 | 0 | MIT | 2020-03-18T09:00:13 | 2019-05-27T18:32:14 | Python | UTF-8 | Python | false | false | 203 | py | from types import MappingProxyType
from hypothesis import strategies
mutable_mappings = strategies.builds(dict)
immutable_mappings = mutable_mappings.map(MappingProxyType)
tuples = strategies.tuples()
| [
"noreply@github.com"
] | noreply@github.com |
97ff8eb8fc840d532c9163c12dafa2e87fb63610 | f78f90d1a55bf9f7ec3f24bf23c534a414e166af | /utils.py | ef37aa314fa5f8ff621f4a5c9dbbb223b7565c24 | [] | no_license | tianhm/jaylyrics_generation_tensorflow | 678b2db83a634a9cd17a32992c911c811b9463be | 0da220080ce5e1de68dde94013efc4e5a427aab7 | refs/heads/master | 2021-01-12T08:25:00.903286 | 2016-12-15T10:26:17 | 2016-12-15T10:26:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,323 | py | #-*- coding:utf-8 -*-
#!/usr/bin/python
''' This library provides some common functions
author:
iiiiiiiiiiii iiiiiiiiiiii !!!!!!! !!!!!!
# ### # ### ### I# #:
# ### # I##; ##; ... | [
"1422459603@qq.com"
] | 1422459603@qq.com |
ea6a3e6825f84c56041527dfc286a1372f014d57 | c5bd994457da1ff0ffa6cd66a7bd07b2650f55de | /Fibonacci Series.py | 383134810a083dd17d77ba697d04c20071a2f425 | [
"MIT"
] | permissive | PROxZIMA/Python-Projects | 1e34d264164356994f36d6b78e9c60d894ad2ed3 | be22d1fed9b41a5e14d922bd858e9f0e1194ab0d | refs/heads/master | 2020-09-27T21:42:29.841050 | 2020-08-28T07:33:30 | 2020-08-28T07:33:30 | 226,616,085 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | n = int(input('Enter how many number in Fibonacci Series you want: '))
a, b = 0, 1
print(f'Fibonacci Series is given by: ')
for i in range (1, n+1):
if i == n:
print(b)
else:
print(f'{b}, ', end='')
a, b = b, a+b | [
"noreply@github.com"
] | noreply@github.com |
dd3a8b4df0a8549639ca2811e00c55d75a191693 | 1c63089e6efa2e63948075cdfad69ded88b7d40e | /symphony/cli/pyinventory/graphql/service_endpoint_role_enum.py | cb96e2664531afd15454ef3508c35251b2889523 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | aharonnovo/magma | 4c305b3b0ea414a0355a7dc8fdcc7ed7e1be436e | d96a272ee58fea436cc94990c7ad05c4edc76341 | refs/heads/master | 2021-08-01T05:38:35.882598 | 2020-04-02T15:40:13 | 2020-04-02T15:41:55 | 252,531,569 | 0 | 0 | NOASSERTION | 2020-04-02T18:11:35 | 2020-04-02T18:11:34 | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from enum import Enum
class ServiceEndpointRole(Enum):
CONSUMER = "CONSUMER"
PROVIDER = "PROVIDER"
MISSING_ENUM = ""
@classmethod
def _missing_(cls, value: str) -> "ServiceEndpointRole":
return cls.MISSING_ENUM
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3528380cff77001beec0163795d68717740f5da0 | 8e4646da4007ed7313c1200f992696925dbe2690 | /comdet/tw.py | 886f47e39e0a1cb4f15f74702cfa144b41a70f0e | [] | no_license | akaneko922/comdet | e76691177900f20297db584a0919515e4eeeb025 | 843dc78b906ac7c5f05c131f0bcc4a2ba6a8fb12 | refs/heads/master | 2022-04-21T17:17:02.450919 | 2020-04-15T13:40:30 | 2020-04-15T13:40:30 | 255,920,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,342 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 27 10:37:48 2019
@author: kanekoakihiro
"""
from __future__ import division
import numpy as np
from scipy.interpolate import interp1d
from scipy.misc import derivative
from scipy.optimize import brentq
__all__ = ['TracyWidom']
_digits_1 = b'\xc6\... | [
"noreply@github.com"
] | noreply@github.com |
347887e7130674f1808b45168faa9abd9fdac706 | 28ac9c3f8d130f1f36adf0dae909bf487096c7c4 | /page/models.py | da21c90eb927ffb36cddb26d50cf878967d60016 | [] | no_license | chessdroid/portfolio | 67eef61b8afd5517fd573db9d513b2072fd46550 | cd0497183dc13da6e1b459feaca5ffa6732df884 | refs/heads/master | 2020-04-17T15:40:52.374730 | 2019-01-20T21:05:30 | 2019-01-20T21:05:30 | 166,708,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | from django.db import models
class About(models.Model):
name = models.CharField(verbose_name="Имя", max_length=128)
surname = models.CharField(verbose_name="Фамилия", max_length=128)
job = models.CharField(verbose_name="Профессия", max_length=128, blank=True)
desc = models.TextField(verbose_name="Описание")
ima... | [
"blogboter1@gmail.com"
] | blogboter1@gmail.com |
55c0387190029797fc40a4a5795409b09aa8c92e | f98de2db6b24d30d64f1145c7d8da4a40385a87f | /packages/grid_control/backends/aspect_cancel.py | 5b86166d12d61c4cbe5cccbb139d0d6dfe99df5a | [] | no_license | greyxray/grid-control | f9f453491fe7bc506d4cfc240afaa364ba9db84b | ed10fdb6ff604006a5d52dcd43c2e55c9e962c0a | refs/heads/master | 2020-04-15T13:15:21.103357 | 2019-01-08T18:23:07 | 2019-01-08T18:23:07 | 164,709,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,028 | py | # | Copyright 2016 Karlsruhe Institute of Technology
# |
# | 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 ... | [
"stober@cern.ch"
] | stober@cern.ch |
05d58fac9253df7e25a9a53ae98777f11a1b1d0a | 2af2cc17709cddf21995e0c8d937575814f16848 | /app/views.py | 1e75a74275a60547b8c20b350ce1a7074a570cfb | [] | no_license | MeDhruv/Scrapper | ea03aa44f541cfc26a25ebed73f0ed0f182f2d10 | e56f36ac8550936f9b9011780db988ffcb305a95 | refs/heads/main | 2022-12-28T02:41:38.345991 | 2020-10-12T07:42:38 | 2020-10-12T07:42:38 | 303,313,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,938 | py | from django.shortcuts import render,HttpResponseRedirect,HttpResponse
from django.contrib.auth.models import User
from django.contrib import auth
from django.contrib.auth import logout as LG
from app.models import *
from django.contrib import messages
from requests import Session
from bs4 import BeautifulSoup as bs
imp... | [
"medhruv.1908@gmail.com"
] | medhruv.1908@gmail.com |
fa97372f1c7c1784d5b67306cc72c036f1556e99 | bb048a319e732cb7c059b5fb877b834aab7525c5 | /dcbots/bench/sqltypes.py | b6544393cc54f81cbb49f1292c8f0a71288a7a8f | [] | no_license | dodysw/dodysw-svn | 9ec38513b7be8ec87d4ae8f6510bc7624e4ce4c0 | 1f784dae610b1052bf4cd96f5d470e56f0a08528 | refs/heads/master | 2021-01-22T02:34:00.193636 | 2016-09-10T17:02:22 | 2016-09-10T17:02:22 | 25,316,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | import time
import MySQLdb as dbm
def measure(f):
start = time.clock()
f()
print time.clock()-start
def init():
global tth_rows, cur
MYSQL_CONNECT_PARAM = dict(host='localhost', user='whatsnew_dcbot', passwd='', db='whatsnew_dcbot')
conn = dbm.connect(**MYSQL_CONNECT_PARAM)
c... | [
"dody@cryptolab.net"
] | dody@cryptolab.net |
cb3f5623bbdb3e21f97bf5e9d0985ebbd238226c | 889b57d73e31ddf8486213910fc8b97379393b06 | /venv/Scripts/pip-script.py | 38cb9639fb655936401bd7ed931190014867fc2c | [] | no_license | rishabhpar/NeuralNetFromScratch | c527fba284fe0e721c1a8d678ce87ff29525271e | c939b64b2e2ab79e055fc794a780d3021e6a1346 | refs/heads/master | 2022-09-29T11:32:51.208378 | 2020-05-30T22:34:27 | 2020-05-30T22:34:27 | 267,970,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!C:\Users\risha\Desktop\NNFS\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.... | [
"rishabh.parekh@utexas.edu"
] | rishabh.parekh@utexas.edu |
80de4d8d8bf0903cbfc5908a8739818b7ef2e166 | 0d2cafa1ee5ca14d33b5010ae7ee087ad9eae6af | /scap1/hooks.py | d0386b59a0b463274a82d8147082e9b8ee3f24b9 | [
"MIT"
] | permissive | komalk1992/scap1 | 81802fefcb46b864f5b8965bc65723e247395577 | 8b82c2dc39ec22ff8544d6668be517b76d24473a | refs/heads/master | 2023-04-01T13:45:18.544063 | 2021-04-10T13:31:05 | 2021-04-10T13:31:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "scap1"
app_title = "Scap1"
app_publisher = "sprics"
app_description = "scap1"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "info@sprics.com"
app_license = "MIT"
# Includes... | [
"nishchay.garala@gmail.com"
] | nishchay.garala@gmail.com |
6efada3dff5a4055386fa545b3df3ea168fb8fb2 | 7864813bd2317883acc094b153a9cc050214baee | /Week0/1-PythonSimpleProblemsSet/Test2_SumOfDigitsInNumberUsingString.py | 1eb0d7ee26fa38d8529226f29a9e5dfdceee10f9 | [
"MIT"
] | permissive | MPeteva/HackBulgariaProgramming101 | 36fd6f347884806b5c35b8277ac66e306f27ae5c | 5a3198448e635404d2101ff6d73cb103fa7e16a2 | refs/heads/master | 2021-01-22T11:37:59.904781 | 2014-10-22T09:26:12 | 2014-10-22T09:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import unittest
from T2_SumOfDigitsInNumberUsingString import sum_of_digits
class SumOfDigitsNumberUsingStringTest(unittest.TestCase):
def test_if_number_is_negative(self):
self.assertEqual(7, sum_of_digits(-1123))
def test_second_place_in_Fibonaccis_Row(self):
self.assertEqual(43, sum_of_di... | [
"mpp4@abv.bg"
] | mpp4@abv.bg |
7e69c2365ede83354197d6c6430c53006d1f5e49 | 61f598fe702b1b1119fe7ab3265bd9b0d22f8fce | /video_library/channel/admin.py | a87820b0fa199b22ebc32d68f5ef33618842db1f | [] | no_license | ayushsinghal90/video_library | 544e90579d6c732d02cbbd82726c5fdf49b5cd0c | 28bf89991dd0e64a77c21dd6a95b76c766a731b0 | refs/heads/master | 2023-06-02T22:04:11.541298 | 2021-06-19T18:54:28 | 2021-06-19T18:54:28 | 378,355,502 | 0 | 0 | null | 2021-06-19T11:54:03 | 2021-06-19T07:50:04 | Python | UTF-8 | Python | false | false | 120 | py | from django.contrib import admin
from .models import Channel
# Register your models here.
admin.site.register(Channel)
| [
"ayushsinghal998@gmail.com"
] | ayushsinghal998@gmail.com |
ea70eb5f0189ec2d247b6e932db9417ff91045f5 | 515c1764a6539f5700f3b9900d75c8ca3ad653f9 | /analisis.py | fb4f59a293992695fe49ba4cdbd6a2e6632b72e6 | [] | no_license | robagliom/debates_candidatos_2015 | bb59d1ded070357dce422075da1290a49d049015 | 887a36ea455348c1214c0ad140211b6a11a9b8c5 | refs/heads/master | 2020-05-28T05:45:53.425657 | 2019-09-22T23:57:25 | 2019-09-22T23:57:25 | 188,899,112 | 0 | 1 | null | 2019-09-22T23:05:32 | 2019-05-27T19:32:54 | Jupyter Notebook | UTF-8 | Python | false | false | 1,641 | py | #!/usr/bin/env python
# coding: utf-8
from preprocesamiento import *
# NLTK: kit de herramientas de lenguaje natural
import nltk #https://www.nltk.org/
import operator
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = (16, 9)
plt.style.use('ggplot')
from wordcloud... | [
"joaquincardonaruiz@gmail.com"
] | joaquincardonaruiz@gmail.com |
dfcfcc35c35cdcc287b4a95e942dfa715da6ac2e | c9106af2e2d9333964449e4a980bf7cb202c9a68 | /scripts/service_check.py | c19ff0f969c38f2593b1d7071287770724e9a69f | [] | no_license | ZengHongfu/zabbix | ebfae8575bee36fb9f899d9823fd87b0a2e423f0 | e8734d4cb015b650742486bf283f0ed42a02e8bd | refs/heads/master | 2020-09-07T12:36:40.540643 | 2019-11-10T15:47:21 | 2019-11-10T15:47:21 | 220,783,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
import subprocess
import argparse
import sys
import json
import re
import os
def get_service_info(service_name):
"""获取服务信息"""
command = "systemctl status %s.service" % (service_name)
data = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE).stdout.read... | [
"zhf1175096484@163.com"
] | zhf1175096484@163.com |
60f15986dc86a66c2b0235a65826939908a50d22 | 9d01193ed1c2904dcb0611c3b4a8e9faf466717f | /Phase 2/parse-exp-value-002.py | 356adfce61cee21716dd1437eca8923e092de1b3 | [] | no_license | Akul-Patel/Recursive_Descent_Parser | 287564bc03fd72b76f6da8f3bef8d03a506ae5ee | 10b6a6cc32c4c183de818daa5fd38b061c36f242 | refs/heads/master | 2023-04-15T05:50:27.657789 | 2021-04-21T16:14:57 | 2021-04-21T16:14:57 | 360,226,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,871 | py | '''
Akul Patel
Recursive Descent Parser: Phase 2
'''
'''
This program implements a recursive descent parser for the CFG below:
The grammar has added rule 3, 4, and 5 to the previous program.
------------------------------------------------------------
1 <exp> → <term>{+<term> | -<term>}
2 <term> → <factor>{*<factor> |... | [
"akul24700@gmail.com"
] | akul24700@gmail.com |
f291d5f7ca9ed91dbf1fff293334b417e04b0d03 | 836e82172e3420e5a7572363f28ba08e53fa3e25 | /Code and Data Files/test_solver.py | 0318e8e3107d71164ac555fa4e5bf962577594d5 | [] | no_license | amun830/Resource-Management-Project | fde050172ea1f52ff68fb7afcf9a0dec72d82f9c | 000ee596889b21f6b273b288b294378b23095219 | refs/heads/master | 2023-08-01T18:51:28.426806 | 2021-09-12T15:28:56 | 2021-09-12T15:28:56 | 388,642,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,481 | py | # import libraries and functions
import numpy as np
from Pressure import *
from Copper import *
from numpy.linalg import norm
#
#
# TESTING PRESSURE ODE SOLVER
#
#
# Test 1
def test_solve_ode_pressure_1():
"""
Test if function solve_ode_pressure is working properly by comparing it to a hand-solved result.
... | [
"80793364+amun830@users.noreply.github.com"
] | 80793364+amun830@users.noreply.github.com |
6b97d3acc5b4c2cf06ccbf1db416e1c517568c0c | 4942877e6f1bd33ac73301eab5277cde6eaa8119 | /mnist.py | 08481d5746202e7ff50e5722b2981822e1ced4ef | [] | no_license | justinesaji/knn | 8f7f4fdc05500374324fccc56a645adf74eaf0ec | 94daf0bbf9dcc25c5ee0722ff8d8363e48630ba1 | refs/heads/master | 2021-07-17T09:05:40.954158 | 2017-10-24T15:56:35 | 2017-10-24T15:56:35 | 108,078,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.tree import DecisionTreeClassifier
#data=pd.read_csv("train.csv")
#print("data\n",data)
data=pd.read_csv("train.csv").as_matrix()
print("matrix data\n",data)
clf=DecisionTreeClassifier()
x_train=data[0:21000,1:]
y_train=data[0:21... | [
"justinesaji@cs.ajce.in"
] | justinesaji@cs.ajce.in |
80b514d7437177ec7199d5858b99458caf3c628f | d0a00c42af72c5133d88ad1d99bfe93a86818082 | /MyEncoder.py | 5d01517bc0575ddadc3e15812f53e64f068ede33 | [] | no_license | peaceminusones/group-detection-python- | 9f3a2aa9ee0faf889cc091e92f64dd959d7a348c | ae39ea2ed2937ee6f5770c66029d99841a2ba40e | refs/heads/master | 2022-11-16T10:45:26.960614 | 2020-07-14T02:46:21 | 2020-07-14T02:46:21 | 216,811,869 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py |
import numpy as np
import json
class MyEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, np.integer):
return int(obj)
elif isinstance(obj, np.floating):
return float(obj)
elif isinstance(obj, np.ndarray):
return obj.tolist()
... | [
"yinglizhao@outlook.com"
] | yinglizhao@outlook.com |
7ef329a2fc395f3f8aa4abadc3daa962a73b87e4 | d072be4a71e948b75010fda78f9b8b478db7eb7a | /countingto25.py | af7f922a34291a70b5c364a0ea4827714c25ff5e | [] | no_license | Georgieboy68/ICTPRG-Python | 5e095fd72a5fc6e8a1d2734e0dbdbde419382521 | cfb1fb5e0b79ef2bc9a03d8882fa8d718a2c4486 | refs/heads/master | 2022-04-23T06:31:41.456740 | 2020-04-28T09:13:40 | 2020-04-28T09:13:40 | 259,569,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py |
# print the numbers from 0 to 25 with one line each
# initialise number to 0
number = 0
# while number <= 25
while number <= 25:
# print number in a line
print(number)
# add 1 to number
number = number + 1
# end
| [
"noreply@github.com"
] | noreply@github.com |
1cec7bbfb2bf32ef41170fcc4fcf729d5ebf3d4c | 9d29ca19feddfb774e990ccef6903206ecdb4ea1 | /src/comparable/sim_calculator.py | 0ec1b3506959ed19ff36479fad85deb95fb454e8 | [] | no_license | rasoolims/ImageTranslate | 180f5d6c310f7eb028bc3246e12ff7a5ab7b4fa8 | 51593a845a95fa3d05fc722a7c6a33077ee267be | refs/heads/master | 2023-06-23T14:21:13.985028 | 2022-09-29T18:57:06 | 2022-09-29T18:57:06 | 250,050,377 | 5 | 1 | null | 2023-06-12T21:28:44 | 2020-03-25T17:49:40 | Python | UTF-8 | Python | false | false | 9,318 | py | from collections import defaultdict
from optparse import OptionParser
import torch
import torch.nn as nn
from apex import amp
from torch.nn.utils.rnn import pad_sequence
replacements = {"۰": "0", "۱": "1", "۲": "2", "۳": "3", "۴": "4", "۵": "5", "۶": "6", "۷": "7", "۸": "8", "۹": "9",
"٫": ".", "૦": "... | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
4f5ee3566cff762a80920a9a9f8d02f54fb6647c | 3a9a253298ed0f61e4a83fce733a505c2e74d0a9 | /Python/test_writeTextfile.py | 2aec438f205959d7a0d6e647c15f0c89dcf72814 | [] | no_license | getongxue-123/ProgramLearning | a3f4af8480f573b569204f93829a33b13e93ccd2 | 868a135176b464c12d2b34befa7c777dd67a43ff | refs/heads/master | 2022-11-20T07:49:31.809001 | 2020-07-05T11:13:36 | 2020-07-05T11:13:36 | 277,267,357 | 0 | 0 | null | 2020-07-05T09:12:09 | 2020-07-05T09:12:09 | null | UTF-8 | Python | false | false | 122 | py | import sys
import os
f = open('a.text','a')
for i in range(9):
# f.write('\n'+str(i))
f.write('\n'+str(i))
f.close()
| [
"zhaoguanhua@gagogroup.com"
] | zhaoguanhua@gagogroup.com |
4b0270648d6642b256ca4369984c6b036e0efba0 | d227ef1313b1bfa20cae8b324163ff24fbde3602 | /day5 p16.py | edaa1e5f114828b6d06b6fd0a5a214b2fc885f61 | [] | no_license | HARSHIT2780/python | 1fb177aabfbaa7467b62553983d40f3233151ce3 | 6cfe5b436a57578b0493fb2974afc1b85184e9f4 | refs/heads/main | 2023-05-24T10:56:21.817739 | 2021-06-23T09:13:42 | 2021-06-23T09:13:42 | 372,731,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class cal3:
def __init__(self,P,R,T):
self.n1=P
self.n2=R
self.n3=T
def callInterest(self):
self.Interest = ((self.n1*self.n2*self.n3)/100)
def display(self):
print("Interest of given value is ",self.Interest)
c=cal3(1000,1,2)
c.callInterest()
c.displ... | [
"noreply@github.com"
] | noreply@github.com |
c29ba8a4213204bd408dc83f3c81e52a622edbc1 | f1844e79b965403b0054ed7e25a225d9661b1b5d | /Assignment 2/remove_duplicate_word.py | cf43e5adc66572da7862c8f1823f161702cd0961 | [] | no_license | chauhan14344/LetsUpgrade-Assignment | 00c785a031374121c9b8861dfab19b81dd0f3285 | 572464bcee292996beae7841fbe8b1f7a025bba0 | refs/heads/main | 2023-02-21T08:18:35.719099 | 2021-01-25T12:10:29 | 2021-01-25T12:10:29 | 331,110,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #!/usr/bin/env python
# coding: utf-8
# In[14]:
# Python program to remove all duplicates words from a given sentence
sample_string="my name is rahul chauhan rahul"
sample_string=sample_string.lower()
slist = sample_string.split()
print(" ".join(sorted(set(slist), key=slist.index)))
# In[ ]:
# In[ ]:
# I... | [
"noreply@github.com"
] | noreply@github.com |
02e8402c5117c2b27d6c879a64f03f2ff0da8a59 | 1afae73794c6d4874360c7a12e4d2f2dbe62ca56 | /gilda/tests/test_process.py | 10e7d813d8f9ab94695884c5b91a62d83ae79e63 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | steppi/gilda | ce2dc1d1d56363c6543b6076a8605d32baca0f60 | 4927469e5f9a4ca20a056f617c126fe6a4bf3b34 | refs/heads/master | 2021-11-19T12:52:13.465346 | 2021-09-25T00:40:17 | 2021-09-25T00:40:17 | 194,151,959 | 0 | 0 | null | 2019-06-27T19:28:27 | 2019-06-27T19:28:26 | null | UTF-8 | Python | false | false | 638 | py | from gilda.process import depluralize, replace_greek_spelled_out
def test_depluralize():
assert depluralize('BRAF') == ('BRAF', 'non_plural')
assert depluralize('apoptosis') == ('apoptosis', 'non_plural')
assert depluralize('mosquitoes') == ('mosquito', 'plural_oes')
assert depluralize('antibodies') =... | [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
6eb50de935128c4b95da982aeecb7b0ac8837c6e | f121695e2dff353607fa47fb42482470e03bbf8a | /capitulo_05-Instrucoes_if/hello_admin.py | 498fd1d357d23865008f7fd5357e38db07827afc | [] | no_license | ranog/python_work | 76cbcf784c86fae4482be5383223e4b0a34f4130 | 47c442a90dcf32d5aef70858693a772a3c76a7ac | refs/heads/master | 2022-12-22T11:02:26.482059 | 2021-04-17T01:12:22 | 2021-04-17T01:12:22 | 233,634,221 | 2 | 1 | null | 2022-12-08T07:38:43 | 2020-01-13T15:58:46 | Python | UTF-8 | Python | false | false | 4,523 | py | #! /usr/bin/env python3
"""
NOME
hello_admin.py - FAÇA VOCÊ MESMO
SINOPSES
chmod +x hello_admin.py
./hello_admin.py
- Precisamos encontrar alguns usuários!
- Breno: Usuário está disponível.
- Felipe: Usuário está disponível.
- João: Usuário está disponível.
- ISAAC: Usuário indisp... | [
"jprnogueira@yahoo.com.br"
] | jprnogueira@yahoo.com.br |
9ab67f7b2c0fa832640ef94d6416711a3f15a821 | 171797c12c214cbfe1d63416f27e7bbbcb7a051b | /problem_3/factors.py | 8f8a60e3107733df89c1f2071837278f79bf1658 | [] | no_license | jonassjoh/projecteuler | 0e58453f3da22decea60231d8ce70dd1bd08a23a | 5fc4f8abd8480390d6b3c7c1f8c61e230c5990aa | refs/heads/master | 2021-08-08T19:57:05.523747 | 2017-11-11T01:01:01 | 2017-11-11T01:01:01 | 110,305,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | def isprime(n):
for i in range(2, int(n/2+1)):
if n % i == 0:
return False
return True
number = 600851475143
i = 2
while True:
if i > number + 1:
break
if isprime(i):
if number % i == 0:
print(i)
number /= i
i += 1
| [
"jonassjoh@gmail.com"
] | jonassjoh@gmail.com |
64efc251c75c1ce342e1e34b99e8f7225b557316 | cf95773cfc75a319e1fabf1a4925a5a56f7a727a | /vigenere_cipher.py | 80d56af1cd28f19c14f892a25df0dbd050277d5d | [
"MIT"
] | permissive | Nish251103/Vigenere-Cipher | 2f3200a0e64c18c5e19d1af6875aa4c8e90d5b5b | 43a0bdbe174d7bfa13b7f8a7e3e050759e686ed4 | refs/heads/main | 2023-08-18T03:58:43.355471 | 2021-10-03T17:13:15 | 2021-10-03T17:13:15 | 413,144,468 | 0 | 0 | MIT | 2021-10-03T17:12:24 | 2021-10-03T17:12:23 | null | UTF-8 | Python | false | false | 2,332 | py | def new_alphabet(ch):
ch = ch.lower()
alph = 'abcdefghijklmnopqrstuvwxyz'
new_alphabet = alph[alph.index(ch):] + alph[:alph.index(ch)]
return new_alphabet
def decrypt(text, big_key):
res = ''
alph = 'abcdefghijklmnopqrstuvwxyz'
i = 1
for char in big_key:
new... | [
"noreply@github.com"
] | noreply@github.com |
aeda2ecceddd077e16c70999e60a038fe1fdd641 | aa0a7d766efc51b8a7dc8cb9fdf4a4fd9ad04d54 | /detect.py | 3d6e9d253adcf96dd88e2ecd99ad31910e85d605 | [] | no_license | Buster-maker/sjb | e6c880a5f9ee3b65b42900f6819c6fd74994017d | 968a98e03a3cfae53102792081826565db33a772 | refs/heads/master | 2022-09-27T16:06:54.014166 | 2020-05-31T05:04:44 | 2020-05-31T05:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import os
import time
import torch
from torch import nn
from torchvision import datasets, transforms
from model import VGGNet
batch_size=32
train_transforms = transforms.Compose([
transforms.Resize(224),
transforms.ToTensor(),
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.... | [
"noreply@github.com"
] | noreply@github.com |
8cdc1996350fedd552107da86cdd6c93fd87f457 | 0de608a92e4751b2ebee568d95ac0ff1dbb0160e | /manage.py | 1463c73a544b571e41ff2a8863140c242c4bbcff | [] | no_license | Vikash-Sinha/LoginSystem | 54c9788e92c3aaad70cf60c8ee3310d9ab3b1997 | 9314f2cc398692b2407ccadae3219e785f36c557 | refs/heads/master | 2023-05-18T11:19:48.952767 | 2021-06-07T05:30:39 | 2021-06-07T05:30:39 | 374,545,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python3
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'LoginSystem.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"vikas.s@skysoft.net.in"
] | vikas.s@skysoft.net.in |
2bda820ac51d519966af89e470086bee47ee974d | 81a55c0b1b9ee769f8bae9999105b0a6eed67e48 | /LinkedList/delete_n_nodes.py | b92f143c302c78cf91d1c6e2f383fcd118d7eab5 | [] | no_license | kumaya/python-programs | e9eec86b988b48f4076708e1a9bcd001f6951059 | 9a47194ba25f100938dede3cdfdf76edd61b69e0 | refs/heads/master | 2022-04-30T19:36:12.561816 | 2022-04-28T11:21:40 | 2022-04-28T11:21:40 | 37,153,156 | 5 | 3 | null | 2019-04-01T17:55:15 | 2015-06-09T19:22:11 | Python | UTF-8 | Python | false | false | 1,585 | py | # Given a singly linked list, m and n; where m = mth node
# delete next consecutive n nodes.
class Node():
def __init__(self, data):
self.__data = data
self.__node = None
@property
def get_data(self):
return self.__data
@property
def get_node(self):
return self.__... | [
"mayankb2k@gmail.com"
] | mayankb2k@gmail.com |
0c9a81e96c64a69b612758502b9dd952ca599d1d | c20d47e94b2a622745847eaad1ee4be6b7d37b03 | /chapter3/wikiSpider/wikiSpider/spiders/articleSpider.py | 735c1d2fa651d119cf670e0e9ea8f2579eae3ced | [] | no_license | kyungilpark/study-pythonscraping | 9d43f85dbb6d994c8e9683fdd467c682e3fcff90 | e587a8cb0caff30c8fb14e8532605b6394be505c | refs/heads/master | 2021-06-18T20:27:26.861827 | 2017-07-02T09:18:08 | 2017-07-02T09:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from scrapy.selector import Selector
from scrapy import Spider
from wikiSpider.items import Article
class ArticleSpider(Spider):
name="article"
allowed_domains = ["en.wikipedia.org"]
start_urls = ["http://en.wikipedia.org/wiki/Main_Page",
"http://en.wikipedia.org/wiki/Python_%28programmin... | [
"kylepark77@gmail.com"
] | kylepark77@gmail.com |
415cedb3d3fa0bda509665ff0b6bda231b44e591 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/infra/rsequipmentflashconfigpol.py | 5ba1c06c67cbdddd0e6be74145506f655f54e2e0 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,367 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
7e5ece3e636bcc1a750ba524f037c229ea5834bf | ec7c8b6fd15c1c9f863b467e609f9cdecf5a6751 | /backend/backend/api/match/match_unsubscribe.py | 5758da95dcf7aecaf53dbae5dab291bdc4fcaa07 | [] | no_license | DricoGrosch/iFoot | ec57f54ede5d42c50b3d292ef9f5722eb7f052cd | c563688e66ad10a1b3e36078728d28ddc70af7b9 | refs/heads/master | 2023-09-01T04:21:12.515604 | 2021-09-28T01:14:05 | 2021-09-28T01:14:05 | 388,961,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from rest_framework.response import Response
from rest_framework.status import HTTP_200_OK, HTTP_500_INTERNAL_SERVER_ERROR
from backend.api.auth.auth_api_view import LoginRequiredApiView
from backend.models import Match
from backend.serializers import MatchSerializer
class MatchUnsubscribe(LoginRequiredApiView):
... | [
"adrian.grosch@singular.inf.br"
] | adrian.grosch@singular.inf.br |
5e365d856993c7130f5b9560833669d748b12ddf | d60ee49abaee6c74c5b777f8f112a7f75f71f029 | /genome/variants2/active_driver/convert_ptm.py | 8bc23a1001aa4e3e7c10a5588f7623f8747323f3 | [] | no_license | ak352/melanomics | 41530f623b4bfdbd5c7b952debcb47622d1a8e88 | fc5e6fdb1499616fb25a8dc05259add8a65aeca0 | refs/heads/master | 2020-12-24T16:14:42.271416 | 2015-08-06T12:48:52 | 2015-08-06T12:48:52 | 18,439,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import sys
import re
def get_genes(gene_file):
genes = {}
for gene in gene_file:
gene = gene.strip('\n').split('\t')
transcript = gene[0]
genename = gene[1]
genes[transcript] = genename
return genes
def get_gene_intersection(data_file, gene_list, out_file):
# open fil... | [
"ak@uni.fake"
] | ak@uni.fake |
dbb1401afdba4b78fa09a627ad10c8ea4636ae4a | 994db80a654a51aad0b81c73edde2a382105c355 | /problem2.py | 9ea1e6d9524119205b7455e92217ee47080e723b | [] | no_license | mxzgit/chalenges-code | c21a6580e2214988137de8c2e3a24aaf5ad5fd22 | a0e7ccd35d5de0130811b7d2d53c5a9d242c2e9c | refs/heads/master | 2022-12-22T21:05:25.132037 | 2020-09-29T10:13:30 | 2020-09-29T10:13:30 | 175,007,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | '''
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-valued terms.
... | [
"zarriame@seyssinet-lx.ds.corp.kelkoo.net"
] | zarriame@seyssinet-lx.ds.corp.kelkoo.net |
235e2cdaa1734e77e9faf2f4eb4bc9ae1d335b2d | 0dc465be7f6ce82268162756ee6485c30bc894d3 | /python_basics/helloworld.py | ce3b4c691c7b220025ff665b20283f39cfd650e4 | [] | no_license | setarehkashi/CSD2 | 63e76e9860ab265b1183dab19c074b5157552de1 | e75eddc24f6c70677024030c573217ed776c42ee | refs/heads/master | 2020-03-28T04:13:51.596060 | 2018-10-23T09:47:03 | 2018-10-23T09:47:03 | 147,701,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py |
print "what is your name?"
name = raw_input()
print "hello", name
print ("helloworld")
| [
"official.setareh.kashi@gmail.com"
] | official.setareh.kashi@gmail.com |
f5a4068248717cdecf969c101345a43b1250ad3f | dd5d05ecb3e6752941dd5c72ca955307fca8ec14 | /d11/d11p2.py | 0b9004cb76477d36074131ce8fe0ef87a6d26774 | [] | no_license | jabadia/adventOfCode2020 | 81e7166cb2646f83da10d70bbaf4c31026ce7938 | 587001526b90bc6eed703e273b2d6cbec7e9b151 | refs/heads/main | 2023-02-05T15:39:22.123879 | 2020-12-28T08:52:54 | 2020-12-28T08:52:54 | 317,472,068 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | import time
from collections import defaultdict
from utils.test_case import TestCase
from d11_input import INPUT
TEST_CASES = [
TestCase("""
L.LL.LL.LL
LLLLLLL.LL
L.L.L..L..
LLLL.LL.LL
L.LL.LL.LL
L.LLLLL.LL
..L.L.....
LLLLLLLLLL
L.LLLLLL.L
L.LLLLL.LL
""", 26),
]
def find_nearest_from(ferry, pos, delta):
row... | [
"javi.abadia@gmail.com"
] | javi.abadia@gmail.com |
bd36975c81170ebc8231899dace68949b8c3af3b | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/huaxin_ui/ui_ios_xjb_2_0/setting_trade_password_page.py | ad3b0792d49495208856a117a3e182156aa9fd78 | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | # coding=utf-8
from _common.page_object import PageObject
import huaxin_ui.ui_ios_xjb_2_0.security_center_page
from _common.xjb_decorator import robot_log
FIND_TRADE_PASSWORD = "accId_UIAElement_找回交易密码"
MODIFY_TRADE_PASSWORD = "accId_UIAElement_修改交易密码"
CURRENT_TRADE_PASSWORD = "accId_UIATextField_(tradePwdTextField)"
... | [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
89af33c9dbbe0218a856138862c6a6083250c2ff | c96901e702b0c5f84170f95ed28263528a590e99 | /trials/trial_25_seaborn_heatmap.py | 3a115563ffc9b2f2f86649deb3e2621612ade7df | [] | no_license | CovertLab/SingleCellSequencing | d31c1898f07707e524bff24e02448f3b9798476d | 244dbe0757ffde813d683fa2f0fa68d125735685 | refs/heads/master | 2021-06-07T04:27:25.723887 | 2016-09-27T22:17:36 | 2016-09-27T22:17:36 | 27,788,049 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,537 | py |
"""
Analysis!
Cluster the time traces and then compare the gene expression for each cluster
"""
"""
Import python packages
"""
import HTSeq
import time
import collections
import itertools
import os
import subprocess
import collections
import datetime
import yaml
import fnmatch
import shlex
import numpy
import sci... | [
"vanvalen@gmail.com"
] | vanvalen@gmail.com |
604162af068ea5c89d72700409083be4292ebdb2 | fa78764665d7114026a06fcdb352abefc1703526 | /algorithm/mst.py | c28cab4e70338e0ad0281ace870afba953690a6b | [] | no_license | yitongw2/Code | 7025b4755e1c990284580b05f8cd0e1160f48403 | 8d803c50c2e591a7ae780c38c486422f9ae68384 | refs/heads/master | 2020-06-30T23:32:06.591554 | 2018-05-28T04:09:44 | 2018-05-28T04:09:44 | 74,344,864 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | from __init__ import *
from graph import UndGraph, Vertex, Edge
from heap import Heap
from union_find import UnionFind
def prim_jarnik_mst(G, s):
# cost of each vertex
C = dict()
# cheapest edge to each vertex
E = dict()
# setup
for v in G.vertices():
if v == s:
C[v] = 0
else:
C[v] = MAX
# priority qu... | [
"yitongw2@uci.edu"
] | yitongw2@uci.edu |
5c2542768262fede56e5ca4c9336d042f7bbd773 | 2a715c1ed6495edbe31c4a69fee90f2193791c3f | /slide.py | 416bdccfa175035ac75a21c5d05cc3d363e15076 | [] | no_license | momentum-pt-team-2/examples | 193a12c2f84eb107e1f6dbaff6341ccc6a97b0eb | de48440906ea4401c24dcbdb7a2b9f0953e1c050 | refs/heads/main | 2023-07-03T15:24:12.283586 | 2021-07-20T16:37:34 | 2021-07-20T16:37:34 | 370,613,744 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | def greet(names):
for name in names:
print(f"Hi, {name}!")
our_names = ["Amy", "Rebecca", "Dawn", "Dwayne 'The Rock' Johnson"]
greet(our_names) | [
"rebecca@momentumlearn.com"
] | rebecca@momentumlearn.com |
9a0fe0fc88d2adc744d33ca5ba58253465d62692 | 6c5a104dea3d9b1ec3a5b552b9befff9aa0477b7 | /userControl/migrations/0005_auto_20180810_2340.py | d0ae2f83ea7d5ac0697dda02d1d2bd0ddde22239 | [] | no_license | adefemi/etransecurepay-backend | 3670fae676057bcd780514011e51174be10672bd | 124bec00040181d24cdc674d541a65b6cd88ddf4 | refs/heads/master | 2020-03-27T08:44:25.237657 | 2018-08-27T12:04:35 | 2018-08-27T12:04:35 | 146,283,157 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,863 | py | # Generated by Django 2.1 on 2018-08-10 22:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('userControl', '0004_auto_2... | [
"oseni.adefemigreat@gmail.com"
] | oseni.adefemigreat@gmail.com |
569d18054d9036d8bf88a76546b897d18f1c646f | 5005265d72b1622a7c5dbcc091ff2c617eab1699 | /online_assessments/leetcode/python/max69number.py | ed82dbf05874506105f5f3ec394122388fcd4ada | [] | no_license | eclam/study_review | c5df4ec4b59da4c7b72c604984b616772f2b6f24 | 651d8fa9df27bc483b69427f4830b7e2e9c77a06 | refs/heads/main | 2023-07-17T18:14:14.866594 | 2021-09-04T03:01:09 | 2021-09-04T03:01:09 | 343,593,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Source : https://leetcode.com/problems/maximum-69-number/
class Solution:
def maximum69Number (self, num: int) -> int:
stringNum = str(num)
for i, c in enumerate(stringNum):
if c == '6':
return int(stringNum[:i] + '9' + stringNum[i+1:])
return num
num = int(in... | [
"eclam@sfu.ca"
] | eclam@sfu.ca |
452ed36a0c17e3c263608ccfa90c6acb7cef2fd6 | 8fa1e42e7a38b3ffef736e4851e0aab5700b62be | /questões/questao_13.py | cb6e76c3ee09ddabb88a5ee8fe4fd5c289194ff3 | [] | no_license | ifpb-cz-ads/pw1-2020-2-ac04-team-alexfrancisco | 6289df0384a19e1f5ba238c35059c973f8af84fc | 1584d7509c090695dc94b51be344446cedb87e36 | refs/heads/main | 2023-03-21T12:18:54.115161 | 2021-03-04T01:36:37 | 2021-03-04T01:36:37 | 342,600,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py |
numero = 'true'
soma,media = 0,0
cont = 0
while(numero != 0):
numero = int(input("Type the number: "))
soma += numero
cont+=1
media = soma/cont
print(" Quantidade de numeros digitados: %d\n Soma: %d\n Média Aritmética: %.1f" %(cont,soma,media))
| [
"franciscojunior7222@gmail.com"
] | franciscojunior7222@gmail.com |
8eb81c367c3e97cfc7fc8836fe6fe26710691f9e | 9f2f386a692a6ddeb7670812d1395a0b0009dad9 | /python/paddle/fluid/tests/unittests/test_tensor_uva.py | 4af04b8f6d41e2801fb1bba280f648c81bd3c2ae | [
"Apache-2.0"
] | permissive | sandyhouse/Paddle | 2f866bf1993a036564986e5140e69e77674b8ff5 | 86e0b07fe7ee6442ccda0aa234bd690a3be2cffa | refs/heads/develop | 2023-08-16T22:59:28.165742 | 2022-06-03T05:23:39 | 2022-06-03T05:23:39 | 181,423,712 | 0 | 7 | Apache-2.0 | 2022-08-15T08:46:04 | 2019-04-15T06:15:22 | C++ | UTF-8 | Python | false | false | 2,195 | py | # Copyright (c) 2022 PaddlePaddle 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 ap... | [
"noreply@github.com"
] | noreply@github.com |
f3aba37626ba4dafa068bef7170469351ab21fb9 | 2a55d8f49d1b4505c2f227e5ff1d39726a41f78e | /renameCsvToTsv.py | 18976720a181df78a82a7d0bc9089a6d2208de2e | [] | no_license | spenteco/onlineMalletV4 | 9fa119ba7690f8e3e93aef440bbd0034129e1050 | 265a61c9fa2cab29fa53bf89bbd35398428e1fd2 | refs/heads/master | 2021-07-16T08:25:40.587521 | 2017-10-23T15:45:42 | 2017-10-23T15:45:42 | 108,003,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys, os, codecs, math, commands
from nltk.corpus import stopwords
from nltk import *
# ----------------------------------------------------------------------
#
# ----------------------------------------------------------------------
def executeCommand(cmd):
re... | [
"spenteco@wustl.edu"
] | spenteco@wustl.edu |
a8d5f800e226553f200308068b2c6bd831793a7a | dbac29cdd825ddba4c2b6a2a7619d03faf448d1d | /BBSCrawler/spiders/sjtu_pre_spider.py | a37625a2ae68260e0c83ecc911fb8f4ba60b0ef1 | [] | no_license | clasnake/BBSCrawler | 9c7399504297a8a81f6de9d7ec0953e114e5e192 | df6dcf4ea0cd2089f85e324dcc582750b627425e | refs/heads/master | 2021-01-22T05:15:26.858720 | 2014-03-18T10:31:24 | 2014-03-18T10:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | '''
Created on Mar 18, 2014
@author: cla
'''
from scrapy.spider import Spider
from scrapy.selector import Selector
from BBSCrawler.items import SjtuPreItem
class SjtuSpider(Spider):
name = "sjtupre"
allowed_domains = ["bbs.sjtu.edu.cn"]
start_urls = ["https://bbs.sjtu.edu.cn/bbstdoc,board,JobInfo.html",]
... | [
"classical.zhu@gmail.com"
] | classical.zhu@gmail.com |
a3c1db4dbe9cbb4c1e4b32666a85445f6a052213 | 6b597d4968b7fe790743b8b8c005f10c0d7dca14 | /aliyun-python-sdk-sas/aliyunsdksas/request/v20181203/DescribeWebLockConfigListRequest.py | a488efdb3c8a9a2cd17583b1e7a1b7a27fc24020 | [
"Apache-2.0"
] | permissive | tyh001/aliyun-openapi-python-sdk | b325348df187755a7afca059402e6936d3f6489b | 3de91944d67a893422a1d1bd0fc124ff457a33c1 | refs/heads/master | 2023-04-16T15:09:56.132243 | 2021-04-25T03:31:25 | 2021-04-25T03:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
2e3937e104ff2435f44b669120e822c1f7909ae8 | a2d11acd4c0c8b58d77d3fdcd47f46f3c6da8203 | /app/profile_service/admin.py | 9d02957be125010395f35c87869dbe80139bd27a | [] | no_license | Fox-sys/School_rest_app | b1763121ba6ed4f308e00145084a919f641cec83 | 27e82e1a574676ac9081e66dc1de7221159e9e65 | refs/heads/main | 2023-03-07T23:38:18.068004 | 2021-02-22T10:11:18 | 2021-02-22T10:11:18 | 337,698,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | from django.contrib import admin
from .models import MainUser, Teacher, Student
from django.contrib.auth.admin import UserAdmin
@admin.register(MainUser)
class MainUserAdmin(UserAdmin):
fieldsets = (
(None, {'fields': ('username', 'password')}),
(('Personal info'), {'fields': ('first_name', 'last_n... | [
"borisberestov@ya.ru"
] | borisberestov@ya.ru |
e01ad7691ea38c36d638bae31a9495c9d187f087 | cf55e0e3ac8f340b379bb211c9f40a71930a4891 | /src/app_v1/order_paid.py | 8561892863f309ffc3634b0fafdf09563c70ae50 | [] | no_license | jack139/pretty | 666af96fd412c9fba1b4180dc14b2dcb77ae677d | 5641341d23191cd3dcc050524cf862c5e1dde2c7 | refs/heads/master | 2021-01-19T23:02:25.805841 | 2017-08-24T07:19:56 | 2017-08-24T07:19:56 | 101,262,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,894 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import web
import time, json
from config import setting
import app_helper
db = setting.db_web
# 支付完成
url = ('/app/v1/order_paid')
class handler:
@app_helper.check_sign(['app_id','dev_id','ver_code','tick','session','order_trade_id','data'])
def POST(self, versi... | [
"gt@f8geek.com"
] | gt@f8geek.com |
936e330126a2c49cba1c864e66ea223420f2da14 | cfefc92a8314f8461fe06ea72d126ded2048d954 | /test/test_model_tf.py | c54a360c2742dfb1c3d29ec5f95669d5cd776424 | [] | no_license | DuckTigger/StateDiscrimination_withCirq | 4a1f20bf8eb078bd40c58cde0c3224200572d8f0 | c79f9709cb2b05dfa57f9d62120649a3d5ca54e0 | refs/heads/master | 2023-06-21T22:32:48.211067 | 2020-04-27T17:31:19 | 2020-04-27T17:31:19 | 196,233,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,282 | py | import tensorflow as tf
import numpy as np
import copy
from tensorflow_backend.base_model_tf import ModelTF
from tensorflow_backend.tf2_simulator_runner import TF2SimulatorRunner
from shared.gate_dictionaries import GateDictionaries
class TestLossFromStateTF(tf.test.TestCase):
@staticmethod
def kron_list(l)... | [
"andrew.pattersonap24@googlemail.com"
] | andrew.pattersonap24@googlemail.com |
dbbcee3b237b0467ab276f570556f8e2a5542d51 | 6a6bfcdadc2ead20f1fa5b04c85785a42483fbb4 | /http.py | f1165f6d34ccea887ee4e597b2130b01060f25d4 | [] | no_license | jiravani/redirect | b143248c14ee53317174e658f9c3af767b82eeb4 | 315536ff96d6331e4529421cd17d70fbd0856f93 | refs/heads/master | 2021-01-19T05:46:44.997144 | 2019-06-11T18:24:59 | 2019-06-11T18:24:59 | 87,384,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | import requests
import json
def lambda_handler(event, context):
url = 'https://t94q1vf1g3.execute-api.us-west-2.amazonaws.com/Prod/redirect'
payload = {'destination_url': 'https://twit.tv'}
headers = {'Accept': 'application/json'}
# post to the endpoint
request = requests.post(url, data=json.dump... | [
"justin.iravani@1strategy.com"
] | justin.iravani@1strategy.com |
7f1b815637b8a0e0731d2e7ef6b74e5145483e28 | e8c08951955deb0b80202061d6f02c0aa1be7131 | /ishibashi.py | f6b20dadd03e4bf24cb0a57ff1ac02186072fb5f | [] | no_license | rkawajiri/ishibashi | d9469c76ec88c1daa11185fd5d32d4a9d1b0ee54 | 461cf3fb429c5d132b724dff51bcf55e5ae044f5 | refs/heads/master | 2020-05-29T12:24:34.379407 | 2016-03-25T05:02:00 | 2016-03-25T05:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | # -*- coding: utf-8 -*-
import RPi.GPIO as GPIO
import time
class Ishibashi:
def __init__(self, mode="bcm"):
self.GPIO = GPIO
if mode is "bcm":
self.GPIO.setmode(self.GPIO.BCM)
elif mode is "pin":
self.GPIO.setmode(self.GPIO.BOARD)
else:
raise Exception("No such Pin... | [
"j.tane3ma@gmail.com"
] | j.tane3ma@gmail.com |
9b9db28920c879069c3db9d17c35b29e60cb2120 | 31af33e4eca3b73e0eb3c846d3dd14cb23223362 | /FCNVMB_train.py | fb687c7ddfc4e89d516a74e6bc82f51469a2f301 | [] | no_license | YangFangShu/FCNVMB-Deep-learning-based-seismic-velocity-model-building | 52633a7f934259a8658e610d227bce1c983d4bcd | f0ebed228df9e241c24e5615d26c54dea8e858a0 | refs/heads/master | 2022-09-10T13:17:03.674608 | 2022-08-28T02:18:26 | 2022-08-28T02:18:26 | 204,304,907 | 140 | 51 | null | 2022-08-28T02:13:08 | 2019-08-25T14:23:36 | Python | UTF-8 | Python | false | false | 6,190 | py | # -*- coding: utf-8 -*-
"""
Fully Convolutional neural network (U-Net) for velocity model building from prestack
unmigrated seismic data directly
Created on Feb 2018
@author: fangshuyang (yfs2016@hit.edu.cn)
"""
################################################
######## IMPORT LIBARIES ########
###... | [
"noreply@github.com"
] | noreply@github.com |
05997de6f8f1c64c9270cf5ecd9bcceb1b0a1e38 | db4338729e73e64e2c66a18013bb2c3ff66efe84 | /my_lib/test_read_music.py | 4a39d86123ed66685a5ab7aa4b4c82b5b46c0648 | [] | no_license | TomNguyen-0/MusicAndLyrics | c759f9666c5086b9fe369e30d0e3102f4581b673 | e0fa911fa2013662e143c38f9cb2c03c210b9277 | refs/heads/master | 2023-06-11T00:37:02.351215 | 2021-07-04T08:25:36 | 2021-07-04T08:25:36 | 350,139,575 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import unittest
import read_music
from io import StringIO
import sys
import os
import signal
class ReadMusicTest(unittest.TestCase):
def test_change_path(self):
"""
Change the directory in the system terminal
"""
sys.stdin = StringIO('music\n')
read_music.change_path()
... | [
"tommie_89@yahoo.com"
] | tommie_89@yahoo.com |
9439d36c6cc908810b1232342bdb8592068b45f8 | b7f21d72a43dea369d41ddf657a2cba2406bb388 | /app.py | 32e6f324e4f5018154e9ace88dfa1074fe8a3b60 | [] | no_license | andreamagan/good-job | 87936a527c61585a0e8d46498ebb6939d1cdf46e | e393cc4d2a619871c35f23ddec5f4e5c85a4ec06 | refs/heads/master | 2020-12-06T06:29:27.930754 | 2020-01-16T20:57:32 | 2020-01-16T20:57:32 | 232,373,081 | 0 | 0 | null | 2020-02-03T20:47:24 | 2020-01-07T16:59:30 | Python | UTF-8 | Python | false | false | 59 | py | from project import app
app.run(host='0.0.0.0', port=8080) | [
"amr237308@gmail.com"
] | amr237308@gmail.com |
9d2e2d632e9c851399c50eebdef6085159570eec | accc9b3856fd6527b52022f407750ef14b12eb67 | /api/urls.py | c32db1d7784174cc55f173117bfd77b3024e2cb5 | [] | no_license | Kamoliddin1/firstapp | 4466829ff01670c977562c137203617c6597250c | 1fa6456ca00731d1bb84a573102f4ee74d085f6b | refs/heads/master | 2022-05-09T01:10:11.925093 | 2020-10-30T04:03:17 | 2020-10-30T04:03:17 | 197,015,321 | 0 | 0 | null | 2022-04-22T23:28:41 | 2019-07-15T14:30:50 | JavaScript | UTF-8 | Python | false | false | 565 | py | from django.urls import path, include
from rest_framework import routers
from api.views import UserViewSet, UserProfileViewSet, TestSessionViewSet, AnswerViewSet
router = routers.DefaultRouter()
router.register(r'users', UserViewSet, base_name='users'),
router.register(r'profile', UserProfileViewSet, base_name='profi... | [
"chkb007147@gmail.com"
] | chkb007147@gmail.com |
05bbab0853727c8a22ab78ce6c0e3c1ff5e978f5 | 9ad6d833facb8da2e89f0bbfb0af2e34c4e951a3 | /conection.py | 3b5ddc454b02f8851349a2364ef43254fb72c5a7 | [] | no_license | TitoSilver/ListaTo-Do | b3f8b959a4c1d4465168c204c1ea8009f1e7769e | 4c6bd451ba147022b8c7c650efb9e7f88a788873 | refs/heads/master | 2023-07-15T16:52:01.568760 | 2021-08-27T17:02:01 | 2021-08-27T17:02:01 | 380,799,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,069 | py | import pymysql
def db_connect():
db= pymysql.connect(host='localhost',
user="root",
passwd="123456789",
db="task_archivament"
)
return db
def add_task(name,duration):
db= db_connect()
with db.cursor() as ... | [
"diegofornes2@gmail.com"
] | diegofornes2@gmail.com |
1b7c79905cfff0a7801afc3977d12ad53a6f99ff | 2cc2eea9d3341442c0c759cf8ac7ad5cbc3c3f82 | /node_modules/mongojs/node_modules/mongodb/node_modules/kerberos/build/config.gypi | 36cfe19dc96b712d140cd0edb9b6cf57e644c966 | [
"Apache-2.0",
"MIT"
] | permissive | jbbakst/mean-seed | bb967b96fb508daec12fcf1b50f3ba942cd69c96 | 70664586b6f28371909a2abc8e4d70737335d9d7 | refs/heads/master | 2020-06-03T03:49:41.441595 | 2014-10-24T21:20:58 | 2014-10-24T21:20:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"node_install_npm": "true",
"node_prefi... | [
"jbakst@stanford.edu"
] | jbakst@stanford.edu |
47e6eb10c0cda8d92dbd94b3880fdbf19badeab8 | 64e25123ab4a24ebcb7e1026d11d376a8a43dce6 | /JBM_PredictFromModel.py | 27bea30b6bfed79a5ada6fafb8988ae8319f2019 | [] | no_license | hranjan87/JBM | f15919ca53c212c66a9ba766e5df1d4bc8c746b8 | 3c9df7e98db50528784d92adfcc58a41f2fc2b0e | refs/heads/master | 2020-03-25T15:15:05.250562 | 2018-08-07T13:07:06 | 2018-08-07T13:07:06 | 143,874,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py |
# coding: utf-8
# In[40]:
import os
import numpy as np
from keras.preprocessing.image import ImageDataGenerator, load_img, img_to_array
from keras.models import Sequential, load_model
# In[41]:
img_width, img_height = 150, 150
model_path = '/Users/HimanshuRanjan/MachineLearning/JBM/models/model.h5'
model_weigh... | [
"himanshu.ranjan.it@gmail.com"
] | himanshu.ranjan.it@gmail.com |
742dcf6713763967fa830ceeb474190bb674d285 | 5bcd374e83023c5b58d4e4b1b2e9974932c24901 | /parsers/parser_utils.py | 0594cd74991cb6b846bc4d9c5e013202514dc6db | [] | no_license | pep8speaks/Junior-Design-Smart-Lock | a39e8f2d7fe4fc3e2f90930eb2d6fb755c4debe7 | 96d82c30a684778ec47612850fae9493842b4de8 | refs/heads/master | 2020-04-17T13:28:50.913636 | 2019-01-19T22:15:47 | 2019-01-19T22:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | from webargs import fields
from parsers.enum_field import EnumField
DATA_TYPE_MAP = {
fields.Str: "string",
EnumField: "string",
fields.Int: "int",
fields.DelimitedList: "array"
}
def _add_data_type(instance, entry):
entry["dataType"] = DATA_TYPE_MAP[instance.__class__]
if instance.__class__ ... | [
"jeraguilon@gmail.com"
] | jeraguilon@gmail.com |
8ee79b6bf819a2bc8d98be6a561a3662ef02b6a2 | f6a3777bca4c4bfa71d22c9375c85d76cfa26a9a | /xoutil/deprecation.py | 435dd2cf5ead36c34aa1e9de15cb85c1b2b2b55d | [] | no_license | edelvalle/xoutil | b127f6d62040de17a8e13e99b3fcc9aa6a1424e9 | ee7340255abdc22eac0bf5c8c8989e76e3c07ba2 | refs/heads/master | 2021-01-22T13:41:40.851439 | 2015-04-15T22:47:05 | 2015-04-15T22:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,969 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
# ---------------------------------------------------------------------
# xoutil.deprecation
# ---------------------------------------------------------------------
# Copyright (c) 2012-2015 Merchise Autrement and Contributors
# All rights reserved.
#
# This is free softw... | [
"mva.led@gmail.com"
] | mva.led@gmail.com |
767878a4bf51c9463d240d996aac7c30dc18c2d3 | c60c5fbccb2d32a88974afaf73392d8a3cd8a933 | /stats/iostat.py | 1ba2963f06ec47f3eb58898f806c996a0dfa0554 | [] | no_license | bubnicbf/pycharm | c70842f0993e89cf61afbf02abc93ccaf74528c5 | 9eec44fabf6fb595f8bd0a9b221926efbeef23d0 | refs/heads/master | 2020-08-27T11:41:29.660811 | 2020-04-07T11:12:51 | 2020-04-07T11:12:51 | 217,354,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,957 | py | #!/usr/bin/python
# This file is part of tcollector.
# Copyright (C) 2010 The tcollector Authors.
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (a... | [
"bfbubnic@us.ibm.com"
] | bfbubnic@us.ibm.com |
74f6e50a7a5f5f9a02fd502262a61022b1a616d2 | 85cc9c7c91fc19ff980c3b9af763d290dbe19844 | /Instagram/views.py | 28d4d4120b275358a5b284112e82f98565fcdd2b | [] | no_license | qiu957919102/GithubTrending-MiniProgram-Django | 21ca3e6185d24ba29f50858c56168d2fd46386cc | 519222f35df354bc6dae7df21f56e26ef4e7a1c6 | refs/heads/master | 2020-06-09T00:19:03.296889 | 2018-07-23T17:02:33 | 2018-07-23T17:02:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,291 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponse
from django.shortcuts import render
from django.shortcuts import render_to_response
import json
from models import Ins, WallPaper
import requests
from GithubTrendingDjango import _redis
import time
class ConfigObj(obj... | [
"xiyoumc.dev@gmail.com"
] | xiyoumc.dev@gmail.com |
0e70cb822ece0c20053f367c03b433076de08f3c | e159bfaa2eb5aff21f5d44d8f07a5e435937a551 | /models/reddit/stacked_lstm.py | eebd961755a8b9d72c48d6bb2fce1aa225e7ae40 | [
"BSD-2-Clause"
] | permissive | dssaenzml/federated_learning_nlp | fe4dbaa60a4caacd9b231d0859d2385465656707 | b48fbeb3e78af5971885337203504c017ef1553b | refs/heads/main | 2023-04-11T00:05:19.025000 | 2021-04-14T10:07:52 | 2021-04-14T10:07:52 | 347,849,479 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,660 | py | import collections
import numpy as np
import os
import pickle
import sys
import tensorflow as tf
from tensorflow.contrib import rnn
from model import Model
VOCABULARY_PATH = '../data/reddit/vocab/reddit_vocab.pck'
# Code adapted from https://github.com/tensorflow/models/blob/master/tutorials/rnn/ptb/... | [
"noreply@github.com"
] | noreply@github.com |
87c994c704c68d358bcc6e894cb2dd73ac3d1acd | 2642db9d1209142d76b0d8ee5aae0135bb77f668 | /Word2Vec.py | 1098aea135a6bc0f723299ad06a62234952372c2 | [] | no_license | leichaocn/word2vec_with_tensorflow | 4d82ee43122f2a070db3acdb7d661ddd6936389f | d8faa12c2f6f3a9f1aa2ff97e56d86076b540ec7 | refs/heads/master | 2021-07-25T00:19:22.899859 | 2017-11-07T02:13:20 | 2017-11-07T02:13:20 | 104,879,911 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,437 | py | # region 加载库,基础配置
import collections
import math
import os
import random
import zipfile
import numpy as np
#import urllib
#python3中已经不能再用urllib了,应改为urllib.request
import urllib.request
import tensorflow as tf
url = 'http://mattmahoney.net/dc/'
vocabulary_size = 50000 # 最常用的单词总数设置在50000
embedding_size = 128 # 嵌入向量的维度
... | [
"noreply@github.com"
] | noreply@github.com |
70665b33d064eb503f4665133f13ce6ff69545a2 | 0bb5dd914ce4cada879ee7e0685a4fc596b84e5d | /analysis/study_definition_gpconsultations_cases.py | 881c662731310202b544d9e6c182ca41517800e2 | [
"MIT"
] | permissive | opensafely/long-covid-symptoms | 0238e1dcda81cbf83239ff8bc4361891a0473a8d | 240a1079475479862e58dc30a940f1fcd2edfb6d | refs/heads/master | 2023-08-23T10:41:31.953757 | 2023-06-28T21:23:26 | 2023-06-28T21:23:26 | 362,808,572 | 0 | 0 | MIT | 2023-06-28T21:23:27 | 2021-04-29T12:24:27 | Stata | UTF-8 | Python | false | false | 2,940 | py | # Import necessary functions
from cohortextractor import (
StudyDefinition,
patients,
codelist_from_csv,
codelist,
filter_codes_by_category,
combine_codelists
)
# Import all codelists
from codelists import *
# Import the required data
CASES = "output/input_covid_matched_cases_contemporary_al... | [
"kevin.wing@lshtm.ac.uk"
] | kevin.wing@lshtm.ac.uk |
2f28679a7e0e7edab6a076efdc7460f1540ce41b | c2d4f191eacd6bd16b6cc707c4b63774cc283162 | /查找计算/加油站.py | c52c7a24b8c7030bfb0b4676b165804ab8c0f1fd | [] | no_license | VixeruntR/leetcode | 89e696cf067ecd9c0fdc3d55eec536dcff868738 | 7dbd6da4cf42e422f1425a9de134ab31da52792a | refs/heads/main | 2023-02-06T07:43:52.997881 | 2020-12-31T09:36:51 | 2020-12-31T09:36:51 | 325,765,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | # coding=utf-8
"""
在一条环路上有 N个加油站,其中第 i个加油站有汽油 gas[i]升.
有一辆油箱容量无限的的汽车,从第 i个加油站开往第 i+1个加油站需要消耗汽油 cost[i]升.
从其中的一个加油站出发,开始时油箱为空.
如果可以绕环路行驶一周,则返回出发时加油站的编号,否则返回 -1.
示例 1: 输入: gas = [1,2,3,4,5]
cost = [3,4,5,1,2]
输出: 3
解释: 从 3号加油站(索引为 3处)出发,可获得 4升汽油,此时油箱有 0 + 4 = 4升汽油
开往 4号加油站,此时油箱有 4 - 1 + 5 = 8升汽油... | [
"757023283@qq.com"
] | 757023283@qq.com |
83021a267e358a3fea67b5de6b1822c9b7759132 | cec027ccd320c05f1a6c4db950864a7273402be7 | /Practica4/Con prueba/prac04ej05_b.py | 61ed06f827a14372109d5356b2ce05516f8a1522 | [] | no_license | emiliobort/python | 3effef8c62892be50a88c36c4fec2e297d4a74fd | 34685de13befc19e8fe8d368091625de64f8e541 | refs/heads/master | 2021-01-10T12:33:45.902890 | 2015-11-16T21:18:27 | 2015-11-16T21:18:27 | 44,205,078 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | maximo = 0
seguido = 0
i = 0
while i<len(adn)-2:
if adn[i:i+3] == "CAG":
seguidos + = 1
i += 3
elif seguidos > 0:
if seguidos > maximo:
maximo = seguidos
seguidos = 0
i +=1
else:
i+=1
if seguidos > maximo:
maximo = seguidoos
if maximo == 0:
... | [
"cualesmiemail@gmail.com"
] | cualesmiemail@gmail.com |
2dcf19b040221202d436bc01ed66681458b4c9d3 | 72baaf85e7031d7224b46c654a6ff212ae4b324c | /istio-fluent-venv/Scripts/easy_install-script.py | dc0b7dfd519e1a575ea742620331f470d66dd17c | [] | no_license | linkingli/istio-python-hello-jaeger | 9ba4b531edb6aa38f5c35714551cbb091f2ae07e | 48ea1e0012786be5f876847e81657672c4d6c9db | refs/heads/master | 2020-09-08T14:06:06.052393 | 2018-05-25T03:45:32 | 2018-05-25T03:45:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | #!D:\work\demo\istio-python-helloworld-jaeger\istio-fluent-venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__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... | [
"liujiabao1@126.com"
] | liujiabao1@126.com |
8450612795376d18f68f98ea6a58b92acb174b93 | 0bdee3b5a26b361eeb7d9fba3410eb4a002b6db5 | /requestManager/garbage_request_manager_good_backup_8_28_AM_Apr_20_2020.py | eb82352dd98ebd5e565aa2abdcb124042cdbe56d | [] | no_license | ConnectNitish/IAS_Project_Smart_Classroom | 3287e1638ce560ef5cb3b2d0758a11fde285151a | 029ad5fdb8e81d8fd0111d48e447f1a0c3a6f754 | refs/heads/master | 2022-04-19T03:15:10.238210 | 2020-04-22T14:28:14 | 2020-04-22T14:28:14 | 256,982,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,884 | py | from flask import Flask,request, render_template,redirect,url_for,session,jsonify
from werkzeug.utils import secure_filename
import os,json
from threading import Thread
from time import sleep
import time
import datetime
import requests
import numpy
from Logger import Logger
import logging
import xmltodict
import sys
fr... | [
"nitish068@gmail.com"
] | nitish068@gmail.com |
65e4d67f4016f2931eb2c7b9134e79cc6168ac0f | 162a40349d7ce4147b44b2cb807d8f8d1d607826 | /bin-phylogenomics/treeboot | 5ab9ad6eb5d2c9fbfb1402b6870abb057d3f1694 | [
"MIT"
] | permissive | mdrasmus/compbio | b698496b005332e5db934a623179b2bdee58e842 | 7fe7082904248783d63ebab615056022982096d8 | refs/heads/master | 2021-01-19T07:53:44.619148 | 2014-06-06T17:21:18 | 2014-06-06T17:21:18 | 13,547,787 | 33 | 9 | null | 2014-05-24T01:17:32 | 2013-10-13T22:26:02 | Python | UTF-8 | Python | false | false | 1,395 | #!/usr/bin/env python
"""
Map bootstrap values onto branches of a tree
"""
# python libs
import optparse
# rasmus libs
from rasmus import treelib
from rasmus import util
from compbio import phylo
o = optparse.OptionParser(usage="%prog [options] <tree file> ...")
o.add_option("-o", "--oldext", dest="oldext",
... | [
"matt.rasmus@gmail.com"
] | matt.rasmus@gmail.com | |
43cb8e5d3a3f34d263d5bb10f9bedcef15ee7473 | b2300b22f4e6d5207668255274cb6559f08ebca6 | /test.py | ecb548051f272c763f7c10e0ae170c51d9218885 | [] | no_license | Gcav66/test_heroku | b36e41e0b930452298fd62eacd2912b97925d7f0 | e50fd4cfc3b6c2e45832ee84c6637fedf0073f80 | refs/heads/master | 2021-01-10T17:24:33.321487 | 2016-03-16T00:00:40 | 2016-03-16T00:00:40 | 53,576,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from AWhereCall import AWhereCall
key = 'lpGunnkiij1439P1f3xFNer9GA3aL1eI'
secret = '61WbUcQiStz5mSMv'
field = 'gus_dc'
y = AWhereCall(key, secret)
#fields = y.get_fields()
#print fields
#resp = y.create_field(38.9, 77, 'gus_dc', 'dc')
#print resp
out = y.get_observations(field)
print out
print out['observation... | [
"gustafcavanaugh@gmail.com"
] | gustafcavanaugh@gmail.com |
fbd523289079bbad6641b559db407c1bb997f05d | 2ae4864c888d533f8bafced9d46dfc47e4941a99 | /src/django/giraffe/blat/admin.py | 71bd20e379cc264e6a63f360e3c545035fcf8529 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BioData/giraffe | 0e6d4a37617eefaec17d99afff6812d7ca0fe8d6 | 6d73342606fe742c3b15050d4782ac8c669490a8 | refs/heads/master | 2022-07-15T04:30:57.884727 | 2022-05-11T14:02:02 | 2022-05-11T14:02:02 | 2,813,536 | 0 | 0 | MIT | 2023-09-04T19:39:30 | 2011-11-20T12:17:08 | JavaScript | UTF-8 | Python | false | false | 792 | py | from django.core.exceptions import PermissionDenied
from django.contrib import admin
import models
class FeatureAdmin(admin.ModelAdmin):
def sequence(obj):
if len(obj.sequence) < 32:
return obj.sequence+' ('+str(len(obj.sequence))+')'
return obj.sequence[0:32]+'... ('+str(len(obj.sequen... | [
"benjie@addgene.org"
] | benjie@addgene.org |
6d156ecc3c668ad03dda32271cc019024cc1a395 | 110bff45691ab83612b5573a49b445abe6db87e9 | /prac4/practical4-code/qlearner_harmonic/harmonic.py | 3c0d47696ca94d8db5bf6ecd59601c01337f1fb3 | [
"MIT"
] | permissive | wyd1582/machine-learning | 319a6ce40cb63ff6c8ea828617fc84ff1573a2f8 | 96e49b6f75c7ed72729b2d3edf4f70fb122da801 | refs/heads/master | 2020-03-14T23:33:01.999647 | 2017-12-14T08:14:19 | 2017-12-14T08:14:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | import sys
'''
The below is only needed for Bayesian Optimization on Luis' Machine.
Ignore and comment out if it causes problems.
'''
path = "/home/luis/Documents/Harvard_School_Work/Spring_2015/cs181/assignments/practicals/prac4/practical4-code/"
if path not in sys.path:
sys.path.append(path)
'''
End Bayesian
'''... | [
"kandluis@yahoo.com"
] | kandluis@yahoo.com |
f47f0e566dc3c61d9cdc0fb73ae153e1f08d47fc | 6c00499dfe1501294ac56b0d1607fb942aafc2ee | /eventregistry/tests/TestERQueryArticle.py | bdd55097b88d584354831bd931f97c34064372e3 | [
"MIT"
] | permissive | EventRegistry/event-registry-python | dd692729cb5c505e421d4b771804e712e5b6442b | bf3ce144fa61cc195840591bae5ca88b31ca9139 | refs/heads/master | 2023-07-06T11:04:41.033864 | 2023-06-23T08:40:31 | 2023-06-23T08:40:31 | 40,995,963 | 176 | 48 | MIT | 2020-10-21T09:17:06 | 2015-08-18T20:29:23 | Python | UTF-8 | Python | false | false | 2,330 | py | import unittest
from eventregistry import *
from eventregistry.tests.DataValidator import DataValidator
class TestQueryArticle(DataValidator):
def createQuery(self):
q = QueryArticles(conceptUri = self.er.getConceptUri("Obama"))
q.setRequestedResult(RequestArticlesUriWgtList(count = 100))
... | [
"gleban@gmail.com"
] | gleban@gmail.com |
19eab21c6cb259a836d7d79c175b1f6a5271ff43 | 8602a2b566a9ced0e267924f6718b3fe0e22b105 | /gradmatchapp/migrations/0001_initial.py | a09f9dbfde0132da72285153c424ab902c1169ee | [] | no_license | citz73/Graduate-Matcher | a110505db9d18081a04d062204e617594e1ae614 | 8ace76f8a68e48ec4e1b8a5f47de5568fe6c43b5 | refs/heads/master | 2023-07-30T10:36:05.767049 | 2020-09-10T17:12:23 | 2020-09-10T17:12:23 | 256,394,496 | 0 | 0 | null | 2021-09-22T18:53:53 | 2020-04-17T03:45:36 | Python | UTF-8 | Python | false | false | 552 | py | # Generated by Django 2.2.7 on 2019-11-14 00:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Deadline',
fields=[
('id', models.AutoField... | [
"ismi7509@colorado.edu"
] | ismi7509@colorado.edu |
af968fcc1640c1fa6dc9d529ae93d8da0fc1e7e3 | 4bf34e6126738715cfdf9636b1b3eba7696ffba7 | /exercicio06.1.py | 69f32c9875603110acc03f6432202658f56eedae | [] | no_license | jonatasvcvieira/cursopython | 97d5e1edd7d86deeea76dd23c47c3da55a1af9df | 21392cd337f5681b426d2e17c9db10a1cbc19b76 | refs/heads/main | 2023-06-26T03:02:57.517172 | 2021-06-03T00:08:34 | 2021-06-03T00:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | n = int(input('Digite um número: '))
print('O dobro de {} vale {}. \nO triplo de {} vale {}. \nA raiz quadrada de {} é igual a {:.4f}.'.format(n, (n*2), n, (n*3), n, pow(n, (1/2))))
| [
"jonatasvieir@gmail.com"
] | jonatasvieir@gmail.com |
9a55d045f09877d52d6737a962c24205bb4f5c41 | 19cf45ff5583a7602d28eae0f982f59be0f589fb | /feed/migrations/0002_auto_20201101_1107.py | d0227cdd99a907ff14016315b517de67cfe4e34b | [] | no_license | Sakshi2106/Social-Media-Portal | fc3b08bdc50b3d0f2be3cbd62a7548da84671dd9 | e723034a737c8f534a3a9f4748f1d5f6e9445e01 | refs/heads/master | 2023-01-12T03:42:39.732182 | 2020-11-01T16:38:59 | 2020-11-01T16:38:59 | 307,948,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | # Generated by Django 3.1.2 on 2020-11-01 11:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('feed', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='post',
old_name='description',
new_... | [
"riddhighate.07@gmail.com"
] | riddhighate.07@gmail.com |
3c1e3a8b843b126307b8f88b9fbc6404661d686d | e641bd95bff4a447e25235c265a58df8e7e57c84 | /build/lacros/test_runner.py | 40919e21025951ca2975f2309bd63dd9ada087a0 | [
"BSD-3-Clause"
] | permissive | zaourzag/chromium | e50cb6553b4f30e42f452e666885d511f53604da | 2370de33e232b282bd45faa084e5a8660cb396ed | refs/heads/master | 2023-01-02T08:48:14.707555 | 2020-11-13T13:47:30 | 2020-11-13T13:47:30 | 312,600,463 | 0 | 0 | BSD-3-Clause | 2022-12-23T17:01:30 | 2020-11-13T14:39:10 | null | UTF-8 | Python | false | false | 16,453 | py | #!/usr/bin/env vpython
#
# Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""This script facilitates running tests for lacros on Linux.
In order to run lacros tests on Linux, please first follow bit.ly/3j... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d65d181a6a71c6a82ef9f349be30ad69024dbe6a | 3085a3f0744c9dff5f0e8bf6ce6d0bf9e117b19a | /deepctr/estimator/models/xdeepfm.py | b14a143c3bf3cb009ae0230e666eac5b165fc081 | [
"Apache-2.0"
] | permissive | zanshuxun/DeepCTR | bfc572f8a8d0b87fa8477cf892ce0441992343de | 6cd0585907f333f24676a8670f44eb1567f31280 | refs/heads/master | 2023-04-22T07:56:42.973594 | 2021-05-10T06:40:09 | 2021-05-10T06:40:09 | 297,077,525 | 0 | 1 | Apache-2.0 | 2021-01-09T09:04:26 | 2020-09-20T13:03:27 | Python | UTF-8 | Python | false | false | 5,017 | py | # -*- coding:utf-8 -*-
"""
Author:
Weichen Shen, weichenswc@163.com
Reference:
[1] Lian J, Zhou X, Zhang F, et al. xDeepFM: Combining Explicit and Implicit Feature Interactions for Recommender Systems[J]. arXiv preprint arXiv:1803.05170, 2018.(https://arxiv.org/pdf/1803.05170.pdf)
"""
import tensorflow as tf
... | [
"noreply@github.com"
] | noreply@github.com |
fc6de3dea71841cf892c3fd9c73ff9fd5c9ee8f9 | 3171f37813c2f80c759bec6340eb53ead2ffcdb2 | /model/defense_committee.py | 3c272ca38e8230e7765df2d33c60e254b7c5361d | [] | no_license | jazdzyk/prace_dyplomowe | aeb727f396f487a17d26edea95d9102b6b29d5c1 | c296d6af2486336b4d9785e77a30d9df69ab60e7 | refs/heads/master | 2020-05-31T11:32:04.220868 | 2019-06-10T21:08:13 | 2019-06-10T21:08:13 | 190,261,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from sqlalchemy import Column, SMALLINT
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class DefenseCommittee(Base):
__tablename__ = "KomisjaDyplomowa"
id_komisja = Column(SMALLINT, primary_key=True)
id_przewodniczacy = Column(SMALLINT, nullable=False)
def __repr_... | [
"kikiri123@gmail.com"
] | kikiri123@gmail.com |
4bb95b0f563430f9bb7dbc60047c70a70d0ea0ae | fba809b1a737f90d96e10f0fe8a2505d48c779af | /conditional judgment.py | 38a41cc7079e58ada66622a69251098072b635f1 | [] | no_license | mcttn1/python | fd7b457dc86c36140afec37af53b770095098b0f | 1f783e8bede7f67e679de95f00e666e76a7ab2a2 | refs/heads/master | 2020-04-01T03:57:48.307703 | 2018-11-17T09:32:02 | 2018-11-17T09:32:02 | 152,843,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 13 14:49:54 2018
@author: huashuo
"""
#条件判断
#计算机可以自己做条件判断
#比如,输入用户年龄,根据年龄打印不同的内容
age=3
if age>=18:
print('your age is',age)
print('you are an adult')
#也可以给if添加一个else语句
elif age>=6:#可以用elif做更细致的判断
print('your age is',age)
print('you are a ... | [
"noreply@github.com"
] | noreply@github.com |
86e188f2e4988ed3ff9dbc179788f4eaa24c9c97 | f1b86f057b7982163055e36cc97ff1532d3afb46 | /encode_decode/auto_encode.py | e6c13f11080263f3e9ff30b6dd02fad224ede17e | [] | no_license | bigboyooo/ner-bilstm-dnn | 0a29b2268ce48960ee222863673d7fd5785ff54b | 7afd569dd59706e16007eeb50f2bc2049bc33c80 | refs/heads/master | 2020-06-01T22:29:28.019022 | 2018-06-21T07:23:56 | 2018-06-21T07:23:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,158 | py | #coding="utf8"
import os,sys,re,traceback,json
import pandas as pd
import numpy as np
import tensorflow as tf
#import sklearn.preprocessing as prep
#from tensorflow.examples.tutorials.mnist import input_data
import sys
def _path(filepath):
return os.path.join(CURPATH, filepath)
def xavier_init(fan_in, fan_out, ... | [
"qhn614@126.com"
] | qhn614@126.com |
c695502ac97e9631bf4c7084c7204cb2cd5a1c72 | 3f1c7a91e5a74776f282124353490d32110acf00 | /help.py | c4b8cbf93452dd74d9ac8e630b2eceb1811910f7 | [] | no_license | GirijaRavulapalli/project | c9325a97122d9496ca61334f067f2eb49aa6b5fb | cafe724304f611ca6455604aa7964cfa4faaa7f6 | refs/heads/master | 2023-03-03T15:38:51.976431 | 2021-02-16T06:11:12 | 2021-02-16T06:11:12 | 339,044,424 | 0 | 1 | null | 2021-02-16T06:11:12 | 2021-02-15T10:42:33 | null | UTF-8 | Python | false | false | 18 | py | print("Help me!")
| [
"lakshmimanogna20@gmail.com"
] | lakshmimanogna20@gmail.com |
6e26704c623318e140897de388e63cc0400a122e | 6a8c945b0c4d9a31c92f249ca060d97553a1a559 | /Web Crawling/quotescrape/quotescrape/items.py | 764247567be62f4ccf935390e316eb9b6d28afb7 | [] | no_license | arihantbansal/cybersec-python | 1e134582adca6a6d542c1f804389d49feef88c52 | 5ea0f54b1bce73198d5bac7ba17dd76079821c6a | refs/heads/main | 2023-07-08T05:29:46.392713 | 2021-08-13T15:57:58 | 2021-08-13T15:57:58 | 388,684,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class QuotescrapeItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"17180950+arihantbansal@users.noreply.github.com"
] | 17180950+arihantbansal@users.noreply.github.com |
a182ce756249ca3cacb5023e1cfa2f9c7184bdc4 | d47436cad4e2b08ee0e58a157a0860f496037df7 | /sApp/migrations/0001_initial.py | 8aae841cbabb0695048dac5b91cf44de9cebbf73 | [] | no_license | rushabhgediya38/Django-BeautifulSoup | ff8a9d5514bf0e3b7ecc2e26dadde605c39c9b71 | 11029364c161d6a63f74b17a5aa04b45a43b3140 | refs/heads/master | 2023-05-06T10:03:56.474083 | 2021-05-25T13:49:13 | 2021-05-25T13:49:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # Generated by Django 3.2.3 on 2021-05-24 11:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='sData',
fields=[
('id', models.BigAutoField... | [
"rushabhgediya38@gmail.com"
] | rushabhgediya38@gmail.com |
a0982af51137f2b6ef7ea51a17604a7c69fcf5a3 | 99af22561328bed40749134cd39dbe6e7809ef5f | /McNair 2020 - Guessing Games/Python/Counting/Question.py | fbc034b85a86b6d7329f12b71f76278aebdf3581 | [] | no_license | nickLayman/Older-Research-Projects | 84634aa2fc5329350f81272f297e96b368af9f58 | 5d53acffc86e2b7f8c60b5cf6450734ae304619d | refs/heads/main | 2023-08-23T16:56:00.454597 | 2021-09-16T00:53:15 | 2021-09-16T00:53:15 | 406,968,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | class Question:
question = []
weight = 0
previous_state = None
possible_states = []
def __init__(self, pquestion, pweight=0, pprevious_state=None,
ppossible_states=None):
self.question = pquestion
self.weight = pweight
if ppossible_states is None:
... | [
"56442177+nickLayman@users.noreply.github.com"
] | 56442177+nickLayman@users.noreply.github.com |
e8f044f3cbbe65545ab465299c0b9cd903d763a9 | c147bc9317b23eda4458bf9b8dd0d204b4c2d1e3 | /scenes/Scene.py | 5f1a4a55795af3dbeb8ba4df49d0679b537be668 | [] | no_license | luizgabriel/TurtlePong | 5f63ac55b53904c8dccebe1f8e0ec15eee01de6a | ef4a9e0686cb0bdae04e05973a81fa5c6b504b11 | refs/heads/master | 2021-01-19T21:36:15.118321 | 2020-04-02T15:53:48 | 2020-04-02T15:53:48 | 88,674,149 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | class Scene:
def __init__(self, game):
self.entities = []
self.game = game
def add_entity(self, entity):
self.entities.append(entity)
entity.start()
def update(self, delta):
for s in self.entities:
s.update(delta) | [
"luizgabriel.info@gmail.com"
] | luizgabriel.info@gmail.com |
9d86cbcebafbccb09f40a1cd466f063c8c3b224b | 542aa52517af1a6d3cba017aadb975a6f923732d | /mysite/urls.py | 16ba28ae5262422a5ae31f42dc54fb367f32f6bf | [
"Apache-2.0"
] | permissive | cjackie/django-app-example | f522831b5c81f1f9a8df9c8a1920bc8e9087bbc1 | 04e63e4edea52328df6d6389d3de1aa198cf134c | refs/heads/master | 2021-01-11T15:19:43.686077 | 2017-02-03T00:34:07 | 2017-02-03T00:34:07 | 80,332,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"chaojie.keepgoing@gmail.com"
] | chaojie.keepgoing@gmail.com |
0e6eb8dd980dea3dca19b288358cbfacba99fa4e | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_manage_models_async.py | e4a2f1a079c6b24be6a7fd47b513e0d7ea6e2b56 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"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 | 3,366 | 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.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
a613faacb6fd7631a276b6e5ec67b1a3bd8d009c | 2d4df96db62a7f06da43ec405c1c3a56d64f61e8 | /tools/json_parse.py | 5a3416038ea1e8a9a39e7db58d47ff3314d16b0b | [
"CC-BY-3.0",
"Apache-2.0"
] | permissive | cantu/E-home | 94195b467d052fdc7afc1dc490ba6bca8f938190 | acf0ce99eee016a3b0a7031400fa034082ad829f | refs/heads/master | 2016-09-02T01:51:54.802271 | 2014-03-27T08:47:28 | 2014-03-27T08:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | #!/usr/bin/python
#encoding=utf-8
import json
# string =" monitor { counter: 527, CostTime: 136, FromNode: 2, TempC1:22.00, TempC2:23.50, TempC3:22.50, humd: 0.00, PIR: 0, SwitchState: 00000000, AlarState: 00000000 }"
json_string = '{"name": "monitor", "Counter": 10, "CostTime": 768, "FromNode": 3, "TempC":[26.31, ... | [
"tusion@163.com"
] | tusion@163.com |
b77f635458f93b7f91a59256670bd14b2f20b2f3 | f14320e50599a6b27ccbd523aca7f1cc01200df3 | /evaluation/metrics/beta_vae_test.py | 1181efcfec4b0609f7085803b8dc5ecb8da95b3c | [] | no_license | ThomasMrY/dis_lib | 4ba23bbe1d865e17da5ff19e4f4e13151568a99d | bcb855eaf5b405e1c3bde2c131e275649fdca719 | refs/heads/master | 2022-11-24T00:06:46.563663 | 2020-07-29T07:04:07 | 2020-07-29T07:04:07 | 283,423,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # coding=utf-8
# Copyright 2018 The DisentanglementLib 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
#
# Un... | [
"1421230320@qq.com"
] | 1421230320@qq.com |
7e6400ce69e31cc68b4a7a3556136345708c7b75 | 78aedb54b390037c6d7d66ecd0e35228ad807f55 | /migrations/versions/b2074741094d_.py | 1ca8fdb4e5684ccb4012eee8d5173f180b5cc0dd | [] | no_license | dnbit/Fyyur | 38552028d87f77d5496aa332aa47d94dab4caa4d | de08cb3e06ef99fb9321aadb2514aae7f47bc2be | refs/heads/master | 2022-04-24T07:57:47.474211 | 2020-04-26T11:48:01 | 2020-04-26T11:48:01 | 258,891,604 | 0 | 0 | null | 2020-04-26T11:48:02 | 2020-04-25T23:00:27 | Python | UTF-8 | Python | false | false | 953 | py | """empty message
Revision ID: b2074741094d
Revises:
Create Date: 2020-04-25 23:52:06.560113
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b2074741094d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"dnbit@users.noreply.github.com"
] | dnbit@users.noreply.github.com |
f40ac69e3b0e1c38a9a15151eece18ae6424870f | 09e663296ff94b83ee4675f6825f546bcd8c7cab | /moving_images.py | 9c3138576f92a9d838de0ba9f8f9f5f79fdab3ef | [] | no_license | tunder-tunder/fundamentals-of-python | b27e76fcd2ff4f559bac526981c03d9c713e81ab | 4478d29a848bf4851f274e97160cae3d389be622 | refs/heads/main | 2022-12-23T06:22:40.824603 | 2020-10-08T10:28:12 | 2020-10-08T10:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import numpy as np
def read_file(name):
array=[]
text_file = open(name) #file
#print("Opening file: ", text_file)
lines = text_file.readlines()
text_file.close()
for i in range(2, len(lines)):
first = lines[i].split()
array.append(first) #if extend its out of range :(
... | [
"noreply@github.com"
] | noreply@github.com |
5831c690c85ce06e03d651da004af3ed212cff11 | 0872ec5406727c49ba487c8580b370995dc73c1a | /external2.py | 083e356f5131bc67821962d99d36163be3615ee5 | [
"MIT"
] | permissive | charlotteviner/practical2 | 3e4d5fd756bc7ce711b19da460de64c87cd786e3 | 30471cbd935e65f82361b43a63568c7b74c85364 | refs/heads/master | 2020-03-13T14:19:33.810700 | 2018-04-26T13:01:55 | 2018-04-26T13:01:55 | 131,156,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | import arcpy
arcpy.env.workspace = "M:/Programming/Practical1/Albertsurface"
try:
try:
arcpy.ImportToolbox("M:/Programming/practical1/albertsurface/Models.tbx", "models")
except arcpy.ExecuteError as e:
print("Import toolbox error", e)
if arcpy.Exists("int.shp"):
arcpy.Delete_manageme... | [
"charlotteviner@btinternet.com"
] | charlotteviner@btinternet.com |
4f6fd3a0838f0002c4bb39c111f87951de93ad33 | 4488f57803533f613bb9f54c3965949e6da1128f | /src/gradient_boost.py | 10536efca49d8b371dc2359eca2b446ce24014f1 | [] | no_license | daocunyang/Kickstarter-Kaggle | efb193f753370ed318aa9057de8fbec676a2721b | 3748fb4ddffe006d49bc8a8fe27ecb3abd156921 | refs/heads/main | 2023-01-24T07:26:04.004717 | 2020-11-22T04:22:07 | 2020-11-22T04:22:07 | 314,719,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | import enum
import time
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.experimental import enable_hist_gradient_boosting
from sklearn.ensemble import HistGradientBoostingClassifier
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score, precision_... | [
"noreply@github.com"
] | noreply@github.com |
d74c9b47b1c029d18b192f7e876f17399cd54de3 | 163612eea7b0c68e035ed42024616f73a7478fea | /apps/courses/models.py | 84682c0dca04ee90978fac989a375f1f298d7b18 | [] | no_license | davydworzak/python_courses_project | a69b8fff2b8959ed90f087e80aa8151addd1185d | b44e72b8b6d40390c0c2fc4433ccda80cdd92af6 | refs/heads/master | 2021-01-11T08:37:23.379708 | 2016-09-21T17:18:21 | 2016-09-21T17:18:21 | 68,840,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class Course(models.Model):
name = models.CharField(max_length=100)
description = models.TextField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now_add=True) | [
"davydworzak@msn.com"
] | davydworzak@msn.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.