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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11c2af59915f855e5b91696c43428b3b72ded724 | a08d62043d2f78215d6ba19079b931dab39618be | /series.py | 047e2d1de6ea98b9b8b7e81f0592b7b6d6f76182 | [] | no_license | deschila/Blob | 52c0b69cc9b7f3ed99e08a478e05283979043b00 | 6269194be613476eb8d6c156232946738f5b661a | refs/heads/master | 2016-09-01T16:55:52.081404 | 2014-03-06T16:39:51 | 2014-03-06T16:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | '''
Created on Feb 26, 2014
@author: deschild
'''
import scipy.signal
import pylab
import numpy
from numpy import pi,exp,sqrt
sigmas=[0.25,0.5,1,2,4,8,16,32,64,128]
g=[]
def mexican_hat(a,sigma):
x=numpy.arange(-a//2,a//2+1)
return -sigma**2/(sigma*sqrt(2*pi))*(x**2/sigma**4-1/sigma**2)*exp(-x**2/(2*sigm... | [
"auroredeschildre@gmail.com"
] | auroredeschildre@gmail.com |
def6c80510f1499535bb98a7f44dee2849ced408 | 309d86ef0dd2e3aab15f48476dc5464cd816001c | /get_gt_txt.py | 66c6dba090da1ed16d873e72a69a1df9012d9131 | [] | no_license | daiwei9501/pcb-defect | 424e4a0d2b802ac4f8a522e643f7a2f58d51c40b | 50cbda3963328f8f410cb9a927d6015a46581771 | refs/heads/master | 2022-11-07T17:55:27.839488 | 2020-06-22T11:42:40 | 2020-06-22T11:42:40 | 274,120,856 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | #----------------------------------------------------#
# 获取测试集的ground-truth
#----------------------------------------------------#
import sys
import os
import glob
import xml.etree.ElementTree as ET
xmlfilepath=r'./model_data/label_train/'
temp_xml = os.listdir(xmlfilepath)
total_xml = []
for xml in temp_xml:
i... | [
"kbe206@163.com"
] | kbe206@163.com |
9da29f74684274cea4a32592532b7803a906b035 | fd1616921e3611f8e2cfc1129cd23734879cd866 | /apps/guest_list/views.py | 38d58a78295cbcbb614cf948c99205bf86008dce | [] | no_license | tonjohn/wedding_planner | ae6ab8655cccd29831a767a8e0c02dc70e85a577 | 47c4f516b3ea38ea42f4ff39c843ac93786c93be | refs/heads/master | 2021-01-20T03:01:31.279355 | 2017-03-03T17:43:36 | 2017-03-03T17:43:36 | 83,824,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | from django.shortcuts import render
from django.contrib.auth import login
# Create your views here.
from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.urls import reverse_lazy
from .models import Wedding
from django.contrib.auth.models import User
def index(request):
return render(... | [
"git@tonjohn.com"
] | git@tonjohn.com |
d49a088bb0cfd1df5be0927b59cd9782ace85d05 | d0e83b3f551c6af16aa0c8ed4ff074b3ec268120 | /processors/feat.py | e48cc144ee2ba12b7865cdbb61a44eb472849820 | [] | no_license | SamuelLAN/kaggle_SCTP | cfb0228a81d71b2f1c315352bd6435042066967f | 50ff2895baa6de29bdb19bfb20ca76718079d188 | refs/heads/master | 2020-04-25T16:22:07.803524 | 2019-04-03T09:06:12 | 2019-04-03T09:06:12 | 172,909,260 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/Python
# -*- coding: utf-8 -*-
import numpy as np
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
def lda(train_x, train_y, val_x, test_x):
''' LDA reduce the dimensions of the features '''
_lda = LDA()
train_x = _lda.fit_transform(train_x, train_y)
val_x = _lda.... | [
"412206186@qq.com"
] | 412206186@qq.com |
a00c26fde829171625876699fcb8f48c7456fb31 | b0f151047c8313fd18566b020dab374f0d696f96 | /academicstoday/tenant_foundation/migrations/0001_initial.py | 4697863b5fa9d9f2584ea2c1b7fe5bd71ebe30d6 | [
"BSD-3-Clause"
] | permissive | abhijitdalavi/Django-paas | 4c65477f3865a344a789e4ff0666f792dfda13a6 | cf58cf216d377ea97a2676cd594f96fb9d602a46 | refs/heads/master | 2022-04-01T06:27:50.409132 | 2018-04-09T23:35:32 | 2018-04-09T23:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,970 | py | # Generated by Django 2.0.4 on 2018-04-08 23:08
from decimal import Decimal
from django.db import migrations, models
import djmoney.models.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course',
... | [
"bart@mikasoftware.com"
] | bart@mikasoftware.com |
e3c3e76cd3f6345219ed73d91c75b8ea32a227b5 | eab1756b01717e81537133400f36aea4d7a0876f | /dawn/launch-tong.py | cc90b2066a548a7ed4ba16879b0631e9ccd5a8e5 | [] | no_license | bearpelican/cluster | d677fe392ac1196b77e3f8fb79e530ec8371080f | 2e316cf1def0b72b47f79a864ed3aa778c297b95 | refs/heads/master | 2020-03-21T06:52:57.514901 | 2018-08-10T10:20:26 | 2018-08-10T22:33:05 | 138,246,892 | 3 | 1 | null | 2018-06-22T02:51:07 | 2018-06-22T02:51:07 | null | UTF-8 | Python | false | false | 2,593 | py | #!/usr/bin/env python
# numpy01 image, see environment-numpy.org for construction
# (DL AMI v 3.0 based)
#
# us-east-1 AMIs
# numpy00: ami-f9d6dc83
# numpy01: ami-5b524f21
from collections import OrderedDict
import argparse
import os
import sys
import time
import boto3
module_path=os.path.dirname(os.path.abspath(__f... | [
"yaroslavvb@gmail.com"
] | yaroslavvb@gmail.com |
29a331d74f6806dca2a533c596b4dc2abd4096e1 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14345.py | d79cee8f8289303a6c465582266bd21f8614a8c8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | # convert hex ascii mixed string like r'\x74op' to 'top' in python
s.decode('string_escape')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
6a4e9dc367ef4b1f0f0362c7eb17f087cd7e3543 | 6c3eb7cdb18757bff3d60a76eb060d0f2e24ab01 | /extra/tests.py | 142c114321cf7990ed7acadc150ec9b294a27f23 | [
"MIT"
] | permissive | aldnav/eventure | f8951c24849d3c15927742ddb9875beb5c852708 | 024e3720205265e3c69e6c2c65f89a09c5aafdd8 | refs/heads/master | 2020-12-02T20:53:48.953796 | 2017-07-06T07:33:21 | 2017-07-06T07:33:21 | 96,227,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.core import serializers
from django.test import TestCase
from .views import ActivitySerializer
from .models import Post
from activity.models import Activity, Verb
class SerializerTestCase(TestCase... | [
"aldrinnavarro16@gmail.com"
] | aldrinnavarro16@gmail.com |
926b24d0a94b3e12e0e179860edc829514da68c5 | 44a240d2bda10e69e2d2ce20e1a947e4e0e41356 | /tests/sqlqa/tests/security/qi_ddl/tcase1.py | b479c91f8a9d49fefff843ad964d21f73cc6983a | [
"Apache-2.0"
] | permissive | trafodion/tests | 99c3da3a7b68805649df0950e5083eadc9cfc94a | d0227026fe9172f3749c453f76f249e27c91dc39 | refs/heads/master | 2021-01-10T01:56:22.515028 | 2015-06-25T18:37:27 | 2015-06-25T18:40:21 | 36,892,411 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 66,498 | py | # @@@ START COPYRIGHT @@@
#
# (C) Copyright 2015 Hewlett-Packard Development Company, L.P.
#
# 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/LICENS... | [
"steve.varnau@hp.com"
] | steve.varnau@hp.com |
3ef43777b05972b64a9d10046115d44bce3e8128 | 0c672b0b8431064617831d16bf0982d5d3ce6c27 | /utils/proxy_api.py | bf5056d222433e6c27a71950ba9f9d043be6d898 | [] | no_license | buxuele/amazon_books | 617327376044ffd4e760fdc1a71962119717cfe8 | 691bd3e48bd1730dbc4a4a855e84e0b1c3e9c2ec | refs/heads/master | 2023-03-09T23:18:14.730828 | 2021-03-01T10:53:47 | 2021-03-01T10:53:47 | 342,610,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | import time
import requests
from utils.my_timer import timer
from utils.get_user_agent import get_a_ua
from utils.mongoDB import Mongo
import config # 根目录 数据库名称。
from pprint import pprint
from concurrent.futures import ThreadPoolExecutor, wait, ALL_COMPLETED
class SmallProxy:
def __i... | [
"baogexuxuele@163.com"
] | baogexuxuele@163.com |
8454ccc4b597b6f6f9f3ef369f835a61140dab1a | 4795a38e5d924301be3b599576f0bb4a114ff742 | /lambdata_wel51x/setup.py | b8c96a711954da53cce862130b915e55cef52b99 | [] | no_license | wel51x/lambdata | 8e9a3cf9612f1bb157b27838a457b268da1dc4ed | 3d001df4641442838b7506a72f38cb176371738d | refs/heads/master | 2020-04-29T18:37:28.238625 | 2019-03-19T22:34:47 | 2019-03-19T22:34:47 | 176,329,400 | 0 | 1 | null | 2019-03-19T20:32:55 | 2019-03-18T16:44:56 | Python | UTF-8 | Python | false | false | 757 | py | """
lambdata - a collection of Data Science helper functions
"""
import setuptools
REQUIRED = [
"numpy",
"pandas"
]
with open("README.md", "r") as fh:
LONG_DESCRIPTION = fh.read()
setuptools.setup(
name="lambdata-wel51x",
version="0.0.5",
author="Winston",
description="A collection of Da... | [
"wxl51@yahoo.com"
] | wxl51@yahoo.com |
eecde9e85f8bbc1b9eda6d9cab643cadd93edcab | d970e32d23e84fe0f6b5ba1694e2958d52fce586 | /sample_scripts/sample_tokenization.py | f165ed859675d95ce1ca9d1aa24545228ddd3e2f | [
"MIT"
] | permissive | Kensuke-Mitsuzawa/sample-codes-supporters-tutorial | 8e6f1ed794732fa87176333286e65898e321f60f | ae9b544ddd3a782e76a30af257b43f88341ba696 | refs/heads/master | 2023-05-31T22:15:03.313349 | 2018-02-27T02:07:00 | 2018-02-27T02:07:00 | 79,502,186 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,661 | py | from JapaneseTokenizer import MecabWrapper
from typing import List, Tuple, Dict, Union, Any
import json
import logging
import collections
import itertools
logger = logging.getLogger()
logger.setLevel(10)
SLEEP_TIME = 2
"""形態素分割のサンプルコードを示します
Python3.5.1の環境下で動作を確認しています。
"""
__author__ = "Kensuke Mitsuzawa"
__author_em... | [
"kensuke.mit@gmail.com"
] | kensuke.mit@gmail.com |
7685a07ea0e0d44c960990af54d51824a35aed57 | 13153768dc35472d847353c6a3373fff24c159bb | /GA/aux.py | 7161765ea80b4841be6c60cd1e5c719085c61b3e | [] | no_license | enderteszla/TUNM | 8eab0716a7b22552f2b8a53c704bd59ee3965106 | d172e38691b21ce80c741cc0e6a8b76f96b54fd0 | refs/heads/master | 2016-09-06T01:03:21.384339 | 2015-03-29T23:32:37 | 2015-03-29T23:32:37 | 32,137,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | __all__ = ['best']
best = lambda population: [
ind for ind in population
if ind.fitness.values == min([i.fitness.values for i in population])
][0] | [
"lev.bezborodov@b8cebac3-3f1a-1c64-7dfa-60fbc24048fd"
] | lev.bezborodov@b8cebac3-3f1a-1c64-7dfa-60fbc24048fd |
25e16b899e4063fcda6e3fafd0bc309ec46ee237 | 58e09fac582a76428819e167e42e60765d11bb11 | /space/lib/python3.7/encodings/euc_jp.py | f2043f483c14dcf9d4db30740df0f2159cfe1ea2 | [] | no_license | shanthimadugundi/DB_Project | 25eb2a0e7504f81484ad11c0fa9e902b038c85b4 | b5ba55af1bcddde164cecc60d331d615dd477165 | refs/heads/master | 2020-04-27T05:14:56.107466 | 2019-03-06T05:31:23 | 2019-03-06T05:31:23 | 174,075,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | /Users/shanthimadugundi/anaconda3/lib/python3.7/encodings/euc_jp.py | [
"shanthimadugundi@Shanthis-MacBook-Pro.local"
] | shanthimadugundi@Shanthis-MacBook-Pro.local |
36592ba9364dac1e2332e9d9e3ec3f1905d902af | 55aabd8c929bce49d782052a8ee4c2bad10c054a | /PTI/Semanas/semana_12/Floofy/floofy_project/group_chat/consumers.py | f202efd173711d9b3c5dde3df69e8f94c5d424a9 | [] | no_license | fc51648/floofpoof | 0d6504595f94d99789adf86342ebda316976d2f6 | 56f51857440580cba66453a0198cc047b6650894 | refs/heads/master | 2021-01-05T01:13:14.818140 | 2020-05-31T12:03:10 | 2020-05-31T12:03:10 | 240,823,265 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,494 | py | import asyncio
import json
from datetime import datetime
from channels.consumer import AsyncConsumer
from channels.db import database_sync_to_async
from .models import Thread, Message
from login.models import User
class GroupChatConsumer(AsyncConsumer):
async def websocket_connect(self,event):
print("co... | [
"50746014+mika359@users.noreply.github.com"
] | 50746014+mika359@users.noreply.github.com |
8b50a7f79df8def13350eb875f2f7b867647b445 | e4d67c58fc137a43219bd0929b1726ea3e7c162e | /crypto.py | 3ca54435fb39617611e1c75a243571c415ddc288 | [] | no_license | hanumancode/Crypto_Price_Search-Python | c073e5fddeee50f692575386da116503e572382e | 6f79f33f9f79ed36dbbee667d6cd7d0743a7e7cf | refs/heads/master | 2020-03-21T06:25:49.824151 | 2018-06-23T04:52:25 | 2018-06-23T04:52:25 | 138,218,901 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import requests
while True:
# base URLs using version 1 of the CoinMarketCap API (version 1 expires Nov. 2018)
globalURL = "https://api.coinmarketcap.com/v1/global/"
tickerURL = "https://api.coinmarketcap.com/v1/ticker/"
# get data from CoinMarketCap GlobalURL
r = requests.get(globalURL)
data = r.json()
glob... | [
"garethjones@cybertron.local"
] | garethjones@cybertron.local |
9659ced7af3577de6990b453926b3485f97d8211 | 5fac032f8886a0d1ea1c46b6bb3d5e691dd93263 | /post_tags/__init__.py | 6b7a5bc215c0fa1eae93caf1444a95951533a6ae | [] | no_license | nss-day-cohort-50/rare-server-cohort-50-python-prowlers | b0959104ca034f7b71410a9abebcb19a229a3b92 | d4117e2eb0128d23eb539f2467afb886a93b7543 | refs/heads/main | 2023-08-23T01:27:40.017102 | 2021-10-29T16:21:42 | 2021-10-29T16:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from .request import get_post_tags
| [
"t.hall89d@gmail.com"
] | t.hall89d@gmail.com |
fcef5eb2c6ab66ee64ce82f47999b9459c1ee354 | 833d4cc8ec460902d0a8beb7f2e1ab13ba9114d0 | /mppsolar/inout/mqttio.py | faa853fd2256a0d20b39218bd899ffb53f307496 | [
"MIT"
] | permissive | jblance/mpp-solar | 3d834e88715591ec63c2abbff97b41417286f451 | d541a7ec05754c570c44db21f271f5628c7f19e3 | refs/heads/master | 2023-08-31T10:09:36.558171 | 2023-08-24T22:42:36 | 2023-08-24T22:42:36 | 102,808,429 | 284 | 141 | MIT | 2023-09-11T20:47:11 | 2017-09-08T02:35:31 | Python | UTF-8 | Python | false | false | 4,050 | py | import binascii
import json as js
import logging
import time
import paho.mqtt.client as mqttc
# import paho.mqtt.publish as publish
# import paho.mqtt.subscribe as subscribe
from ..helpers import get_kwargs
from .baseio import BaseIO
log = logging.getLogger("MqttIO")
class MqttIO(BaseIO):
def __init__(self, *... | [
"john.blance@gmail.com"
] | john.blance@gmail.com |
963851975254a22ca724f644a061194ef41869cf | fd2f83e58ef2639e03645cc056208a05ed868321 | /linear_regression.py | d4b15c9d2f289a12c4ba30435b8f7ed025af9e0f | [] | no_license | shishirkumar1996/StockMarketPrediction | d642b6a87256e52127e627bff0c2d24d5f6a1598 | ebaa500dbdf1b992c5722c591da03193f3df92f2 | refs/heads/master | 2020-04-10T05:03:31.384883 | 2018-12-15T10:53:31 | 2018-12-15T10:53:31 | 124,264,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from statistics import mean
def best_fit_slope_and_intercept(xs, ys):
m = (((mean(xs) * mean(ys)) - mean(xs * ys)) /
((mean(xs) * mean(xs)) - mean(xs * xs)))
b = mean(ys) - m * mean(xs)
return m, b
| [
"shishirsharad@yahoo.com"
] | shishirsharad@yahoo.com |
54291cfa23973b4e7bcde6cafed94401af11aaf0 | 9b96bc6591bae6c82f8548badc92b522380806b0 | /mini_internet_shop/mini_internet_shop/urls.py | 2af1bdf8074ab95c522338d32a81039a7dcc6bd4 | [
"MIT"
] | permissive | Aijana-github/mini_shop | f694156a13e0eddd95de591a4c82dcb47213e553 | 1413b61177cc5ced7075c4ebd9f5e065950be0e2 | refs/heads/main | 2023-03-13T04:55:44.193121 | 2021-02-26T15:19:18 | 2021-02-26T15:19:18 | 341,837,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | """mini_internet_shop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"ayzhana.abdrahmanova@mail.ru"
] | ayzhana.abdrahmanova@mail.ru |
8d308bb5fcc1a686835c15b6f0c7d4dabfde7c44 | f9b7930e6f43eca26abf87b39961fc2d022db54a | /Python/medium/338. Counting Bits.py | 01ee506d021c0422aa75949e9d17355471bf95da | [] | no_license | LRenascence/LeetCode | 639452dd3bf65a14d0056c01e203a7082fbdc326 | 1a0e1d1503e0a7bff6917491a964a08c572827fb | refs/heads/master | 2021-05-12T03:41:35.346377 | 2021-01-07T23:39:14 | 2021-01-07T23:39:14 | 117,622,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | """
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.
Example 1:
Input: 2
Output: [0,1,1]
Example 2:
Input: 5
Output: [0,1,1,2,1,2]
Follow up:
It is very easy to come up with a solution with r... | [
"im.renascence@gmail.com"
] | im.renascence@gmail.com |
f2946a4c23ad594cc0f4b8c07936289cc61da596 | c851b56d27b8d9ccb8d288832ede6efe17449e50 | /app.py | cbf4b5f98c36c1df1c064e5d3b957662ebffdea6 | [] | no_license | Treviisolion/FlaskBlogly | 128aea5e98d3b1ea622ab56a31d9c283bbf9a730 | 5aacc997a304f07d91ce863b055eaafc5bccb099 | refs/heads/main | 2023-01-12T12:45:01.604980 | 2020-11-24T23:42:09 | 2020-11-24T23:42:09 | 310,968,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,118 | py | """Blogly application."""
from flask_debugtoolbar import DebugToolbarExtension
from flask import Flask, redirect, render_template, request, send_file
from models import db, connect_db, User, Post, Tag, PostTag, DEFAULT_IMAGE
import os
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = os.environ.get('DATAB... | [
"trevyncase@gmail.com"
] | trevyncase@gmail.com |
8cb10c2000d6f8c26f827835a9ea942e31a6b379 | a72ddd835be672c700d30b75131b2cf1ebc79aef | /xserver-build/.jhbuildrc | de7978b93bf9e5ca3893cdd7b97eeec9567b9c10 | [] | no_license | wzyy2/Scripts | b029f48a010249815dce1b695cb73e33f542d37d | eee34c4a8e01c9365501df3e0cc22fa3b519a76e | refs/heads/master | 2021-09-27T03:30:29.736506 | 2021-09-09T08:14:30 | 2021-09-09T08:14:30 | 60,768,097 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,397 | jhbuildrc | #!python
#######################################################################################
# This is a checkout and build configuration for building Xorg
#
# This can be copied to ~/.jhbuildrc and then run 'jhbuild build xserver'
#
#################################################################################... | [
"jacob2.chen@rock-chips.com"
] | jacob2.chen@rock-chips.com |
34322ab0be08ec02c0cf670b8835ce5086251b9a | add5ca4ed6f5a5030cfcd60a09e502390ffc4936 | /full_code/paddle/conf/img_qa_gate2_gen.py | dd3f38a36d621d037da12a1a132552fe9d2eb6ae | [] | no_license | yangyi02/vision_language | 1f0b10e648a1ef0ea88edd30e41581d25969df27 | 9c55e5115d03bab58cf6165f63c9a6f426ed87ce | refs/heads/master | 2020-04-02T19:45:25.051432 | 2018-10-25T22:32:39 | 2018-10-25T22:32:39 | 154,745,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,331 | py | # -*- coding: utf-8 -*-
from math import sqrt
import os
import sys
from trainer.recurrent_units import LstmRecurrentUnit
model_type('recurrent_nn')
# data setting
gen_list = get_config_arg('gen_list', str, './gen.list')
result_file = get_config_arg('result_file', str, './result.txt')
# dictionary setting
dict_file ... | [
"yangyi02@gmail.com"
] | yangyi02@gmail.com |
d6ec1defab5ed57216ed8a7c1927d4b569d4f5e7 | f8af2d190600221b7a597ef4de8ee15137e01266 | /django_mysite/polls/serializers.py | eef85178a606057b3aaaf04ed47a05c101d57c8e | [] | no_license | rifqirosyidi/REST-Framework-Searching | 3b4d64ca1d2217a48f1ec1c6591e1b7e1a42797d | 25481026728edfd564bb6ba18c8ce73040e07543 | refs/heads/master | 2023-04-26T02:11:43.684540 | 2021-04-12T09:43:09 | 2021-04-12T09:43:09 | 206,774,068 | 1 | 0 | null | 2023-04-21T20:36:46 | 2019-09-06T10:49:42 | Python | UTF-8 | Python | false | false | 202 | py | from rest_framework import serializers
from .models import Question, Choice
class QuestionSerializer(serializers.ModelSerializer):
class Meta:
model = Question
fields = '__all__'
| [
"rief.rosyidi@gmail.com"
] | rief.rosyidi@gmail.com |
35863bff5423a9fc84660b8948cb05b5a77d1862 | 16dc9fd93c3b19888d7762bfd3bbb81f40e8506f | /app/user/serializers.py | b2b85bc43ba7967f6725673d604147a094ad16d1 | [
"MIT"
] | permissive | nts2pd/recipe-app-api | 1c3c8832b550b8e5f55ed0e2bdf61a8dbfae2206 | e510fa826eb3f2f54a8cc568b7904725f9e2805f | refs/heads/master | 2022-12-11T21:25:38.733881 | 2020-09-04T21:04:50 | 2020-09-04T21:04:50 | 285,944,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | from django.contrib.auth import get_user_model, authenticate
from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""serializer for the users object"""
class Meta:
model = get_user_model()
fields = (... | [
"nts2pd@gmail.com"
] | nts2pd@gmail.com |
6310185185262e0b8c9fbd9853f988e7da83bb3a | 9f45780bf3d8c45fb51ba3914cfa4b1b74d606c1 | /Through/dataset.py | 14fbd188e2c6c6e8027312a754e168ddcf03c3f3 | [] | no_license | panyang/NanGeMT | da6788d4be30e68bc7ae07491a3489ee6bbf5a68 | 251a6c421e44d706217692851e74837efab5002b | refs/heads/master | 2021-06-20T06:50:44.571301 | 2017-07-23T12:58:37 | 2017-07-23T12:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,414 | py | class cfgc:
def __init__(self):
self.reduct=""
self.part=[]
class prsrc:
def __init__(self):
self.prsid=""
self.cfg=cfgc()
self.head=0
self.bind=""
class segc:
def __init__(self):
self.seq=""
self.flag="" # 'w': word string; 't': word and it... | [
"liuquncn@gmail.com"
] | liuquncn@gmail.com |
99b24238cb0af0983f78fec0cc28bb231aeb9fff | 40666ecc1de4c13e82c95a084b6b7cd98b413fc5 | /data/test.py | 8a2f9f794e8afcff2444c5191109265ab6b56d4f | [
"MIT"
] | permissive | aakashvarma/sms.ai | 6d7ee0b8e02449515237aaf7af9965b260df56ac | 87c07e279b38d25af4524c6738333710c9bc701c | refs/heads/master | 2021-10-25T03:44:55.271647 | 2021-10-18T18:30:53 | 2021-10-18T18:30:53 | 135,322,480 | 0 | 3 | MIT | 2018-10-30T17:49:53 | 2018-05-29T16:14:34 | Python | UTF-8 | Python | false | false | 2,223 | py | import os, csv, re, nltk
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.nai... | [
"aakashvarma18@gmail.com"
] | aakashvarma18@gmail.com |
9b1c082e80afc41f2c9bef919bf8a6880f827d6b | 585700f820e4eff76654735ec74a48350709dbab | /app/face_rec/setlcd.py | fe5e3b4bf985f2f4af916ea5cb4fb1473b11eb26 | [] | no_license | mozzielol/MonitoringSystem | 109259be0aaf06f36712e32fbf368146303e474c | e2fd68449dafe6e97d804da1e43a1a442dfa41ab | refs/heads/master | 2021-01-23T09:35:13.897172 | 2017-09-06T21:14:00 | 2017-09-06T21:14:00 | 102,583,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | import sys
import time
import mraa
import pyupm_i2clcd as lcd
import threading
class lcdDisplay(threading.Thread):
def __init__(self,message,color=(255,0,0),time_wait=10):
threading.Thread.__init__(self)
self.mLcd = lcd.Jhd1313m1(0, 0x3E, 0x62)
self.mLcd.setCursor(0, 0)
self.mLcd.se... | [
"noreply@github.com"
] | noreply@github.com |
ad2ce039c61d85c1c0c5640333adb3f2fc42b67e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03369/s319661754.py | ec44e017019af609a02068a512dee343db5acc9e | [] | 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 | 48 | py | S = list(input())
print(700+100*(S.count('o')))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
28eaaf517b953e0bcb7b5cc92e74bf856f9820ef | 7552bac9fefb9c6076b34e30696f2f744cae0262 | /ode_methods/ode_range_methods.py | 73306fd7cc5995da98189d8d28ed90ccbe581e06 | [] | no_license | affanshahid/es-341-project | b9d3e6863fc21f6be973765a8f39523475b59122 | 642bb0240d1bfdff2b8943ddb9701b331371a04c | refs/heads/master | 2016-09-12T13:12:01.107085 | 2016-04-13T06:31:01 | 2016-04-13T06:31:01 | 55,982,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | from utils import frange
from .midpoint import midpoint
from .euler import euler
from .euler_modified import euler_modified
from .runge_kutta_4 import runge_kutta_4
def range(ode_method, ode, initial_val, start, end, step_size=0.01):
values = []
old_val = initial_val
for t in frange(start, end + 0.00001,... | [
"affan.shahid.94@gmail.com"
] | affan.shahid.94@gmail.com |
ed81e2525e1801ed6e29af98eae7ec1f7769c79c | 62c11d52bad9deafb5839d9567dd4a443621d3c2 | /moreonseek.py | 2c57e5d3980e005174579b8bd77ecdfd5f6ee68e | [] | no_license | vijendra21vijendra/python | 1e5996d5cd71c4476ee6c9ef46d7b27a0065e79a | 16a69b46e4f163e0ce3bab75bb907a6bf15a33b0 | refs/heads/master | 2020-08-07T06:55:29.365026 | 2019-10-13T06:51:18 | 2019-10-13T06:51:18 | 213,342,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | f = open("viju.txt")
print(f.tell())
f.seek(12)
print(f.read())
print(f.tell())
f.seek(0)
print(f.read())
f.close() | [
"noreply@github.com"
] | noreply@github.com |
da5c3f07a89c6f202d1f08e7549f778c93418d77 | f9263163151d49e5e1ae570e2a1b79650457d695 | /trivia/console_interface.py | 75bd10146c2729788c05bddd0d6e0ac12f1058eb | [] | no_license | xvicmanx/py-practices | 08b0b6604e3ee9ee0227f4fc8c9e3c20f0122b0d | 15e6d37155f5212b210c74d3d29e0806c165a36f | refs/heads/main | 2023-02-26T13:09:56.504833 | 2021-02-02T14:36:32 | 2021-02-02T14:36:32 | 331,462,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | class ConsoleInterface:
def __init__(self, quiz):
self.__quiz = quiz
def run(self):
while self.__quiz.has_next_question():
question = self.__quiz.get_next_question()
answer = input(question + ' (True/False): ')
correct = self.__quiz.check_answer(answer)
if correct:
print('Y... | [
"vic3jo@gmail.com"
] | vic3jo@gmail.com |
e95708b1aa8ef5936b84897bd1b1b8c5084aa0fd | 1065145ffd39e3b030a5c18ff6b219241fefadcd | /backend/src/settings.py | 982ba9e26a3d82ff470444f7f463d193a78431c0 | [
"MIT"
] | permissive | aleksandr-kiriushin/billogram-test-app | 4c2dfd13be4fa05b99a70a57becea92281bfb0d2 | e7be0bd6276e72693c539daf5cb7ab9e043c8802 | refs/heads/main | 2023-01-18T19:27:26.628312 | 2020-11-22T21:29:56 | 2020-11-22T21:29:56 | 314,905,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | """ Settings for application set by envs """
import os
API_USER = os.getenv('API_USER')
API_PASSWORD = os.getenv('API_PASSWORD')
API_URL = os.getenv('API_URL')
SERVER_PORT = int(os.getenv('SERVER_PORT'))
| [
"aleksandr.kiriushin@gatech.global"
] | aleksandr.kiriushin@gatech.global |
dcfd94c35e67a747655ee2e3637d2bdc440bb4b4 | 803bc4e71e882463f1f1b43e1d8f10f5ca7e6a59 | /Python/serialTkinterMatplotlib.py | c0712746706bfc78bc4276fb8f8e08f1dbd125ba | [] | no_license | Freezesc/cubeUI | 924ca03fb77d949a62ef14bc179bca0140c314d8 | e6e0b09eb9362175428d35c5af7c8b0fcbe48433 | refs/heads/main | 2023-03-12T01:49:51.635291 | 2021-03-04T11:14:06 | 2021-03-04T11:14:06 | 341,109,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
import tkinter as tk
import numpy as np
import serial as sr
# ------global variables
data = np.array([])
cond = False
# -----plot data-----
def plot_data():
global cond, data
if (cond == True):
a = s... | [
"tristan.renon@hes-so.ch"
] | tristan.renon@hes-so.ch |
8a9a508c011d5569a130e6b4262c6a5004ac248c | c44f38cb20d35aa54126fb0102baf40dae78dccd | /hhr/tools/test_tools.py | 314a6ef73ffda36dfde8a320bf885dbadf7ee421 | [] | no_license | aixin2000/Test_Scripts | d2221c93eaf3fd7e0d618ca646dce6200fa3cf75 | cf92e8e81ceb5cb67217bf36993cf94fe470fd0b | refs/heads/master | 2023-03-13T08:24:34.661616 | 2021-03-04T13:40:46 | 2021-03-04T13:40:46 | 344,461,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | import configparser
import random
import os
import time
class Test_Tools:
def randomPhone(self):
headList = ["130", "131", "132", "133", "134", "135", "136", "137", "138", "139",
"147", "150", "151", "152", "153", "155", "156", "157", "158", "159",
"186", "187", "18... | [
"1454622738@qq.com"
] | 1454622738@qq.com |
e097a16f0379513c2092c5425fad847644f49308 | 091e97bcfe5acc0635bd601aa8497e377b74d41a | /openshift/installer/vendored/openshift-ansible-3.11.28-1/roles/lib_openshift/library/oc_serviceaccount_secret.py | 4670e3e95ddc2ebdd06ba5c38649e792aac37e53 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | openshift/openshift-tools | d59b63778f25cb8fb3c7a0253afe22a173e72f9d | e342f6659a4ef1a188ff403e2fc6b06ac6d119c7 | refs/heads/prod | 2023-08-30T01:52:04.108978 | 2022-03-23T21:07:28 | 2022-03-23T21:07:28 | 36,827,699 | 170 | 254 | Apache-2.0 | 2022-06-16T12:11:51 | 2015-06-03T20:09:22 | Python | UTF-8 | Python | false | false | 60,388 | py | #!/usr/bin/env python
# pylint: disable=missing-docstring
# flake8: noqa: T001
# ___ ___ _ _ ___ ___ _ _____ ___ ___
# / __| __| \| | __| _ \ /_\_ _| __| \
# | (_ | _|| .` | _|| / / _ \| | | _|| |) |
# \___|___|_|\_|___|_|_\/_/_\_\_|_|___|___/_ _____
# | \ / _ \ | \| |/ _ \_ _| | __| \_ ... | [
"mwoodson@redhat.com"
] | mwoodson@redhat.com |
691a09c696e5d06361215ef05998a05a23437589 | 6d1380a38aeb89df5db2f742ca0665f877a01133 | /extract.py | 294ccc36295e2534490615af52969899c62233dc | [] | no_license | marijnkoolen/constitution-reference-parser | 937ddbfdb56a1cba78093c7568e311ca6790f4f4 | 4083461abb4dd4cc8639625f9305b580eb69ec04 | refs/heads/master | 2021-01-02T09:27:17.951140 | 2015-09-29T12:47:49 | 2015-09-29T12:47:49 | 40,536,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,420 | py | import re
import patterns
from document import ReferenceList, Reference
def extract_refs(document, sentence):
sentenceDone = 0
# returns a dictionary of document specific patterns
pattern = patterns.makeRefPatterns(document.RefUnits())
refList = ReferenceList(sentence, pattern)
while not sentenceDone:
# Start... | [
"marijn.koolen@gmail.com"
] | marijn.koolen@gmail.com |
804861121ec5dd38d2d654fa3b12e263b371c486 | fa346a2d5886420e22707a7be03599e634b230a9 | /temboo/Library/Amazon/IAM/__init__.py | 59787a0664534645fc9a01dd8d74b838ef9e46c0 | [] | no_license | elihuvillaraus/entity-resolution | cebf937499ed270c3436b1dd25ab4aef687adc11 | 71dd49118a6e11b236861289dcf36436d31f06bc | refs/heads/master | 2021-12-02T17:29:11.864065 | 2014-01-08T04:29:30 | 2014-01-08T04:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | from ChangePassword import *
from UpdateGroup import *
from CreateAccessKey import *
from ListRolePolicies import *
from UpdateLoginProfile import *
from GetUserPolicy import *
from UpdateServerCertificate import *
from DeleteServerCertificate import *
from DeactivateMFADevice import *
from UpdateAccountPasswordPolicy ... | [
"cedric.warny@gmail.com"
] | cedric.warny@gmail.com |
a755aa7a12874059c62a013d32c7aff02bd0ef46 | 94f8127cfb1d4e98b9e249556fc8f15be6e7f92e | /interview/reversed_linkedlist.py | 69f28fb3e1be8c11a7d4a8c7d73010ea15f6c490 | [
"WTFPL"
] | permissive | pranavgarg/algorithms | dfcb987db4064e6930ed84200e983fca396e0263 | 09fbdce0062ca2ffa22de6c595525d09f8a2d086 | refs/heads/master | 2020-06-30T08:08:41.593316 | 2018-07-12T23:56:13 | 2018-07-12T23:56:13 | 74,384,440 | 4 | 1 | null | 2018-07-12T23:56:14 | 2016-11-21T16:44:34 | Python | UTF-8 | Python | false | false | 2,295 | py | from __future__ import print_function
class Node(object):
"""
Node implementation
"""
def __init__(self, payload=None, next_node=None):
self.payload = payload
self.next_node = next_node
def get_payload(self):
return self.payload
def get_next(self):
return self.... | [
"jo.chasinga@gmail.com"
] | jo.chasinga@gmail.com |
476e8f2d422cf9b9348b2be998dbf5b010ef7f87 | 620b58e17d4851e43bd1270cabc8c26f43629a7b | /lib/candy_editor/AssetEditor/EngineAsset/ShaderAsset.py | fd3756f724e956b29e72c34bc709b54269fc049f | [
"MIT"
] | permissive | lihaochen910/Candy | 78b9862cf06748b365b6fb35ac23f0e7a00ab558 | d12cb964768459c22f30c22531d3e1734901e814 | refs/heads/master | 2022-11-25T19:12:34.533828 | 2021-11-07T16:11:07 | 2021-11-07T16:11:07 | 141,284,960 | 1 | 1 | NOASSERTION | 2022-11-22T09:20:08 | 2018-07-17T12:12:02 | Lua | UTF-8 | Python | false | false | 2,551 | py | import os.path
import logging
import subprocess
import shutil
import json
from candy_editor.core import *
from candy_editor.moai.MOAIRuntime import _CANDY
##----------------------------------------------------------------##
class ShaderAssetManager ( AssetManager ):
def getName ( self ):
return 'asset_manager.shad... | [
"lihaochen910@hotmail.com"
] | lihaochen910@hotmail.com |
706d2dfa25e4b34f7b1c276ec5e138a4f741136f | d140ad879742ecbe23138f9ff80d9fd71e9430f3 | /load_data.py | bbf01decf981664bb3d185521d3339ce88c1cc97 | [] | no_license | benjaminpjl/Data-Challenge | 78a6c6699ae78d81bae6b31e21389d1dc1d0e94b | bc803cc72f7fec5c9f43173a0c1ab5cec04a8824 | refs/heads/master | 2020-06-21T17:55:02.393488 | 2016-11-22T16:48:45 | 2016-11-22T16:48:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,114 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 4 19:16:46 2016
@author: Team BigInJapan
"""
import pandas as pd
import numpy as np
import datetime as dt
from functools import partial
def extract_date(string):
d = dt.datetime.strptime(string, "%Y-%m-%d %H:%M:%S.000")
return(d)
def extract_weekday(date)... | [
"nicolas.rahmouni@polytechnique.edu"
] | nicolas.rahmouni@polytechnique.edu |
9840040315f9fdf4d3c22de338e2ace8d80de7a0 | fad702beb35d587278010e570a923bc84a4dda4a | /code/pyorg/scripts/tests/uni_2nd_speedup.py | 13519cc3f8dc80adcdd125cde94a260a0bee67ba | [
"Apache-2.0"
] | permissive | anmartinezs/pyseg_system | f7769ec3dcaf243895ec1cf13ac6e1da1ab2a92a | 1370bfedae2ad5e6cdd1dc08395eb9e95b4a8596 | refs/heads/master | 2023-02-23T06:23:10.087737 | 2023-01-30T13:24:36 | 2023-01-30T13:24:36 | 227,147,753 | 15 | 4 | NOASSERTION | 2023-02-10T17:18:20 | 2019-12-10T14:58:22 | C | UTF-8 | Python | false | false | 7,837 | py | """
Measures the speed-up for computing univarite 2nd oder models and simulate CSRV instances
"""
################# Package import
import os
import sys
import math
import time
import numpy as np
import multiprocessing as mp
from scipy.optimize import curve_fit
from pyorg.surf.model import ModelCSRV, gen_tlist
fr... | [
"an.martinez.s.sw@gmail.com"
] | an.martinez.s.sw@gmail.com |
110496e18fa67c64c20bfd271e9accc1b77ca647 | 615e9d142587c965d4f593ce68cae1811824026d | /19-functions/javoblar-19-07.py | 3078014c425e95b4785cee83aa845fd53d1e7442 | [] | no_license | XurshidbekDavronov/python-darslar | 0100bb8ea61c355949e81d1d3f3b923befeb80c9 | 4fcf9a3e0c2facdedaed9b53ef806cdc0095fd9d | refs/heads/main | 2023-06-21T03:33:19.509225 | 2021-07-13T13:04:56 | 2021-07-13T13:04:56 | 377,176,205 | 1 | 0 | null | 2021-06-15T13:40:33 | 2021-06-15T13:40:32 | null | UTF-8 | Python | false | false | 510 | py | """
16/12/2020
Dasturlash asoslari
#19-dars: FUNCTIONS (FUNKSIYALAR)
Muallif: Anvar Narzullaev
Web sahifa: https://python.sariq.dev
"""
# Foydalanuvchidan son qabul qilib, sonni 2, 3, 4 va 5 ga qoldiqsiz bo'linishini tekshiruvchi
# funksiya yozing.
# Natijalarni konsolga chiqaring ("15 soni 3 ga qoldiqsiz bo'lin... | [
"anvarbek@gmail.com"
] | anvarbek@gmail.com |
7df9dcc7b35ce702c5fdf33e237c3bb866b1708a | afbaa5685bf737ec7d16fee2bab54ae13caf96f9 | /geekbang/core/ch17/Demo1.py | 98dd62e83056057241e556d48e785f0e1f247874 | [] | no_license | ykdsg/myPython | 9dcc9afe6f595e51b72257875d66ada1ba04bba6 | 77d2eaa2acb172664b632cc2720cef62dff8f235 | refs/heads/master | 2023-06-10T20:11:08.061075 | 2023-06-03T11:39:53 | 2023-06-03T11:39:53 | 10,655,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def func(message):
print('got a message:{}'.format(message))
# 函数赋予变量
send_message = func
send_message('hello world')
def get_message(message):
return 'got a message:' + message
def root_call(func, message):
print(func(message))
| [
"17173as@163.com"
] | 17173as@163.com |
1e4de7da1382a4829bfdea39369b835759395aa8 | 7f36bd66ff8a20ed25dfd1da6eebb3f5aeb8732c | /TAFEICTPRG301ScottMorrisProject1/scope.py | 71797b6efc31bf9615540796e5c71bcaee0a4c58 | [] | no_license | scottmmorris/tafe-web-programming | a58d19942ca2a10e811ad5629d9fc8e266b6ebfe | d87314c2fe56025b36bfdc8ccaaa07e8f5488ea0 | refs/heads/main | 2023-06-25T23:38:36.110034 | 2021-07-30T10:17:41 | 2021-07-30T10:17:41 | 391,021,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def name_function():
global firstName
firstName = input("Enter your first name: ")
name_function()
print("My name is "+ firstName) | [
"32733642+scottmmorris@users.noreply.github.com"
] | 32733642+scottmmorris@users.noreply.github.com |
54fde227ed8dfee25b2b3b501946d685bfb1ac18 | 23ff67b67ea8ea49bd8c31aaa622d05b38715463 | /Lineas_de_Barrer/lineas_de_barrer.py | 1503541eb3850b3ed65a70d8e75719c825b26448 | [] | no_license | JuanPabloRosas/Analisis-de-Algoritmos | d48d6db744a3322c99c320a562a6f2af56fb476e | 9ba76dec05ff6a596d0aac246bc92e31a73ae545 | refs/heads/master | 2021-07-06T03:26:20.884428 | 2021-05-19T18:43:18 | 2021-05-19T18:43:18 | 81,850,492 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | # EQUIPO:
#Jose Anastacio Hernandez Saldaña
#Juan Pablo Rosas Baldazo
#######################################
from heapq import heappush, heappop
import bintrees as b
def lineas_de_barrer(archivo):
heap = []
cont = -1
file = archivo.open(archivo,'r')
sl = 0
sr = 0
puntos = {}
for line in file:
cont += 1
v ... | [
"juanpablo.rosasbaldazo@gmail.com"
] | juanpablo.rosasbaldazo@gmail.com |
fd7cdd39e9a8db86129719f700f436d19b4bc19f | 1b36425f798f484eda964b10a5ad72b37b4da916 | /posthog/models/event/event.py | 2e6d0625403431f36a01778187c27ed6f634ddce | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dorucioclea/posthog | 0408baa2a7ae98e5bea352c516f741ddc17c0a3e | 8848981baf237117fb22d28af0770a0165881423 | refs/heads/master | 2023-01-23T11:01:57.942146 | 2023-01-13T09:03:00 | 2023-01-13T09:03:00 | 241,222,000 | 0 | 0 | MIT | 2020-02-17T22:34:37 | 2020-02-17T22:34:36 | null | UTF-8 | Python | false | false | 5,830 | py | import copy
import datetime
import re
from collections import defaultdict
from typing import Dict, List, Optional, Union
from dateutil.relativedelta import relativedelta
from django.db import models
from django.utils import timezone
from posthog.models.team import Team
SELECTOR_ATTRIBUTE_REGEX = r"([a-zA-Z]*)\[(.*)=... | [
"noreply@github.com"
] | noreply@github.com |
b98865a3d5843d01b5c45a64127f469187453a5c | 6ca384633472d8fe303262dca320ee711acc0a6f | /DeepLearning/1. tf_practice/placeholder.py | d5c2a9a03dd773fa48ca366eef3ae88c7475d9ec | [] | no_license | lim3944/DeepLearning | 97e019996adf993e4d2eb6832f2d41334fefdd3e | 8402f26f0283cafcc49491c7b9ed493e52cab4bb | refs/heads/master | 2020-05-29T20:18:52.038121 | 2019-06-04T14:00:39 | 2019-06-04T14:00:39 | 189,349,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import tensorflow as tf
X = tf.placeholder(tf.float32, [None,3])
print(X)
x_data = [[1,2,3],[4,5,6]]
W = tf.Variable(tf.random_normal([3,2]))
b = tf.Variable(tf.random_normal([2,1]))
expr = tf.matmul(X,W) +b
sess = tf.Session()
sess.run(tf.global_variables_initializer())
print(x_data)
print(sess.run(W))
print(ses... | [
"lim3944@gmail.com"
] | lim3944@gmail.com |
22254545f9a1cc0c5bd2eb4c3f056ed34bc7a22d | bcddca991afe606180dbb5ce6c033d8fb611154c | /docs/idf_extensions/include_build_file.py | b11a2128667b50bd2c713b8038e7b3dbc90675fd | [
"Apache-2.0"
] | permissive | EmbeddedSystemClass/esp-idf | 8ac5a312be41936b1e2dc5c68b7b68c9b4c1e488 | 92db6a3dabc1106b72865b8bd91d9bdd54fbdf6c | refs/heads/master | 2022-12-31T19:57:49.052365 | 2020-10-22T19:19:01 | 2020-10-22T19:19:01 | 259,859,439 | 0 | 0 | Apache-2.0 | 2020-04-29T07:47:48 | 2020-04-29T07:47:47 | null | UTF-8 | Python | false | false | 764 | py | import os.path
from docutils.parsers.rst import directives
from docutils.parsers.rst.directives.misc import Include as BaseInclude
from sphinx.util.docutils import SphinxDirective
class IncludeBuildFile(BaseInclude, SphinxDirective):
"""
Like the standard "Include" directive, but relative to the app
... | [
"koson.trachu@gmail.com"
] | koson.trachu@gmail.com |
eeab12b862d7bd0661014cd1be6c5a6eb28aa58a | 571374f5ef4c5e5c460eccdf87225f5e3768023c | /CS271HMK_Assignment7_Duong_3857/q7.py | 89466682eaee2159194c0abc1f9a3aadb1ed1706 | [] | no_license | giangduong96/Master-Machine_Learning-CS-271 | 80b8a3455ebaca0a11df80a7820442b88a8c2647 | 7a16a9e9d179829d2cf94a4a99373c62daab5c54 | refs/heads/main | 2023-01-28T05:53:54.042338 | 2020-12-08T00:39:04 | 2020-12-08T00:39:04 | 319,477,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | """
Name: Giang Duong
ID : 014533857
# Chapter 6 Question 7:
"""
import math
X1, X2, X3, X4, X5 = (8, 5, 9, 4, 7) #hardcoded data in (6.14)
XList = (X1, X2, X3, X4, X5)
#After the 1st EM-Step, then parameters converged to: (Section 6.5.3)
theta1 = 0.6918
theta2 = 0.5597
t1 = 0.7593
t2 = 0.2407
def nCr(n,r):
fa... | [
"noreply@github.com"
] | noreply@github.com |
947e92b0bbb03b5bdf5cca5308740ce0b6e02f4d | 7f79ab2e15d05da67ed264ad79f0b46d338dd61f | /Analysis/CrimeDesc_vs_Boroughs_map.py | ff26e505e4a2eecb0a6c695da8c811bf43f8ec82 | [] | no_license | amiteshsah/Big-Data-Project | befd559c1da98044cf4f11bf2183a5b05c9d8810 | c37f77fd2f24db516cd57c7023d2a49913e8da44 | refs/heads/master | 2021-01-23T03:53:41.290757 | 2017-10-31T02:26:05 | 2017-10-31T02:26:05 | 86,132,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | #!/usr/bin/env python
# map function to find the each type of LAW_CAT_CD commited each year
import sys
import os
import csv
firstline = True
#with open('/Users/tejaswivinod/Big-Data-Project/output_2.csv', 'rb') as csvfile:
for line in csv.reader(sys.stdin):
#for line in csv.reader(csvfile):
#if firstline:... | [
"prasad@Prasads-MacBook-Air.local"
] | prasad@Prasads-MacBook-Air.local |
93b24835b5b197d6dfa82c2fe29f8f644663b0b2 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FairMOT/src/lib/datasets/dataset/jde.py | 3e7156e32fca35205bf1eac8143fcd1fc065e94c | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 23,094 | py | # BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain th... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
920a987d618391c105ce6e38bd90c99b02c18e9a | 29430dba82162e97038db14934ed4e5411a46a8b | /mygui.py | 642b24bda64b6cb11d12a4306182976c928e9555 | [] | no_license | PavelGnedin/Pocker | 8795d6c9aab1a90086c544b0f34a23fa54239921 | 53913228320d94606456b24ef1af5fd298a8331a | refs/heads/master | 2020-12-25T05:44:52.204354 | 2016-06-06T19:17:59 | 2016-06-06T19:17:59 | 60,551,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137,603 | py | # -*- coding:utf-8 -*-
import tkinter
from tkinter import *
import math
from CheckHOLEcards import CheckHoleCards
from CheckHOLEcards import CheckHoleCardsForBot
from CheckOuts import CheckOuts
from Game import Game
from checkCombOnHand import CheckComb
class Diler:
def __init__(self):
... | [
"endnikita@gmail.com"
] | endnikita@gmail.com |
f205af874bfd19c543b990383520db2dc51ce796 | 297c30dc0120c2920c86c8257bc530db1bb1114a | /Application/Application_Pandas/panda_DataFrame_Test_1.py | e7ad323507d330adb254dc3f79e9571b82741412 | [] | no_license | whoiszyc/Repo_python | 76e248b350a3f109c53bfb1f3abe59b903a98e46 | bdc3f39883aed5b2e85624525c662c00f60d35e3 | refs/heads/master | 2021-07-06T04:48:04.973680 | 2020-07-27T03:55:58 | 2020-07-27T03:55:58 | 139,599,645 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import numpy as np
import pandas as pd
# use string as key
mydict0 = [{'a': 10, 'b': 20, 'c': 30, 'd': 40},{'a': 100, 'b': 200, 'c': 300, 'd': 400},{'a': 1000, 'b': 2000, 'c': 3000, 'd': 4000 }]
# use int number as key
mydict1 = [{0: 10, 1: 20, 2: 30, 3: 40},{0: 100, 1: 200, 2: 300, 3: 400},{0: 1000, 1: 2000, 2: 3000... | [
"31248391+whoiszyc@users.noreply.github.com"
] | 31248391+whoiszyc@users.noreply.github.com |
619e237a4faf772e892747ff7c3e8b05f3a6b00e | 8c917dc4810e2dddf7d3902146280a67412c65ea | /v_7/Dongola/wafi/account_custom_wafi/account_custom.py | f19ef70a021724ff48985fea969d72415668236c | [] | no_license | musabahmed/baba | d0906e03c1bbd222d3950f521533f3874434b993 | 0b997095c260d58b026440967fea3a202bef7efb | refs/heads/master | 2021-10-09T02:37:32.458269 | 2018-12-20T06:00:00 | 2018-12-20T06:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,557 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# NCTR, Nile Center for Technology Research
# Copyright (C) 2011-2012 NCTR (<http://www.nctr.sd>).
#
##############################################################################
from openerp.osv import osv,... | [
"bakry@exp-sa.com"
] | bakry@exp-sa.com |
08241ca33d0d08c4b7977714c1b9eef5676f3ab5 | dd694c300d0380df35c62f7ab7667346214ea296 | /rwlaunchpad/test/mano_ut.py | ee095d1f55d1a6facbe64532bbb9685047d453d1 | [] | no_license | RIFTIO/SO | 9412858132db0430217a2c5c55fb4b1db89290fa | 697160573011d47f45bd0b955a291a46063d3b15 | refs/heads/RIFT.ware-4.3.3 | 2021-06-22T13:42:40.860291 | 2016-12-29T21:47:25 | 2016-12-29T21:47:25 | 75,762,640 | 1 | 1 | null | 2017-02-08T19:31:28 | 2016-12-06T19:11:20 | Python | UTF-8 | Python | false | false | 45,990 | py | #!/usr/bin/env python3
#
# Copyright 2016 RIFT.IO Inc
#
# 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 a... | [
"Leslie.Giles@riftio.com"
] | Leslie.Giles@riftio.com |
5b23b60fb17671eaecb7874ceadf7a5a0779f564 | b2705a15339f8620b70cf7a1759c3d4a4e8073ec | /widgets.py | f5f9edfe6da8721d7b29bff0232581e18eecd46c | [] | no_license | JonahGoetze/CSC-CAN-logger-Display | 4f2cd0ebe93052ad0775d426fd05e67817e54571 | facd3c2d384ce74a25024b787984463d83feb0e9 | refs/heads/master | 2020-04-11T10:13:44.731163 | 2019-03-04T03:59:53 | 2019-03-04T03:59:53 | 161,707,481 | 0 | 1 | null | 2019-03-04T03:59:54 | 2018-12-13T23:38:27 | Python | UTF-8 | Python | false | false | 2,530 | py | import random
import math
import queue as Q
from kivy.uix.widget import Widget
from kivy.properties import NumericProperty, ReferenceListProperty, ObjectProperty, ListProperty, StringProperty
class Gague(Widget):
max_value = NumericProperty(1)
value = NumericProperty(0)
current_gague_width = NumericPrope... | [
"jghibiki.games@gmail.com"
] | jghibiki.games@gmail.com |
55ca9242e06690db3374ef83a64763ce439b5b3d | cf028679971e64b48e357d8dcc5f7ed4423a7c8b | /keyboard/tests.py | 614f5acf28879b408b6bfb257ae8c4f3c7152b6f | [] | no_license | tuantphan/KeyboardReview2021 | f2cf3756c5f582310c010ccf6f21b3830baa88c3 | 35b3336ed06fb8c5dfddada482e7e09a10f2c8bf | refs/heads/main | 2023-03-27T07:54:23.820924 | 2021-03-27T22:39:04 | 2021-03-27T22:39:04 | 352,071,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,997 | py | from django.test import TestCase
from django.contrib.auth.models import User
from .models import KeyboardReview, KeyboardName, KeyboardType
from .forms import KeyboardForm, KeyboardImageForm
import datetime
from django.urls import reverse_lazy, reverse
# Create your tests here.
class KeyboardTypeTest(TestCase):
de... | [
"tuantphan83@gmail.com"
] | tuantphan83@gmail.com |
48633be75b15841f7563e8d03e543ca67de4603c | 51293d7faa6a2d32f6dbbcb1ce6c1bcfc470274a | /Layer.py | d8bcb258f7f6939940990f43c16689619725857e | [] | no_license | Clientrace/BasicANN | c4e6ada54c0c3d66accbc99db48b2f27e7801641 | e7bb327de9d55b0d845cfd9c978ee9590d280882 | refs/heads/master | 2020-12-26T00:45:59.886771 | 2016-09-23T09:51:05 | 2016-09-23T09:51:05 | 68,792,010 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import random
class Layer(object):
def __init__(self, name, node_number):
self.nodes = []
self.name = name
self.data = 0
self.weights = []
for i in range(0,node_number):
self.nodes.append(0)
self.weights.append(random.random())
def getData(self, n):
return self.nodes[n]
def setData(self, data, ... | [
"pkimclarence@yahoo.com.ph"
] | pkimclarence@yahoo.com.ph |
9201198e9def073496cc6d1892b30ee684872cbc | 4d7f7bed6bbe8ea23de2bffd36f15992bcfe4707 | /tools/test.py | 84317b73364d78fa09b8353dba13cea67230303a | [
"MIT"
] | permissive | saketkunwar/cvwc2019_pose | 9ac3bd4776aed38544597519a1f4039320c3b85b | 3c4dce527c05b7a903eab17bb6f97d14d25207b6 | refs/heads/master | 2020-06-24T23:28:25.440338 | 2019-07-27T09:39:34 | 2019-07-27T09:39:34 | 199,124,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | # ------------------------------------------------------------------------------
# pose.pytorch
# Copyright (c) 2018-present Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Written by Bin Xiao (Bin.Xiao@microsoft.com)
# ----------------------------------------------------------------------... | [
"saketkunwar2005@gmail.com"
] | saketkunwar2005@gmail.com |
09a65523f111e9651bfad0dac1d89f22fb18732a | 6b7230155432f8122931e1ef657079125de77ef2 | /bgunfolding/svd.py | bdf3c36d7ca324d9fb9e91905128cc9a9db1ca5a | [
"MIT"
] | permissive | lrsppp/bgunfolding | 1ce241682445bb2b5a997437e81e5dd5b2d6811c | 0e60ebd88906d5cd50df6e926e855d5a7ee3051f | refs/heads/main | 2023-08-28T20:31:00.824607 | 2021-11-06T23:39:37 | 2021-11-06T23:39:37 | 425,059,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,477 | py | import numpy as np
import matplotlib.pyplot as plt
from bgunfolding.base import UnfoldingBase
from bgunfolding.tikhonov_matrices import *
from scipy.optimize import minimize
import numdifftools as nd
from joblib import Parallel, delayed
class SVD(UnfoldingBase):
def __init__(self, C = 'second_order', weighted = Fa... | [
"lars.poppe@tu-dortmund.de"
] | lars.poppe@tu-dortmund.de |
0f7299c58842c2c3bee15207f4016fe5b990612d | db00be688b0e7bfb3a31c5620126fe4c9c0f79a8 | /snippets/formatting.py | d2faee63fb7c75b27466e5187e74e995f5818482 | [] | no_license | daveckw/eliteoneSales | 82c7bbe79ce4da04f5f7f5c67d90b534279939e7 | 8503e473e9fd4d9ff85a1d4f280db616ad47b459 | refs/heads/master | 2022-12-15T04:54:14.559826 | 2019-04-19T18:21:59 | 2019-04-19T18:21:59 | 181,590,177 | 0 | 0 | null | 2022-12-08T04:59:24 | 2019-04-16T01:16:22 | HTML | UTF-8 | Python | false | false | 527 | py | # Python format() function example
# Variable declaration
val = 10
# Calling function
print("decimal: {0:d}".format(val)); # display decimal result
print("hex: {0:x}".format(val)); # display hexadecimal result
print("octal: {0:o}".format(val)); # display octal result
print("binary: {0:b}".format(val... | [
"daveckw@gmail.com"
] | daveckw@gmail.com |
eb52b1979452a41d387d08c3d84777d0e8880f46 | e627fe13adc0a7b542f90bedac343796d6009c8a | /Day8.py | 476db44c1b67f9880aa89cc7b578de944361b4f9 | [] | no_license | MPomeroy/AdventOfCodeSolutions | 664204c830e71fbfc116bc67a7541b6953ba8a50 | 9165b9744445ed91bcf32028ffddd28895b2e7b3 | refs/heads/master | 2021-01-10T17:03:36.577034 | 2016-03-07T04:08:09 | 2016-03-07T04:08:09 | 48,891,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | # To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
__author__ = "Mason"
__date__ = "$9-Jan-2016 6:59:33 PM$"
def main():
import FileLoadWrapper
import binascii
puzzleNumber ... | [
"mason.pomeroy@hotmail.com"
] | mason.pomeroy@hotmail.com |
bff9bc282bfc2698e045bd967b62ba879fee5036 | dd7faf12b2e05d7dde21eca637447ad3facf032e | /app01/models.py | 93de89bf39c112dd5fd852b80fc612aaf44d3160 | [
"Apache-2.0"
] | permissive | CrackerCat/ksDjango | 6cf8b3cc45a67e3f6bfb06f7a7d37b4c9ccf7d2b | 0c0f4a5842cf225e77035b716979fcf9b8d03311 | refs/heads/master | 2023-03-28T15:46:31.224423 | 2021-03-24T00:57:50 | 2021-03-24T00:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,757 | py | from django.db import models
from datetime import datetime
# Create your models here.
class UserTitle(models.Model):
#女为F,男为M
GENDER = [
(0,"未知"),
(1,"男"),
(2,"女")
]
STATE = [
(0,"0初次爬取"),
(1,"1ksVideo"),
(2,"1ksLive"),
(3,"2ksVideo+ksLive"),
... | [
"liangxinxin5102@163.com"
] | liangxinxin5102@163.com |
7a28f24d0a6faf49ea00304d8ca51cfb2d5b84ef | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /6_tree/经典题/后序dfs统计信息/换根dp/hard/abc-233-G - Vertex Deletion-每个点是否在树的最大匹配中.py | 284d716c8e41ab42dbe6165859649c030080a298 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | # abc-233-G - Vertex Deletion-每个点是否在树的最大匹配中
# https://atcoder.jp/contests/abc223/tasks/abc223_g
# 给定一棵树
# 对每个结点i为根,删除根连接的所有边后,
# !使得剩下的树的最大匹配和原树最大匹配相等
# 求这样的根的个数
# !解:即不参与二分图的最大匹配
# https://yukicoder.me/problems/2085
# 二分图博弈
# Alice和Bob在树上博弈
# 先手放一个棋子,后手在相邻的结点放一个棋子
# 交替放棋子,直到不能放棋子的时候,输
# !问先手是否必胜 => 如果起点不... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
dca4f6431539dae2d455d8de6975681729cfe086 | 1a0a41b7e34de5e32c6c357d301ae47c9e6aaabe | /scripts/ui/progress_bar.py | 04e420865006eabbf65a67e557d3378bc8c112b3 | [
"MIT"
] | permissive | Kateskim/git-clone | b8d9f987c0a53bdf4db00d1373cd55e34d1c412b | 5b78ff0604239955a112001f2116a2892e9f316a | refs/heads/master | 2021-05-25T08:57:25.414937 | 2020-04-07T09:48:53 | 2020-04-07T09:48:53 | 253,750,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py |
import maya.cmds as cmds
import maya.mel as mel
class ProgressBar(object):
def __init__(self, status='Busy...', start=0, end=100, interruptable=False):
self._start = start
self._end = end
self._status = status
self._interruptable = interruptable
self._progress_bar = mel.e... | [
"anno_schachner@gmx.at"
] | anno_schachner@gmx.at |
771ccd414db8453576bddfd17a4d33078ee24a06 | 49b86797ac3b08f256dc8b2e4e076380dd218bdd | /venv/Scripts/pip3-script.py | 6a2384ebd80b9fc6a73bda4c8f73319884e29a24 | [] | no_license | AlphaJet45/ParkingRennes | 1e8837fa6da6f04f0bf12bd6ee15003197ee0efe | 1915cb3cdc57b10c8e87a6c8182529a6b142d700 | refs/heads/master | 2020-04-07T02:53:11.283797 | 2018-11-17T13:12:10 | 2018-11-17T13:12:10 | 157,984,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!"C:\Users\damie\Documents\MDS\Outils de la data\Parking\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__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)... | [
"damien.m.45@gmail.com"
] | damien.m.45@gmail.com |
ab952754fa0a7759070cf3e509300c8ac2bcf78b | 17c7495075c8a48f9fe7337610ef1490159c66e8 | /addons/udes_common/tests/test_selection_display_name.py | ad66bb2bf2c96f517a56e45ca148ef705332b5b0 | [] | no_license | unipartdigital/udes-open | 7ad017843348712d2b33b080e5914724d2a76244 | 0f69491b1538892c1921ae8063d9ea269e15d9ce | refs/heads/14.0 | 2023-09-01T02:44:41.653640 | 2023-08-31T15:52:14 | 2023-08-31T15:52:14 | 138,622,881 | 7 | 6 | null | 2023-09-14T16:20:39 | 2018-06-25T16:40:40 | Python | UTF-8 | Python | false | false | 4,555 | py | """Tests for selection field display name"""
from odoo.exceptions import ValidationError
from odoo.tests import common, tagged
@tagged("post_install")
class TestSelectionDisplayName(common.SavepointCase):
"""Tests for selection_display_name()"""
@classmethod
def setUpClass(cls):
"""
Pull... | [
"peteralabaster@gmail.com"
] | peteralabaster@gmail.com |
8005f712888eadc76c4175f8f80c9cffde0caff8 | 5793c121656d8db90eec3d8e271ef1e94c84fe69 | /shape_generator/example_cross_sections.py | 73cedb9dc1cbd33227674711f28e8687be0ff0c3 | [
"MIT"
] | permissive | timebridge/SWMM_xsections_shape_generator | 01c02cd145d8d771fcf1ed664912b71c99046c22 | f237e472ab5e4ab13c332c69d3d9cba6546bf943 | refs/heads/master | 2023-01-15T05:25:25.210545 | 2020-11-18T16:02:40 | 2020-11-18T16:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | from . import Circle, CrossSection
class EggSection(CrossSection):
"""
egg shaped cross section
.. figure:: images/ei.gif
:align: center
:alt: egg
:figclass: align-center
Egg Section (DWA-A 110, 2006)
"""
def __init__(self, r, label=None, descripti... | [
"markus.pichler@tugraz.at"
] | markus.pichler@tugraz.at |
b0d451dea5d617604a2cb9d1c05eab2bd487e4d5 | bae75bf1de75fb1b76e19b0d32c778e566de570a | /smodels-database/8TeV/CMS/CMS-EXO-12-026/validation/TRHadUM1_2EqMassAx.py | 096085bd68122b2c206bfd2aa0ce12b8264addfb | [] | no_license | andlessa/RDM | 78ae5cbadda1875c24e1bb726096b05c61627249 | ac6b242871894fee492e089d378806c2c2e7aad8 | refs/heads/master | 2023-08-16T00:47:14.415434 | 2021-09-21T20:54:25 | 2021-09-21T20:54:25 | 228,639,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,099 | py | validationData = [{'slhafile': 'TRHadUM1_1000_1000.slha', 'error': 'no results', 'axes': {'x': 1000.0, 'y': 1000.0}}, {'slhafile': 'TRHadUM1_1020_1020.slha', 'error': 'no results', 'axes': {'x': 1020.0, 'y': 1020.0}}, {'slhafile': 'TRHadUM1_1040_1040.slha', 'error': 'no results', 'axes': {'x': 1040.0, 'y': 1040.0}}, {'... | [
"lessa.a.p@gmail.com"
] | lessa.a.p@gmail.com |
1a8a98d1d72ed575dc8ecaae762fb47701f670cd | 859e55b5463ed97bde29d2e1528867a17d75a44c | /tests/test_tiktok-bot.py | 1f41a673db436fd1635d5c49fda7ef5950caa165 | [
"MIT"
] | permissive | steffanjensen/tiktok_bot | 9005aaf187f56c36fd9ece98bf6c96b9cbe75edd | 30404c0cd9ae1d52eb5b8818fbf282af1f68ee7a | refs/heads/master | 2020-09-20T16:20:18.220850 | 2019-11-26T16:06:45 | 2019-11-26T16:06:45 | 224,535,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from tiktok_bot import __version__
def test_version():
assert __version__ == "0.6.1"
| [
"eskemerov@gmail.com"
] | eskemerov@gmail.com |
fbc1bd3dfea20f09348cd0214822aab875ca4c53 | 5fb547b95a08282f4037901fac5f2d6e25190395 | /src/app_with_sidebar.py | 85f21b31250e0815ac784cf08e1fd7ac58b929db | [] | no_license | TomHarned/fooled_by_covid | 10a965705a1f74a07e9d5aa29a5aa2e335798360 | 33a8157f064ddfc5ec3c0b70283ef0659c3656c7 | refs/heads/main | 2023-03-21T11:30:14.704050 | 2021-03-02T03:00:59 | 2021-03-02T03:00:59 | 315,403,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,981 | py | import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import dash_bootstrap_components as dbc
import plotly.express as px
import pandas as pd
import json
from import_and_calculate import import_data, group_filter_and_calculate
from filter_and_disp... | [
"thomas.harned@gmail.com"
] | thomas.harned@gmail.com |
d1fd86edc5d3190435ea38f5012768e9d9dc15a1 | 5c39e166d0c6ec68f71c4c7627956fdd6f28c15e | /andrew/hypothesis_testing/exercise_1.py | a41999f0c624325725871690b4b0bb155c55d97c | [] | no_license | zero-one-group/zot-internship | a8ae21029086188f4c8ca348c50e445a86a01179 | 9bbc421252b42f1bc85de66d22f48266c59113f0 | refs/heads/master | 2023-01-12T07:48:39.766136 | 2020-10-15T09:03:24 | 2020-10-15T09:03:24 | 279,190,490 | 3 | 3 | null | 2020-11-08T21:30:30 | 2020-07-13T02:32:56 | Python | UTF-8 | Python | false | false | 1,376 | py | '''
Let X ~ Beta(1.8, 1). An unsuspecting researcher has 100 i.i.d samples of X, and would like to conduct the following test at 10% significance - H0: E(X) = 2, H1: E(X) < 1.
■ What’s the probability that the researcher rejects the null hypothesis?
■ What does 10% in 10% significance level mean? Show your argument... | [
"AHW@macbook-pro-2.mynet"
] | AHW@macbook-pro-2.mynet |
cfb87afb87aaff28c9ee4fdbd07bbda5cbe18cf5 | 9be731c909b1b81acb57515e70202a65d4cf4c0b | /dvr_2d.py | cfbe4dc245a77fa8d7238ad9e272328537def0fe | [
"MIT"
] | permissive | adatar2003/dvr_py | 01db12508af841172290e3f54b86d804806ba8bf | d549c56647828e0652c351e54f219de6c8fdc220 | refs/heads/master | 2021-12-22T04:38:03.987187 | 2017-10-10T19:06:46 | 2017-10-10T19:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,186 | py | """
Use a simple Discrete Variable Representation method to solve
one-dimensional potentials.
A good general introduction to DVR methods is
Light and Carrington, Adv. Chem. Phys. 114, 263 (2000)
"""
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import scipy.sparse.lin... | [
"richford@uw.edu"
] | richford@uw.edu |
33a71e71ff9018b19823a1c3481dabfbf256ef91 | f3360b809d7e8e26c8904365b5e4df0dca69225d | /userprofile/migrations/0005_catatanmodal_parent_id.py | ea8293c76b529176e1c90697977c68a4d2c09e6b | [] | no_license | cursecan/epayment | 0bcd272a6479847ad60507daf2cf74ee95002924 | be9df7034261fa9f9eaafb157309b4955b793cfb | refs/heads/master | 2020-03-15T05:52:34.556971 | 2018-07-30T12:01:21 | 2018-07-30T12:01:21 | 131,996,100 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # Generated by Django 2.0.4 on 2018-05-27 10:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('userprofile', '0004_catatanmodal'),
]
operations = [
migrations.AddField(
model_name='catatanmo... | [
"anderi.setiawan@gmail.com"
] | anderi.setiawan@gmail.com |
1c8d7e664a52297cfd690bdbac1717ee6262c187 | a50386f9b6c0cc2c0789a84c3acedfd33a4eaf0f | /CursoOpenCVcomDaniel/esqueleto/test.py | 18cc78f446fc6a4fd48d48f195ac38f37d13e0f9 | [] | no_license | juanengml/RemoteWebCamWithOpenCV | 66b19e174d724b2584a7f1d07c5d9ee698ff0809 | caa4a0b52be1ac66bcb1b401485fb427746c31ef | refs/heads/master | 2020-03-23T02:49:56.853490 | 2019-07-23T01:15:33 | 2019-07-23T01:15:33 | 140,994,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from skimage.morphology import skeletonize
ske = (skeletonize("01.jpg"//255) * 255).astype(np.uint8)
print ske
| [
"juanengml@gmail.com"
] | juanengml@gmail.com |
9b02a2388f7584c36eb653440a59a11092a4e816 | 76c9df5cd69e202d6bc9204616cc1d83a85de31c | /assignment3/HashRing.py | 8ee1901503c8d383e1021f48cae4c9fb2cf667ce | [
"MIT"
] | permissive | siddharth-daftari/Expense-Management-System-data-sharding | d805252aae23a243b916310d44c1a0f5ead8bcf4 | 3ba6464845434fd4a11ba80cddc34fdd53241a1c | refs/heads/master | 2021-01-13T16:37:46.445702 | 2017-01-19T14:56:20 | 2017-01-19T14:56:20 | 78,920,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | import bisect
import md5
class ConsistentHashRing(object):
"""Implement a consistent hashing ring."""
def __init__(self, replicas=1):
"""Create a new ConsistentHashRing.
:param replicas: number of replicas.
"""
self.replicas = replicas
self._keys = []
self._no... | [
"siddharthrajesh.daftari@sjsu.edu"
] | siddharthrajesh.daftari@sjsu.edu |
132c2ed038ea4aad456f0596f83bff90e7476e46 | 4942ff3e1a416efe700bcc4dd9aeb2721b7cfb48 | /mysite/mysite/settings.py | 71e6ef76d44d89bb18606414b09fa862754510fe | [] | no_license | Micontrerash/gymnotita | 48e9e8a6ea086b3d6464d0506eaf647e5e6c991c | c500b796693a1adf50c4bb0cbd5e9225843c18d1 | refs/heads/master | 2020-09-26T12:04:06.363190 | 2019-12-06T05:23:37 | 2019-12-06T05:23:37 | 226,251,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"miguel@mail.com"
] | miguel@mail.com |
acb2fc903d2a0616fd16767c00059ce86cc7baa7 | 0116bfbdff160b028b18040df9b59d99d4a824e4 | /social/migrations/0011_question_user_name.py | 3ce91059651fb603746d5d812d40a3346826f1af | [] | no_license | Subhash1998/social-welfare | d9cd2897154f2da0afd9484fe33be7f8cf1a0390 | d2e59d511481fcb33a45c0d6d65ad1e97070f0b4 | refs/heads/master | 2022-12-14T15:49:23.851170 | 2018-06-02T03:36:41 | 2018-06-02T03:36:41 | 125,677,783 | 3 | 0 | null | 2022-11-22T02:05:53 | 2018-03-17T23:39:24 | Python | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-03-17 07:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('social', '0010_remove_question_user_name'),
]
operations = [
migrations.AddFi... | [
"you@example.com"
] | you@example.com |
1af412ff0d24a8876c3345bd2bfffe447cf4d939 | 1493997bb11718d3c18c6632b6dd010535f742f5 | /wintst.py | 409947c6ddc3e24a514f1bbbe46278b39d660f5b | [] | no_license | kovrov/scrap | cd0cf2c98a62d5af6e4206a2cab7bb8e4560b168 | b0f38d95dd4acd89c832188265dece4d91383bbb | refs/heads/master | 2021-01-20T12:21:34.742007 | 2010-01-12T19:53:23 | 2010-01-12T19:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,876 | py | from ctypes import *
from ctypes import wintypes
WM_NCCREATE = 0x81
WM_DESTROY = 0x02
CS_VREDRAW = 0x01
CS_HREDRAW = 0x02
WS_OVERLAPPEDWINDOW = 0xCF0000
CW_USEDEFAULT = -0x80000000
SW_SHOWNORMAL = 0x01
FORMAT_MESSAGE_FROM_SYSTEM = 0x1000
# LRESULT is defined as LONG_PTR (signed type)
if sizeof(c_int32... | [
"kovrov@gmail.com"
] | kovrov@gmail.com |
b15598eadeb78e2994d75c0367214ad181d903fe | 7d2692834242cf63ad10cb5a39476210c92dbc5d | /utils/linematch.py | 0b2066976bad0557413cf2acd73e55fbfaafbaa3 | [
"MIT"
] | permissive | shengzhang90/deep_gcns_torch | 0ebec94568f8035c425138a4cf23276829ffe16d | 9282e2e7a928029e549150c5dcab2d0db279fed3 | refs/heads/master | 2020-08-22T18:28:50.883259 | 2019-10-20T12:43:47 | 2019-10-20T12:43:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import subprocess
import os
import sys
def find_last_line(path, exp):
ans = []
if not os.path.exists(path):
raise Exception('Path does not exist')
for r, d, f in os.walk(path):
for file in f:
fullfile = os.path.join(r,file)
line = subprocess.check_output(['tail', '-... | [
"gordonqian2017@gmail.com"
] | gordonqian2017@gmail.com |
800fa6caac9000d9001428fc19bd06a386df9d03 | 5f4bf4c3caff64a6e82e6a522c85c4029f07ad68 | /pydatastream/__init__.py | 6f89e9ccaf7ff5a05e3e9239a55edcf315bb4fc5 | [
"MIT"
] | permissive | ceaza/pydatastream | ee8ecffd766823b76a0b579d1c34e2b25375d77c | 062b56ca1a6aebf00f9191a6c02e8e4eea063702 | refs/heads/master | 2021-01-18T02:28:04.830572 | 2016-03-16T19:10:00 | 2016-03-16T19:10:00 | 54,023,093 | 0 | 0 | null | 2016-03-16T10:37:14 | 2016-03-16T10:37:13 | null | UTF-8 | Python | false | false | 51 | py | ### Dummy __init__ file
from pydatastream import *
| [
"vfilimonov@ethz.ch"
] | vfilimonov@ethz.ch |
9a9c205fa38d5e32eb069139605bfd188370c64b | 99c353ac90be2b607881498b05075cd21b216314 | /simulatedData/plotter.py | b02336e0cd1319caeb0a557cb73b98f0957eb4b0 | [] | no_license | sahil00199/Covering-Simulations | 0014eb9f5b4138cf5d41153b111988c7a4071669 | 39da59439c53b0c63a6b80fe469824a63d685de1 | refs/heads/master | 2020-03-22T05:19:57.104657 | 2018-07-09T13:02:34 | 2018-07-09T13:02:34 | 139,558,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | import matplotlib.pyplot as plt
name = "right"
file = open(name, 'r')
data = ""
for chunk in file:
data += chunk
file.close()
data = data.split("\n")
data = [x for x in data if x != ""]
x = []
y = []
for element in data:
x.append(float(element.split()[0]))
y.append(float(element.split()[1]))
plt.plot(x, y)
plt.... | [
"sahilshah00199@gmail.com"
] | sahilshah00199@gmail.com |
391eea6aba9ccba16e5fc376b74dcd70462bc6fb | 74975046450684cb9c9770f42119575a16ce4c18 | /basics.py | 299ebde08f574d2174785993aeff6db20e152531 | [] | no_license | d0uble0deven/Python_Playground_One | 1324cb9d3002ed3b77aa9f1a27ef7a48237c5a8c | 1f09cee08d8b9685cd93eedd80e185b23e9e4721 | refs/heads/master | 2023-02-03T18:19:54.091657 | 2019-10-29T21:42:16 | 2019-10-29T21:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | import datetime
now = datetime.datetime.now()
print("The date and time is", now)
myNumber = 10
myText = "Hello"
print(myNumber, myText)
x = 10
y = "10"
z = 10.1
sum1 = x + x
sum2 = y + y
print(sum1, sum2)
print(type(x), type(y), type(z))
student_grades = [9.1, 9.8, 7.5]
grade_range = list(range(1, 10))
range_... | [
"friendsofdev94@gmail.com"
] | friendsofdev94@gmail.com |
406b33597d9802bc2210fa169fe5e9edff9992d3 | 5ffc57ca00b370751fb65a1f1efe973781100a0e | /appone/views.py | cdc62c4821cdd007d9de93bc92a4cb1a54f0fc62 | [] | no_license | swapnali0212/schoolapp | af9ed65b61034a75ead8d0fdc403d36a74c9c3b9 | 70032c9b35cf913ec7e807e02146fef19b306258 | refs/heads/main | 2023-01-23T23:10:43.807172 | 2020-11-30T19:54:29 | 2020-11-30T19:54:29 | 317,327,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from django.shortcuts import render
from rest_framework.viewsets import ModelViewSet
from appone.serializer import *
from appone.models import *
class HelloView(APIView):
per... | [
"swapnalikapare02@gmail.com"
] | swapnalikapare02@gmail.com |
9e3014da0abcabebac335b1dc52a83d5201e2749 | a8fe10debc89eac786ebdfa9cbaa5dd7b6315bf2 | /EngageApp/urls.py | be77b0598e3dc032613d0185af6dac1eec3f90ba | [] | no_license | shekarneo/backup_recom | d9dc7dc1a752eccfeec70a13e112545955ff8e24 | eb17354620013c94297d1805c403ae92fa5f3c55 | refs/heads/main | 2023-03-20T06:38:32.070302 | 2021-03-11T09:53:36 | 2021-03-11T09:53:36 | 346,997,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,092 | py | from django.conf.urls import include, url
from . import views
from EngageProject import settings
# from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
app_name = 'EngageApp'
urlpatterns = [
url(r'^date_filter/upcoming3/$', views.filter_date_event1),
... | [
"shekaransd@gmail.com"
] | shekaransd@gmail.com |
47b5da87fe99d20e11b17a2a3b32e0c365054fce | 5fba99e6ec9f23ae4c0b8d28dbb86cd6d23c3887 | /djcelery_ses/__init__.py | e7c12d2851b5fb9f4f5c09ac96f1550b3b94c82b | [
"MIT"
] | permissive | StreetVoice/django-celery-ses | 2e8fe75c9c83028ba345bf3a4296a290ef06e54f | 0c2a2cae6f3ff641c496c1e0815e2cd5c697f8a1 | refs/heads/master | 2023-08-31T16:12:29.493185 | 2023-08-24T05:31:19 | 2023-08-24T05:31:19 | 6,350,221 | 19 | 9 | MIT | 2023-08-24T05:31:20 | 2012-10-23T10:00:37 | Python | UTF-8 | Python | false | false | 22 | py | __version__ = '2.0.3'
| [
"cha798215@gmail.com"
] | cha798215@gmail.com |
b4e786cac92727c050d451fab734c2221ae028c1 | 7d19797caa0abf8875dba77f5e63e19c3aa646b4 | /redis2kfk.py | 430efc252fb9a7857f400542b8fec07deaf94662 | [] | no_license | xiaoerli520/redis2kafka | e2d58d860220e6b14d1005f492d4aae1ef2532eb | 8b297da10f1bbedf8a49ec10ea53d1d750dac796 | refs/heads/master | 2020-04-03T01:02:38.403133 | 2018-10-27T02:58:50 | 2018-10-27T02:58:50 | 154,917,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,614 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import signal
import sys
import time
import logging
import threading
import traceback
import yaml
from kafka.errors import KafkaTimeoutError, NotLeaderForPartitionError
from redis import ConnectionError
from model import kfk_producer, redis_consumer, redis_monitor, noticer,... | [
"shixi_qingzhe@staff.sina.com.cn"
] | shixi_qingzhe@staff.sina.com.cn |
6aef1372f3256427de61edd2f22042759ba8be37 | 26e4e8cc485a00bac7a0a7b4b7e215ef48314bf1 | /django_mongo_web/django_mongo_web/gcs_app/models.py | a26b31fa2856a3b9917bea5a0b1de174782827ff | [] | no_license | Gogistics/prjDjangoMongoOnGCE | b2ae9c24c55dd637809dda52d658a048946feb9f | b64720cc5ed33cf5e281bb14124772d122e6ab16 | refs/heads/master | 2020-07-25T07:23:37.897311 | 2014-12-02T07:31:32 | 2014-12-02T07:31:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from mongoengine import *
from django_mongo_web.settings import DBNAME
connect (DBNAME)
class Post(Document):
title = StringField(max_length = 120, required = True)
content = StringField(max_length = 500, required = True)
last_update = DateTimeField(required = True)
| [
"root@gogistics-server.c.gogistics-cloud-1014.internal"
] | root@gogistics-server.c.gogistics-cloud-1014.internal |
4b92ff7e467ed8e25c639496ee88dec5d048fa53 | 1fc6386856f6145d74c2a4efdc6597fc8512badb | /formatters/harmoniaParser.py | ec5a34a456fcc9c7b9c03365c7f3aab82aee4b52 | [] | no_license | lab11/gatd-lab11 | 6684ea94748ddc9f41d95917d4e8de522c4ab661 | 806c7aac1d99ff405c108933ac1c7bcbd136c13c | refs/heads/master | 2021-01-21T04:40:16.898997 | 2016-06-13T21:49:00 | 2016-06-13T21:49:00 | 16,458,375 | 0 | 0 | null | 2014-10-23T21:45:14 | 2014-02-02T16:51:44 | JavaScript | UTF-8 | Python | false | false | 812 | py | import IPy
import json
import struct
import parser
import binascii
import datetime
import pytz
import time
class harmoniaParser ( ):
name = 'Harmonia'
description = 'Harmonic Localization System.'
def __init__ (self):
pass
def parse (self, data, meta, extra, settings):
def convert_bcd(raw_t):
h = hex(raw... | [
"bpkempke@umich.edu"
] | bpkempke@umich.edu |
fd383de4e6b89efa815286ba137152c793ddc76d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03261/s807506520.py | 99d06e27e156d735988991a822f6233b91e07407 | [] | 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 | 236 | py | N=int(input())
H=input()
word=[]
word.append(H)
for i in range(N-1):
S=input()
if S in word:
print('No')
exit()
else:
if H[-1]==S[0]:
H=S
word.append(H)
else:
print('No')
exit()
print('Yes') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2a8671467188ac4a0c4de391016897269906b824 | cbf8b6e17389bb544c98c86a59d5f64f30e78625 | /ReuterCrawler.py | 2fad26761a9b5895e0c4deadd2e9b598d102113b | [] | no_license | jinyi12/StockMarketPrediction | d76f3ac0a4eeab3bab847e6793498f0ae638ac82 | 0618b671bce39a666dc653af00b40d4ec68e83c2 | refs/heads/master | 2022-09-26T04:17:11.032643 | 2020-06-07T15:08:05 | 2020-06-07T15:08:05 | 270,252,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import os
import sys
import datetime
# import news data scraping utilities from parent directory
import inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(os.path.dirname(currentdir))
sys.path.insert(0, parentdir)
import utilities
| [
"jinyi12@outlook.com"
] | jinyi12@outlook.com |
ae2f22f7a27f5e9ef722dd41bdc6c39b09e1074f | 7cbcaaf610b69c61b1aa2834d43ae7999f472c9e | /accounts/apps.py | c073b96d51055de37de686ff356664f2437d4ce7 | [] | no_license | youcanshine/djangomall | c7da0e34d3beb04ab2b1c4c53492c33d0319e7f0 | 976dab8948039212f6adb20690ce3ae36afa1df3 | refs/heads/master | 2023-01-30T12:48:13.358251 | 2020-12-13T07:35:16 | 2020-12-13T07:35:16 | 315,939,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from django.apps import AppConfig
class AccountsConfig(AppConfig):
name = 'accounts'
verbose_name = '账户'
| [
"youcanshine@foxmail.com"
] | youcanshine@foxmail.com |
0797f8a1e6c95d8a19772812284eb5df51f20fa4 | 753b238c50e4f456d6e4cc81d8301a868c117d33 | /src/GraphicsView.py | 00981faf3c31fd133c794d561edb542d1a80ed67 | [
"MIT"
] | permissive | chiefenne/PyAero | 7c04a81e479bbe3e722779ba1b8a4ef530cd84c7 | 04f12b3fe84f97efcfd48a815934fa5af330cd31 | refs/heads/master | 2023-06-22T02:27:43.049172 | 2023-06-15T12:59:36 | 2023-06-15T12:59:36 | 145,753,681 | 127 | 23 | MIT | 2023-06-15T12:59:38 | 2018-08-22T19:30:13 | Python | UTF-8 | Python | false | false | 17,730 | py | import os
import math
from PySide6 import QtGui, QtCore, QtWidgets
from Settings import ZOOMANCHOR, SCALEINC, MINZOOM, MAXZOOM, \
MARKERSIZE, RUBBERBANDSIZE, VIEWSTYLE
import logging
logger = logging.getLogger(__name__)
# put constraints on rubberband zoom (relative rectangle wdith)
... | [
"andreas.ennemoser@aon.at"
] | andreas.ennemoser@aon.at |
ea1150a925ad744777f4984d38f49553a2e72068 | 11611a4c44e3da661990bf0ca585b24932fe4d8d | /5-多线程/11.py | 26c742d993f2c807ea4ddc701d7e2ccd9441e32a | [] | no_license | Marina-lyy/basics | d94532bac0d45eb73a9e8bfd317770f8b660b3f2 | 333ec857b79ef516e655779849fe13769281471e | refs/heads/master | 2022-04-01T23:49:55.366658 | 2020-02-02T13:35:56 | 2020-02-02T13:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import threading
sum = 0
loopSum = 1000000
def myAdd():
global sum, loopSum
for i in range(1,loopSum):
sum += 1
def myMinu():
global sum, loopSum
for i in range(1,loopSum):
sum -+ 1
'''
if __name__ == '__main__':
myAdd()
print(sum)
myMinu()
print(sum)
'''
if __name__ =... | [
"1295278001@qq.com"
] | 1295278001@qq.com |
34ae09386144daba8c693cd839c94b11c7223dcd | e3edf9f0e8cd1c0471f59f1fd81f37b3694b5211 | /photo_organizer/logic/photo_size_adjuster.py | 0a34f0f1d8bd79addae1ce353071e21ff5e111ce | [] | no_license | not-so-fat/photo_organizer_py | f1ff4663b834f91cece3180cc02664fb7b3d1df1 | 2268685ad788c32f5d6cf056991a8efb787d6b4c | refs/heads/master | 2023-02-17T20:05:02.625355 | 2021-01-09T17:14:22 | 2021-01-09T17:14:22 | 326,556,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | from photo_organizer.settings import TOP_BUTTON_HEIGHT, MARGIN_BOTTOM, MARGIN_LEFT_RIGHT
def get_new_image(pil_image, screenheight, screenwidth):
original_width = pil_image.width
original_height = pil_image.height
max_height = screenheight - TOP_BUTTON_HEIGHT - MARGIN_BOTTOM
max_width = screenwidth - ... | [
"conjurer.not.so.fat@gmail.com"
] | conjurer.not.so.fat@gmail.com |
2870d8fd2d7988664ac85e49aef508886060949c | 4b678cec44b3630b19589ad7fe54f0002badce04 | /Fifa_2019.py | aa4d3c5ebabac40ebdb9d9353cfc798ab4204dbb | [] | no_license | Ibravic/FIFA_2019 | 4d2d83cccdfa487d2a970a349d735da2fcd2b8d5 | 9797b11bc542e012e138b15f618914d1bcaaae9f | refs/heads/main | 2023-03-18T10:28:24.705764 | 2021-03-13T19:18:27 | 2021-03-13T19:18:27 | 345,064,932 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,610 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 24 21:40:01 2021
@author: Ibrahim
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats as stats
import seaborn as sns
from sklearn import linear_model
df_fifa=pd.read_excel("f:\\Personal\\Data Analysis\\Fifa2019D... | [
"noreply@github.com"
] | noreply@github.com |
9080767c9492cc2dc984b1b52d3f9dbdbf137669 | 3a83a18c97e27bc89b3718b50edd32a1bc57eaaf | /qualitylevel_jccs.py | 5f4884209b49a0ebeac84d03a73e9df4b6c48f13 | [] | no_license | liudoudou86/Bug_calc | 3217856442f34ad679b1b38120e5ff5246b53b93 | 81dd96ce7a8d8a926b44f3bbab2efb67353d1d71 | refs/heads/main | 2023-02-25T11:02:20.639069 | 2021-02-03T05:24:27 | 2021-02-03T05:24:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,945 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:lz
import data
# 集成测试的质量等级计算
def jccs_x():
while True:
bug_jccs = (data.cs.fatal_jccs()*15)+(data.cs.serious_jccs()*1.5)+(data.cs.general_jccs()*0.3)+(data.cs.slight_jccs()*0)
if 30 < bug_jccs <= 100:
print("Bug值:",bug_... | [
"noreply@github.com"
] | noreply@github.com |
cde33c3fb73f89f70fcf662ed9338c01dcaaa9c0 | 95a3ca5eed239f4084d9f1788cc8e355ad9caa3f | /setup.py | b3da51f2332290688d8fb1d5252849d9ddfc0190 | [
"BSD-2-Clause",
"MIT"
] | permissive | ktp-forked-repos/esperanto-analyzer | 5290e45613d0aa48c3a0a7aa463901d0c9d3b4b7 | af1e8609ec0696e3d1975aa0ba0c88e5f04f8468 | refs/heads/master | 2020-05-14T10:26:02.148538 | 2018-09-06T21:33:11 | 2018-09-06T21:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | # pylint: disable=missing-docstring,no-self-use,invalid-name
# Learn more: https://github.com/kennethreitz/setup.py
from setuptools import setup, find_packages
with open('README.md') as f:
readme = f.read()
with open('LICENSE') as f:
lib_license = f.read()
with open('requirements.txt') as fd:
requirem... | [
"rafa_fidelis@yahoo.com.br"
] | rafa_fidelis@yahoo.com.br |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.