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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03e79652d0133719abfc84b5c90cf805874bda49 | e8035180df87df7fc4644c9464d7c6167cef8cb6 | /plotting/coverage_scores_distribution.py | 76634852165e19be8165915b458a988a4c2a92be | [] | no_license | elhossary/bioinformatics_analysis_toolbox | ad5cb575cb55fe367541e03cb374eca6eb772a1b | f45b80b94dcbffced6874f43a223dedecd131491 | refs/heads/master | 2022-05-11T00:40:01.615531 | 2022-03-28T12:21:58 | 2022-03-28T12:21:58 | 235,318,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | from wiggle_parser.wiggle_parser import WiggleParser as wp
import matplotlib.pyplot as plt
import pandas as pd
import collections
import numpy as np
def main():
f_wigs_parsed = wp("test_data/cholerae/TERM-SEQ_LAST-BASE_12898-BCM-rep2_S38_R1_001_div_by_12099864.0_multi_by_10181443.0_forward.wig").parse()
r_wigs_parse... | [
"muhammad_elhossary@hotmail.com"
] | muhammad_elhossary@hotmail.com |
5259ec6a7bb88e550da99198f863c2cb61a1921f | 2927e0d5db7663edbca707e7a0ebbc3a10121387 | /test/test_write_annotations.py | e210d6ef9103f6138cac5ca7d138307c6b85ce6b | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JalexCode/picta-dl | 9f8b6e594dda63ace55fac028930adc8ccd52e68 | b3136628a05add1786566b5dc7e6369065192aa5 | refs/heads/master | 2023-04-30T01:49:11.885419 | 2021-05-22T03:59:54 | 2021-05-22T03:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | #!/usr/bin/env python
# coding: utf-8
from __future__ import unicode_literals
# Allow direct execution
import os
import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from test.helper import get_params, try_rm
import io
import xml.etree.ElementTree
import picta... | [
"“oleksis.fraga@gmail.com”"
] | “oleksis.fraga@gmail.com” |
999445b1715a8908af9649afec860e090935b0b6 | 04f1042a613af550cda52d473f4a1edde5856f6c | /src/controller/handler/Handler.py | e4cb6ff21d0d03b6a89c6d6cd2cb815e2943ed6b | [
"MIT"
] | permissive | liuzhaomax/pyGUI-BakeShop | 2629ec87c6d7ab02c0d3b27d52948a1af748a963 | 8f70991b2a241f7ba199e3e08d46c90c59e40df9 | refs/heads/main | 2023-01-04T02:40:24.510541 | 2020-11-06T08:46:17 | 2020-11-06T08:46:17 | 310,540,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | #!/usr/bin/python3
# coding=utf-8
'''''''''''''''''''''''''''''''''''''''''''''''''''
@FileName Handler.py
@Author Zhao Liu
@StudId 30822750
@StartDate 07-09-2020
@LastModified 09-09-2020
@Function Handler base class
'''''''''''''''''''''''''''''''''''''''''''''''''''
from src.core.... | [
"zliu0138@student.monash.edu"
] | zliu0138@student.monash.edu |
b4f8fae687ffc6edc12f388af9fc9e0d9dd49822 | f28adfe93e04efb3d915965bc5339b25324f5d8c | /19_df2dict.py | 31929424b98dc2cf9ce62980489b56e36b778983 | [] | no_license | aihill/start_Pandas | 57059f8fec9b0fc74d39eaae2744dda0a82e8b08 | ac1ee9a67f6fb05841258dbfcfe2c980059301c1 | refs/heads/master | 2022-04-20T17:03:19.167668 | 2017-08-28T03:09:06 | 2017-08-28T03:09:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | #load pandas as pd
import pandas as pd
#raw_data
raw_data = {'name':['song','park','kim','na','won','jun','song'],
'residence':['seoul','seoul','busan','busan','incheon','incheon','seoul'],
'univ':['seoul','chungang','korea','hanyang','seoul','kaist','seoul'],
'score':[90,99,96,78,7... | [
"win778500@gmail.com"
] | win778500@gmail.com |
ee6e5c0ec249a18a7dd998a57ddf1e14f10b54a2 | bbf2f01b73933b3007672990754ba54bde7ac2fb | /dice_loss.py | 3502f4585d1c3dc6142bd4d81d4a93ce5fdfbe08 | [] | no_license | Onojimi/src | 1990a04cc476df8d0bbf0187f76bd41a571dfa93 | 40acc51811f99329fe6541ccb008771b08d7f068 | refs/heads/master | 2020-06-30T19:34:34.460321 | 2019-08-13T13:16:33 | 2019-08-13T13:16:33 | 200,929,064 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import torch
from torch.autograd import Function, Variable
class DiceCoeff(Function):
def forward(self, input, target):
self.save_for_backward(input,target)
eps = 0.001
self.inter = torch.dot(input.view(-1), target.view(-1))
self.union = torch.sum(input) + torch.sum(target) + ... | [
"18811505578@163.com"
] | 18811505578@163.com |
802caa784aff470ce4839a56761cdd49d43d388a | 06b2eed882d8d7034fb7c57b648d5aa37d7f617b | /pycharmproject/爬虫/菜鸡/gifduoxiancheng.py | 4c717acdfc70ad2136f7dce63eb021d9e85d0c52 | [] | no_license | 1974410167/python_projects | 558e2e7a4ea66b083ebd6d2f808b725e1bd153d6 | 81a97cbf41de12bdc3dbc46edf2931075ac4f758 | refs/heads/main | 2023-06-22T09:41:22.038620 | 2023-06-09T15:09:44 | 2023-06-09T15:09:44 | 355,036,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | import requests
import queue
import time
from bs4 import BeautifulSoup
import threading
def g_url(q1):
number=0
for i in range(46300,46391):
if number==10:
break
for j in range(0,10):
if number==10:
break
url = "https://www.youquba.net/xieedong... | [
"1974410167@qq.com"
] | 1974410167@qq.com |
f3fbd2e411ceb2a5359ad514111e225891eb4183 | ae6314707ce8957d042b5ba9ee13a5867f01fde8 | /app/models.py | 3e555b543fe842e868d819eb608be24c29d5daa2 | [] | no_license | jfobranco/backends-python-flask | 047ad49d2516f1b09381efbeb76c6ec644d70dc2 | fca7c6f9462703d86e7c79ca3e47be90a8dded70 | refs/heads/master | 2020-06-02T20:29:32.410244 | 2019-06-12T20:49:53 | 2019-06-12T20:49:53 | 191,300,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | from datetime import datetime
from . import db
from . import ma
from marshmallow import fields
user_company = db.Table('user_company', db.Model.metadata,
db.Column('user_id', db.Integer, db.ForeignKey('user.id')),
db.Column('company_id', db.Integer, db.ForeignKey('company.id'))
)
class User(db.Model):
id ... | [
"jbranco@infoform.ch"
] | jbranco@infoform.ch |
c0c77c33b2895888587f9d2b4985ab9ab2f2996c | 4d49ccbad6c1756b42b00fa836c586617f4239b3 | /cards/migrations/0013_auto_20190913_1612.py | 9c45e1a2150785a1b9af024073ac81bfc229333c | [] | no_license | soccervh/MTG_card_database | 60283f91e407b00b9e36f3eaecc296df198bedfb | 2e7ad632a7389d0c7be9ebe4c67f40ee18ac39eb | refs/heads/master | 2023-01-10T11:48:35.393801 | 2019-09-23T20:44:39 | 2019-09-23T20:44:39 | 201,802,518 | 0 | 1 | null | 2023-01-07T08:38:00 | 2019-08-11T18:47:02 | CSS | UTF-8 | Python | false | false | 352 | py | # Generated by Django 2.2 on 2019-09-13 16:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cards', '0012_auto_20190913_1602'),
]
operations = [
migrations.AlterUniqueTogether(
name='cardsindeck',
unique_together={('ca... | [
"soccervh4334@gmail.com"
] | soccervh4334@gmail.com |
3de303636eb4a814554222054cd999e407b70762 | 7637cc91b47c36a223baa764df67646843f0002c | /Loss.py | 65ca2732b5d911146be7730cfe3feaf13b71be51 | [] | no_license | architect-01/MDNN | 907c198bbcb457930f8c9a7f9df79dff42540804 | 911392d90fb9fd09fc85e5af13111a95e3d4aebc | refs/heads/main | 2023-04-18T02:29:18.071292 | 2021-04-26T19:28:52 | 2021-04-26T19:28:52 | 361,482,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import numpy as np
class Loss:
""" Define loss function """
def __init__(self, func_name = 'categorical_cross_entropy'):
"""Sets the loss function
Parameters
----------
func_name : str
Name of the loss function.
Returns
... | [
"noreply@github.com"
] | architect-01.noreply@github.com |
92666a23fee8485ed1c98e9cf31068884774d39d | 649659da81e211e370cf075b8c3687faffe08e7d | /Small-stydy-things_and-tasks-from-amis/12/first.py | 822c6a22276dc26d02b027b94d6e12e6d3010dda | [] | no_license | ViktorKarpilov/Study_reposytory_with_structure | b633e43efeea34496a2a35731618ffdff14d2308 | ee2a8d7de429f25787ef4419dd85f15fee586725 | refs/heads/master | 2020-04-13T04:48:32.208814 | 2018-12-24T10:01:27 | 2018-12-24T10:01:27 | 162,971,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | numbers = input("Enter numbers , divined by space :")
numbers = set(numbers.split(" "))
print(numbers)
| [
"wktorion@gmail.com"
] | wktorion@gmail.com |
db0b25b349afa4babd8f965faf90d2cf6687fe9a | 9b4e4f3d22113aa9eb935833989f4659058fb988 | /concepts/sorting/__main__.py | dfdb347af75b6a74ee75fe01ce467a3df759d756 | [
"MIT"
] | permissive | bpatel28/practice_python | 9b665d62db4fd816c97ddec16ab069fa12413390 | 358c3ce1ca59d80711df07e6509af14e9c784f60 | refs/heads/main | 2023-06-27T06:19:20.610724 | 2021-07-28T02:49:20 | 2021-07-28T02:49:20 | 332,971,364 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from concepts.sorting import quick_sort, merge_sort
array = [1, 24, 2, 5, 9, 2]
merge_sort(array)
print(array)
| [
"b.patel9528@gmail.com"
] | b.patel9528@gmail.com |
a2e28acd3151a925d1407eb7e6d3c1e8a179109e | 22805f9ae50e713a2aaad878743897ca1fcab613 | /Python/gui.py | 022c422b7566bb81337d869d11dfa94d6b3d93b4 | [
"Apache-2.0"
] | permissive | jyang-2/SimpleITK-Notebooks | 089826b1347caa433a34244801aa0755f1a39c66 | d417d468e61ad016f87f4e5fc85f8e9b231e7d79 | refs/heads/master | 2020-05-18T14:36:31.107970 | 2017-02-22T17:05:29 | 2017-02-22T17:05:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,376 | py | import SimpleITK as sitk
import matplotlib.pyplot as plt
import ipywidgets as widgets
from IPython.display import display
import numpy as np
class RegistrationPointDataAquisition(object):
"""
This class provides a GUI for localizing corresponding points in two images, and for evaluating registration results us... | [
"zivyaniv@nih.gov"
] | zivyaniv@nih.gov |
dbc061eb64d8847262be4b819e40e194ad4059a9 | 235fb35dca0e7cc48bb53a0d767be4751ca89d41 | /lifelog/main/encoder.py | addad241fcf0d1aa73422af56b90f7a2827c1baf | [
"MIT"
] | permissive | nenlaith/lifelog-server-python | b840f8af43fabc37dda54d01f1eab3c9dba4b407 | 260c983b1ae863f1b5452e3c1bde94fcfa734a3a | refs/heads/main | 2023-03-15T17:46:29.374569 | 2021-03-06T17:13:37 | 2021-03-06T17:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | from connexion.apps.flask_app import FlaskJSONEncoder
import six
from lifelog.models.base_model_ import Model
class JSONEncoder(FlaskJSONEncoder):
include_nulls = False
def default(self, o):
if isinstance(o, Model):
dikt = {}
for attr, _ in six.iteritems(o.swagger_types):
... | [
"muenier.elliott@gmail.com"
] | muenier.elliott@gmail.com |
0246fbd43f68adc2042ece6cdddf0db3d0044a76 | 1183659260ff235c5b3b59eb31d04188dc71a341 | /plot_diff_lib2.py | a4fd1bee41a83fbbfa19806c37f3190f82da1f0c | [] | no_license | arpit15/skill-based-exploration-drl | 7490e32fd618f5d7785ff804489aadd58f8931bb | fc99ada25cfe95662e060aa2fa7b772e0f659859 | refs/heads/master | 2020-04-06T10:31:00.823679 | 2019-02-06T23:52:34 | 2019-02-06T23:52:34 | 157,382,887 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | from scipy import signal
import matplotlib.pyplot as plt
import pandas as pd
from os.path import join
from sys import argv
from collections import OrderedDict
b, a = signal.butter(1, 0.15)
agent_name_list = ['HER', 'HER+Skill Set 1','HER+Skill Set 2']
linestyles = OrderedDict(
[('solid', (0, ())),
... | [
"arpit15945@gmail.com"
] | arpit15945@gmail.com |
aaaeec30817d590c66b8cf7fc6c0790daaed9a47 | 9de9ff94ad37ea2e2a4e7d96c12acd3101a471e1 | /sec4-basics/task2.py | 00cd21d4c46af38f6888e21b1c7620e5c6d20741 | [] | no_license | paularodriguez/python-core-and-advance-course | 0c2d0ef14566a9b30e8f92455bdb9029d7e14342 | 7e6cf274bae80f772151b60c2f4e67e9872c442a | refs/heads/master | 2020-08-29T17:25:46.338347 | 2019-11-20T21:10:39 | 2019-11-20T21:10:39 | 218,110,675 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # List
countriesList = ["Spain", "France", "Germany"]
countriesList.append("Italy")
countriesList.remove("France")
countriesList.insert(1, "Japan")
countriesSet = {"Spain", "France", "Germany"}
#Inserted randomly
countriesSet.update(["Italy"])
countriesSet.remove("France")
#Insert in the middle not allowed
print(count... | [
"paula.rp93@gmail.com"
] | paula.rp93@gmail.com |
86e5299bb882dd857e125190c2670611a5894f34 | 059e94fed87077b2421092e7000e4fbea34882fd | /SGP/SGP/src/SGP/sgp/controllers/relacion.py | ff6b9f460b1743fd8584e03cb01ec93436b11cd6 | [] | no_license | javierpf/SGP | 6704e9e801b265d4523b4047883c6741c625c6b1 | f4861b2e577ef32af34f0092a9e26b6cf4b72a5d | refs/heads/master | 2021-01-01T16:51:31.439943 | 2011-06-05T22:10:37 | 2011-06-05T22:10:37 | 1,697,082 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | from sgp.lib.base import BaseController
from sgp.model import DBSession
from sgp.model.auth import Relacion
from sgp.managers.RelacionMan import RelacionManager
from tg import expose, flash, redirect
from tg.decorators import without_trailing_slash, with_trailing_slash
from tgext.crud import CrudRestController
from sp... | [
"gaby.lorely@gmail.com"
] | gaby.lorely@gmail.com |
18aa687c574f783b9599973250b13b2fb13b6736 | 913bc68fc290064ff67fd2a21227ef9df781447b | /tests/tests.py | 4225d0a792274c4fb75a09bc1300c02b777d6b06 | [] | no_license | DenprogIS/Chess | 9c96c3d091ac34edb247c7ab5d723be50a6e9b47 | a1784fb7a8b1a7ea41bcd3a0c35b0e93676c8303 | refs/heads/master | 2020-03-08T08:46:58.251412 | 2017-12-15T05:57:25 | 2017-12-15T05:57:25 | 128,030,432 | 0 | 0 | null | 2018-04-04T08:17:12 | 2018-04-04T08:17:11 | null | UTF-8 | Python | false | false | 1,918 | py | import unittest
from model.cell import Cell
from model.game import Game
from model.vector import Vector
class GameTest(unittest.TestCase):
def test_main(self):
self.__number = 0
game = Game()
self.base_test(game, 4, 1, 4, 4, False)
self.base_test(game, 4, 4, 4, 6, False)
... | [
"daniyarrus@gmail.com"
] | daniyarrus@gmail.com |
fa38f2e52fdbb96bf6b71dc3fb9a60e3c3b754eb | bc6cb491e6e754099a91cc17f9f6aa1bb47d1c08 | /trabalho1_mn2/imagem.py | a0460f52b03b178453d9a26ec2d5f1afc1dba059 | [] | no_license | leosilva99/trabalhos_MN2 | 2438756aec9e018b7b4bac59e7f4ba13d203146a | 9a67cb6b536424b229910e2bad6f64bb4d2b190d | refs/heads/main | 2023-01-11T01:08:22.685495 | 2020-11-11T17:00:08 | 2020-11-11T17:00:08 | 312,033,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | from PIL import Image
class Imagem:
def __init__(self, img):
self.img = Image.open(img).convert('F')
self.img_orig = self.img.copy()
self.img_final = Image.new('F',(self.img.size))
self.larg_final, self.alt_final = self.img_final.size
self.img_pix = self.img_final.load(... | [
"leonardosilva337@gmail.com"
] | leonardosilva337@gmail.com |
beddfd8cd214a7b078fb1134232bc8c211a8892c | 1c43f97456f3cab00067932dfbd971c22e91267e | /rqt_yn_btn/setup.py | ebca86f4e2fab0109e87d3f3f2bb239780f922e3 | [] | no_license | m1a1k0o/2014-semi | 661cc2692d70eadaed6a4d11ef85a9ac20914cb7 | d57f088bf6b1eeed7e5d14b42034a70517281293 | refs/heads/master | 2021-01-15T21:15:26.915602 | 2015-03-25T09:17:36 | 2015-03-25T09:17:36 | 32,906,069 | 0 | 0 | null | 2015-03-26T03:44:15 | 2015-03-26T03:44:15 | null | UTF-8 | Python | false | false | 346 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['rqt_yn_btn'],
package_dir={'': 'src'},
requires=['std_msgs', 'rospy'... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
d35d195c09580ae5b7a11b85392eb618093b5bd9 | b5fbc01deb2060b2222f885fca0433844a9e7cd1 | /web/lib/python3.6/site-packages/coreapi/codecs/python.py | d0bebf645b79b6bea9fa954a1c5cc1ec426eb4c1 | [] | no_license | Carlosdher/reposicao | 50973b15f8a2bd3a5a6b83b06efe0050f612bb83 | 71ef93e694888e54c79e98e8568c3417ee82ec96 | refs/heads/master | 2020-03-18T04:13:59.493126 | 2018-08-02T13:06:55 | 2018-08-02T13:06:55 | 134,277,105 | 2 | 0 | null | 2018-07-27T19:20:36 | 2018-05-21T14:01:26 | Python | UTF-8 | Python | false | false | 2,784 | py | # Note that `DisplayCodec` is deliberately omitted from the documentation,
# as it is considered an implementation detail.
# It may move into a utility function in the future.
from __future__ import unicode_literals
from coreapi.codecs.base import BaseCodec
from coreapi.document import Document, Link, Array, Object, Er... | [
"carlosabc436@gmail.com"
] | carlosabc436@gmail.com |
15ed0f8428b2d1f891f40718268c67e0d7c67e20 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/2278.py | 9906776748b33be02c1af34a2e169e7c60b0f786 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | #!/usr/bin/env python3
ip=open("A2.in",'r')
no = ip.readline()
no = int(no)
case_no = 0;
for line in ip:
#print line
case_no+=1
line = line.split(' ',1)
smax = int(line[0])
shy = line[1]
#print smax
minf = 0
count = int(shy[0])
for i in range(1,smax+1):
x=int(shy[i])
if(count<i):
extraf=i-count
cou... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
971c13dc602b3913d94c90fdf42f9a97a23d1df4 | f6f6108b9316c36115318d059279e0daf19dc3c5 | /setup.py | 287a519768205026cf43fa42d051f25553adc88e | [] | no_license | kilohsakul/Noodler | 80898140a28d1d0f9031b1d4d9323fa266dfd536 | 9bff3c93e3aa29bf0aab282261065d7529bdeddf | refs/heads/master | 2023-07-05T20:50:53.059113 | 2021-08-12T11:57:45 | 2021-08-12T11:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from setuptools import setup
setup(
name='noodler',
version='0.0.1',
packages=['noodler'],
url='',
license='',
author='Fanda Blahoudek',
author_email='fandikb+dev@gmail.com',
description='Use automata noodles to solve string constraints'
)
| [
"fandikb@gmail.com"
] | fandikb@gmail.com |
dbd25b91b788433ddd8a78274967e8d0fff7a784 | 17694dbb1889c5dcadf2b1e64a54f0fd0b9d4287 | /rythubazar/rythubazarapp/migrations/0001_initial.py | 63b9e71647a67ef4c9752c916bb0e3b5b24a0089 | [] | no_license | chakilamabhishek/rythu-Bazar | 95e1dc89fb02149f389a2e8f294a740e1b097fb3 | d8fbe5d166b354710a41753e9c5f29da8983a383 | refs/heads/master | 2023-01-05T14:02:38.101384 | 2019-09-09T05:34:25 | 2019-09-09T05:34:25 | 206,998,097 | 0 | 1 | null | 2022-12-27T15:37:02 | 2019-09-07T16:51:16 | HTML | UTF-8 | Python | false | false | 1,965 | py | # Generated by Django 2.2.1 on 2019-09-08 11:29
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"abhishekchakilam54@gmail.com"
] | abhishekchakilam54@gmail.com |
0671fd0e6ef3731f00e44ee76929e25b24a16e99 | 9ff36b692c0cdb6579b6c7fd3a1b5248cfda4b86 | /search_Move.py | b0af0168a7f31f422bdd7355f197045f4891dba5 | [] | no_license | i12285/college_data | a397c0c80549f82d25d4d705d9fb2eff7145635c | 5a151ef3ddcb55c7daed5e1d3b0ac97559c31dcb | refs/heads/master | 2023-03-31T02:54:40.336797 | 2021-03-27T16:14:14 | 2021-03-27T16:14:14 | 352,028,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | # -*- coding: utf-8 -
from typing import List, Dict
import MeCab
import numpy as np
import gensim
import csv
from gensim import matutils
from sklearn.svm import SVC
from sklearn.model_selection import KFold
from sklearn.metrics import precision_recall_fscore_support, accuracy_score
from tqdm import tqdm
from copy impor... | [
"tsubasa.a.0415@gmail.com"
] | tsubasa.a.0415@gmail.com |
62dd4e73a0ee851439786961737d76323b311b0c | 1512ca0bbc142cf858f7f9c37e108ee7b108c806 | /backend/project/urls.py | 226d7fab504bbfb59c53698ab147b606af8267c3 | [] | no_license | Calixd7/greetly-cards | 44c665eb895995f71db810b6245aa2f1a2e6accd | c83d1c47cc3bc0f884431122afb206257fe4435d | refs/heads/main | 2023-07-18T03:46:37.082288 | 2021-09-06T04:21:48 | 2021-09-06T04:21:48 | 357,604,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"calixd7@gmail.com"
] | calixd7@gmail.com |
124b2896113a38f352e1dbfd8f0b4924d33eb6a3 | 5f6ac587de25816a414728406de82b301823d521 | /selectImg.py | 9cf934c7b1a71e468dc2309c7878bb3aa8772585 | [
"MIT"
] | permissive | yang502/ytf | c43ac93c4c5b71e7795cdb1de983822f7e875131 | fd0191532c02cdc84766d3f8ce67add767286529 | refs/heads/master | 2021-04-26T22:52:56.636716 | 2017-08-14T13:49:21 | 2017-08-14T13:49:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | # Xiang Xiang (eglxiang@gmail.com), May 5, 2016, MIT license.
import os
from shutil import copyfile
import pdb
rootpath = '.../YouTubeFaces/' # the path where you save YFW dataset
readname = 'detected_faces/'
savename = 'selected_faces/'
f = open('index.txt','r+')
count = 0
while True:
count = count + 1
prin... | [
"cnwhu@yahoo.com"
] | cnwhu@yahoo.com |
292073a7cb374caacd4a351d4ed2d1ae9d8195b8 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day08/homework/core/certification.py | 7e34aeb34cbafe6aab843acb6b2657e232b577e5 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 3,740 | py | # -*- coding: utf-8 -*-
__author__ = 'caiqinxiong_cai'
# 2019/8/21 10:37
import pickle
import hashlib
from conf import settings as ss
from core.log import Log as log
class Certification:
'''登录认证类'''
def __init__(self):
pass
@staticmethod # 类的装饰器,静态方法 没有用到默认参数(self),不能使用类变量和实例变量,实现实例化使用 C().f(),也... | [
"13269469526@163.com"
] | 13269469526@163.com |
77dc51f220dab2bf4857952a8655e36702b40d63 | 0e511184e594fb71361964b6e4afad775f20776a | /offer/views.py | 01da9c23bcbdfe843b5ce72d550c8759ba299a47 | [] | no_license | wwwzaptaycom/zaptay | 5d6330193aea49fcf94cc82af82fb7d59c1878da | bb406ff83f7d30a84e22b136732c40d79c1c5953 | refs/heads/master | 2023-01-02T21:35:57.621332 | 2020-09-26T13:11:32 | 2020-09-26T13:11:32 | 279,499,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,505 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse, HttpResponseRedirect
from django.views.generic import View, TemplateView, FormView, ListView
from django.contrib import messages
from django.db.models import Q, Subquery
from . models import Offer, OfferProduct
from product.models impo... | [
"admin@zaptay.com"
] | admin@zaptay.com |
d9270fdd6f858e33d560502a4d2046dd5c33e6ff | 6bcb9e223d21ccc8bf16240152496b52e4e2baf8 | /Demo/ThreadDemo4.py | fb8a2307b1ecd0cc1cff740eaf9d15df94f0e640 | [] | no_license | ZNDLzyl/VoiceSpliter | 1a432944128a0600f604fce9b4aaee2caa747a27 | 0c923ca94e164a21b8430587bce0bb6d2f4a6824 | refs/heads/master | 2022-12-27T22:40:16.442342 | 2020-10-14T09:09:38 | 2020-10-14T09:09:38 | 301,407,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # 创建一个类调用它的某个函数就是新建立一个线程
# 线程只做一件事情:更新类中的某个参数
import threading
import time
class MyClass:
def __init__(self):
self.seconds = 0
self.print_seconds()
self.t1 = threading.Thread(target=self.play_voice)
self.t1.daemon = True
self.t1.start()
def play_voice(self):
wh... | [
"qazwsx6688#a"
] | qazwsx6688#a |
e495bc762752abfd6a307290f213429486b00ea1 | 82d75f9ae662b388ecd924d599f0d002c0d0cd40 | /Week2/command.py | eba4c547cc7851d6314374a2e0fc10936d6906d3 | [] | no_license | mvanger/python | d06f6ac2e0bad59ef244b18e42ba4c5c1d722c76 | 0ed15cedb6d9aa60854c30fccffe1b74d69aeb67 | refs/heads/master | 2021-01-16T18:18:35.755155 | 2014-06-12T00:39:43 | 2014-06-12T00:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # Load the sys module
import sys
# sys.argv is a list containing command line arguments
# sys.argv[0] is the module name
if len(sys.argv) != 2:
print("Please supply a filename")
raise SystemExit(1)
# get filename from the command line
f = open(sys.argv[1])
# Convert each line (string) to a number
# Notice the l... | [
"mvanger@nyu.edu"
] | mvanger@nyu.edu |
af41e25e54049b6a7d90ced32ac25553bd20a520 | 1fbb4d511dd15490ab70bd85cc404dab06a7e37c | /model.py | 0bef3b02a2b12da4e4510d201b0445ac1d872b5a | [] | no_license | aboerzel/udacity-deep-reinforcement-learning-p2-continuous-control | 7f32f3cd444d3ed5e4f255c4bc9642e6469209bc | 0416434749b7758187a2306833d328eba9150668 | refs/heads/master | 2023-03-01T18:29:04.285342 | 2021-02-06T11:15:32 | 2021-02-06T11:15:32 | 333,823,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return -lim, lim
class Actor(nn.Module):
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, seed, f... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
0c87c480f5967e98463f781434699181e8465a21 | 429211c01057abcd51e5120d566c7daa0a8e2f33 | /1804/二/day9/gun.py | 708ce593b58389a50875961117c80df6abc145ac | [] | no_license | LDZ-RGZN/b1804 | 2788c922a6d1a6dc11267920a90336d1df93a453 | c57f8b7cf14686036cae3c30a30f07514622b5ca | refs/heads/master | 2021-07-19T12:54:07.031858 | 2018-10-12T02:48:39 | 2018-10-12T02:48:39 | 133,500,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | #!/usr/bin/env python
# coding=utf-8
#老王开抢
#四大类 人类 抢类 弹夹类 子弹类
class Ren:
def __init__(self,name):
self.namd = name
self.xue = 100
self.qiang = None
def __str__(self):
return self.name + '剩余血量为:' + str(self.xue)
def anzidan(self,danjia,zidan):
danjia.baocunzidan(zid... | [
"2654213432@qq.com"
] | 2654213432@qq.com |
67053034d879feacaa464af9b9b60cd915df29fc | 71b414504d68dca395fa61fd0f5576db5fbab46b | /pollster/polls/views.py | c69446346d3b8edf736b4f89639125cda63246a8 | [] | no_license | iurietarlev/django_pollster | 227de04afd2b990f782218a63aa4d9aaad9b8edd | 899c53f589c087b6be1d008f7c46ba0f746ad928 | refs/heads/master | 2021-09-27T19:37:31.359966 | 2020-03-19T02:06:26 | 2020-03-19T02:06:26 | 248,375,349 | 0 | 0 | null | 2021-09-22T18:52:52 | 2020-03-19T00:41:12 | Python | UTF-8 | Python | false | false | 1,827 | py | from django.template import loader
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
# Create your views here.
from .models import Question, Choice
# Get Questions and display them
def index(request):
latest_question... | [
"iura.tarlev@gmail.com"
] | iura.tarlev@gmail.com |
3ca7f2836fbdf27168778e0ed8e305288ae66561 | 098b8991a67c112871c01de62238b0e86877561e | /ProblemSolving/NumPermutations.py | 55e2189f6f6dd95a8a447336a49c161eaa189a22 | [] | no_license | sharmasourab93/CodeDaily | 707d96810fa86cbb761515005acb8f69a5dbe327 | ea4dae19fc9fe57e89895a095c71022419203c22 | refs/heads/master | 2021-06-08T10:51:07.541660 | 2021-03-29T15:39:17 | 2021-03-29T15:39:17 | 133,652,113 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | import math
import os
import re
import sys
def CountNaturalNumber(n):
rang=list(range(1,n+1))
new_range=[]
for i in rang:
if len(str(i))==1:
new_range.append(i)
else:
l1=list(str(i))
if int(l1[0])<=int(l1[len(l1)-1]):
new_range.append(int('... | [
"sharmasourab93@gmail.com"
] | sharmasourab93@gmail.com |
83f03f454fe38b21991d163b191043b54cc0e0c2 | 034d92a10818a9071b405fbbed590c7159049ff8 | /Tarea1/natura.py | fe1b5b805add8c7de534488bfb00c2e3600b2562 | [] | no_license | PabloMunozP/Criptografia | 847ce46a5e57305131863698715b2a282f33c61f | 662ba77f3c20b5da518cb80991ce33899a026ee7 | refs/heads/master | 2022-12-24T06:11:26.418599 | 2020-10-13T20:19:33 | 2020-10-13T20:19:33 | 294,062,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,692 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait,Select
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import... | [
"pablo.munoz@2mail.udp.cl"
] | pablo.munoz@2mail.udp.cl |
7284c0b3e3f5f25dae2144460b7e2736b30e6aea | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03326/s393771722.py | df69bc9b8b591bef556ca44e75fdf6235600e367 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | N,M=map(int,input().split())
ans1=[]
ans2=[]
ans3=[]
ans4=[]
ans5=[]
ans6=[]
ans7=[]
ans8=[]
ANS1=0
ANS2=0
ANS3=0
ANS4=0
ANS5=0
ANS6=0
ANS7=0
ANS8=0
for i in range(N):
A,B,C=map(int,input().split())
ans1.append(A+B+C)
ans2.append(-A+B+C)
ans3.append(A-B+C)
ans4.append(A+B-C)
ans5.append(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0714d5f65b507241dbfea62995fb11e56b9e47b9 | 4bcc7f7de3e896b59c01c45e08790de322602c53 | /Competition3/benchmark.py | 7784e969e8700a8603a4f7ca768a74b2517a5fb3 | [] | no_license | TheF1rstPancake/CSCI183 | 1d97ade541cf9737d4a1b2ffbc1a201ca20bd94e | 8ed70c3052299707f7b5f2c4ea243fe047267046 | refs/heads/master | 2021-05-29T16:56:59.591150 | 2015-06-05T19:18:36 | 2015-06-05T19:18:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,010 | py | import nltk
import numpy as np
import pandas as pd
import re
from sklearn.base import BaseEstimator
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.pipeline import Pipeline
from sklearn.ensemble import RandomForestClassifier
train = pd.read_csv("train.csv").fillna("")
test = pd.read_csv("test... | [
"gbriggs2012@gmail.com"
] | gbriggs2012@gmail.com |
845f8909eca958d705bda2afe5484e193055d172 | b9790315ec88a39f79eb6d217c6a29fc75b54a1c | /India/10/vSIR.py | 0cbd147a84e07ac7e3ffca03df11f2c7e75802cc | [] | no_license | ryannuan/BPISI-LSTM | f6df6eed23d65c76c7014550adc44dbf635b2951 | 4cf3b89e77985cba785fd04adc20cac18a07605a | refs/heads/main | 2023-04-21T19:14:33.099654 | 2021-05-10T13:26:37 | 2021-05-10T13:26:37 | 366,044,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,943 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from scipy.stats import lognorm
import matplotlib.pyplot as plt
from scipy.optimize import least_squares
from scipy.integrate import solve_ivp
from ode_helpers import state_plotter
import ma... | [
"noreply@github.com"
] | ryannuan.noreply@github.com |
9006b74c31a0bbba91bf577dd8129129896bca4b | d74ccf6290b7acb0011fd9b9132cd8beac0bd9d3 | /back/movies/views.py | e3db8ef93368b3d5064833a71fab135bd04f821a | [] | no_license | gaberani/final_netflix | a0687c9cec9157712c9fe2a8627d3624e5fe00b6 | 637016fd6a0c589f1ff96ed5e9225deffc8f18cb | refs/heads/master | 2022-11-09T10:42:22.460795 | 2020-06-21T00:30:21 | 2020-06-21T00:30:21 | 272,981,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,769 | py | from django.shortcuts import render,get_object_or_404,get_list_or_404
from rest_framework.response import Response
from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import IsAuthenticated
from .models import Movie, Comment, Genre
from django.db.models import Q,Avg,Sum
... | [
"khs0783@naver.com"
] | khs0783@naver.com |
7001df5b1c8067eb4650e631e6538486f1968571 | 846b11ccf549aba144c1824a24292a4850860ca7 | /3-EstruturaDeRepeticao/14.py | 6bdc78dafd567fe611d5f74f89ef5b66eb0168d1 | [] | no_license | paulocesarcsdev/ExerciciosPython | 6d1feff293e7efc4cd3fbc62eee0add93f76db99 | 25bfaa6dc5cb294242e478a2b253a8ca5d9c7078 | refs/heads/master | 2023-05-15T00:53:22.151884 | 2021-06-10T03:04:04 | 2021-06-10T03:04:04 | 337,847,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | '''
Faça um programa que peça 10 números inteiros, calcule e
mostre a quantidade de números pares e a quantidade de números impares.
'''
lista = []
contador = 0
while(contador <= 10):
numero = int(input('Entre com dez {} números inteiros :'.format(contador)))
lista.append(numero)
for i in range(len(lista)... | [
"paulocesarcs.dev@gmail.com"
] | paulocesarcs.dev@gmail.com |
caa596988026c177b5d1631eda972783f68d471b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_fuzes.py | 8286425583021c697aa4a9041dbe2357f3c0b7ed | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _FUZES():
def __init__(self,):
self.name = "FUZES"
self.definitions = fuze
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['fuze']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2fc9d2e8e04d457f62c77cb0fee4c82606019f46 | 1693b5ef0ca727d2d7accccd757400afca81dc12 | /examples/4-tensorflow-mnist/tensorflow_mnist/predict.py | 534469eccab12484855802db1e7461258bd9f751 | [
"Apache-2.0"
] | permissive | ghas-results/baklava | 8230f67fbd100842a52f7928edd1a40944d52088 | 0e029097983db6cea00a7d779b887b149975fbc4 | refs/heads/master | 2023-07-13T05:01:09.438209 | 2021-08-18T00:55:53 | 2021-08-18T00:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | """
Predict
=======
Functions used to load models at prediction time and produce model decisions.
"""
from __future__ import print_function
import functools
import numpy as np
import tensorflow as tf
from tensorflow_mnist import model, paths
@functools.lru_cache()
def load_model():
"""
Load the saved model... | [
"code@matthewmadson.com"
] | code@matthewmadson.com |
bbe95919f6a86c4969e52c8d4b83fac015417ecf | 21b632797ed6257b13574c341cdd14e6534728a9 | /ryu/tests/unit/app/test_ofctl_rest.py | e9c64d2ca45a8b9816adb0f84b00b81ef71a983e | [
"Apache-2.0"
] | permissive | MrCocoaCat/ryu | 0473f04e2a840e027e9002f8a6af81745eaf7094 | 9e9571991a73380099b7ba7c6f37e0e587080a6a | refs/heads/master | 2021-06-19T18:09:52.833590 | 2020-05-12T08:17:21 | 2020-05-12T08:17:21 | 163,072,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py | # Copyright (C) 2016 Nippon Telegraph and Telephone Corporation.
#
# 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 ... | [
"MrCocoaCat@aliyun.com"
] | MrCocoaCat@aliyun.com |
ce8b9fcf3d54e14ec62b9e66411670117ff29710 | 66bc5c67523126170f5a14370736e2e15dbc6c13 | /dynamic_modeling/dataset.py | c96d5bd1bb71576da1d5a87b7d433c2a71460f12 | [] | no_license | windweller/smartbot_offline | 5e69a576753bff35af59b1cb78da8958fa137133 | 4e49e5e8e5a3add88d81c662d0d91388e10fc646 | refs/heads/main | 2023-07-01T18:00:40.937260 | 2021-08-05T00:28:44 | 2021-08-05T00:28:44 | 334,787,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,963 | py | import os
import copy
import pickle
import json
import numpy as np
import pandas as pd
from tqdm import tqdm
import torch
from torch.utils.data import Dataset, DataLoader
def load_data(data_path):
print('Loading file...')
orig = pd.read_csv(data_path)
# ==== State-model ====
# One Markov Data Loader
clas... | [
"leo.niecn@gmail.com"
] | leo.niecn@gmail.com |
6db636d324ba3ec6f7e6761799d6d6d97ac541c0 | 495c2487c7e56e9ff93b74be992ba082258d06a4 | /venv/bin/google-oauthlib-tool | c647cb5904b574e564c32bdcba3020c8e00d1549 | [] | no_license | NorinStark/oDooAPI | 3761e7b8267f9aa376544bc21876c2ce2f08d4c2 | ab7d69bda3ec3e7c24f48a7629b3f744b9c86afb | refs/heads/master | 2022-12-13T09:05:10.226901 | 2019-09-17T10:02:47 | 2019-09-17T10:02:47 | 208,240,761 | 0 | 0 | null | 2022-12-08T05:21:47 | 2019-09-13T10:12:57 | Python | UTF-8 | Python | false | false | 259 | #!/Users/norinstark/k2API/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from google_auth_oauthlib.tool.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"norinstark@Sousdeys-iMac.local"
] | norinstark@Sousdeys-iMac.local | |
f8b426cface85098de861fd977b06a48f584651d | 94ef739d71100a9dbb3dffb22bb8cea98d846f47 | /app.py | 5e8afd97e4d13bf90a8108ec31bbe9fdfaaff1d5 | [] | no_license | msbrasil/observatoriodeapls | 4ebe3714474a4e998f5a639f076e47a2b34df394 | 5747d53335cdaded4f241fbe8f8194f28ff124fe | refs/heads/master | 2023-04-18T05:11:38.262925 | 2021-05-04T16:16:32 | 2021-05-04T16:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,426 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 13 09:17:51 2021
@author: patri
"""
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
from dash.dependencies import Input, Output
from dash_extensions import Download
from dash_extensions.snippets import send... | [
"patricknasser@gmail.com"
] | patricknasser@gmail.com |
80f181e38ddcadf992c61574f1ca543a5d34cbee | 0822b198c8fc54670b3cd0c957dfc88fe6401fd1 | /main_a3.py | 04670489240901336fb81adafe278b860df73dc5 | [] | no_license | tizhou0704/TextAnalysis | 25ea8498160062c1c8e60ff3e65d544f352abd39 | 5489c2e8f86c269335c2cc8d4e7bcf7e5094fc54 | refs/heads/master | 2020-08-04T14:36:39.834839 | 2019-10-23T22:16:06 | 2019-10-23T22:16:06 | 212,169,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | """main_3a.py
An instance of the Text class should be initialized with a file path (a file or
directory). The example here uses object as the super class, but you may use
nltk.text.Text as the super class.
An instance of the Vocabulary class should be initialized with an instance of
Text (not nltk.text.Text).
"""
i... | [
"tizhou@brandeis.edu"
] | tizhou@brandeis.edu |
52fa7bfd55cd056b0f31556983941024f842c508 | 9cf5ab2caa9e904706186cde8bb041e060d00514 | /Scripts/recover.py | 0bc993827aa217ace893c71b20274ea29884bae1 | [] | no_license | KateLibC/tasbot | 513861de62eaa18f3bfed918cfeb61e5d4fa2d04 | 625a91adabc0150d14fce1574808374e1e7bb080 | refs/heads/master | 2021-06-10T16:12:44.996952 | 2017-01-13T05:57:02 | 2017-01-13T05:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import serial, sys, time, os, bz2, gc
# connect to device
ser = serial.Serial(sys.argv[1], 2000000, timeout=0.1)
for i in range(0,30):
data = []
for j in range(0,64):
data = data + [0x00]
#print(data)
ser.write(bytes(data))
| [
"pjgat09@gmail.com"
] | pjgat09@gmail.com |
4b29ef986dc77358c2a5af256d672069d61da64d | 9049c63709877df3b10945ddfe0d0b8cfb0ac88b | /Array/3Sum.py | f28327afc107e331dfa70a332b5d94cd403c7f82 | [] | no_license | dotastar/Leetcode-Design-CompanyEx | 714c742d9c59dcd750a3e3c0a5edd51926ff0874 | 70146da2df523be4599de4df57a38d6bd493c2f5 | refs/heads/master | 2021-01-16T17:59:12.777662 | 2015-09-23T06:46:17 | 2015-09-23T06:46:17 | 39,912,645 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | #Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
#Note:
#Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)
#The solution set must not contain duplicate triplets.
#198ms
class Soluti... | [
"jinblue.d@gmail.com"
] | jinblue.d@gmail.com |
1a65325ac0487e162aa661c116a884941aac1c0a | c94f0fa68fd6959451fa7944ac9168b4cd6c3c10 | /modules/losses.py | 2e7b6ee12b1ca604d438ca331119430da742e5f5 | [] | no_license | cryu854/CUT | 41806a4ddf1e1fe57df22e605f49706f6808cddd | 6f68be41fadd02fb052b62fa856e1347d02d6e4c | refs/heads/main | 2023-02-13T07:21:49.438987 | 2021-01-09T13:54:27 | 2021-01-09T13:54:27 | 322,215,160 | 31 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | """ Implement the following loss functions that used in CUT/FastCUT model.
GANLoss
PatchNCELoss
"""
import tensorflow as tf
class GANLoss:
def __init__(self, gan_mode):
self.gan_mode = gan_mode
if gan_mode == 'lsgan':
self.loss = tf.keras.losses.MeanSquaredError()
elif gan_mod... | [
"cryu854@gmail.com"
] | cryu854@gmail.com |
b134c26a768fd9f651fea98027d4cefc0a5c0008 | 53757e03fd7364b58a9f67208cf19a8e0e7cc7e1 | /word_count.py | 0a7c2a643168ad10ee98868154f49879fc496a91 | [
"MIT"
] | permissive | ahatovicemira/Classificaton-Ispovesti.com | 7abcd508560a56ea54dd2f306e3ddaad7bbc68e6 | a7024f04faa64ef09fb79dba86f33112792112b8 | refs/heads/main | 2022-12-27T13:53:23.465050 | 2020-10-01T19:45:49 | 2020-10-01T19:45:49 | 300,392,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import csv
from wordcloud import WordCloud
import matplotlib.pyplot as plt
from SerbianStemmer import stem_sentence
import sys
def clean_word(word):
word = word.lower()
word = word.replace("š", "sx")
word = word.replace("č", "cx")
word = word.replace("ć", "cy")
word = word.replace("đ", "dx")
word = word.replace(... | [
"emira.aha@gmail.com"
] | emira.aha@gmail.com |
1631c5d62d3b2af19137cb797b0f5b58b6ef4591 | fcb6eaee598611679521b30397fd1a53281a5704 | /services/migrations/0001_initial.py | d9f2fa3d83b2322616252d63e496b43c3b1c6207 | [] | no_license | ivek/django_webempresa | a4728b4ad445873dce622faf02a592d0677fada8 | 00dc05d2b0460920756a97dec0b167760ac4cc1f | refs/heads/master | 2020-06-29T20:05:23.349135 | 2019-09-22T06:23:27 | 2019-09-22T06:23:27 | 200,611,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | # Generated by Django 2.2.3 on 2019-08-05 01:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Service',
fields=[
('id', m... | [
"ivekdelfin@gmail.com"
] | ivekdelfin@gmail.com |
97da8b592c7b5eb339ae84e15cbed7d7a38655c3 | a98e8bf61be43b6f1d3566c22c9a8e533556dce6 | /test.py | 38a2a9ece86af9552a1e6ca365a3a9ddc31bd29d | [] | no_license | sirmasterapu/DoubleNumber | cdcc9e7fd67b4d073bed3c117f4ecc53c6769fed | fb3e99e216bd92f3ebcffe160d0519fc50f8f342 | refs/heads/master | 2021-11-30T17:26:50.972613 | 2021-08-16T12:46:06 | 2021-08-16T12:46:06 | 53,062,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from Tryaccept import *
print("it worked")
| [
"noreply@github.com"
] | sirmasterapu.noreply@github.com |
4631d9f43b3559cd68a14a340dd3fabb3f2a7957 | 522c92cf2a7f06e7fa2243e6d8d284c81eff7da8 | /n_模块与包/n2_包.py | 73ec3f76bf574cfcddc55a6d1513362f9e6a7b57 | [] | no_license | qiuyunzhao/python_basis | 480323dda42f7a85dd1e0d7d693595bf1cce00e5 | cdf5622f1ac6dc8e6b206b13aa3ef4cd3a6654b0 | refs/heads/master | 2021-01-02T19:21:03.556686 | 2020-05-24T14:52:14 | 2020-05-24T14:52:14 | 239,762,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # 包 Package 也是一个模块
# 当模块中代码过多时,或者一个模块需要被分解为多个模块时,这时就需要使用到包
# - 普通的模块就是一个py文件,而包是一个文件夹
# - 包中必须要一个 __init__.py 这个文件,这个文件中可以包含有包中的主要内容
# 一般用这个
from n_模块与包.package import a, b
print(a.str)
print(b.str)
# ===============================================
# import package.a as a, package.b as b
#
# print(a.str)
#... | [
"1102401880@qq.com"
] | 1102401880@qq.com |
e7fe6f9f112530ada17b1468bfdc491edd1fc5c0 | 851a79f08f1b13f51abd39f0b12991bdffc6b5c8 | /MetaGrab/migrations/0039_genre_long_name.py | 51753ec7669f179ef5d21474639e96893ed50294 | [] | no_license | davidzengming/MetaGrab | 0e799fe620d06d9ebd08062ccab447a1128c6f08 | 8ae1b96885c81b6d4dd635a8eb7018d846aac9f2 | refs/heads/master | 2022-12-12T04:12:54.657207 | 2020-07-31T15:30:45 | 2020-07-31T15:30:45 | 214,868,535 | 0 | 0 | null | 2022-11-04T19:40:59 | 2019-10-13T18:05:29 | Python | UTF-8 | Python | false | false | 451 | py | # Generated by Django 3.0.6 on 2020-07-02 19:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MetaGrab', '0038_auto_20200513_1319'),
]
operations = [
migrations.AddField(
model_name='genre',
name='long_name',
... | [
"davidzeng@Davids-MacBook-Pro.local"
] | davidzeng@Davids-MacBook-Pro.local |
8aa00b58302068cd35bdaddc95267ca2ea0378b7 | 74df7dceaddd56400844264b7b98a3468258bf31 | /main.py | ebd782a39b872318b48107cccf7c1516cb430166 | [] | no_license | PrimaJ777/TesteBLO | 643c0fad02a59b4ac51cd977eac9a553438a4087 | 181c2f95ca668b3a60d57d1a8efbd6f081047b37 | refs/heads/master | 2020-09-11T16:29:23.667903 | 2019-11-16T16:23:24 | 2019-11-16T16:23:24 | 222,126,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import win32gui
import pandas as pd
from datetime import datetime
import numpy as np
last_window = 0
data = pd.DataFrame(columns = ['activeWindow', 'timeEntered'])
i = 5
while True:
window = win32gui.GetForegroundWindow()
window_text = win32gui.GetWindowText(window)
if window_text != last_window:... | [
"noreply@github.com"
] | PrimaJ777.noreply@github.com |
f8316ed567fe7ff794724ad2506e0498e727a750 | 76f27cc296a184243d43726006c0769a1a79de5a | /dev_ws/src/gate_detection/setup.py | b35beb35d2a2045be07dda883f50d2be914852d3 | [] | no_license | gadm21/gate-detection-and-motion-planning | b56d5053c1fbaf28bb1b44bf8d8f241508f65bd4 | 44ea5a5b494aa9f5e91b491d823c84e651ab1083 | refs/heads/main | 2023-04-19T19:51:40.892465 | 2021-05-13T20:08:25 | 2021-05-13T20:08:25 | 304,898,054 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | from setuptools import setup
package_name = 'gate_detection'
setup(
name=package_name,
version='0.6.3',
packages=[package_name],
install_requires=['setuptools'],
zip_safe=True,
author='Mikael Arguedas',
author_email='mikael@osrfoundation.org',
maintainer='Mikael Arguedas',
mai... | [
"g.gad@nu.edu.eg"
] | g.gad@nu.edu.eg |
6e7718418081df4423e21cc068408e98bab2edc8 | 45de039534bd5f2e99f1de8cc00dc2cd2017ecf8 | /website/music/views.py | 12c09f54e7b9d8d327da6478cb0a2aada850fe88 | [] | no_license | sakenism/web | 3438fbb61319b793d77534bf820c05020bab6084 | 39453df37f9267343192fcc26ff4a44e48f2c91c | refs/heads/master | 2020-03-15T22:07:34.710752 | 2018-10-22T19:47:55 | 2018-10-22T19:47:55 | 132,367,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from django.http import HttpResponse
from django.shortcuts import render
from .models import Album
def index(request):
all_albums = Album.objects.all()
context = {
'all_albums': all_albums,
}
return render(request, 'music/index.html', context)
def detail(request, album_id):
return HttpRes... | [
"noreply@github.com"
] | sakenism.noreply@github.com |
abba73fa6f06d59af4103f8085f937198878b964 | d0d64fdf41fdef7e2f92a2c7636a9065f184b034 | /Python program to print all pronic numbers between 1 and 100.py | 1eace7fd9c521d4999e5df15b2e2373130624f7b | [] | no_license | jamircse/Python-Basic-Program | 573c55252e87064eee77ada829a5a07e454266be | cf39ca38f6e147b69bb21b7a6fc261d39888d5b3 | refs/heads/main | 2023-01-13T20:12:42.643964 | 2020-11-20T05:46:55 | 2020-11-20T05:46:55 | 314,454,108 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #Python program to print all pronic numbers between 1 and 100
#Like 2(2+1) = 6 can be called as a pronic number.
#isPronicNumber() will determine whether a given number is a pronic number or not
def isPronicNumber(num):
flag = False;
for j in range(1, num+1):
#Checks for pronic number ... | [
"noreply@github.com"
] | jamircse.noreply@github.com |
638cc5fd3bc54da1e5480ec0993e6c1ed8a766e4 | 2819db3cbc354d1744e8c5a69297bd014ab0682e | /tests/smoke/browserpages/learntoexport/how_to_draft_a_contract.py | a7edcdc5e31f43f4e5adbc55bed5749c906b2053 | [] | no_license | uktrade/great_magna_tests | 505a4ae2aa902ccaa1530b056950af8e00f85c0e | a5062145ff596b99632ec1a4287bfd4787d5f6d8 | refs/heads/main | 2023-06-23T16:07:22.814320 | 2021-05-16T19:48:59 | 2021-05-16T19:48:59 | 352,719,199 | 0 | 0 | null | 2021-05-16T19:49:00 | 2021-03-29T16:57:09 | Python | UTF-8 | Python | false | false | 2,665 | py | import logging
import random
import time
from types import ModuleType
from typing import List, Union
from selenium.webdriver.common.by import By
from selenium.webdriver.remote.webdriver import WebDriver
from great_magna_tests_shared import URLs
from great_magna_tests_shared.enums import PageType, Service
from browser... | [
"santosh.dasari@digital.trade.gov.uk"
] | santosh.dasari@digital.trade.gov.uk |
54b1a674bb84562c3c1a9ed2aaa521e391cb82fe | 32705f13ce611f2251ec78b4d0e173d7e3c245d1 | /Regula-Falsi.py | 4f673324bad070ad90a93bd374a30f6e2342db27 | [] | no_license | ashasif/Root-Finding-Methods | 2be4c1d63412bfb2c24de947a14181748b725133 | 1eb9f84813d4a7ba58e1c2004c2efad9f748ca5c | refs/heads/master | 2020-03-30T14:02:07.114521 | 2019-02-01T12:21:13 | 2019-02-01T12:21:13 | 151,298,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import math
sin=math.sin
e=math.e
def y(x):
return x*math.sin(x*3.1416/180)-3*math.sin(x*3.1416/180)
# return x**2 - 6*x - 5
# return x**3-x**2-26*x-24
# return x*(sin(3*x)- 3*sin(3*x)
# return 5*e**x -sin(x)-x**2
a=float(input('a?'))
b=float(input('b?'))
count=0
if (y(a) * y(b)... | [
"ashasif090@gmail.com"
] | ashasif090@gmail.com |
28f0babe413c3abba7977f7a7dd812e97ff2e4fd | ac1cd78e4b8e8d2dd0eadba5d0877a1def918cd7 | /pratice_tabnine.py | 1a7dac0d8a777b4f8dd7d9d84f568dc1d32a8c15 | [
"MIT"
] | permissive | eatmore/python_practice | 0cdef8bb78cc493baa5ec11df199c291f9799364 | c6a773c8d24182b23a86fd9b66b27b5ff948b258 | refs/heads/master | 2020-07-10T02:22:45.712453 | 2020-04-18T07:49:54 | 2020-04-18T07:49:54 | 204,142,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | import requests
def get_{
} | [
"wangyanjun1990@gmail.com"
] | wangyanjun1990@gmail.com |
d8ca6cc92668343f5d0882b16dcb65f0f8314462 | a28fcdf689eea2181bcf17b05c771e1b8b7ed9bf | /helpers/embed_builder.py | 63e9f7e4a07e497dac6828ba7ef69c55cb32a84a | [] | no_license | xiasnocap/Guardian | 062d61d3277bf50ef1836b8d34ec0599fb4c8fd4 | ed7a70c6b827e2ae9ad9d95fb6ced6cd9165c5e5 | refs/heads/main | 2023-03-29T03:10:58.235726 | 2021-04-02T10:54:07 | 2021-04-02T10:54:07 | 353,991,173 | 1 | 0 | null | 2021-04-02T10:53:48 | 2021-04-02T10:53:47 | null | UTF-8 | Python | false | false | 1,795 | py | import discord
class EmbedBuilder:
def __init__(self, event):
if event == "delete":
self.embed = discord.Embed(title="Deleted Message", description="A message was Deleted", color=0xffff00)
elif event == "kick":
self.embed = discord.Embed(title="Kicked user", description="A ... | [
"Darkwater409@gmail.com"
] | Darkwater409@gmail.com |
fbb335b07d6fc40aa289ece9c354076639bb0baa | 7d4b17c95e67f6fa2448a2aca11e6f5ab432f476 | /myvenv/Scripts/django-admin.py | b94ba954e3c9dfdc03619ea53693af442e389117 | [] | no_license | akemi1618/django-blog | f9270afec21865012221eef0fd2d4dda4674ef17 | c4131ecfb3fba51d86ac17e45e9534126ffd9efb | refs/heads/master | 2021-01-18T14:11:50.740608 | 2015-08-07T16:30:33 | 2015-08-07T16:30:33 | 40,035,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | #!C:\Users\Alison\djangogirls\myvenv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"alison.torres.aqp@gmail.com"
] | alison.torres.aqp@gmail.com |
be8eebe69cdc19e28942222f24bae569c55ec88f | 04e6bd6aa49028f66397cac2346892bc84352e51 | /lsm/checkpoint.py | 437619a8c835c74d3a81d11edf82168fbbeec0fe | [
"MIT"
] | permissive | kelly-xuxixi/active_geometryaware | 1a901d7cf9de5d06eede962dccdd6015b4e94cb3 | db971f706208f52229a1de8d690b006a3725a4b9 | refs/heads/master | 2020-07-23T19:49:34.523481 | 2019-09-23T18:57:08 | 2019-09-23T18:57:08 | 207,687,800 | 0 | 0 | null | 2019-09-11T00:26:44 | 2019-09-11T00:26:44 | null | UTF-8 | Python | false | false | 1,485 | py | import os
import numpy as np
from tensorflow.python import pywrap_tensorflow
import tensorflow as tf
def rename(ckp_path, replace_from, replace_to):
checkpoint = tf.train.get_checkpoint_state(ckp_path)
with tf.Session() as sess:
for var_name, _ in tf.contrib.framework.list_variables(ckp_path):
... | [
"ziyanw1@andrew.cmu.edu"
] | ziyanw1@andrew.cmu.edu |
2aec15b1209b84d24312bc5d02a4fc6122d5ddb4 | 9c9cb08f756c5aa3ac5f9ee95b2dcb5b2ed32c90 | /CMS/App/validators.py | e8006a4cd3bb313367ed1be04f2c0f19c197101b | [] | no_license | l0n3woof/Author-CMS | d900769e9cfa5abc6d5ec3841dd6125fbf097cd3 | e7564d9056534222dc37c3ec910dd1ffe3acc767 | refs/heads/main | 2023-03-18T03:55:31.871977 | 2021-03-13T18:37:38 | 2021-03-13T18:37:38 | 346,638,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import re
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext as _
def validate_phone_field(value):
if type(value) != int:
raise ValidationError("Please enter only digits for phone number.")
if len(str(value)) != 10:
raise ValidationError("Phone nu... | [
"shikharsaxena10@gmail.com"
] | shikharsaxena10@gmail.com |
1e8b1221463afaea7dfae55771947cc33977e950 | 8bf24d2673aa04880f236d71ab28911b44ffe5e4 | /student_page.py | ce90037411f075c6cf9be7e13a6509214e2794a2 | [] | no_license | behathenimru/project5 | c9a195daee1859e1e77cfdcf4cd855c9de6985b5 | d73a0d7192068af6ee476eb54b1ff5e5b4961ea8 | refs/heads/main | 2023-01-12T23:42:51.614994 | 2020-11-20T21:16:10 | 2020-11-20T21:16:10 | 312,769,108 | 0 | 0 | null | 2020-11-20T21:16:12 | 2020-11-14T07:35:42 | null | UTF-8 | Python | false | false | 273 | py | import csv
L=["Balance info","Charging balance","Weekly food menu","Food reservation","exit"]
with open('student_page.csv', 'w', newline='') as file:
writer=csv.writer(file)
writer.writerow(["User menu:"])
for i in range(len(L)):
writer.writerow([L[i]]) | [
"n.jamshidiii.kh@gmail.com"
] | n.jamshidiii.kh@gmail.com |
68e493b2d7f735d95ac4aa98be268df361a49576 | 51b6d2fc53d5c632fcf01319842baebf13901e84 | /atcoder.jp/arc119/arc119_b/Main.py | 4f5348383754ef09ebd1273a7cb050def7fe502a | [] | no_license | mono-0812/procon | 35db3b2c21eff74fbd7b52db07f249380f6834ef | 68a4b53880a228a0164052b23d1326363efcbc20 | refs/heads/master | 2023-05-30T17:02:58.935074 | 2021-06-27T12:15:10 | 2021-06-27T12:15:10 | 345,896,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | import bisect,collections,copy,heapq,itertools,math,string,sys,queue,time
from typing import Counter
input = lambda: sys.stdin.readline().rstrip()
start_time=time.time()
from decimal import Decimal
def I(): return input()
def IS(): return input().split()
def II(): return int(input())
def IIS(): return map(int,input().s... | [
"frisk02.jar@gmail.com"
] | frisk02.jar@gmail.com |
72bd2f3bb4000533410e3a95f6a34b1896060a79 | e4e3bd16c2e13eee8c8b06f5a9a0ad492771ea52 | /01. CursoEmVideo/Mundo 01/Aula 07 - Operadores Aritimeticos/Utilidade _Python01.py | fbf120f61069461c8889b4344086a5bad92bd7d7 | [] | no_license | gabriel-roque/python-study | 3f1eb1efa98626b15666ca79e59b100f369787d1 | cd33936a22b73e7ae77e6cad92db09084a2f54fc | refs/heads/master | 2020-03-30T02:33:21.851419 | 2018-09-27T19:22:43 | 2018-09-27T19:22:43 | 150,636,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | nome = str(input('Qual seu nome? '))
#CENTRALIZADO
print('Prazer em te conhecer {:^20}!'.format(nome))
#ALINHADO A DIREITA
print('Prazer em te conhecer {:>20}!'.format(nome))
#ALINHADO A ESQUERDA
print('Prazer em te conhecer {:<20}!'.format(nome)) | [
"gabrielrms.dll@gmail.com"
] | gabrielrms.dll@gmail.com |
b534ec784355bc7cad99143b5402ca2d86b28f5b | b09023cb3cddc8f00780382152d77bafc7269078 | /python/wxpython/statusbar.py | 141d4f508a792d0a2c3f150e4da6315447ece11c | [] | no_license | renyiwushuang/FIRST-TEST | fbb9eef8410307d6e39b336fdfc2e839104593fc | 5c487a068c3bc033c959dd77315a316e34623025 | refs/heads/master | 2023-08-08T14:04:30.001545 | 2023-07-28T14:12:06 | 2023-07-28T14:12:06 | 155,395,173 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 968 | py |
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 31 01:03:43 2018
@author: 21524
"""
import wx
from draw import SketchWindow
class SketchFrame(wx.Frame):
def __init__(self,parent):
wx.Frame.__init__(self,parent,-1,'Sketch Frame',size=(800,600))
self.sketchwindow=SketchWindow(self,-1)
self... | [
"215242153@qq.com"
] | 215242153@qq.com |
b500e204cd87f1dc03411ee10c369c12e085b1ab | 2963a1c1fc24bf2d1b70da5ac1c863fb8d743497 | /makepns.py | ce4a87778ba29fa67c8285d63db71093efc0eb74 | [] | no_license | ewhite42/GBT-Pointing | c572f75d4612c10834b2a664a1e0462f9e47bf2e | abf4932102bc3a1265c3d152cd3ee8807f2ba0ee | refs/heads/master | 2020-07-27T20:56:37.886931 | 2020-02-03T22:58:28 | 2020-02-03T22:58:28 | 209,214,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | #! /opt/local/bin/python
#makepns.py
""" This program accepts a list of filepaths to GBT observations and creates a .pns file which contains information about multiple observing sessions rather than just one.
Ellie White 28 Apr. 2017 -- last modified 19 Sept. 2019
"""
from recType import recType
from shutil impo... | [
"noreply@github.com"
] | ewhite42.noreply@github.com |
ae9104c7eda0a9bab8afe8a967157bb5b7283c3e | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000047.py | db44526b51ca3eb6cfa5a431845cc6192b31309e | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
de69427b97ea198388f9f88092a9b3f23e5e0b30 | 7c07a71e618208381e3047d8fe35910c437d4b6a | /ClassHAAP.py | 5e9a4ff8d028e0cc2dd43c2edb2cf5acb6bbaaf4 | [] | no_license | userhei/HAAPTools | 69be3f515b785270b5e48b8409701f95f7904213 | c7194db3c0f8cc4f846a4db0d0c2f06c4aa10797 | refs/heads/master | 2020-04-01T16:30:37.880784 | 2018-10-17T03:52:03 | 2018-10-17T03:52:03 | 153,384,160 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | import ClassConnect
import re
def deco_Exception(func):
def _deco(self, *args, **kwargs):
try:
return func(self, *args, **kwargs)
except Exception:
print('Please Check HAAP connection...')
return _deco
class HAAP():
def __init__(self, strIP, intPort, strPasswd, in... | [
"userhei@126.com"
] | userhei@126.com |
61d3d9f78ec5971ed406ccc2cb30b24d8f272040 | e646e19afcc7c3680cfdd5f60c79216bb16bf430 | /gen3/models/build_model_20190717_081428.py | a84447d54bab18f7187d8db444f7c0cb097703c5 | [] | no_license | mike-holcomb/GGGFC | ef2dbbc70081461c7980e113d30a32b3100f4c38 | 5cc7219b65750cf22f43ab4627654fd11f3e412a | refs/heads/master | 2020-06-11T23:37:44.767713 | 2019-07-26T16:30:53 | 2019-07-26T16:30:53 | 194,123,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | def build_model_20190717_081428(num_channels):
y0 = Input(shape=(32,32,3))
y1 = Conv2D(1*num_channels, (1,1), padding='same', use_bias=False)(y0)
y2 = BatchNormalization()(y1)
y3 = LeakyReLU()(y2)
y4 = Conv2D(1*num_channels, (3,3), padding='same', use_bias=False)(y3)
y5 = BatchNormalization()(y4... | [
"mike-holcomb@users.noreply.github.com"
] | mike-holcomb@users.noreply.github.com |
bec5ed166b3352d885264b629a6c4f6f9db45ae0 | c3df64883e35e1b58c4010f8613741dbac7fe324 | /src/modules/apputils/terminal/colors.py | 10088f5185687b59d8fe2a917f90717a236e0227 | [
"Apache-2.0"
] | permissive | hapylestat/apputils | d509d287c434308fabb45b9c923dba5bcaddb7b4 | 5ae3d02fd91d134fe2908661fa3a8ec4e48468d5 | refs/heads/master | 2021-11-13T20:46:22.893557 | 2021-11-12T12:30:50 | 2021-11-12T12:31:55 | 53,297,612 | 0 | 2 | NOASSERTION | 2021-02-25T11:25:32 | 2016-03-07T05:14:43 | Python | UTF-8 | Python | false | false | 2,550 | 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... | [
"me@nxa.io"
] | me@nxa.io |
67f834797b3b8e84a0342902ea5aaec610872b32 | 695803cf1ae81f7a8ad63faa80545c3c913cee02 | /Part1/week3/chapter11/exercise/employee_test_11.3/employee.py | 911dfb1dcd2147d814debf66f37c4af7a0925ca2 | [] | no_license | superstones/LearnPython | fa72a249a69323927da81887ce4b9f400552a1d0 | 5ea25f9b9922654d67c6b31475cdf02b9fe99c7e | refs/heads/master | 2023-06-24T10:40:18.639288 | 2021-07-22T08:34:11 | 2021-07-22T08:34:11 | 370,679,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | class Employee():
"""一个表示雇员的类"""
def __init__(self, first_name, last_name, salary):
"""初始化雇员"""
self.first_name = first_name.title()
self.last_name = last_name.title()
self.salary = salary
def give_raise(self, amount=5000):
self.salary += amount
| [
"292454993@qq.com"
] | 292454993@qq.com |
14bdb06d5bb95f9fbbc5ff0de051c6d5130fe37d | 289394703a7ff0a054b00b0f9550eecedd09514a | /sentiment-calculation/kraken-Sentiment.py | fc1c77e291ef4afcb61c6be789308586ea80dcac | [] | no_license | marcellinamichie291/Blockchain-companies-Analysis-based-on-Tweets | 20061f0ffaee11ae50ec6e8ca837bb57389fd910 | 6c1c85b871b8364db0fedeb946b59ffb9a25739c | refs/heads/master | 2023-03-15T16:58:30.720183 | 2019-03-12T19:59:09 | 2019-03-12T19:59:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | from textblob import TextBlob
my_file = 'kraken.csv'
while True:
try:
f = open(my_file,'r',encoding='UTF-8-SIG')
except:
print('Error!Please reenter the path')
my_file = input("input the path of the file:")
continue
else:
break
header_var = f.readline()
header_var ... | [
"thoffy.yuanli@gmail.com"
] | thoffy.yuanli@gmail.com |
420a8953673f37c74c180f8f6ff2ca8d4eb67714 | c30bdf79b271def2bb8c6ac67a6b1598540ad4ad | /ScrapDjango/ScrapDjangoApp/migrations/0002_auto_20200322_1833.py | 6d326d95b6d8bb2432f8abe80b61909274a530c3 | [] | no_license | naveenyadav31/NaveenRepoMar20 | a77f85a40b91093cd5dcb4ed66d897493ba2ba1d | ea5964a28a8b0abd3d70c3f8569f1e1c468cb4cd | refs/heads/master | 2022-08-14T14:30:25.730104 | 2020-03-22T20:24:20 | 2020-03-22T20:31:22 | 249,259,321 | 0 | 0 | null | 2022-07-29T22:28:30 | 2020-03-22T19:43:18 | Python | UTF-8 | Python | false | false | 730 | py | # Generated by Django 2.1.3 on 2020-03-22 13:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ScrapDjangoApp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='CompanyDetails',
fields=[
... | [
"naveenyadav31.ny@gmail.com"
] | naveenyadav31.ny@gmail.com |
c2ad53098881126cf3216483b39d65efcb8d5136 | 807a9f48de01fe9c2ae8200dbce0f590dcc6d0a7 | /jd/api/rest/__init__.py | a29e7abd846b521334424ed92761313fefa929b0 | [
"MIT"
] | permissive | onsunsl/DjangoBlog | 51cb01082253ebf6010a7d57ba6ce838f4809461 | 1df83f7ac0ef95433dd5a68cd8d00d37f6e8d6bd | refs/heads/master | 2020-04-02T13:49:17.860496 | 2020-03-22T13:50:01 | 2020-03-22T13:50:01 | 154,498,765 | 0 | 0 | MIT | 2018-10-24T12:38:39 | 2018-10-24T12:38:39 | null | UTF-8 | Python | false | false | 1,352 | py | # 商品类目查询
from .jdUnionOpenCategoryGoodsGet import jdUnionOpenCategoryGoodsGet
# 优惠券领取情况查询接口
from .jdUnionOpenCouponQuery import jdUnionOpenCouponQuery
# 京粉精选商品查询接口
from .jdUnionOpenGoodsJingfenQuery import jdUnionOpenGoodsJingfenQuery
# 链接商品查询接口
from .jdUnionOpenGoodsLinkQuery import jdUnionOpenGoodsLinkQueryt
# 获取推广商品... | [
"onsunsl@foxmail.com"
] | onsunsl@foxmail.com |
318a6e97cca409e25716d06aa9711f7488b5bec7 | a0a5b214597f31b74fe31158a37eec355b01069b | /Python 3/ReadCurrentExt_Serial.py | 58028886d16f20bd28784d00caa0d04dd15f4798 | [
"Apache-2.0"
] | permissive | AxidS/5492B | 9f8d0552398fdd832c1ec7f6501ca2a708746c78 | 3132ecf37b52b4b49f3751ec817453adcb9205fe | refs/heads/master | 2022-03-31T19:39:32.262086 | 2020-01-13T22:22:54 | 2020-01-13T22:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | import serial
import time
ser = serial.Serial()
ser.baudrate = 9600
ser.port = 'COM5'
ser.timeout = 0.05
print(ser)
ser.open()
print(ser.is_open)
duration = input("Enter minutes to capture: ")
timeout = int(duration)*60 + time.time()
print("timeout= ",duration)
print(time.time())
fn = "c:\\temp\\"+str(time.localtime... | [
"rroth@bkprecision.com"
] | rroth@bkprecision.com |
1bc0f805854c09b11b51a847b87292c556448efd | 9df1931bbccaa9dd9857550301c1797e68c76899 | /Threat_detection/detect_threat.py | 09fa8b47bf9c12ed40f6ce48db96f13c6b21d49d | [] | no_license | selvathiruarul/Threat_detection | df5c5c5ebaf6abb2059c4a04568fb0747c55d0b5 | a5fe5cda78e8e165c29ac4366a3b01041711dcf5 | refs/heads/master | 2021-07-06T22:46:19.342014 | 2017-10-01T04:35:01 | 2017-10-01T04:35:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | import io
import os
from google.cloud import vision
from google.cloud.vision import types
client = vision.ImageAnnotatorClient()
from flask import Flask, render_template, request
import urllib, cStringIO
import urllib
import boto3
from PIL import Image
import requests
app = Flask(__name__)
s3 = boto3.client('s3')
de... | [
"selvak26@gmail.com"
] | selvak26@gmail.com |
181b8daf2945fae532bbd054c7f7d63f2582dbe1 | 95c3c587907ae38b11faacc4d2ebe1df8f5b3335 | /ASSGN-FlowControl-Aug16-Q3-Jyoti.py | 2933fbd0945cae6d8492dde2787e2ed8aee49a60 | [] | no_license | sandhyalethakula/Iprimed_16_python | d59cb47d2d2a63c04a658c8b302505efc8f24ff4 | c34202ca155819747a5c5ac4a8a5511d425f41a1 | refs/heads/main | 2023-08-16T11:40:11.005919 | 2021-09-29T13:22:32 | 2021-09-29T13:22:32 | 411,956,547 | 0 | 0 | null | 2021-09-30T06:57:13 | 2021-09-30T06:57:12 | null | UTF-8 | Python | false | false | 702 | py | '''
1.ask the user to enter the username
2.if the username is admin then ask the user to enter the password.
3.if the password is admin123 then greet the user and end the program.
4.if the password is not admin123 then display wrong password.
3.if the username is not admin then ask the user to enter the username a... | [
"noreply@github.com"
] | sandhyalethakula.noreply@github.com |
4b3f5b43a6f4c33988bc4e9877e6fb532f6fa3d8 | 5582f0d2d85827b4ae36eb41a099c098164fb3b0 | /CodeForces/Week2/WayTooLongWords.py | b0ad808a40187b5f9944674b27a67fe60b62a850 | [] | no_license | Coder481/Compititive-Programming | b467793a21120e277afd7a232434300b3e577586 | ccaba636ba0dfdc0a971fcd21bbb2fe69662ab7d | refs/heads/master | 2023-05-31T05:56:39.035796 | 2021-07-14T06:27:01 | 2021-07-14T06:27:01 | 293,406,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | #https://codeforces.com/contest/71/problem/A
n=int(input())
l=[]
for _ in range(n):
s=input()
if len(s)<=10:
l.append(s)
continue
else:
st=''
sl=[s[0],len(s)-2,s[len(s)-1]]
for e in sl:
st+=str(e)
l.append(st)
for e in l:
print(e)
| [
"noreply@github.com"
] | Coder481.noreply@github.com |
35dba87c97d56f3b8ddd13d57be85555fba8ac15 | 0858863b68940039fdbf1b6882b3583bb13f9229 | /basic_algorithms/sorting/bubble_sort.py | c5e73982e445a80374d4ce6318f92436d08f70dd | [] | no_license | floreskul/basic_algorithms | 42d0e915acece985ffcabc0730d5a7efde9b5cf1 | be3e3d315c85f3779af72932d7266835dc18990e | refs/heads/master | 2021-01-25T04:01:16.363877 | 2015-03-31T18:42:36 | 2015-03-31T18:42:36 | 8,030,385 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
Bubble sort algorithm implementation.
Description: http://en.wikipedia.org/wiki/Bubble_sort
Possible optimization: stop if nothing is swapped during the iteration
"""
def bubble_sort(x):
n = len(x)
# elements [n-k-1:n] are sorted
for k in range(n):
for i in range(1, n):
... | [
"volodymyr@floreskul.name"
] | volodymyr@floreskul.name |
76005451df4b98e26f5a45e211e84ba236dd3472 | a47c11905907cb76d5c32382383d9e2b00f24599 | /exercises/guided_tutorials/advent17/4_1.py | 28d41107e1f1e2e8fd106d90e1a844ec5b5c343e | [] | no_license | tetrismegistus/minutia | 9ea7db3c7e9f164c83a8cc3f082000fd894fb55b | 51d0d41740701ef117598ef3e00c99e208ee5ca8 | refs/heads/master | 2022-12-06T15:16:59.968911 | 2020-07-22T21:42:47 | 2020-07-22T21:42:47 | 160,570,462 | 12 | 1 | null | 2022-11-22T05:16:44 | 2018-12-05T19:51:17 | Python | UTF-8 | Python | false | false | 196 | py | lines = [line.rstrip('\n') for line in open('input.txt')]
valid_count = 0
for line in lines:
if len(line.split()) == len(set(line.split())):
valid_count += 1
print(valid_count)
| [
"madducks@byzantium.attlocal.net"
] | madducks@byzantium.attlocal.net |
e502575baa2f6c432deaaddc403813e180ab46b6 | 9a59136eb5dd5162b1f928955285b83771119c89 | /demo.py | 20e47101caa26406c557b44f0bb0b09c08e28c71 | [
"MIT"
] | permissive | vo3xel/dash-demo | b90d6b5643c64092e255f70078bc62baa73cc213 | a07497f7b078a7f657dd3167ac0bfed2a4a182dd | refs/heads/main | 2023-03-10T03:01:44.788201 | 2021-02-21T20:07:48 | 2021-02-21T20:07:48 | 340,877,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from os import getcwd
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.express as px
import pandas as pd
import json
with open('column_names.json') as json_file:
column_names = json.load(json_file)
filepath = getcwd() + "/... | [
"greensunbeam@gmail.com"
] | greensunbeam@gmail.com |
4027b8b586e455538c009e3f9d23e2020e8e842c | ac9b8a7b6a84a9abc357fc0904459008a90a55b4 | /Model/MarkMethodPixelOffset.py | 58aaaf225b8b2ce1dd41505fe21122bc362ba78c | [] | no_license | alex-ong/TFRevolution | a8a242e657cb9318d0ce8b6b013b2c2a4c911468 | f321a182a9b08b65c22b507bbd221c5e7c8c2d58 | refs/heads/master | 2021-04-27T08:00:16.931824 | 2018-09-13T14:50:40 | 2018-09-13T14:50:40 | 122,644,858 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | from Model.PlayerData import PlayerData
def hexNoLeader(number):
return hex(number).replace("0x", "")
def ToHex(numbers):
return ('#' + hexNoLeader(numbers[0]).zfill(2) +
hexNoLeader(numbers[1]).zfill(2) +
hexNoLeader(numbers[2]).zfill(2))
#method for marking an image base... | [
"the.onga@gmail.com"
] | the.onga@gmail.com |
94bf47f37dada2742217b05e5a04aeabbb8f24da | 4e755306324c98e13db12b8047df715a2352157a | /scraper2/grid.py | 74ace0ec19dd23349c14458feb841f001ce27a9e | [] | no_license | ghjafari/sandbox | 3a085fc33f749f817e54667f812c66f2a1c43c0e | 07a2232021b3d687e54a0cce758129293575ac06 | refs/heads/master | 2022-02-11T19:44:05.690902 | 2019-06-25T15:43:17 | 2019-06-25T15:43:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | from Tkinter import *
class Top_Frame:
def __init__(self, root):
top_frame = Frame(root, bg='cyan', width=450, height=50, pady=3)
top_frame.grid(row=0, sticky="ew")
# create the widgets for the top frame
model_label = Label(top_frame, text='Model Dimensions')
width_label =... | [
"ginojafari@Ginos-MacBook-Pro.local"
] | ginojafari@Ginos-MacBook-Pro.local |
5554d0c4df92068f5afe4ea1f722d4e8f9a2430a | 431a9640523fb9075dc35684dee8d774beca9147 | /app.py | e2fb6d47eba2227a8833a8638dfe1cbeec6bd374 | [] | no_license | MD-ASIF/SentimentAnalysis | ce3642bc6d1dc9c136f176bf0646d585e1217d68 | 3a38d2e9e94918af14b6d41f170475322cce858c | refs/heads/main | 2023-02-05T18:31:41.290455 | 2020-12-30T14:47:46 | 2020-12-30T14:47:46 | 325,073,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py |
# coding: utf-8
# In[ ]:
from flask import Flask,render_template,url_for,request
import numpy as np
import pickle
import pandas as pd
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.naive_bayes import MultinomialNB
from werkzeug.wrappers ... | [
"noreply@github.com"
] | MD-ASIF.noreply@github.com |
5c5f3cdad8b7993f138f1ac54983ef6ff5b698e7 | 170026ff5b435027ce6e4eceea7fff5fd0b02973 | /glycan_profiling/output/report/glycan_lcms/render.py | 69e118fb688103df4b9b16b637b8f25d227bd523 | [
"Apache-2.0"
] | permissive | mstim/glycresoft | 78f64ae8ea2896b3c4f4c185e069387824e6c9f5 | 1d305c42c7e6cba60326d8246e4a485596a53513 | refs/heads/master | 2022-12-24T23:44:53.957079 | 2020-09-29T13:38:20 | 2020-09-29T13:38:20 | 276,471,357 | 0 | 0 | NOASSERTION | 2020-07-01T20:04:43 | 2020-07-01T20:04:42 | null | UTF-8 | Python | false | false | 6,222 | py | import os
from glycan_profiling import serialize
from glycan_profiling.plotting import summaries, figax, SmoothingChromatogramArtist
from glycan_profiling.plotting.chromatogram_artist import ChargeSeparatingSmoothingChromatogramArtist
from glycan_profiling.scoring.utils import logit
from glycan_profiling.chromatogram_... | [
"mobiusklein@gmail.com"
] | mobiusklein@gmail.com |
cff53fecf51d0e64a633176aa621ec6096885e72 | 66f886031e34eb0e36c62fd875e84c5bad200e05 | /test/migrations/0007_url_urlname.py | 150d0693248221e0b21bf0d9b8203aedf5fd829f | [] | no_license | teamone-teamone/test | 6777acf4ff697bcfea4256309243d141ae824a68 | 37d655dce00b06c0fba501b106d2d14455208953 | refs/heads/master | 2023-07-11T00:21:32.022609 | 2021-08-13T10:13:50 | 2021-08-13T10:13:50 | 381,774,521 | 0 | 1 | null | 2021-08-13T10:13:51 | 2021-06-30T16:56:35 | CSS | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.2.4 on 2021-07-02 14:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('test', '0006_auto_20210701_2105'),
]
operations = [
migrations.AddField(
model_name='url',
name='urlname',
... | [
"papajuju123@naver.com"
] | papajuju123@naver.com |
97765b56d0f8bf1e285cb72452f3e828dd94d338 | e54d7c98ceb729a1fd7719559593d926cd99fb97 | /figures/compare_mean_var.py | 3f63f5242d8a6f210fc101482123a59b7919e6bf | [] | no_license | jbRothschild/shift-stochasticity | c065d17894efd13703426c5febd6530932824e46 | 03b3217aaa9df013beb1f73a3c16d8579281e170 | refs/heads/master | 2023-06-09T11:46:12.029225 | 2019-12-12T17:56:25 | 2019-12-12T17:56:25 | 140,765,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | import numpy as np
import sys, os
sys.path.append(os.path.abspath('..'))
import mte.shiftStochasticity as ss
from fig_variables import stochasticity, K, variability
import fig_variables as fv
import matplotlib.pyplot as plt
plt.style.use('parameters.mplstyle') # particularIMporting
def mean_var(probability_function, ... | [
"jerben.rothschild@gmail.com"
] | jerben.rothschild@gmail.com |
0af9f115b132d0a45574e2f7a2a35e7cf0888ee8 | 1dbf154fc292d9a865126c1ac66a44ab80129da3 | /controls/views.py | a19b8a856f62022ad186abc9d678c78fb1f7b8ba | [] | no_license | sadmanshafiq/qctrl_challenge | 44dd7a375d46d4bfe1c2fd58ca95883fbcc42a5b | c336491549fe85e2f70b62f9a67a340b27280f4f | refs/heads/master | 2021-09-28T06:05:24.460674 | 2020-01-09T00:48:52 | 2020-01-09T00:48:52 | 228,962,802 | 0 | 0 | null | 2021-09-22T18:16:12 | 2019-12-19T02:56:13 | Python | UTF-8 | Python | false | false | 2,846 | py | # views.py contains the logic behind search functionality, import and export functions and other test functions
# which were explored to gain a better grasp of api functionality
from django.shortcuts import render, get_object_or_404, HttpResponse
from tablib import Dataset
from rest_framework.viewsets import ModelView... | [
"saadmanshafiq@gmail.com"
] | saadmanshafiq@gmail.com |
c8b3f7877605ee22e4fb7352e90bf9d0438a9629 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/aphotomanager/testcase/firstcases/testcase5_011.py | c948b113972a58ee17f3e78f54b86d42dff91b4c | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
6c5072186f396a99399d105dbe712d8e22b30afa | 75760758bc9de6ba75dfc60a9533904c14b7a0e3 | /indian_flag_turtle.py | 042c5c32d688f21af2a7d5f8a4de76e92735aa1b | [] | no_license | Mokarram-Mujtaba/Mini-Projects | 4358fe8ff2c7ca7d7b99f8dd74ac55a93e999f1f | dade68869ca8274c73ad86085bc1cb494de6f25d | refs/heads/master | 2023-08-07T19:04:17.954917 | 2021-09-11T21:55:27 | 2021-09-11T22:06:07 | 404,137,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | import turtle
import time
# create a screen
screen = turtle.getscreen()
# set background color of screen
screen.bgcolor("#b3daff")
# set tile of screen
screen.title("Indian Flag - https://www.pythoncircle.com")
# "Yesterday is history, tomorrow is a mystery,
# but today is a gift. That is why it is called the present.... | [
"mujtaba.mokarram@gmail.com"
] | mujtaba.mokarram@gmail.com |
c68927766180d61ec6748c9afa93e108deb458bd | 0d1f04a69b902eaf53c91ba8158d9580240a2b5e | /aggr/urls.py | 3f37dbe86298b7df04001c6538e7c2400807c3ed | [] | no_license | mhielscher/aggr | 623d1ab389402d7376b6ce455dea4b0b50368252 | 752bc2669894b4f05cfd1ef6cf5ef0ad325d12af | refs/heads/master | 2021-01-23T03:08:15.034792 | 2012-09-30T22:35:19 | 2012-09-30T22:35:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.conf.urls import patterns, include, url
import aggr_app.urls
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include(aggr_app.urls)),
)
| [
"mhielscher@gmail.com"
] | mhielscher@gmail.com |
e532c4a0865c915ecd68f08f632acc6da4255359 | ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0 | /02_algorithm/sw_expert_academy/code_problem/D5/1256.K번째 접미어/1256.py | 99e4ac4b61ae293181607c9a7012cb3c05371e32 | [] | no_license | wally-wally/TIL | 93fc1d0e3bc7d030341ed54155294c68c48b4c7d | 936783bc86f563646c0398c24e2fcaa707f0ed23 | refs/heads/master | 2023-04-28T08:59:48.235747 | 2023-04-12T12:06:52 | 2023-04-12T12:06:52 | 195,918,111 | 40 | 7 | null | 2020-09-29T16:20:46 | 2019-07-09T02:31:02 | Python | UTF-8 | Python | false | false | 647 | py | import sys
sys.stdin = open('input_1256.txt', 'r')
for test_case in range(int(input())):
alphabet = [[] for _ in range(26)]
K = int(input())
string_data = input()
for i in range(len(string_data)):
sub_data = string_data[i:]
if sub_data not in alphabet[ord(sub_data[0]) - 97]:
... | [
"wallys0213@gmail.com"
] | wallys0213@gmail.com |
529fa2292d94779760d4b375c4051a15032136bb | 7d7d23b6d12aa2c21017d12bcb480b89277f8422 | /create-session.sikuli/create-session.py | 8090694f34658b6cfb70fd9d993e94d243f55639 | [
"Apache-2.0"
] | permissive | farahabbasi/fielddb-spreadsheet-sikuli | 23e26688b655207064e911dc6aba0d4569fc3cda | 90b4b23ee9f3018269e50c3b2898d44e0fad925d | refs/heads/master | 2020-04-06T06:28:23.624558 | 2014-11-23T22:13:11 | 2014-11-23T22:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | find("1416542452932.png")
doubleClick("1416542464884.png")
type("teammatetiger\tphoneme\n")
wait(Pattern("1416543208055.png").similar(0.39))
find("1416775268385.png")
doubleClick("1416775295161.png")
find(Pattern("1416773490682.png").targetOffset(136,16))
click("1416775375191.png")
doubleClick(Pattern("1416773344427.p... | [
"farahabbasi03@gmail.com"
] | farahabbasi03@gmail.com |
2e628548c46d4f52bc806eaf49346e67e4e7680c | f5f05d9a1c21e09a3a01d052b2d88f44fc750b4a | /docker-study/docker-flask/src/fruits_api.py | 3b82887e2897438034f8845fe897e1955b41c877 | [] | no_license | cdsl-research/weekly-study-meetings | a44cb0193f56793e6c8e3155918ff8839326b3f5 | 4e1aad7c6eb08a48f2e6367c834ef55cf4c36424 | refs/heads/master | 2022-11-13T05:36:31.644731 | 2020-06-28T11:23:50 | 2020-06-28T11:23:50 | 259,012,811 | 1 | 0 | null | 2020-06-15T05:10:32 | 2020-04-26T11:25:57 | Python | UTF-8 | Python | false | false | 1,004 | py | from flask import Flask, render_template, make_response, jsonify
fruits_list = {"apple":{"price":100, "stock":50}, "orange":{"price":130, "stock":30},
"grapes":{"price":220, "stock":55}, "banana":{"price":140, "stock":60}}
app = Flask(__name__)
@app.route('/')
def index():
return "TEST API!"
@app.route('/a... | [
"takahyon@gmail.com"
] | takahyon@gmail.com |
5bed5261fff2c6a731279c90733b4a1f9d2bc740 | 4ace01e0cf611ff290907235db2c8a48eb5fe861 | /lambdamart_model_ltr_seprate_snaps.py | 887c2149d4d2c159f7f15fd070112b83fb12dfc1 | [] | no_license | ziv0808/clueweb_history | 2a4637f8ee3d3aad4b7b66a63bbc75c177540f10 | ca476147bdb608bd22de2c81e63771983a46650d | refs/heads/master | 2021-08-08T14:59:50.369798 | 2021-06-28T11:03:34 | 2021-06-28T11:03:34 | 208,800,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,356 | py | import sys
from utils import *
from rank_svm_model import run_bash_command, turn_df_to_feature_str_for_model, split_to_train_test, get_trec_prepared_df_form_res_df, create_sinificance_df, create_fold_list_for_cv
def run_lambdamart_model(test_file, model_file, predictions_folder):
predictions_file = os.path.join(... | [
"zivos0808@gmail.com"
] | zivos0808@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.