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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f72d57c43b8fe76cd74819a7a83fffb1ad3bf93 | 9f6e090c2cfd56979997cfde82b288e83e916677 | /djangonautic/urls.py | babe920e58533a79e39dc3eddaed7be8a04e7947 | [] | no_license | F13RC3/djangonautic | 73a26bde787041dfc8c1946948173a1c6a1112d7 | 12a6aa21c3500ad0dfab84cadb1a67b6cb68c523 | refs/heads/master | 2020-07-05T05:16:15.707209 | 2019-08-15T12:10:20 | 2019-08-15T12:10:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django.contrib import admin
from django.urls import path, re_path
from django.conf.urls import url,include
from . import views
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static
from django.conf import settings
from articles import views as article_views
... | [
"ashish.rout406@gmail.com"
] | ashish.rout406@gmail.com |
ad3f2b56cdbdd7f80247eb8a1a6fb70b31c024d4 | f15d24ce70ba36ec709b6a9c024725bde7082955 | /T_others_to_c.py | cb1a4ab318669a840ad5b68e0a23279421b5a0bd | [] | no_license | fdc227/AIRCRAFT_MODEL_RELEASE | 4a1e6e3ee1b791561618f63f5b7de8df9015308c | 96747e44a76855c7e0a62da986c5ea73f8aab07c | refs/heads/master | 2020-07-09T20:59:16.088364 | 2019-10-07T13:22:40 | 2019-10-07T13:22:40 | 204,082,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,720 | py | import pickle
from sympy import *
from sympy.printing.ccode import C99CodePrinter
from sympy.printing.codeprinter import Assignment
from iseven import iseven
import sys
print(sys.argv[1])
print(sys.argv[2])
num_of_elements, num_of_processes = int(sys.argv[1]), int(sys.argv[2])
# num_of_elements = total number of finit... | [
"fangdecheng@hotmail.com"
] | fangdecheng@hotmail.com |
5837d24747eb111593c4fdc4fdb16c2048efb91e | d3e6d6555b0314936902727af36de2f1b7432bf8 | /linked-list-cycle/linked-list-cycle.py | af4d1032682c25c061b7019097dc1288fceab653 | [] | no_license | fly2rain/LeetCode | 624b1e06e1aa3174dfb5c81834b58cc8fd7ad073 | 4ddb5a051c6e2051f016a675fd2f5d566c800c2a | refs/heads/master | 2021-01-18T03:12:22.402044 | 2015-12-28T04:31:19 | 2015-12-28T04:31:19 | 85,842,050 | 0 | 1 | null | 2017-03-22T15:05:20 | 2017-03-22T15:05:19 | null | UTF-8 | Python | false | false | 771 | py |
from utils import ListNode
class Solution(object):
def hasCycle(self, head):
"""
:type head: ListNode
:rtype: bool
"""
if not head:
return False
prev, current = head, head.next
head.next = None
while current:
if current == hea... | [
"xuzheng1111@gmail.com"
] | xuzheng1111@gmail.com |
33302759c219b9a3b1fe2347ecb502a4dace1d4d | fc0150b1fd6ba0efd6746a34ffa8cba01640d10e | /Programming Basics with Python - април 2018/04. Complex-Conditions/02. Small Shop.py | f98d0d795257e24d58dfce9db983b1cd9ca6dbeb | [] | no_license | vgrozev/SofUni_Python_hmwrks | 7554d90f93b83d58e386c92dac355573c8cda848 | b10a941a0195ea069e698b319f293f5b4a660547 | refs/heads/master | 2021-06-08T19:40:27.009205 | 2019-11-24T17:19:31 | 2019-11-24T17:19:31 | 95,629,443 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | product = input().lower()
town = input().lower()
quantity = float(input())
total = 0.0
if town == 'sofia':
if product == 'coffee':
total = quantity * 0.50
elif product == 'peanuts':
total = quantity * 1.60
elif product == 'beer':
total = quantity * 1.20
elif product == 'water':
... | [
"vgrozev@gmail.com"
] | vgrozev@gmail.com |
b49d41c660d323470c0b91f8b0625757281eccd0 | 1be96ee96f3b33469ca073c4f32884cb7230106b | /python3_cron_scripts/libs3/ZoneManager.py | 0531dbedb4a08f885bbf76e4b6fa355e672c65fc | [
"Apache-2.0"
] | permissive | vishnurajkv/Marinus | 3305478038fba8b0ea15dafa2219df9f4df21e9b | 331ba1dc2e99ae99df6c9d93063a852eec41d578 | refs/heads/master | 2020-06-29T10:58:50.196807 | 2019-07-26T20:48:47 | 2019-07-26T20:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,583 | py | #!/usr/bin/python3
# Copyright 2018 Adobe. All rights reserved.
# This file is licensed to you 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 requir... | [
"puhley@adobe.com"
] | puhley@adobe.com |
d3ef5ccaa99988559bd5fde97a0082c970a270a1 | 1548ce77537dcd50ab04b0eaee050b5d30553e23 | /autotabular/algorithms/ctr/xdfm.py | 003e7cba0a5433e271cb0403bed753da731ebcad | [
"Apache-2.0"
] | permissive | Shamoo100/AutoTabular | 4a20e349104246bf825ebceae33dca0a79928f2e | 7d71bf01d2b7d84fcf5f65c9f45c5cea1255d8a2 | refs/heads/main | 2023-08-13T21:34:34.329888 | 2021-10-02T07:06:00 | 2021-10-02T07:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | import torch
from autotabular.algorithms.ctr.layer import CompressedInteractionNetwork, FeaturesEmbedding, FeaturesLinear, MultiLayerPerceptron
class ExtremeDeepFactorizationMachineModel(torch.nn.Module):
"""A pytorch implementation of xDeepFM.
Reference:
J Lian, et al. xDeepFM: Combining Explicit an... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
b8ef08afc88239a1c064acc5c67624fcb605990c | 3a918f7baaf088b44227781a5ba017f4dc9a1a13 | /scripts/extract_results.py | 6e51015592bbeab3b2067ba63e66c85f713ead57 | [] | no_license | jagol/MTL-SD | 7bda0282c6d9eb5ce0ff2e9819f1933c7ceeba73 | de1cef6c82d3366c5f2bf1430bcd546d8aa0ab92 | refs/heads/main | 2023-05-14T04:00:54.034887 | 2021-06-01T21:39:00 | 2021-06-01T21:39:00 | 343,364,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | import os
import csv
import json
import argparse
from typing import List
from preprocess import *
"""Script to extract relevant results from results-file of allennlp predict-command.
Creates new results file with name <input-name>_extracted.csv.
Removes old results file to avoid cluttering.
"""
def extract_results... | [
"janisgoldzycher@mailbox.org"
] | janisgoldzycher@mailbox.org |
63f124f199d2e152e2fc67618693c424f3febbb7 | d458b72b4d0e5c51446bb8b9f8a6276015dfb594 | /math/0x02-calculus/10-matisse.py | 88cf330d9c797d23e8f981fda83e54f60879e7f5 | [] | no_license | mecomontes/Machine-Learning-projects | d6588cfaa7d020d3fae0fb74f6550c9e84500578 | 50e1828b58bb58eecfd3a142501b37fe701f4e49 | refs/heads/main | 2023-07-14T12:30:19.792332 | 2021-08-29T15:33:16 | 2021-08-29T15:33:16 | 376,129,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 8 9:34:16 2020
@author: Robinson Montes
"""
def poly_derivative(poly):
"""
Function that find the derivate of a polynomial
Arguments:
- poly(list of integers): polynomial to calculate the derivate
Return:
List of coeffi... | [
"1574@holbertonschool.com"
] | 1574@holbertonschool.com |
ba4a59497f41ffefe8c698f0a65012b2d35d88e6 | b5aeb0f8b8efc77d77842237a80cce90e529ac5f | /config/settings.py | 04b0faaaab467f76b64edc86c9631e42ab3f4de5 | [] | no_license | Pillin/POC-Django-Cooker | b078502d403a90cc57c4691265235ce855c8d75e | e6ad88564d3045af4a418234a927970f928e3c58 | refs/heads/master | 2022-12-12T15:02:41.410674 | 2019-09-30T03:41:28 | 2019-09-30T03:41:28 | 210,078,139 | 1 | 0 | null | 2022-12-08T05:22:06 | 2019-09-22T02:13:33 | Python | UTF-8 | Python | false | false | 4,361 | py | """
Django settings for nora project.
Generated by 'django-admin startproject' using Django 2.2.1.
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
impor... | [
"ignacia.pp@gmail.com"
] | ignacia.pp@gmail.com |
2d6e5705b0d6fc9452a7eef4f715005355db0acf | 0067290f8a2c5c367eee2e76f7ec743719d5b59c | /one/two/migrations/0002_auto_20170802_1924.py | 02ba77ac66799d0a3867254c03ad5115c12deb5d | [] | no_license | 8880/Django | d81da8f410845676606eb148a609f56792a14b1b | 469fe07475c2f7c6e2d1ba1e2119b59550f154e6 | refs/heads/master | 2021-01-16T17:54:58.393384 | 2017-08-19T02:55:11 | 2017-08-19T02:55:11 | 100,019,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-08-02 11:24
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('two', '0001_initial'),
... | [
"klous530.outlook.com"
] | klous530.outlook.com |
175d2147b052746aa4fb54eee2552c7003b10d43 | 8df7fa5a5669fab2ec25efea335ab5a8b90d8f76 | /02-controls/03-ScreenGeometry.py | 46475f77eb34bbe4fd16e471199d7a789e1df4d0 | [] | no_license | HackettHsu/PyQt5Tutorial | 76b458b7c15a5707a7c6ef01e4c5cc5f48296ade | 01c3f782e48742a57a1152ec114f8c8cec71c323 | refs/heads/master | 2022-09-21T00:39:27.710977 | 2020-06-01T06:53:29 | 2020-06-01T06:53:29 | 259,819,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | '''
屏幕坐标系
PyQt5在进行界面设计时默认存在X-Y坐标系,以(屏幕和程序)左上角为零点
工作区:程序中不包括标题栏的区域
到底哪些含有标题栏?
'''
import sys
from PyQt5.QtWidgets import QHBoxLayout, QMainWindow, QApplication, QPushButton, QWidget
# 单击按钮输出坐标信息
def onClick_Button():
print("Method 1:")
print(f"widget.x() = {widget.x()}")# 窗口坐标。含标题栏
print(f"widget.y() = {wid... | [
"1017207528@qq.com"
] | 1017207528@qq.com |
31a9922a9cadf18a73fa0c106cd377bfb6696751 | 08a68e32dc80f99a37a30ddbbf943337546cc3d5 | /.history/count/urls_20200419191412.py | 5d8ed271bfc7e1cb0268e075f7a2e8934d978eed | [] | no_license | Space20001/word-count-project | dff1b4b44d2f7230070eef0d95dd968b655d92f7 | 795b5e8ad5c59109e96bf7a8e9192efaefa7770e | refs/heads/master | 2022-04-20T17:54:05.511449 | 2020-04-20T15:25:46 | 2020-04-20T15:25:46 | 257,327,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home),
path('', views.about),
]
| [
"steve.h@blueyonder.com"
] | steve.h@blueyonder.com |
a4e3c2a78a101ae2c35ecf31315de44d777b253f | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /Module01_CZ/day7_data_struct_str/04-代码/day7/125_字符串高级操作(判断型).py | 8f356536eabd5e44cafbc8624e413494095895a0 | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | """
演示字符串判断型操作
"""
# str1 = "\n"
# print(str1.islower())
# print(str1.isupper())
name = "张三丰"
print(name.startswith("张三"))
filename="1.jpge"
if filename.endswith(".jpg") or filename.endswith(".png") :
print("该文件是一个图片")
| [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
000e1259ee1af55de6f4cf1e16088578c95cd082 | b3dec5c9347ac443ed36dfd759e6bb58550dd239 | /functional_tests/test_layout_and_styling.py | 670b19b27d17eb830593f591479d2f2b103df28e | [] | no_license | StevenSLXie/Ask-and-answer | a6587ae8424063bfe4f46fa0c3cac7d415237a12 | 778d580f53dfc1b187a95ad41ed504ab79205541 | refs/heads/master | 2021-01-01T05:53:53.644232 | 2014-01-07T08:45:49 | 2014-01-07T08:45:49 | 15,699,362 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from django.test import LiveServerTestCase
import unittest
import time
from unittest import skip
from .base import FunctionalTest
class LayoutAndStylingTest(FunctionalTest):
def test_layout_and_styling(self):
# Edith go... | [
"stevenslxie@gmail.com"
] | stevenslxie@gmail.com |
b9ee4247f3e4f57c0fe3eb2d7c715b195da8c830 | 962dca0c4f20b45a122f17310acf12057ca866d2 | /old_version/models.py | 5e859c2eff46a3168e9a7f3f7c45f5696f459216 | [] | no_license | wyuten/3ch | c78e2a5cf0b65813302e84bf12dd60a6dccdb633 | 23c73d907bc36a59907dcc0845dea131fa27dcde | refs/heads/master | 2023-04-06T10:59:39.598242 | 2019-04-13T11:54:35 | 2019-04-13T11:54:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # -*- coding: utf-8 -*-
from app import db
from datetime import datetime
class Article(db.Model):
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
title = db.Column(db.String(256), nullable=False)
content = db.Column(db.String(30000), nullable=False)
time = db.Column(db.Da... | [
"wyuten@gmail.com"
] | wyuten@gmail.com |
5730ac87d69f4f8cfbe150ec06158ae54a7943a1 | c557bd8a74d2d4936aeae477fb37be374e904853 | /If_No_council.py | 290032b09aef70b7d1a5e950c1b03ff4bd02461d | [] | no_license | shalom-k/Hackathon_team2 | 80a6d4f30b89894bb353c3218e24ec2c4d5b7600 | e1855ad7a68cb613ecece703882d58d024aee215 | refs/heads/main | 2023-03-22T02:55:02.787292 | 2021-03-13T23:25:04 | 2021-03-13T23:25:04 | 346,830,380 | 0 | 1 | null | 2021-03-13T22:46:52 | 2021-03-11T20:36:25 | Python | UTF-8 | Python | false | false | 1,366 | py | import requests
import json
#find distance between 2 points
def distance(start, fin):
api_key = 'AIzaSyBbwM-62klXAknNAhMWEZ-MVlpfUFYFYko'
url_distance = 'https://maps.googleapis.com/maps/api/distancematrix/json?'
req = requests.get(url_distance + 'origins=' + start +
'&de... | [
"noreply@github.com"
] | noreply@github.com |
a693789de45dbd41820033a6363a8ffeb13c7b85 | 662788b9affd962f8d04d337fe65a418ca5ff209 | /eden/tutorialKivy/tk012_hexEdit_appUsingModules/aboutDialog.py | 260a7a900713e8c436c56f2107f454c9e03dec85 | [] | no_license | xgid/Eden | 0d4910d27da24594d53a221d80313fb7f0e27788 | b2e062fd22481bf26bfc7cc78bf2ec0ba875ddfb | refs/heads/master | 2020-03-31T10:04:24.157325 | 2015-01-24T17:46:54 | 2015-01-24T17:46:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # Copyright (C) 2005 - 2014 Jacques de Hooge, Geatec Engineering
#
# This program is free software.
# You can use, redistribute and/or modify it, but only under the terms stated in the QQuickLicence.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, without even the implied... | [
"jdeh@sterlicht.nl"
] | jdeh@sterlicht.nl |
7b89bfc599a8c522870a3004d962c83174b573a2 | b980b16022f9661c8fe25d35ffdccdc2bc5ad193 | /json_fingerprint/_create.py | b5e4a7366a9a48c4a958a9fd5740cc37eb729193 | [
"MIT"
] | permissive | cobaltine/json-fingerprint | 520456c74faa2ed2a7db2a8bc3b27af2335452a5 | 8face4a37e6db8f5a52727d721dfc80a4c3b031a | refs/heads/main | 2023-05-25T03:43:39.390401 | 2023-05-22T18:03:07 | 2023-05-22T18:10:28 | 322,092,977 | 5 | 2 | MIT | 2023-05-22T18:10:29 | 2020-12-16T20:21:59 | Python | UTF-8 | Python | false | false | 1,089 | py | from ._jfpv1 import _create_jfpv1_fingerprint
from ._load_json import _load_json
from ._validators import (
_validate_hash_function,
_validate_input_type,
_validate_version,
)
def create(input: str, hash_function: str, version: int) -> str:
"""Create JSON fingerprints with the selected hash function a... | [
"ville.lehtinen@cobaltine.fi"
] | ville.lehtinen@cobaltine.fi |
a268ef38a2861b114ef4f65c5e31730ade40cc92 | 7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4 | /django/django-intro/home/workspace/PROJECT8/movies/forms.py | 96b211b33850d9d51473be7e05a26ff57cb8c511 | [] | no_license | seunghoon2334/TIL | c84f9f9e68c8ccc7a1625222fe61f40739774730 | 51cfbad2d9b80a37b359716fca561c2a5c5b48b3 | refs/heads/master | 2022-12-18T18:20:19.210587 | 2019-11-26T03:14:23 | 2019-11-26T03:14:23 | 162,101,369 | 0 | 0 | null | 2022-11-22T03:59:16 | 2018-12-17T08:51:53 | C | UTF-8 | Python | false | false | 491 | py | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from .models import Movie
# modelform
class MovieForm(forms.ModelForm):
class Meta:
model = Movie
fields = '__all__'
def __init__(self, *args, **kwargs):
super()._... | [
"gogo12394@naver.com"
] | gogo12394@naver.com |
d313ac27c05892907d934359fa7a177b2f5f2fff | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/site-packages/pip/_internal/vcs/__init__.py | 4b25ec2e4255710878140a71bd637c31b9cea887 | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | ../../../../../../../.cipd/pkgs/2/_current/lib/python3.8/site-packages/pip/_internal/vcs/__init__.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
8bf94d64f8dd66a1fa69e2c51090c36a8828b416 | 729ce984b65b68f2da2045cafe0fbc169692af15 | /string_2/count_hi.py | dc41d8786789ae4cd4c967eb5b7c203bd4051f15 | [] | no_license | imvivek71/CodingBat-Python-Coding | 00b1f254c30c423405500e18648e52e59878db9d | 684d432bb5b0a470ab1a86fd4758673b39a16cca | refs/heads/master | 2020-04-15T06:39:52.218845 | 2019-02-04T09:08:03 | 2019-02-04T09:08:03 | 164,468,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | """""
Return the number of times that the string "hi" appears anywhere in the given string.
count_hi('abc hi ho') → 1
count_hi('ABChi hi') → 2
count_hi('hihi') → 2
"""
def count_hi(str):
x = len(str)
count = 0
if x>1:
for i in range(1,x):
if (str[i]=='i' and str[i-1]=='h') :
count = count+1
... | [
"noreply@github.com"
] | noreply@github.com |
0519b9a6c3d736fd51361e9def7cf66c291409c5 | 915ac708aeac53125f29bef90c2c047eaed4940e | /Anaconda/Scripts/rst2xetex.py | 2d9179a588e56dbef11208ccd0ed3621286f9cc3 | [] | no_license | bopopescu/newGitTest | c8c480ddd585ef416a5ccb63cbc43e3019f92534 | 5a19f7d01d417a34170a8f760a76e6a8bb7c9274 | refs/heads/master | 2021-05-31T17:00:26.656450 | 2016-06-08T06:43:52 | 2016-06-08T06:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #!C:\aroot\stage\python.exe
# $Id: rst2xetex.py 7038 2011-05-19 09:12:02Z milde $
# Author: Guenter Milde
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing XeLaTeX source code.
"""
try:
import locale
locale.setlocale(locale.LC_ALL, '')... | [
"arvindchari88@gmail.com"
] | arvindchari88@gmail.com |
b4c40afde973ad9d8f36c83127803a0977c3e0ac | 6cc958a57fd727ae66bad61548d4a21d023e6058 | /src/util/util_unit.py | 44b3790514651d2f66dbc0ac31356ba366102b6c | [
"MIT"
] | permissive | oygx210/hpr-sim | 7135e1cba0a868f24eda6c22294a715c41fce2e5 | 4b7249f64c3c699fb863855eb8f1963b4d06e32e | refs/heads/master | 2023-04-13T01:43:38.068845 | 2021-04-27T02:12:34 | 2021-04-27T02:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | '''
High Power Rocketry - Flight Simulation
MIT License
Copyright (c) 2019 Roshan Doddanavar
https://rdoddanavar.github.io
Path:
hpr-sim/src/util/util_unit.py
Created:
2019-05-25
Type:
Python3 module
Description:
Provides unit conversion utilities.
Functions:
config
convert
Classes:
None
De... | [
"roshandoddanavar@gmail.com"
] | roshandoddanavar@gmail.com |
9214d8fa1656c1be4d2bc90c80540115d23dcb3f | 09717c5335b85838f31cfdb464387378be8ba104 | /toy_test/data_util.py | 829db87c67a8a814e9ba0dda22a86da0d7458706 | [
"MIT"
] | permissive | whikwon/seq2seq-translation | bd6644f9f03e8debb16085f57ad99c0e1d7fa447 | 6858a5270d6c6bf034fdba27600d3d82090b3874 | refs/heads/master | 2021-05-11T12:13:38.442871 | 2018-01-16T11:04:44 | 2018-01-16T11:04:44 | 117,653,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | import numpy as np
import tensorflow as tf
import os
PAD = 0
UNK = 1
GO = 2
EOS = 3
start_token = GO
end_token = EOS
def read_file(path):
"""Read source from text file"""
input_file = os.path.join(path)
with open(input_file, "r", encoding='utf-8', errors='ignore') as f:
source_sentences = f.read(... | [
"whikwon@gmail.com"
] | whikwon@gmail.com |
48f6fab3b18bb1659f37d45e12c7ea01398ed32a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_bunts.py | 41d450a12d291732d8830616446e29d1957fe2d2 | [
"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 _BUNTS():
def __init__(self,):
self.name = "BUNTS"
self.definitions = bunt
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['bunt']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e569fc7fc6e893e1d228b1d7e4971dcb65008fb8 | 45cc3880f3444276cebb0a7f91d3b146cd27b9d0 | /beeprint/printer.py | 63fe4de1510c7695ba066e8687e34780d93a7b3e | [] | no_license | aijikl/beeprint | 056aa84ff73da93c50143c83bed0fdf54bd37ee5 | 0380a942c0ad56ab219a51c728b4244a9b49f405 | refs/heads/master | 2021-01-20T04:25:26.858124 | 2017-04-04T06:50:36 | 2017-04-04T06:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # -*- coding:utf-8 -*-
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
from __future__ import division
import sys
import traceback
import types
import inspect
from io import StringIO
from .utils import pyv
if pyv == 2:
# avoid throw [UnicodeEnc... | [
"568397440@qq.com"
] | 568397440@qq.com |
8bbbaf502c9a337965728c2e82e58a6959f1178e | 09a076a0e5bc81ccd5a5bc472e817326e4540c09 | /cycling/polls/mercado/mercado/middleware.py | 1e23016687ff389288fd00180007cb6a6799dc98 | [] | no_license | martinnogueira/django22.7tutoriales | f5bffb11491169fb5cc0f934270033be2eed2b30 | 2e2b1e47c8d2f5cbf15ff3616eb7e470822b3b4b | refs/heads/master | 2020-03-23T18:59:55.368029 | 2018-07-25T23:19:36 | 2018-07-25T23:19:36 | 141,947,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | from scrapy import signals
class MercadoSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy acts as if the spider middleware does not modify the
# passed objects.
@classmethod
def from_crawler(cls, crawler):
# This method is used by Scrapy ... | [
"maitinn2@hotmail.com"
] | maitinn2@hotmail.com |
fcaf8123dd2fd421f5fc4ee011401898730fd1c1 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/11114095.py | 04981cbb389888968150d038dc6a792df1581176 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/11114095.py generated: Wed, 25 Jan 2017 15:25:18
#
# Event Type: 11114095
#
# ASCII decay Descriptor: [B0 -> K+ pi- (Higgs0 -> mu+ mu-)]cc
#
from Configurables import Generation
Generation().EventType = 11114095
Generation().SampleGenerationTool = "Sig... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
8ab66f039bfb3d4689e240f5275c04e6cab0d10e | 3b07a0c65c20e512a7578efe76080b277f70da23 | /packages/clear.py | 53c2a60d22cca6bf6b5881ce34e51a2b800d5ecc | [] | no_license | FuryAdcom/PPython_MiniProyecto1 | 3df19c9fdaa43227b6df8443013361309e2d7aff | 9f91af84993e80c9c49c0424a17623f1941fa1ee | refs/heads/main | 2023-01-12T13:28:32.547138 | 2020-11-12T13:45:50 | 2020-11-12T13:45:50 | 311,410,120 | 0 | 0 | null | 2020-11-12T13:45:51 | 2020-11-09T17:13:07 | Python | UTF-8 | Python | false | false | 132 | py | from os import system, name
def clear():
if name == 'nt':
_ = system('cls')
else:
_ = system('clear') | [
"43940539+toniguarisco@users.noreply.github.com"
] | 43940539+toniguarisco@users.noreply.github.com |
5c18325f09c726223108db74bfcdff8194bd5abf | 0709374e10878df28c7f5359b14ea7eaaac8c5f1 | /train_models.py | d36f050510cbc73bb5c2ef72f7ba120873c6f9c2 | [] | no_license | rhawiz/dingocv-api | c8af7e46df4ba833c71dc64e0321f463b6b1756f | d1197d120e8ce27b73903e53a5f76537c7228696 | refs/heads/master | 2021-01-16T18:49:30.878196 | 2017-08-14T20:20:37 | 2017-08-14T20:20:37 | 100,119,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import os
from app.core.train import AutocompleteTrainer
DATABASE_PATH = os.getenv("DATABASE_PATH", "dingocv_phrases.sqlite")
MODELS_PATH = os.getenv("MODELS_PATH", 'models')
trainer = AutocompleteTrainer(save_dir=os.path.abspath(MODELS_PATH), sqlite_path=os.path.abspath(DATABASE_PATH))
trainer.train()
| [
"r.hawiz@geophy.com"
] | r.hawiz@geophy.com |
058130f56ac7ae3b6cae1b4806a62a3b69fc3b90 | 6adf38f23f24a643d3cacd8daf1eb6e008e2f826 | /spec_test_2.py | 3c8ae0abc983f7d46f75c71d9925cba762a0ebf1 | [] | no_license | nschaffin/Spectrometer-Test-Code | a7f08a59ca7f5c50a9954095bdab4b7a468f9107 | 7bf65af534c1920f667defe1aae08a524e49ffe2 | refs/heads/master | 2022-11-27T05:53:44.709052 | 2020-08-10T17:38:52 | 2020-08-10T17:38:52 | 278,254,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py | import seabreeze
import seabreeze.spectrometers
from seabreeze.spectrometers import Spectrometer
import time
'''
Meant to be run in interactive mode to catch errors
'''
spec1 = ''
# Step 1 and step 4
def test_spectrometer():
global spec1
# Test from_first_available
first_spec = seabreeze.spectrometers.Spectromete... | [
"edwinlu8678@gmail.com"
] | edwinlu8678@gmail.com |
56fcd9d7569cd87ba0cc217a1be8e88301bac6f5 | 361ac3fcf36d80c792b60b7e2284cb1dc8d77944 | /osa03-16_sanojen_ensimmaiset_kirjaimet/test/test_sanojen_ensimmaiset_kirjaimet.py | bd5cdde1c62e7f1ca35d82db216518e44c552e43 | [] | no_license | darkismus/mooc-ohjelmointi-21 | 48cc20391db4240104549d4f3834a67c77976f6d | 5f72dd9cff78704a2a0f5bc1cc18c7740ce50c51 | refs/heads/main | 2023-08-01T03:35:13.244978 | 2021-09-14T10:49:37 | 2021-09-14T10:49:37 | 368,469,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,507 | py | import unittest
from unittest.mock import patch
from tmc import points
from tmc.utils import load_module, reload_module, get_stdout
from functools import reduce
exercise = 'src.sanojen_ensimmaiset_kirjaimet'
def outputs_equal(str1 : str, str2 : str) -> bool:
return str1.lower() == str2.lower()
def get_correct(s... | [
"tuomas.puikkonen@iki.fi"
] | tuomas.puikkonen@iki.fi |
2f9bdc29452a2db1226f3a1ca5aab9fbdac5e5d6 | 6d0364f7aca2ea76444299d84d467a55b8dfabde | /tests/toranj/test-100-mcu-power-state.py | 4cba5896a9f0a28e51ca54be48ff0350a5037d02 | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause"
] | permissive | particle-iot/openthread | b862853867a75a591bcb3dae8f70c2ac9c35eaba | 668256290d1c48319b0b96d41559efb48dcc0821 | refs/heads/master | 2020-03-13T13:02:45.358306 | 2019-07-09T11:38:23 | 2019-07-09T11:38:23 | 131,131,221 | 1 | 0 | BSD-3-Clause | 2019-05-19T03:42:57 | 2018-04-26T09:19:12 | C++ | UTF-8 | Python | false | false | 9,901 | py | #!/usr/bin/env python
#
# Copyright (c) 2018, The OpenThread Authors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright
# ... | [
"jonhui@nestlabs.com"
] | jonhui@nestlabs.com |
415935edef31996e2b359804e324f5f7b3d48614 | ab9b75fcdd2b7352968886e5ed41ee7788216226 | /src/gamesbyexample/stickyhands.py | a1af5601756ea83263f3a20e8dd2bb26220102ac | [
"MIT"
] | permissive | mgocken/PythonStdioGames | d7b48cafbc33a027548cab08ad08aea6c0c81abd | 036d2f142581fb74a38400721aecce15a695e1bc | refs/heads/master | 2020-09-29T18:35:34.589307 | 2019-12-06T00:15:46 | 2019-12-06T00:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,528 | py | # Sticky Hands, by Al Sweigart al@inventwithpython.com
# A jewel-stealing, movement puzzle game.
__version__ = 1
# Inspired by Herding Cats https://w.itch.io/herding-cats
# TODO - Enter R to reset the entire level.
import copy, os, sys
# Setup the constants:
WALL = chr(9608)
FACE = chr(9786)
DIAMOND = chr(9830)
CHA... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
172bb00f20da38f71b5cc4ba3039f8e12d3e9b89 | bf44592899afb4192579105cc8f3102f8bddef4c | /website/login_module/admin.py | df30291c8c4e638171e68cd5cea822a1872a46a8 | [] | no_license | VigneshwarRavichandran/Django-Test | 7e3021cc27981656a71d21f72d17f1b7955098e9 | ad11470c5a2e30d802415e6c6236ccac90ff792c | refs/heads/master | 2020-08-01T23:21:41.182811 | 2019-10-09T17:02:06 | 2019-10-09T17:02:06 | 211,155,579 | 2 | 0 | null | 2019-10-09T17:02:25 | 2019-09-26T18:25:47 | Python | UTF-8 | Python | false | false | 115 | py | from django.contrib import admin
from .models import *
admin.site.register(Users)
admin.site.register(UserDetails) | [
"vigneshwarravichandran@gmail.com"
] | vigneshwarravichandran@gmail.com |
e662722fad68cff102487d6ba08454d41807ad11 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/detection/YOLOX_Dynamic_ID4069_for_PyTorch/yolox/layers/fast_coco_eval_api.py | 55bfa28a1c06813d48ff90862908a7655239001e | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-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 | 6,464 | py |
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"hanjun20@huawei.com"
] | hanjun20@huawei.com |
abc9188983419180bd10fbed0de5aaa7610ece80 | 0ec9b1f5435854638befc7efadca0577cc9c6505 | /mlsemcwk/viewdata.py | 0fe474e8dcaca77150e2b51eac3728cfa4d4ce4d | [] | no_license | michaelwh/mlsemcwk | f4ec19ab417b6cc2c216d68835f35b0790d484ec | 5f59e8c50c56d53c0de84dd16d5d49c292e92a39 | refs/heads/master | 2021-01-20T03:26:02.560111 | 2011-05-18T14:00:40 | 2011-05-18T14:00:40 | 1,752,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | #!/usr/bin/env python
# Tk-matplotlib integration code from http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk2.html
import matplotlib
matplotlib.use('TkAgg')
from numpy import arange, sin, pi
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotl... | [
"michaelwhodgson@gmail.com"
] | michaelwhodgson@gmail.com |
44a2c07bd6f7ec678545c4d5e02cbf32aa98c42d | 58575ac7ea2aa81f0267a2badd8b40b06b37f8f4 | /production.py | 37b6508cfa8cfdd0248b0a9e13bfcf64ca8ee963 | [] | no_license | wenbinhuang9/LL-first-follow | 60c02172af53ff56667b3b210709ca61dc4dd5ab | aeafde3f8b75654e65fd82fec17af8dd76026267 | refs/heads/master | 2021-05-20T16:31:31.037819 | 2020-04-03T01:00:33 | 2020-04-03T01:00:33 | 252,368,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py |
def decodeProductionList(file):
ans = []
start = None
with open(file) as fd:
lines = fd.readlines()
for line in lines:
if line.startswith("start"):
start = line.split()[1]
elif line != "":
production = decodeProduction(line)
... | [
"ben@wenbins-MacBook-Pro.local"
] | ben@wenbins-MacBook-Pro.local |
6747247f5f548f5e24f7c1afa2b192c7d9a0e06e | e8600b0404bf67f7046b81a7afde513dbbaad622 | /recipe-search/urls.py | 15ee99859e042a65236e7b4d5c134f11677a8534 | [
"BSD-3-Clause"
] | permissive | talpor/recipe-search-hackathon | f46817041b2310f3b08c3e163fd8bab4e56df1be | 7471f08e1067317f3bb1f35b4ebd4b3cd96e0580 | refs/heads/master | 2016-09-11T00:21:45.429716 | 2015-02-23T02:15:42 | 2015-02-23T02:15:42 | 31,127,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
from django.contrib import a... | [
"gjaber@talpor.com"
] | gjaber@talpor.com |
0318a8bc4860d8f8c1d1970f31b869a66bf7252a | aa61aca81cbe97ec6a012ddd55f5780df98f952a | /Final_task/libraries/UnixToIso.py | 267a612b6580d45f8400c020196c53858ad88136 | [] | no_license | R1ckNash/Testing_the_openweathermap_website | 3141870e774fb39d908c98a825af92f3aefde0d5 | 6d86b16e1313cc7aa9a769669ed06affacb10b8b | refs/heads/master | 2022-10-13T19:17:56.607743 | 2022-09-14T07:44:53 | 2022-09-14T07:44:53 | 260,710,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | seconds = 86400
def get_year(unixtime):
year = 365
leap_year = 366
current_year = 1970
cur_unix = 0
tmp_unix = 0
while 1:
if cur_unix > unixtime:
current_year -= 1
break
if (current_year % 4 == 0 and current_year % 100 != 0) or current_year % 400 ==... | [
"Carapaceeee@rambler.ru"
] | Carapaceeee@rambler.ru |
fe484f2dbfa7363e12c93e00a34759692e113a73 | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /test/test_term_session_item.py | 7867f29a7aa4a6fd2bb993565b40f161db7abf86 | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
eda4b59a482a804a1127f88a7858183bc9a63ff5 | 6b1852a7b33cb5dd8f8c77af4b02e6ef2cd33bb2 | /process_data.py | 292f75e400526963235124c85f96d5fc6711f1f5 | [] | no_license | LianaMikael/Paraphrase-Generation | 16cd6b7d0208cb9ae674dcede15c65e859b8eb9b | 612e94a167b84b57002c1561473802046e491b14 | refs/heads/master | 2023-02-08T17:34:53.595361 | 2021-01-03T22:01:14 | 2021-01-03T22:01:14 | 290,590,604 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
import re
def collect_ppdb():
sources = []
targets = []
with open('ppdb_all.txt', 'r+') as f:
for line in f:
line = line.split('|||')
if float(line[-1]) >= 3.0:
sourc... | [
"mvl1ana98@gmail.com"
] | mvl1ana98@gmail.com |
10e0325e5b08eac3a5535c61283db715fcf39bb1 | 47ea61cf24fb864c6bea0c6ef47436625b25105e | /project_6.py | f16a3dd78c12faa584d252146ac28eefa55e35d5 | [] | no_license | eun77/Voronoi-Algorithm-Center-points | 9973cde9ca19ae5689ce9757d6563045d77b1132 | 5104ef17fafcca12e320774ff47ebc2f1769796d | refs/heads/master | 2020-06-21T18:13:03.699186 | 2019-07-18T06:32:58 | 2019-07-18T06:32:58 | 197,523,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,531 | py | from PIL import Image
import random
import math
def generate_voronoi_diagram(width, height):
image = Image.new("RGB", (width, height))
putpixel = image.putpixel
imgx, imgy = image.size
nx = []
ny = []
nr = []
ng = []
nb = []
nx = [20, 40, 40, 40, 40, 60, 60, 60, 60, 80, 80, 120, 120,... | [
"noreply@github.com"
] | noreply@github.com |
ce6a75c3e25f17454a75327f11652b8aa4e4197d | 4c68051b3ade462240f063a6dbdea690bcc1457f | /gsb_intention.py | 99cc34ef91b70f8ebb0afc9bd0b1e687a8d544fb | [] | no_license | gaohang/search | 42cfac8318b2465f3b2df42de46c5ac05b921ca8 | 81459a5f43bf308ea6f5e77afb87c05d4113a7a0 | refs/heads/master | 2023-07-12T06:37:20.895644 | 2021-08-27T07:46:56 | 2021-08-27T07:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,778 | py | # encoding=utf-8
import pandas as pd
import json
from query_parser_search import QueryParserSearch
from main_search_search import MainSearchSearch
from config import p_date_today
import os
if __name__ == '__main__':
cwd, filename = os.path.split(os.path.realpath(__file__))
print(cwd)
gsb = open(cwd+'/gsb_... | [
"gao.hang@aliyun.com"
] | gao.hang@aliyun.com |
bab3b9c06cd3458d4a355e11325a5729132b1ce1 | eea1006480b1de285a102cc4223db193133baa16 | /hw_3/hw03_normal.py | 7159aca10d933db39a7b8386004ce10a39cfc70a | [] | no_license | kostcher/Python | de5e0515f41c1fe957ab14370054e41e7309873c | 7fb0e22254a41ccf79b9f14bfbee088e0bcaf01a | refs/heads/master | 2020-03-30T14:37:06.395892 | 2018-12-19T19:56:39 | 2018-12-19T19:56:39 | 151,326,877 | 0 | 0 | null | 2018-12-19T19:56:49 | 2018-10-02T21:38:37 | Python | UTF-8 | Python | false | false | 2,470 | py | # Задание-1:
# Напишите функцию, возвращающую ряд Фибоначчи с n-элемента до m-элемента.
# Первыми элементами ряда считать цифры 1 1
def fibonacci(n, m):
if n <= 0 or m <= 0 or m < n:
return []
fibonacci_row = [1, 1]
for i in range(1, m - 1):
fibonacci_row.append(
fibonacci_ro... | [
"k.s.cherepanov@gmail.com"
] | k.s.cherepanov@gmail.com |
4c340cb45e7aef300a6fcf35ac7fb96f061e341f | d6b3399b6c87137f97a3ea03e77cf00ef043144b | /titanium-reset-appc.sh | 540b1ad41bf4427793f8b25296094b616e2e520d | [] | no_license | deanrock/ios-continuous-integration | 9301f1fd82544f08dd1a3e3923789aadb94639ca | 77f3a1a8962f355e82411cb4e28e42f6196026dd | refs/heads/master | 2020-12-24T07:01:19.481134 | 2017-01-16T22:43:52 | 2017-01-16T22:43:52 | 58,654,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | sh | #!/usr/bin/python
import uuid
import sys
path = sys.argv[1]
new = []
with open(path) as f:
data = f.readlines()
for line in data:
if line.strip().startswith('<property name="appc-'):
continue
if line.strip().startswith('<property name="acs-'):
continue
if line.... | [
"dejan@dejanlevec.com"
] | dejan@dejanlevec.com |
05a6fb23df52b0619efa62fd7632a2128972f524 | d4ae9cbb7438397a33d7ac6754716db2f4fabd6c | /HelloPython/study/HelloPython111.py | 36da8e90c92ef59ec2593ce5a85b29690ef8caf1 | [
"Apache-2.0"
] | permissive | treason258/TreLibrary | 82cf0f3d7c1a67a18c86cf3c8d6566507db2ca79 | ccf463763518e40696a2cb7e7b95d6a7644fcf6b | refs/heads/master | 2023-01-08T10:25:33.097219 | 2021-10-15T06:06:10 | 2021-10-15T06:06:10 | 64,649,980 | 0 | 0 | Apache-2.0 | 2023-01-03T15:40:27 | 2016-08-01T08:31:08 | Java | UTF-8 | Python | false | false | 2,757 | py | # -*- coding:utf-8 -*-
import urllib
import urllib2
import re
import os
import time
class HelloSpider(object):
num = 0;
dirStr = 'Downloads/python/HelloSpider44'
imgStr = 'Downloads/python/HelloSpider44/0.jpg'
# print urllib2.urlopen("https://img.q6pk.com/image/20181119/", context=context).rea... | [
"matengfei@xin.com"
] | matengfei@xin.com |
581d49c1b52ad71809a42f76fa48e98a89cd7a70 | f40ba0cc14c227320636bb26ff4c18c433bbd796 | /oxemHeroes/gameMember/apps.py | df3241a5745a28148dbd19f7e53b29d19cfdcd65 | [] | no_license | mLegeay/Oxem-heroes | 432bf717a0ea96174ef838318f29fea42e500f4a | 5dbfd0c1bbd1f92f4678ef55acbef718db4d8f84 | refs/heads/master | 2020-04-25T05:03:16.659607 | 2019-03-21T13:44:18 | 2019-03-21T13:44:18 | 172,530,179 | 0 | 0 | null | 2019-03-21T13:44:19 | 2019-02-25T15:17:44 | Python | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class GamememberConfig(AppConfig):
name = 'gameMember'
| [
"mathieu.legeay@sephira.fr"
] | mathieu.legeay@sephira.fr |
02e1b1ac9d7ca0fcf0fa59318c57df5d46403f9d | 16809bf25066488f2f32f154dadef3e30c68ae68 | /sine_wave.py | 0ed35aeb1f8d136868fdb4c3053a10605cc1bcdf | [] | no_license | aidiary/signal_processing | 0db6d1a9662ccd0fe232ccc461e9b27174c8ef88 | 4c1cb8ceee3a1527f38b8dbf9ffa1a737d06b577 | refs/heads/master | 2021-01-13T03:44:32.721301 | 2016-12-23T13:40:10 | 2016-12-23T13:40:10 | 77,221,395 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | #coding: utf-8
import wave
import struct
import numpy as np
from pylab import *
def createSineWave (A, f0, fs, length):
"""振幅A、基本周波数f0、サンプリング周波数 fs、
長さlength秒の正弦波を作成して返す"""
data = []
# [-1.0, 1.0]の小数値が入った波を作成
for n in arange(length * fs): # nはサンプルインデックス
s = A * np.sin(2 * np.pi * f0 * n / ... | [
"f2forest@gmail.com"
] | f2forest@gmail.com |
1d780241475488e4db572beaa12329618d3bf1a4 | d9a1ab1a63b5e32917f8bf0235f2a3d5dda0859e | /6.5.3.py | 01839d6d67fa29a1ceb8dc82b0510750f69cbeb7 | [] | no_license | ianmlunaq/edhesive-python | a2123e0dd814ea82daa2b6d4c365bafc718e6faa | 25def8fa2728e7e388866dc7451b0a523adea291 | refs/heads/main | 2023-04-01T14:08:32.362019 | 2021-04-06T03:53:43 | 2021-04-06T03:53:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | # 6.5.3.py | ian luna | 2020.04.24
z = 0
for x in range(99, 0, -1):
z = z+x
print(z)
| [
"noreply@github.com"
] | noreply@github.com |
0927f40911c491e95f265c70fcf2b07e8abf0276 | 0da6461f39f243e1e2b6eef346da29e3f13ec198 | /guest/sign/migrations/0001_initial.py | 6c6c647f3f68a2b483ee6da898545d0d7374024b | [] | no_license | galypso/pydj | 36865f5b86db7a4be33bb8402e44051a46685cf4 | c9b5b26ac61d2c1d48ff25e3e3240572a28271f4 | refs/heads/master | 2020-06-01T16:08:07.358258 | 2017-06-13T05:39:47 | 2017-06-13T05:39:47 | 94,079,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-06-12 05:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"galypso@163.com"
] | galypso@163.com |
a844e2ab5bb2d5944f55a1af4f41746ccd02dfc2 | c8ebf4217a96c1a3afc978ac94bdc8738f5120a3 | /staff/utils.py | a207c7a173b04ac4d870cc8b2dab4e17ddfa716a | [] | no_license | vinux84/dept2 | 240bea22205a2a36a88484e669151996c43e5ba8 | 12a558453b22cf00da0001f15225f1c6b37d71ab | refs/heads/master | 2021-09-06T17:20:36.831910 | 2018-02-08T23:08:06 | 2018-02-08T23:08:06 | 112,055,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | import random
import string
from django.utils.text import slugify
'''
random_string_generator is located here:
http://joincfe.com/blog/random-string-generator-in-python/
'''
DONT_USE = ["create"]
def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits):
return "".join(random.choice(cha... | [
"vincedev8@gmail.com"
] | vincedev8@gmail.com |
ebaed099d674b260f3ebd706f27ed03c9e10f782 | b211aa36e31107d7530e2126d537fc0576208302 | /tests/test_api_veiculos.py | 5700cd20fdc0bac6f2b37343c29a31e70323e85b | [] | no_license | jeffersonSA/CadVeiculosAPI | 0e7ccf3a7b134e2cb259f7a85d16cf371022e3e8 | 74ec501bc2116a2f02eec96e9cbd5ad2359f60a5 | refs/heads/master | 2023-04-20T12:58:04.144461 | 2021-05-15T21:40:10 | 2021-05-15T21:40:10 | 366,793,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | def test_post_deve_retornar_erro_quando_o_payload_for_incompleto(client):
dado = {'veiculo':'Gol','ano':2020,'vendido':True}
esperado = {'marca': ['Missing data for required field.'], 'descricao': ['Missing data for required field.']}
response = client.post('/api/veiculos',json=dado)
assert respons... | [
"jefferson.silvaaraujo@hotmail.com"
] | jefferson.silvaaraujo@hotmail.com |
deb27eae24f4cd46475211751438e904854e037a | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /ros/py_ros/kdl_test2.py | 120f3dc29d4eeaee751accf468dd08397df344f3 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | #!/usr/bin/python
#\file kdl_test2.py
#\brief certain python script
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
import numpy as np
from kdl_kin import TKinematics
if __name__=='__main__':
np.set_printoptions(precision=3)
print 'Testing TKinematics (robot_description == Yaskawa Motoman is as... | [
"info@akihikoy.net"
] | info@akihikoy.net |
df281f2293585c2a364e111d49a0b6c16f67a4f0 | 518920276b75b7a1c6f4f4cbae83e11f09946351 | /usedcars1_rodmuesong.py | 9fe188173c731abf04e25f8c925228f05926ae55 | [] | no_license | petasus/twocarsale | 4fd40c3e67b8fa6280d41c57617d8dab663692c6 | cd21c26721e053f6dc02bc11c5588a863a3b2466 | refs/heads/master | 2020-03-27T15:35:14.159112 | 2019-06-28T15:26:29 | 2019-06-28T15:26:29 | 146,727,223 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,911 | py | import requests
from bs4 import BeautifulSoup
from upload_data import uploadToSql as uploadDB
import connect
import datetime
import time
keep_sendlink=[] #สร้างฟังก์ชั่นเก็บเว็บไซต์และส่งไปยังอีกไฟล์
db = connect.conDB()
def get_Type(soup): #ประเภทรถ
detail = soup.select("div.content-col div.item-row span")
j=... | [
"tanapat23fsn@gmail.com"
] | tanapat23fsn@gmail.com |
a3ddf601d4a7e710a877f8f29f465f4233f64e46 | 69110d606c5075698620af1c060a08aea6bc83d6 | /user_messages/user_messages/models.py | b41a1f83f0fb4234018a4597ddaaa3b7da69590f | [] | no_license | anusha-vijaykumar/NextNeighbour | 258662023498a88e786615886aafbc1a5459b479 | 682142bd196a27e7b65969e889e3b20eb790a0da | refs/heads/master | 2021-01-10T13:49:18.619431 | 2016-03-08T03:41:31 | 2016-03-08T03:41:31 | 53,366,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | from datetime import datetime
from django.core.urlresolvers import reverse
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from user_messages.managers import ThreadManager, MessageManager
from user_messages.utils import cached_attribute
class Thread(models... | [
"av1653@nyu.edu"
] | av1653@nyu.edu |
f788c19f9b7cd4e666685b717504ad5e80a33c46 | 0d87c9a03cf5874851cc7923669e2b7a3241c630 | /gluoncv/torch/model_zoo/action_recognition/i3d_slow.py | e1f8173ccee17096ca1ddc6652c2eda916921adb | [
"Apache-2.0"
] | permissive | Kh4L/gluon-cv | 0f5a771ac44059ac8d562f5ae4502698b1537ee4 | 849411ed56632cd854850b07142087d599f97dcb | refs/heads/master | 2021-06-28T21:39:38.859719 | 2020-11-21T01:18:53 | 2020-11-21T01:18:53 | 186,614,638 | 0 | 0 | Apache-2.0 | 2019-05-14T12:11:12 | 2019-05-14T12:11:12 | null | UTF-8 | Python | false | false | 20,813 | py | # pylint: disable=missing-function-docstring, line-too-long
"""
SlowFast Networks for Video Recognition
ICCV 2019, https://arxiv.org/abs/1812.03982
Code adapted from https://github.com/open-mmlab/mmaction and
https://github.com/decisionforce/TPN
"""
import torch
import torch.nn as nn
import torch.utils.checkpoint as cp... | [
"noreply@github.com"
] | noreply@github.com |
73363d48a6cac54ee344107bc25fcafb7a2ad9ea | 276578a3f4747879cbe99425e15daf100fa4e4c2 | /to_do_api/models.py | fd9af7ab348fd45b6ddb4b8da500f55557519a2d | [] | no_license | nadersayed22/to-do-task | 38d5ee06c6258e7ea4ef94bf7d82539b71cf4146 | 1d151918b93eaaa40826a405de9322bdbe82efc2 | refs/heads/master | 2023-04-17T12:13:30.968495 | 2021-04-28T23:15:21 | 2021-04-28T23:15:21 | 356,759,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.contrib.auth.models import PermissionsMixin
from django_timestamps.softDeletion import SoftDeletionModel
from django_timestamps.timestamps import TimestampsModel
# Create your models here.
class UserProf... | [
"nadersayedrabea22@gmail.com"
] | nadersayedrabea22@gmail.com |
cc9c24223afa3233535419d0963c36d03937434c | f973fb52affe135e725e157c0df95324975ef795 | /Telecom-Customer-Churn/docs/conf.py | d86edd5a017426b310948e9409a59f94b52dbabc | [] | no_license | Pasoosh/CustomerChurn | efae2fb489890a48a2324bb05273c2f9b4dad787 | 89772d8d2be572e88eae0ee3fe11500ffb38284e | refs/heads/master | 2020-12-13T05:03:38.164118 | 2020-02-11T03:12:02 | 2020-02-11T03:12:02 | 234,318,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,936 | py | # -*- coding: utf-8 -*-
#
# Telecom-Customer-Churn documentation build configuration file, created by
# sphinx-quickstart.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuratio... | [
"Leonardo.dosPassos@standardbank.co.za"
] | Leonardo.dosPassos@standardbank.co.za |
1dcc63d83716fd495907c607354e43e5e0f8ea87 | 4210f8105f9e9a097e3544d15ec2c859bc737bf9 | /dictpandas.py | 3e4d82f99249e166d2408c4f08d1a3feff320049 | [] | no_license | Taranjeet0874/Python | f56fb4f39a4a9df22d16c37e5ed808d80c6641c3 | 5749a394099f26fd0f15fe2674035053c297adcb | refs/heads/master | 2022-11-26T21:30:13.044112 | 2020-08-01T12:22:06 | 2020-08-01T12:22:06 | 284,251,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | import pandas as pd
dic={'a':7,'b':5,'c':9,'d':2}
dict=pd.Series(dic)
print(dict)
| [
"noreply@github.com"
] | noreply@github.com |
c008d92d5264518d006a4ff9b43acef4f19e4c38 | 30b004cad2c14b47b5f66c3a4a0015e05ca4a27e | /contrib/data_safety_training/image_classification/submitter.py | 920b60ad8fed2d7ff0b13d17001d8227f3b0abb8 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleFL | 66c26f774eeadc25c12e74056ac389e0c1f61b84 | dcc00c5dff62c3dd0092801f4e9b89d8c0957d3d | refs/heads/master | 2023-08-07T22:05:24.806573 | 2023-03-21T01:15:10 | 2023-03-21T01:15:10 | 210,873,203 | 486 | 136 | Apache-2.0 | 2023-07-26T22:30:57 | 2019-09-25T15:01:39 | Python | UTF-8 | Python | false | false | 1,090 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"jingqinghe@baidu.com"
] | jingqinghe@baidu.com |
a5c34785b6e67c5d99db3841e937400c96a08ec5 | 039ef0d50d998ae083ac079c2c4abab50f7b6cc1 | /src/pyfluid/fluidsimulationsavestate.py | b1704097e255faabe5c244dff72dd95ccb83fe43 | [
"MIT"
] | permissive | Computational-Fluid-Dynamics/Fluid-Simulation-for-Computer-Graphics | 37fc2dff5ebe9d3433ba78f1ea171471a8e7c24b | 1df6268e0a7563e3aedecd7bdee4258d41d4e729 | refs/heads/master | 2023-03-21T15:40:58.085143 | 2020-08-27T08:06:33 | 2020-08-27T08:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,061 | py | import ctypes
from ctypes import c_void_p, c_char_p, c_int, c_double, byref
from .pyfluid import pyfluid as lib
from .vector3 import Vector3, Vector3_t
from .gridindex import GridIndex, GridIndex_t
from . import pybindings as pb
def _check_load_state_initialized(func):
def wrapper(*args, **kwargs):
self =... | [
"noreply@github.com"
] | noreply@github.com |
b4ae9f1575266b930744a7ac2eb33ce2b5e6389f | 8dcc00b1d3843e5d0734b1978c301f424b4a7019 | /optimize.py | 7c00dd3260feab7443e46c1ff9b2aba3a3e5ee94 | [] | no_license | rezanmz/GNN-NAS | 67804bd22bb3a8456e7542e183b1adc3f07777f3 | ddde87dbf28f2b6a35c14945bed7e872a4d102e3 | refs/heads/main | 2023-08-30T12:19:34.238812 | 2021-09-20T05:25:35 | 2021-09-20T05:25:35 | 408,321,092 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,503 | py | import matplotlib.pyplot as plt
from train import evaluate, train
from model import GraphSAGEModel
from utils import coarsen_graph, load_dataset
import optuna
import torch
from tqdm import tqdm
optuna.logging.set_verbosity(optuna.logging.WARNING)
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
#... | [
"rezanmz@ymail.com"
] | rezanmz@ymail.com |
834f9fe5415648747f7cdd025b3293da95197ed1 | a567d8a737ce56f00c73938fbdd96ed2c6133522 | /playlistlive/player/migrations/0002_auto_20200422_0046.py | 9f1db51e331eb0fb90483535553846316f131760 | [] | no_license | irisswang/djrooms | edd30fe4ec5b6b33684688e8bde2b7854989916c | 58e88c88870af10564a56408ef68439aab425318 | refs/heads/master | 2022-12-03T13:14:52.371720 | 2020-08-21T03:50:09 | 2020-08-21T03:50:09 | 289,170,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Generated by Django 3.0.5 on 2020-04-22 00:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('player', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='room',
name='label',
field... | [
"iriswang@Iriss-MacBook-Pro.local"
] | iriswang@Iriss-MacBook-Pro.local |
17b5eaa33969590f4387243407b4798aca232038 | 061e0fba7861dcc3e4be40bbba7267e42c44d182 | /Task1.py | 6bd52cfc8c35af8d946e223a083980900784b4e1 | [] | no_license | Jimmyqlx/EEGdataClassification | a019a572b5c01a30e5598ff2f168fb9f08f6e506 | 2e7bc82fab06b0db0b82b3c302c49083302ca089 | refs/heads/master | 2021-01-03T02:00:13.068942 | 2020-02-11T21:36:53 | 2020-02-11T21:36:53 | 239,869,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | from keras.models import Sequential
from keras.layers import LSTM, Dense, Dropout, Masking, Embedding
from keras.layers import Input,Dense, Conv2D, Flatten, MaxPooling2D, Dropout
import numpy as np
import matplotlib.pyplot as plt
import os
import scipy.io as sio
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
dir = '... | [
"noreply@github.com"
] | noreply@github.com |
d0abf9db2f89e8b73654b4215f62188526f0ef67 | a5cfc11819dcacc3629aced6bcbe324d694fd3b7 | /CS-UY 1134/HW/HW9/sx670_hw9_q4.py | 28a232af7dfd6e1453d2ddc0617a0b3642df47da | [] | no_license | Kevinxu99/NYU-Coursework | 712d26c808a8d9da94c889cac2cb594881a28c30 | 3b6a896a18e4ee2748fb8cdfdbfd1f6c4c2d212b | refs/heads/master | 2022-04-21T20:43:07.205988 | 2020-04-11T10:39:47 | 2020-04-11T10:39:47 | 254,841,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,038 | py | import random
class Empty(Exception):
pass
class UnsortedArrayMap:
class Item:
def __init__(self, key, value=None):
self.key = key
self.value = value
def __init__(self):
self.table = []
def __len__(self):
return len(self.table)
def is_empty(self... | [
"noreply@github.com"
] | noreply@github.com |
862323cdd250fded22470d58b5b961390e8c4680 | 88748ec85d537e4b50ba45a255a0dcc3c154116f | /tests/unit/test_poll.py | 2810d41f352a9741f36504ab9e9b2f71976b5c96 | [
"MIT"
] | permissive | byrgazov/vanilla | 17c53843b1b2f6b5484e4ff8e2fab54123245cc0 | 2896ae049d9e58ef3b4008a869ebf481951d0780 | refs/heads/master | 2020-07-30T12:30:04.497223 | 2020-07-24T10:08:03 | 2020-07-24T10:08:03 | 210,235,284 | 0 | 0 | MIT | 2019-09-23T00:49:06 | 2019-09-23T00:49:06 | null | UTF-8 | Python | false | false | 1,731 | py | import os
import vanilla.poll
class TestPoll(object):
def test_poll(self):
poll = vanilla.poll.Poll()
r, w = os.pipe()
poll.register(r, vanilla.poll.POLLIN)
assert poll.poll(timeout=0) == []
os.write(w, '1')
assert poll.poll() == [(r, vanilla.poll.POLLIN)]
... | [
"andy@thecablelounge.com"
] | andy@thecablelounge.com |
9186adbbcc93b2ca3c5ce9855e19456286ca235c | 6c95964cdbca57ee0e68c0cbfe6cf98380222ac6 | /utils_pre/cv_show.py | 6a8a1fd40dded05f300897d7a8f04c99ad1f0613 | [] | no_license | ustcylw/MXTrainV1 | b9a72492e3a04bdecf6ef1a76fbf4af81c923ff3 | a36f56c53e6782f32628572297e63fdb13ddf52d | refs/heads/master | 2023-06-24T17:56:33.169487 | 2021-07-29T07:06:45 | 2021-07-29T07:06:45 | 289,848,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,643 | py | #! /usr/bin/env python
# coding: utf-8
import os, sys
import numpy as np
import cv2 as cv
import utils.utils as Utils
import mxnet as mx
def cv_show_image(image, wait_time=0, RGB2BGR=True, name='image'):
if RGB2BGR:
image = cv.cvtColor(image, cv.COLOR_RGB2BGR)
cv.imshow(name, cv.UMat(image))
if c... | [
"469233390@qq.com"
] | 469233390@qq.com |
3fd87ba9660551134d9c18266bba46a5294863d3 | 5ade54823f83b2c20b00ea46d1e3bc09846e1215 | /datacube_zarr/utils/convert.py | b6218ecb7d207254be313c7f35f4787919f7ccc7 | [
"Apache-2.0"
] | permissive | opendatacube/datacube-zarr | 5bab8aff0872fa428cd55a7e875b69be78172b6c | 1c05a0c92d81b4235d75bbb01adcb2da9ae8013b | refs/heads/master | 2023-06-08T03:50:18.316962 | 2021-06-30T04:49:31 | 2021-06-30T04:49:31 | 381,565,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,207 | py | """
Functions for converting datasets to zarr format.
Conversions are supported on a local filesystem or S3
"""
import logging
from os.path import commonprefix
from pathlib import Path
from typing import Any, Iterator, List, Optional, Tuple
from datacube_zarr.utils.raster import raster_to_zarr
_SUPPORTED_FORMATS = {... | [
"david.cole@data61.csiro.au"
] | david.cole@data61.csiro.au |
06b51ef2e0ace62f85db6ec90b93c94fa5739842 | abfd2171bad6d822fdb59b9178d391885266492e | /TGNN_2T/util/data.py | 612fb0ceb666c432cc598479f9c06ed2dcbfc07a | [] | no_license | KRICT-DATA/TGNN_Band_gap | c26971fadfd0bf876f8440011696ec58afecc994 | a95187fb40e544e2ee49e80de39a73dabf8e9a05 | refs/heads/master | 2023-01-23T18:56:59.864663 | 2020-12-04T01:34:57 | 2020-12-04T01:34:57 | 276,809,991 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | class AtomwiseCrystal:
def __init__(self, pairs, y, ref_feat, id):
self.pairs = pairs
self.y = y
self.ref_feat = ref_feat
self.id = id
| [
"data@krict.re.kr"
] | data@krict.re.kr |
169b16e41128a5b926ccbc2ac8fca63fb6ec4f99 | ebb2360cd4f6c06a67a41c701f742672163dd9e1 | /day17/day17.py | 8dbaa2ad0d3aee430de37f7ec4c5c52fe7992c92 | [] | no_license | sephirothx/AdventOfCode2020 | 7387cae1e0617be4310cffe0ac63c6d28d2cc15b | 0aaccc7de82329744d484281d2cb36c8860710f6 | refs/heads/master | 2023-02-06T16:11:00.984293 | 2020-12-25T18:10:51 | 2020-12-25T18:10:51 | 317,433,761 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | from itertools import product
inp = open('input.txt').read().splitlines()
def solve(dim, cycles=6):
def neighbors(c, count_self=True):
for delta in product([-1,0,1], repeat=dim):
if not count_self and all(d==0 for d in delta):
continue
yield tuple(x+d for x,d in zip(... | [
"step.prosperi@gmail.com"
] | step.prosperi@gmail.com |
d8e20f7f2f4ccbe12262661ca45a1a743d45b15e | a027d95404e5c8e63dc90a561ed595a58605ab72 | /DAT310/Python/assignment 6/gradebook.py | 7ee5ec53c7078dce3a1863d977d9f2156e342957 | [] | no_license | aribo17/repo | 2d4e64cf8272780686eafa065db494de0cfdd035 | b9f182d4a3a94c1a48ebf979889c5e832a732973 | refs/heads/master | 2022-11-30T11:28:45.831789 | 2018-04-30T19:11:54 | 2018-04-30T19:11:54 | 117,899,119 | 0 | 1 | null | 2022-11-25T15:56:39 | 2018-01-17T22:14:02 | Python | UTF-8 | Python | false | false | 5,407 | py | """
Assignment 6B: Gradebook
"""
import os
HTML_FRAME_TOP = "<!DOCTYPE HTML>\n<html>\n<head>\n<title>{title}</title>\n" \
"<link rel=\"stylesheet\" href=\"{css_path}gradebook.css\"/>\n</head>\n<body>\n"
HTML_FRAME_BOTTOM = "</body>\n</html>\n"
class Gradebook(object):
def __init__(self):
... | [
"aoaa17@hotmail.com"
] | aoaa17@hotmail.com |
46d146530af78700cfd74beb3f489023f1b7682d | f5b62ca8d62efb831001306f8b402bbe6f71a373 | /catkin_ws/src/cmake-build-debug/localization/packages/orb_localizer/cmake/orb_localizer-genmsg-context.py | 94ef4ef86877787d6aa903bf217007a6c30b96eb | [] | no_license | Dokirobot-autonomous/localization_ros | 0771fa47a37200467707a13b23f62ab8036dfb74 | 564b656637afb84aaa7fe6e069f379f71d61a7b8 | refs/heads/master | 2020-03-30T08:33:51.591463 | 2018-10-16T03:43:49 | 2018-10-16T03:43:49 | 151,024,870 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/ohashi/localization_ws/catkin_ws/src/localization/packages/orb_localizer/msg/debug.msg"
services_str = ""
pkg_name = "orb_localizer"
dependencies_str = "std_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "orb_local... | [
"ohashi@nagoya-u.jp"
] | ohashi@nagoya-u.jp |
b540a1018ada187e4e6e105e8d050f936df3061b | f416ab3adfb5c641dc84022f918df43985c19a09 | /problems/advent-of-code/2022/05/sol2.py | 78cf7599b31d96f7b01fd8ad778ed956290eda79 | [] | no_license | NicoKNL/coding-problems | a4656e8423e8c7f54be1b9015a9502864f0b13a5 | 4c8c8d5da3cdf74aefcfad4e82066c4a4beb8c06 | refs/heads/master | 2023-07-26T02:00:35.834440 | 2023-07-11T22:47:13 | 2023-07-11T22:47:13 | 160,269,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | import sys
def splitInput(lines):
stack_data = []
moves = []
parsing_stack = True
for line in lines:
if not line:
parsing_stack = False
continue
if parsing_stack:
stack_data.append(line)
else:
moves.append(line)
stack_coun... | [
"klaassen.nico@gmail.com"
] | klaassen.nico@gmail.com |
3d6f97b441256fac9b6cb66b3166f809ccf49ec4 | 23d952d7d52ce824fdd93f7f6cdb60c962846524 | /3-4_Preparation+Computation/ingredients/scripts/similarity_basic.py | 8ee5c8d3300d8de60c878e88403d73d332e40dd0 | [] | no_license | BigData-Team8/Italian-Cuisine | 9152b3ec73f86081a3bbab9d7aa3078ca3648011 | 37146be0cf98d80d22400b8d2d94cd9e20159237 | refs/heads/master | 2022-12-05T11:01:27.199447 | 2020-08-19T21:13:55 | 2020-08-19T21:13:55 | 287,547,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | import json
import os, sys
import redis
import nltk
import pandas as pd
"""
from IPython.display import display
"""
pd.set_option('display.max_rows', 5000)
pd.set_option('display.max_columns', 5000)
pd.set_option('display.width', 10000)
# from __future__ import print_function
from nltk.metrics import *
csv = 'ingred... | [
"stefanopardini@gmail.com"
] | stefanopardini@gmail.com |
1e4c01ecb330a82e978502397ca4207a7ecf25fd | e3d030829e30e9357d9abcf369b89f23f9cb265d | /Lab 1 API Pam Fields 1-9-2018.py | e749e9ada200e3208a05c9a842564a18097659b1 | [] | no_license | pamsfields/PytonAPI | d382875df9ea5c12442d98a80a5b241e23c0215b | 0139fcc58bd46f92301dbbcad70d91d42a2ce58b | refs/heads/master | 2021-05-13T20:18:44.298069 | 2018-01-11T03:02:39 | 2018-01-11T03:02:39 | 116,910,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import requests
import os
key = os.environ['fixer_key']
base_url = "https://fixer.io/latest?symbols="
currency = input('What is the first country to compare currency exchanges? Please use the three letter abbreviation ')
params = {'fixer_key', 't' : currency}
data = dict(dict(requests.get("https://api.f... | [
"noreply@github.com"
] | noreply@github.com |
8793d1216da14a67dcf3182d0cb2892449856995 | 7f601fdb97c992a96e93a9d02e3720d57e191fcf | /djintl/settings.py | 98db185b64269d243e4d51d6d01b8fc24e89906c | [] | no_license | cipang/djintl | 796f9f95b65e82e24bf8c27dff16c24ef50a5bcb | 27b28161e8fe9ceee76fb3167d9b72b44a8cfcbc | refs/heads/main | 2023-09-01T12:44:18.115785 | 2021-11-06T02:24:49 | 2021-11-06T02:24:49 | 425,121,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | """
Django settings for djintl project.
Generated by 'django-admin startproject' using Django 3.2.9.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"mail@patrickpang.net"
] | mail@patrickpang.net |
a31688d8579cfce253b6dac4f680333340f6b0e4 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_sklearn/pyunit_sklearn_params.py | 2a70a91baafd68393e95b43969166ffea1f8a2ea | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 7,702 | py | from __future__ import print_function
import os, sys
from sklearn.pipeline import Pipeline
from h2o.sklearn import H2OAutoMLEstimator, H2OGradientBoostingEstimator, H2OScaler, H2OPCA
sys.path.insert(1, os.path.join("..",".."))
from tests import pyunit_utils
seed = 2019
def test_all_params_are_visible_in_get_para... | [
"noreply@github.com"
] | noreply@github.com |
6699c77e6bdac3ab961e9ae3e1ad3f3c9aaf04a2 | 7112e0e4b4b63228b9e0b4f0931a1870ffe54728 | /src/tests/gate-basic-bionic-stein | 6e24087e8b31a39c4f9cfc77d2120a4aedbc31ce | [
"Apache-2.0"
] | permissive | jlamendo/charm-designate | d45017a0ef904276d24eff9e84de38e9324b156c | 32c71708df04c02ea5fab335246344e03c39f70f | refs/heads/master | 2020-06-18T02:12:54.123654 | 2019-04-19T19:27:49 | 2019-04-19T19:27:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | #!/usr/bin/env python
# Copyright 2016 Canonical Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | [
"frode.nordahl@canonical.com"
] | frode.nordahl@canonical.com | |
e701b146176a8058895966374a94283d46d3e007 | 70fc834daab609e40dc1d6f67cef7afc525b0ace | /main5.py | 4a91c903c9ad310e98536ff11feb0a256a1b6a07 | [] | no_license | Edvard-Hagerup-Grieg/UNN-AppMath | f8c78921e5ae2392ea0d9d8c1f170beacd6b39f4 | fca3f7e79a98741c9c910895c47141909b6062e6 | refs/heads/master | 2020-04-26T09:16:12.772794 | 2019-04-15T06:14:29 | 2019-04-15T06:14:29 | 173,449,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | import matplotlib.pyplot as plt
import numpy as np
import math
def f(x, r):
return r*x*(1 - x)
def df(x, r):
return r - 2*r*x
if __name__ == "__main__":
# LAMEREY DIAGRAM & SYSTEM EVALUTION
RUN = True
if RUN:
x0 = 0.4
r = 3.46
xn = [x0]
x = [x0]
y = [0]... | [
"mari.louis.von.franz@gmail.com"
] | mari.louis.von.franz@gmail.com |
664dbeace03e2e09329cf482497d526407c70473 | 05a49b7d914ff4dea0d31d14801a45b571d164f9 | /Exercism Exercises/leap.py | a6093d71f37f3e355112768b6a6529bf68b5c881 | [] | no_license | Kalpesh-Makwana/Python | 68d80eb0ad2987188e3142c5a6be3b360bc284fb | 5bf00776a060d6ecb7cc92644da093ac38a6b19f | refs/heads/master | 2020-12-02T14:16:54.573079 | 2020-04-29T13:11:50 | 2020-04-29T13:11:50 | 231,034,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | def leap_year(year):
if year % 4 == 0 and year % 100 != 0 or year % 400==0:
return True
return False
| [
"kalpeshmakwna2610@gmail.com"
] | kalpeshmakwna2610@gmail.com |
ab1103ef8f833e5068f656a077eaf3f8f99bcfb7 | dedb4e01ed0c640612eae17f84bf7ed3da8bce17 | /backend/photosets/api/serializers.py | b1472a3ae238638526e4b9580e0fa04562793c1d | [] | no_license | yakimka/chubbyfolio | 6f26f769fcdfe4714200966188b3f182859ff6fd | 8c8d90a10eb794154d2b283e0795ce327bb78112 | refs/heads/master | 2022-07-24T16:20:55.959859 | 2022-05-04T19:01:51 | 2022-05-04T19:01:51 | 174,234,542 | 0 | 0 | null | 2022-05-04T00:31:03 | 2019-03-06T23:04:40 | Python | UTF-8 | Python | false | false | 805 | py | from rest_framework import serializers
from photosets.models import Photoset, Photo
class PhotoSerializer(serializers.ModelSerializer):
thumbnail = serializers.ImageField()
class Meta:
model = Photo
fields = ('id', 'is_cover', 'image', 'thumbnail',
'date_created', 'date_upd... | [
"ss.yakim@gmail.com"
] | ss.yakim@gmail.com |
73b575925f7a11a6fcf9163b2beb965b63a55b09 | a74b58651b4cc7027fce6856d46bb7325a8a949b | /BuildAndroidApplication/src/demo/buildproject/copy_file.py | 45e7543d3cad8b2b54a2d475a1d8ca65c3f9053a | [] | no_license | doncc/worktools | b98890bbba149e29962e077e47b2834bd6c46b28 | d9b52d987c1dda10fda5c033e7225b15d3121b87 | refs/heads/master | 2023-01-24T00:58:25.472987 | 2020-12-01T07:06:39 | 2020-12-01T07:06:39 | 113,950,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | # coding=UTF-8
import os
import shutil
import constant
# 通过校验MD5 判断B内的文件与A 不同
def get_MD5(file_path):
files_md5 = os.popen('md5 %s' % file_path).read().strip()
file_md5 = files_md5.replace('MD5 (%s) = ' % file_path, '')
return file_md5
# 拷贝整个目录及内容至新目录
def cpDirs(old_path, new_path):
if os.path.exist... | [
"dongce@youansicheng.com"
] | dongce@youansicheng.com |
887c91e48e6d269539425d8db02eb00ba0c9ec36 | fe6ed003243e2f57fc4cbe82fe71492000718db9 | /bcbio/chipseq/peaks.py | 86f6fdafa93bb2a0794ae7b64e3b5b874b24df6f | [
"MIT"
] | permissive | gifford-lab/bcbio-nextgen | e6f1af9e1bc6afacd2ce4c785af782508732c920 | 52156f1aa6167b870e4387d1976efbd104d2c30c | refs/heads/master | 2021-01-17T22:11:57.474808 | 2016-01-22T10:13:23 | 2016-01-22T10:15:08 | 45,060,650 | 0 | 1 | null | 2015-10-27T18:14:21 | 2015-10-27T18:14:21 | null | UTF-8 | Python | false | false | 2,840 | py | """High level parallel SNP and indel calling using multiple variant callers.
"""
import os
import copy
from bcbio.log import logger
from bcbio import bam, utils
from bcbio.pipeline import datadict as dd
from bcbio.chipseq import macs2
# from bcbio.pipeline import region
def get_callers():
from bcbio.chipseq impo... | [
"lorena.pantano@gmail.com"
] | lorena.pantano@gmail.com |
fd1276b24ae67a7c8adc75699c9802f83e24adba | e00ecd6c7a0f7e18aaac99b14df7f9c2d72ca421 | /roll_pic.py | 61c1749e9c0c343d6aeb49265c8f1f043ceadd31 | [] | no_license | 10L2002/githubtest | 2981cf0e9d37c3ba30766bfcd5744110648d57cf | e534b919e52fb62391d6a80b018281ff6393ad37 | refs/heads/master | 2020-03-18T16:38:21.357583 | 2018-06-02T20:32:26 | 2018-06-02T20:32:26 | 134,977,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | def roll_pic(src): #roll sholip logo at random angle
import cv2
import numpy as np
import random
import os
if not os.path.exists("roll_data"): #name of saving directory
os.mkdir("roll_data")
# 画像読み込み(read image)
h, w = src.shape[:2]
size = (w, h)
# 回転角の指定(decide the... | [
"aizatoshouei@gmail.com"
] | aizatoshouei@gmail.com |
018bc11e66b4722cfd30143ace9c0cb24c48ad82 | 45bf1df34f93b3148c62b01afd8d20db889a2148 | /TFIDF.py | 5d6c495e97e243f0d2b993b82de1f63c36aa9f9b | [] | no_license | Suhail98/NLP-machine-learning-classifier-for-reviews | 72ceda4cfae879482aae80b13b6adad140131a8b | 7ee8fd6d82e76385433c14576962f9daa2cfe8d4 | refs/heads/main | 2023-07-12T19:42:44.724764 | 2021-08-23T13:35:23 | 2021-08-23T13:35:23 | 399,116,135 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | import os
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from numpy import array
from sklearn.linear_model import LogisticRegression
from nltk.tokenize import sent_tokenize, word_tokenize
from nltk.corpus import stopwords
import re
#reading data and shuffle
def read_data():
... | [
"noreply@github.com"
] | noreply@github.com |
9a8248760bfd5e16d1a36428beb0e18834029e85 | 3c7913e65c375b3661060f22b4daae83ff1a13b2 | /e.py | 28cd7d5ee70775f7970dd4f70bcaf7d25a20e189 | [] | no_license | Deepesh-Kumar/start-python | 8107e71efe8e2233119632ea4019f75e75148830 | 608f6f14a861fbc962dee07dd8988391890abbff | refs/heads/master | 2021-08-06T02:13:26.754973 | 2019-01-07T03:52:19 | 2019-01-07T03:52:19 | 143,205,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #def m(list):
# b = 1
# for i in a:
# b = b * i
# print b
#a = [1,2,3,4,5]
#m(a)
ol = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
a ='fun thmes!'
op ='aeiou'
k = []
for i in a:
if i.lower() in ol:
i = ol[i + 1]
print i
#for i in a:
# if i not in b:
... | [
"deepeshkumar1991@gmail.com"
] | deepeshkumar1991@gmail.com |
376af8d3129802fbb8400585f4e33af5edcb5c18 | e22051c23ede600098376508f43121c9fa35d88d | /rllib_inference/src/battlesnake_heuristics.py | 88b21f2a0d27dc0d806d41622287b692028356ba | [] | no_license | iamwillzhu/LocalEnv | 7265979fe3103b75f459277c5704a5a1f2d2e3df | 4f30d1a3ab0216b12a3a6caca5c134c689affe9d | refs/heads/master | 2022-11-18T15:28:55.486601 | 2020-07-19T21:50:21 | 2020-07-19T21:50:21 | 280,525,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,484 | py | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license" ... | [
"19693587+iamwillzhu@users.noreply.github.com"
] | 19693587+iamwillzhu@users.noreply.github.com |
2d2abfb70b48554ebe8771630db92de5424a3f98 | b7c18dd657d18d5381ceafaa5fe5089308d2d00f | /test/test_data_lake.py | d762f11217517f2913b8fb4a7c49fae920c16c63 | [
"Apache-2.0"
] | permissive | Bezbran/mongo-python-driver | 06b00b0c89441ed1a290ea0b174a1f4d653b8cd2 | 5332adfe2bb28f8703b0e16f80c0eb351d6201c0 | refs/heads/master | 2023-04-04T07:09:40.274116 | 2021-04-19T12:05:15 | 2021-04-19T12:05:15 | 278,339,341 | 0 | 0 | Apache-2.0 | 2021-04-14T07:31:24 | 2020-07-09T10:55:05 | Python | UTF-8 | Python | false | false | 1,672 | py | # Copyright 2020-present MongoDB, 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 applicable law or agreed to in wri... | [
"noreply@github.com"
] | noreply@github.com |
1c2460f221cff22e2a2f9a27bdfa673a7bcf0bd1 | 38da215b9b50d0743f34cd0ef38e75db557deeff | /swagger_client/models/time_stream.py | 5f68f77e639429a8fcb857cf578972f5eaba0672 | [
"MIT"
] | permissive | HalestormAI/stravaio | 0742dc5749d90840ef6c4638ca4c3ee3040d57ce | 9d99179eb70bf5219ab4d2c7d7b5d3617457ae9e | refs/heads/master | 2020-09-07T14:57:59.836372 | 2020-02-29T00:03:57 | 2020-02-29T00:03:57 | 220,817,328 | 0 | 0 | MIT | 2020-02-29T00:03:47 | 2019-11-10T16:29:45 | null | UTF-8 | Python | false | false | 6,366 | py | # coding: utf-8
"""
Strava API v3
Strava API # noqa: E501
OpenAPI spec version: 3.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.base_stream import BaseStream # noqa: F401,E501
class Tim... | [
"sladkovm@gmail.com"
] | sladkovm@gmail.com |
fdd0bf61a4c5d7f462b8bf135845df01e7f7da05 | 946a98b6795e8245087543975005e6865b538be3 | /warikan2.py | a69c185f4a9fbfb614ceb3d16c1958a77435048a | [] | no_license | kazu-taka/hello-function | 7c415526e12a17d85987709996a69d364bbe9e62 | 658113b596bd29bf7e360c005f29b192600627e4 | refs/heads/master | 2020-04-07T04:07:39.761775 | 2018-11-18T01:18:10 | 2018-11-18T01:18:10 | 158,040,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | def warikan(amount, number_of_people):
return f"1人あたり: {amount // number_of_people}円, 端数: {amount % number_of_people}円"
print(warikan(amount=1500, number_of_people=3))
print(warikan(amount=2000, number_of_people=3))
print(warikan(amount=3000, number_of_people=4))
print(warikan(amount=5000, number_of_people=8))
| [
"k.takahashi@nowall.co.jp"
] | k.takahashi@nowall.co.jp |
521ea38335f0c6bebf7ef64a8d68203c32de69dc | f97cabce5c91238678e159387f03636d4deb90fb | /dajare/crawler_kaishaseikatsu_jp.py | c0bb1bb7c7b5cf459ec22cf9603ddf779b6d4b93 | [] | no_license | vaaaaanquish/dajare-python | 1daa8b4d31a9e3d5e1336d3b31693c1d491ed814 | 150132cef0333a94c9e286c4241af92c630cd7bd | refs/heads/master | 2022-12-10T08:46:42.827279 | 2020-12-11T03:28:54 | 2020-12-11T03:28:54 | 242,304,312 | 16 | 3 | null | 2022-12-08T03:43:06 | 2020-02-22T08:09:23 | Jupyter Notebook | UTF-8 | Python | false | false | 1,010 | py | from tqdm import tqdm
from dajare.crawler import Crawler
class CrawlerKaishaseikatsuJp(Crawler):
def run(self):
output_list = self._run()
self.output(output_list, 'dajare_kaishaseikatsu_jp.json')
def _run(self):
output_list = []
for i in tqdm(range(0, 2200, 100)):
... | [
"6syun9@gmail.com"
] | 6syun9@gmail.com |
fed85186a1b405470991007647327d9d0cea5825 | cde752af8df0ae3007575778ccb0d43c4d5546aa | /checkout/migrations/0003_auto_20200812_0925.py | cbefb02e0d09f27098c40968bdc32939b9fb1a91 | [] | no_license | Code-Institute-Submissions/django-eshop-project | e9f401fca16b4c56f07a66f01accea09999f208e | a6988c80077ca45c62e1753e420616bbc6dc4275 | refs/heads/master | 2022-12-03T19:41:59.428298 | 2020-08-15T14:13:25 | 2020-08-15T14:13:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.0.8 on 2020-08-12 09:25
from django.db import migrations
import django_countries.fields
class Migration(migrations.Migration):
dependencies = [
('checkout', '0002_auto_20200808_1341'),
]
operations = [
migrations.AlterField(
model_name='order',
... | [
"jai.austin95@gmail.com"
] | jai.austin95@gmail.com |
06dcf6622fdc3c640bb85b1c01cb32e8d2e61985 | dc95aa9f813bf0fea3695f0e479dd892b0a9280b | /image2coord.py | 452df619ec12e44894fb48e05d8aa28a6e933d00 | [] | no_license | martibsk/imageROV | 8f6eea3fa5c5364e60985371f7806e57cbbb7fb8 | 41f623f29571e110a19c58aa173293050cde3a5b | refs/heads/master | 2022-08-14T04:40:29.440244 | 2019-06-06T09:11:10 | 2019-06-06T09:11:10 | 190,339,294 | 0 | 0 | null | 2022-06-21T22:04:52 | 2019-06-05T06:36:30 | Python | UTF-8 | Python | false | false | 1,610 | py | import detector
import cv2
from imutils.video import FPS
import numpy as np
import darknet
import os
import detectorCPU
if __name__ == '__main__':
model = 'sylinder'
input_frame = 'sylinder.mp4'
useGPU = True
if useGPU:
netMain, metaMain = detector.init_yolo(model)
vs = detector.v... | [
"martin.b.skaldebo@ntnu.no"
] | martin.b.skaldebo@ntnu.no |
96f1f685114c793b03f5d00db5ccf5b4d271a8ad | b47f5ca0a51cf59427b7bd12e9c85064a1e13e03 | /tests/easyci/test_user_config.py | 1c8736e3d3bb8b17d77ff5f9e1a29fd3a58cbbd4 | [
"MIT"
] | permissive | naphatkrit/easyci | a490b57e601bcad6d2022834809dd60cb0902e0c | 7aee8d7694fe4e2da42ce35b0f700bc840c8b95f | refs/heads/master | 2016-09-02T01:14:28.505230 | 2015-09-09T00:26:25 | 2015-09-09T00:26:25 | 41,396,486 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,953 | py | import mock
import os
import pytest
import shutil
import tempfile
import yaml
from easyci.vcs.base import Vcs
from easyci.user_config import (
_config_types, _default_config, load_user_config,
ConfigFormatError, ConfigNotFoundError
)
@pytest.yield_fixture(scope='function')
def repo_path():
path = tempfil... | [
"naphat@dropbox.com"
] | naphat@dropbox.com |
e9d1caab6dde00c07ce3832efe253d9348ac4a88 | 940dcf18bb1db19610e29902c78ec703690c4297 | /pygame/py002.py | 17a13a71d3e9bdeacc203460516516e052a3e799 | [] | no_license | Sahil4UI/PythonRegular11-12Dec2020 | dc20e8d13d191801301d18d5b92f5775fe9c0674 | 0b22b1d8c703ac21a1f02c2b10f327bcb2e96460 | refs/heads/main | 2023-02-27T13:00:22.415199 | 2021-01-31T06:57:58 | 2021-01-31T06:57:58 | 318,424,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | import random
import pygame
import time
from pygame.locals import *
pygame.init()
H= 600
W=800
gameScreen= pygame.display.set_mode((W,H))
color= (255,255,255)
red = (255 , 0 , 0 )
blue = (0,0,255)
w=30
h=30
pygame.time.set_timer(USEREVENT,1000)
frog=pygame.image.load("frog.png")#raw string-path
frog... | [
"noreply@github.com"
] | noreply@github.com |
c693f5db8f614f95e3a1c00a525aaebceea90a87 | a2277623dee26a0cb76f71092f8a88b363618962 | /list_servers.py | 19fac5a3c8ba0541e315b6ae21eed50406969c2f | [] | no_license | rangsutu88/Azure-Proxy-Gen | 474e560cacd5827a7d0e8e35cd69648873336c96 | 722b7168effea4a14aceae060c79ccf4b1f968ad | refs/heads/master | 2022-11-28T09:17:39.180679 | 2020-08-06T03:10:18 | 2020-08-06T03:10:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from Azure import display_servers2
if __name__ == '__main__':
display_servers2()
| [
"noreply@github.com"
] | noreply@github.com |
879086db133bd1ab22783e38d697afc115869d4f | 71c4a775c81179e920b72bdee87d9af3edfd4d99 | /01_Sintaxe_Basica/10_dicionario.py | 9ea3b3c107c7a83db1b023da9899d434b0a3d0f8 | [] | no_license | frclasso/acate18122018 | 16f4169dbfb0eb8c25e253965642122e6095a211 | 98e4697d4e34c740a537a553b5ae6841159c58f7 | refs/heads/master | 2020-04-08T00:54:59.822648 | 2019-01-24T16:55:42 | 2019-01-24T16:55:42 | 158,873,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | #!/usr/bin/env python3
aluno = {'ID': 1223,
'Nome':'Patricia',
'Idade': 27,
'Curso': 'Sistemas de Informação',
'Turno':'Noturno'
}
print(f"ID: {aluno['ID']}")
print(f"Nome: {aluno['Nome']}")
print(f"Idade:{aluno['Idade']}")
print()
'''Atualizando valores existentes'''
alu... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
01e192a4c835a3d6ec4c29d6fb66176e51359dcb | 7c27898a5f85dedf0dbbb12451b6c635861dc197 | /tornado_overview/chapter03/aiomysql_test.py | 8c3375ad203593d54c3a67dc4692f73aa301b121 | [] | no_license | Asunqingwen/Tornado_test_application | 9323d3289fadf69e7b1e7685da8f631d0e88968f | 4f3a9cda9fc081a8b83f06934bc480cd597d4ad8 | refs/heads/master | 2023-02-18T08:43:58.012236 | 2021-01-21T09:59:57 | 2021-01-21T09:59:57 | 330,935,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import asyncio
import aiomysql
from tornado import gen, ioloop
async def go():
pool = await aiomysql.create_pool(host='192.168.10.69', port=3306,
user='root', password='root',
db='message', charset="utf8")
async with pool.acquire() as... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
429e64977baa323e53d62067c95f88041a1940f3 | 7929367c0d3003cb903c0217b0477abd60e759bc | /lexicons.py | a80dbb4c8fb12d16bad920d09300117dfbcd7421 | [] | no_license | daimrod/opinion-sentence-annotator | cf5a879c9f24c6f47e7d7278ec730899da0e96fd | e487b9a11959876d83316e97c572f0116d982617 | refs/heads/master | 2020-06-21T20:41:37.878330 | 2017-03-08T15:01:20 | 2017-03-08T15:01:20 | 74,770,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
logger = logging.getLogger(__name__)
import reader
import resources as res
# A global variables used to store known lexicons
_lexicons = {}
def get_lexicon(lexicon_name):
"""Return the lexicon designated by lexicon_name.
Args:
lexicon_... | [
"gregoire.jadi@univ-nantes.fr"
] | gregoire.jadi@univ-nantes.fr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.