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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0fdb86c8d95ec238f669e4cd793c8b90cee446f0 | b48a1d5733d10c39a112698c2286ae1afb02f36a | /announce/management/commands/migrate_mailchimp_users.py | 7cce1d4f3b7e6e48acb8b65b386b435c2095820c | [
"MIT"
] | permissive | p2pu/learning-circles | ecb317aaa8620cb076ce45c42d055e89e6586516 | ae8de4df48aae0844fb50dca5c62c099b3b2b0a3 | refs/heads/master | 2023-08-19T19:18:09.198077 | 2023-08-10T09:23:58 | 2023-08-10T09:23:58 | 32,735,768 | 11 | 10 | MIT | 2023-08-10T09:30:04 | 2015-03-23T14:05:41 | Python | UTF-8 | Python | false | false | 1,191 | py | from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from announce.mailchimp import archive_members, list_members, batch_subscribe
from studygroups.models import Profile
import requests
import logging
logger = logging.getLogger(__name__)
class Command(BaseCo... | [
"dirkcuys@gmail.com"
] | dirkcuys@gmail.com |
87d5df6728743a0ba428c23dbaf1bb9006868efa | 45e391764fe478412361ae8695100ada658b215e | /Doctor's Secret.py | d6711c8ee1bdcc6b8366fa698a9bd3ca9142b5f1 | [] | no_license | yash12-cha/Hackerearth_Codes | b79f17cc4d05d1f369f93a82719a2104fb60794a | 8608dd367875047dea2cbf158d0f68acfde7b77e | refs/heads/main | 2023-05-08T22:47:20.758904 | 2021-06-03T05:30:21 | 2021-06-03T05:30:21 | 367,254,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | n, p = map(int, input().split())
if ( n <=23) and ( p>=500 and p<=1000):
print("Take Medicine")
else:
print("Don't take Medicine")
| [
"noreply@github.com"
] | noreply@github.com |
65b60e56c9365241b5fd54b5f8e8a41ad337171a | cde96466cd047daf012ba8e188104e4e8902caa5 | /Shelfy/app/venv/lib/python3.5/tempfile.py | e2508df71d9e1462854ec0d0e474ae953d2967ac | [] | no_license | Meetmshah/Shelfy | fb770b420cc078471f81a42ae9ce8afca53be475 | 3a3960ded061413ed4c0904827d816e44556220a | refs/heads/master | 2020-04-03T15:06:55.894712 | 2018-09-24T06:32:03 | 2018-09-24T06:32:03 | 155,350,985 | 0 | 0 | null | 2018-10-30T08:35:47 | 2018-10-30T08:35:46 | null | UTF-8 | Python | false | false | 55 | py | /Users/asheikhussain/anaconda/lib/python3.5/tempfile.py | [
"noreply@github.com"
] | noreply@github.com |
9c19ee33a1abc0d34b3c4dbfd9e704ca5e4534d0 | 3581090a1a334f1fe98fd60db08e4a543375e5ca | /SIRMAT/Fotografias/migrations/0002_fotografia_idmuestra.py | 6406e0580541013d3b80682c0e883805d68d1dc2 | [] | no_license | MauricioMiramontes/PrototipoSIRMAT | 4893213098ecc8931132ee64b49d35061db3c987 | 319c8f652ba82ea378f4ebf6b9be28f343e1df51 | refs/heads/main | 2023-08-01T01:50:53.193000 | 2021-09-20T23:54:34 | 2021-09-20T23:54:34 | 351,940,479 | 1 | 0 | null | 2021-06-04T04:00:14 | 2021-03-26T23:52:46 | Python | UTF-8 | Python | false | false | 568 | py | # Generated by Django 3.1.4 on 2021-05-26 05:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Muestra', '0002_muestra_nombremuestra'),
('Fotografias', '0001_initial'),
]
operations = [
migratio... | [
"mmiramontesr@gmail.com"
] | mmiramontesr@gmail.com |
0ee0fecb3d4df02cb0dc4970912acd258cfee73d | 549f00e84cf77f08b2d72b3a298174143e23222e | /pytest_echo.py | 025e4f09603e8814d066cc041fb8926ac1650558 | [
"MIT"
] | permissive | hugovk/pytest-echo | 9a94c6a246ae1803dd6b391f56c35a7d0472f209 | 939793448e7d7e80a356aafc4dbb58bbedbe7e2c | refs/heads/master | 2020-08-10T05:26:13.397571 | 2018-04-22T17:12:07 | 2018-04-22T17:12:07 | 214,268,306 | 0 | 0 | MIT | 2019-10-10T19:27:28 | 2019-10-10T19:27:28 | null | UTF-8 | Python | false | false | 5,239 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import fnmatch
import os
from pprint import pformat
import pkg_resources
from pkg_resources import DistributionNotFound
__version__ = '1.6.0'
def get_installed_distributions():
"""
Return a list of installed Distribution objects.
"""
ret... | [
"s.apostolico@gmail.com"
] | s.apostolico@gmail.com |
fbb938e8e3878525bac3bbe915afa3db565344c2 | a58f1ed0f14c2addbf95cc5113c2da9341c05b97 | /bin/rstpep2html.py | 1ae9975e6cee4615c7401f7bada26cc3b8c4d0d1 | [] | no_license | squidish/dgax_app | 4469733dbb20b08c1c85dd61be6fbeb904ff26f1 | 484bb518530da4f0632a17f251cf0638b265a263 | refs/heads/master | 2021-04-28T16:52:20.568151 | 2018-02-21T07:01:44 | 2018-02-21T07:01:44 | 122,023,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 726 | py | #!/Users/Williams/Scripts/Python/virtualenvironment/my_gdax_app/bin/python
# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML from PEP
(P... | [
"root@Christophers-MacBook-Pro.local"
] | root@Christophers-MacBook-Pro.local |
423679755baa5d60a9bbbf0e873e813f13e5b092 | 9ba33919959f8cdb722682296e94c7ddad8e9410 | /load-test/locustfile.py | 8d8d96dd8a10608067b036c8c68fd241ab87c70a | [
"MIT"
] | permissive | madclumsil33t/atat | 59657549a9fa9561ec640e64035987d0c6c21a5c | 290b4adc58791e95dac73ad17ec6645f55307609 | refs/heads/main | 2023-04-02T16:37:03.567866 | 2020-12-18T21:26:58 | 2020-12-18T21:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,806 | py | import os
import re
import string
from functools import wraps
from random import choice, choices, randrange
from uuid import uuid4
import names
from locust import SequentialTaskSet, between, task
from locust.contrib.fasthttp import FastHttpUser
from pyquery import PyQuery as pq
# Provide username/password for basic a... | [
"tom.chandler-ctr@friends.dds.mil"
] | tom.chandler-ctr@friends.dds.mil |
6e9327902f07f2b117493cc77e7ea2cdb9842385 | 4d77ad757d344ffb47b610a0e3ea393834fb4442 | /pattern 14.py | 94543268a4705d4c1e004c3a33545e2e9898f5e2 | [] | no_license | codebluff/Pattern-Programming | 8494a15ab765afd02b6d3bd9a959e8ecbbbb0bf4 | 08ccf37e573cedfee92d33a7954364f5938169d0 | refs/heads/master | 2020-12-02T01:09:07.920977 | 2019-12-30T03:13:39 | 2019-12-30T03:13:39 | 230,838,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | n = ['A', 'B', 'C', 'D', 'E']
for i in range(len(n)):
for j in range(i+1):
print(n[j], end=" ")
print() | [
"codebluff101@gmail.com"
] | codebluff101@gmail.com |
805535843094f8434fa9cfb5c22c4c9c99ef2185 | 2c2d2405929b026ac4de77d34538cec623dee5eb | /codes/SRN/models/modules/loss.py | 844e09818490d48d1b9b375b12a65032b32c4075 | [] | no_license | greitzmann/DASR | 9d709cf031561897722f1553842af05fca36855e | f85b22ada54344fd0d94ba31ae596427cb9b5c5b | refs/heads/master | 2023-01-01T12:26:11.563140 | 2020-10-15T16:03:26 | 2020-10-15T16:03:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,636 | py | import random
import torch
import torch.nn as nn
import sys
from PerceptualSimilarity.models import util as ps
# Define GAN loss: [vanilla | lsgan | wgan-gp]
class GANLoss(nn.Module):
def __init__(self, gan_type, real_label_val=1.0, fake_label_val=0.0):
super(GANLoss, self).__init__()
self.gan_type... | [
"516488199@qq.com"
] | 516488199@qq.com |
d1660437d7cc1d437db44a397725e49216966700 | eefc47dcb8377239c34134024be8783a9e3b5f44 | /bimdata_api_client/models/raw_system.py | 3d6644047f00fe509b01b9df9dfbe5ddcdf9b50d | [] | no_license | Mike-FR/python-api-client | 4fea5afcd942ebdf6dca174e2d38afaeed71eee4 | 54b2b090cbbf127cf8ac0f17c3492e6d0e1c7f29 | refs/heads/master | 2023-06-29T13:07:30.438434 | 2021-07-28T09:08:54 | 2021-07-28T09:08:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,617 | py | # coding: utf-8
"""
BIMData API
BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints. # noqa: E501
The version of the OpenAPI document: v1
Contact: suppor... | [
"infra@bimdata.io"
] | infra@bimdata.io |
7891607f1409d3289cc4425dcad2510306aa61e2 | c9a15adca3434b463310e80051da369efb622fc0 | /VirtualSim/virtualsim.py | 0f75193140d15a25dbfbc4e12701356c921d579e | [
"MIT"
] | permissive | iandouglas96/swarm-thesis | b6c5f531acafd17e50099e61708347cc14474d35 | dbafa2343a75c4de26b0ae19d08a033b34570287 | refs/heads/master | 2021-01-23T06:39:42.514997 | 2018-05-08T17:43:22 | 2018-05-08T17:43:22 | 86,386,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | #set our main window size
#have to do this first
from kivy.config import Config
Config.set('graphics', 'width', '800')
Config.set('graphics', 'height', '800')
import os
from constants import *
from kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.clock import Clock
from Queue import Queue
... | [
"iandouglas96@gmail.com"
] | iandouglas96@gmail.com |
ed9e656edfd4ecfefb842663afcc673709df3a1b | bedfa479971b5efa6d81ac0c1bce4546cc8ea38c | /trainings/shared/response_object.py | cc8b54fc7b8a9070544a0e7a1077cfdeefed3eb7 | [
"MIT"
] | permissive | ferminhg/training-logger | 952f070856f664955c4267af45ddb9f0931e6a05 | bb9a1bfbfd52cbd6db89360407a89e404b113644 | refs/heads/master | 2020-05-25T05:38:41.783488 | 2019-05-26T18:37:41 | 2019-05-26T18:37:41 | 187,653,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | class ResponseSuccess(object):
def __init__(self, value=None):
self.value = value
def __nonzero__(self):
return True
__bool__ = __nonzero__
class ResponseFailure(object):
RESOURCE_ERROR = 'ResourceError'
PARAMETERS_ERROR = 'ParametersError'
SYSTEM_ERROR = 'SystemError'
... | [
"fermin.hdez@gmail.com"
] | fermin.hdez@gmail.com |
f8195af9586f981a99e5f8f499d281e5b620001c | 8131081196d91e9a63521e6a5c059e08adceb167 | /chapter1.py | 76383e5d2405327a733d7dd9dbe9da2008318f0c | [] | no_license | kdliaokueida/ComputerVisionIntro | 6a863c2e73b64d30dde6f87c2c83c45fe602e1bc | 6bf29989d9a8c32bbbe43a27f1b120598bcb8762 | refs/heads/master | 2023-03-21T08:37:49.648794 | 2021-03-06T19:24:49 | 2021-03-06T19:24:49 | 345,176,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import cv2
import numpy as np
print("Package Imported")
cap = cv2.VideoCapture(0)
cap.set(3, 640)
cap.set(4, 480)
cap.set(10, 100)
while True:
success, img = cap.read()
if img is not None:
cv2.imshow("Webcam", img)
if cv2.waitKey(1) & 0xFF==ord('q'):
break
| [
"kdliao@Kueida-MBP.attlocal.net"
] | kdliao@Kueida-MBP.attlocal.net |
de4b7353a05a64aa211b5f3691c26d78f0e97ea8 | d44499739ea1169aef4d8ad596fdd5888ac6bcbd | /main.py | 7b05ed3ef6d78f8a17901fc630cbdcc40d5fbd68 | [] | no_license | Kindred393/4thtermprojects | 810fe290a830037ab4930acb9b92f88638ddfe80 | 6a63a72c31f78b9e89c3283749d94a8b2b26d570 | refs/heads/main | 2023-04-29T21:12:02.459020 | 2021-05-17T16:34:52 | 2021-05-17T16:34:52 | 360,211,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,500 | py | # KidsCanCode - Game Development with Pygame video series
# Jumpy! (a platform game) - Part 18
# Video link: https://youtu.be/i0PaigPo6KM
# scrolling cloud background
# Art from Kenney.nl
# Happy Tune by http://opengameart.org/users/syncopika
# Yippee by http://opengameart.org/users/snabisch
import pygame as... | [
"noreply@github.com"
] | noreply@github.com |
9c68f21e289ac893f938e83bb2be5f054a2a7561 | 2f6c3e78de825b14cc6d471ba231724d819b7436 | /tasks/ogle.py | 2c1ff53316fd09c5f8108a519f3f81fdfee981f0 | [
"MIT"
] | permissive | astrocatalogs/supernovae | 3f685d447b56c741081acffc6de0c9818149bb47 | 9585d2ae053f15fa91ab5900b5ae962c6a508037 | refs/heads/master | 2023-03-12T12:19:01.300505 | 2023-03-10T16:45:53 | 2023-03-10T16:45:53 | 62,802,442 | 42 | 18 | MIT | 2023-03-14T20:39:37 | 2016-07-07T11:42:13 | Python | UTF-8 | Python | false | false | 6,846 | py | """Import tasks for OGLE.
"""
import os
import re
from astrocats.catalog.utils import is_number, jd_to_mjd, pbar, uniq_cdl
from bs4 import BeautifulSoup, NavigableString, Tag
from decimal import Decimal
from ..supernova import SUPERNOVA
def do_ogle(catalog):
task_str = catalog.get_current_task_str()
basena... | [
"guillochon@gmail.com"
] | guillochon@gmail.com |
bb0a1ffc03e0ff7632f90464defb6602e6c4567d | 3f784f82d78adfbc28c9a67afa08c84adc4a0278 | /charts/venv/Scripts/pip3-script.py | 460ee9b68c1b5158d1149685d1920f3e4c0a4295 | [] | no_license | zyrrrr/pythonanywhere | 25ed4c613de76620fad6f8b7c46a3157e754a52d | 4324de0a4978c51cec7dcdd6d504d553fa8eff91 | refs/heads/master | 2020-12-04T19:15:53.599525 | 2020-01-05T13:34:12 | 2020-01-05T13:34:12 | 231,878,464 | 0 | 0 | null | null | null | null | ISO-8859-7 | Python | false | false | 420 | py | #!E:\Desktop\ΑΦΟώΒό\charts\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])... | [
"1020444587@qq.com"
] | 1020444587@qq.com |
275bb25eea944a6bb647046ca261fbca80c5a230 | 59881241c4dc42f3838ed1fa55c048f3f3cad456 | /chileApp/serializers.py | 8534f972d0e89a16494953af9907dc8dd0ccd330 | [
"MIT"
] | permissive | giovannicadiz/Chile-Api-Django-Rest-Framework | efc474166a434d055b8cd43287780724efdbbaa4 | f67d5e0862624223dfde731b2f63ec7bb79e6fbd | refs/heads/master | 2021-08-08T09:09:05.449079 | 2017-11-10T03:15:29 | 2017-11-10T03:15:29 | 109,915,485 | 0 | 0 | null | 2017-11-08T03:07:00 | 2017-11-08T02:10:05 | Python | UTF-8 | Python | false | false | 574 | py | from chileApp.models import Region, Provincia, Comuna
from rest_framework import serializers
class RegionSerializer(serializers.ModelSerializer):
class Meta:
model = Region
fields = ('region_id', 'region_nombre', 'region_ordinal')
class ProvinciaSerializer(serializers.ModelSerializer):
class... | [
"giovannicadiz@gmail.com"
] | giovannicadiz@gmail.com |
2ea36cd8fa8a015b6306eb459d6fd37155a29a56 | 04f6faa8843961bc9424cc339598ddfed876d9d1 | /OAsestem/login/migrations/0001_initial.py | 1a961cc742438bf97c463ab4c6a696760bf851d5 | [] | no_license | dearxiaoxue/AID | bff19327e3d2f38c25948570aeb02cae7dd1530f | 99e9a8ddfbb1680426cf13a0f1b9f3dfb8c9a51c | refs/heads/master | 2020-06-18T18:01:05.053171 | 2019-07-11T12:21:03 | 2019-07-11T12:21:03 | 196,390,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2019-06-27 11:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Users'... | [
"923999458@qq"
] | 923999458@qq |
1456749f8112ef261d1267355ffa482ee9219a0d | 315473760c1bdc2410cc5110250edfa6a4d4010d | /tm/as2-eval.py | 15184a9eabea72ab9b52e6ff0ab83d9afbee0b09 | [] | no_license | seven7e/2019Papers | 5935cac88b893a3437a26ec4f65f05f08eff2209 | 0238467d9101afb2e8e65538c52fcf8a8338930f | refs/heads/master | 2022-11-15T13:55:46.558296 | 2020-07-06T03:51:11 | 2020-07-06T03:51:11 | 199,423,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,463 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import json
from glob import glob
from tqdm import tqdm
from collections import Counter, defaultdict
import numpy as np
from numpy.linalg import norm
import pandas as pd
from as2 import load_pkl, save_pkl, Record, MetaData, Post, \
stem_word, flatten3d, fore... | [
"nanoix9@gmail.com"
] | nanoix9@gmail.com |
467dcabde18edb99fd16a2cec7e947fea61b963f | 38e3cce7f03adc4e430a7987dfcd3433d90d5811 | /networkler.py | 7bc67d1998a05ab73f289e4dd6ead0e61d3e07a2 | [] | no_license | Hasokeyk/dc_tts-turkish-implementation-Turkce-metinden-sese- | c740e1fb05b92639a61ab7912cc7696749669477 | 918a8f8f5bed26f92653122c0338eb6ccc780d00 | refs/heads/master | 2022-02-20T21:48:11.582194 | 2019-09-25T18:49:27 | 2019-09-25T18:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,762 | py | # Mert Hacıahmetoğlu
# 03.08.2019
"""hyperparameters script"""
#---------------------------------------------------------------------
from __future__ import print_function
from hiperparametreler import Hiperparametreler as hp
from moduller import *
import tensorflow as tf
def TextEnc(L, training=True):
'''
... | [
"noreply@github.com"
] | noreply@github.com |
92636880ee00dcdaf6082a42f6967c44fa8b6054 | 9bcd8a8de7e34ab52f44070c171e2e12e52e9775 | /setup.py | c7ab57d1d127894b45df406d8c76bdb98355363e | [
"BSD-2-Clause"
] | permissive | miracle2k/localtodo | c419bf5cd8aa5fd6092420577c6155a3d418cd1d | 8598a073d9fe466832b6a952a0b1dc20603d0e7d | refs/heads/master | 2022-04-30T13:36:50.211348 | 2022-03-21T18:45:16 | 2022-03-21T18:45:16 | 5,198,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python
# coding: utf-8
from setuptools import setup
setup(
name='localtodo',
url='https://github.com/miracle2k/localtodo',
version='1.0',
license='BSD',
author=u'Michael Elsdörfer',
author_email='michael@elsdoerfer.com',
description=
'.gitignore local todo files, bu... | [
"michael@elsdoerfer.com"
] | michael@elsdoerfer.com |
ce1b27305c6bd0b8a926dbe2218abbb8f297e24b | 5cde21d3eb1667152d4aa7fe489f15339db89551 | /maple/community/process/__init__.py | 1e2c945b04a925467c68181e7a269746fc3c10b2 | [] | no_license | SunmoonSan/PythonDaily | cce0b82c9bfe8e57dc26d8bcb722e165302cf4b0 | c0a95c2ece1b3cb6ef00d1b096fef14892de1ce6 | refs/heads/master | 2022-04-02T13:08:41.692131 | 2020-01-19T12:48:38 | 2020-01-19T12:48:38 | 115,420,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @desc : Created by San on 2019/12/13 17:23
| [
"18814184179@163.com"
] | 18814184179@163.com |
65a0a3a64109442716a5a600edec18ed6380230c | 63c9d7103ad5cff38b8d120078a37e81d7f57fd1 | /nested_list.py | 8c205a4eadfc63ae333c79efbe13107109a0eddd | [] | no_license | Priyanka-Kothmire/python | 9a854ee3637ec8f4ce8702af9d90c21e0f53949a | fb950f8a18f302ea3451a5580a86256a0d77dfd9 | refs/heads/main | 2023-06-14T22:34:07.973805 | 2021-07-11T14:40:46 | 2021-07-11T14:40:46 | 384,970,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | # l = [1, 2, [3, 4, [5, 6]], 7, 8, [9, [10]]]
l=["s", "l", ["d", "w", ["e", "q"]], "f", "g", ["k", ["p"]]]
output = []
i=0
while i<len(l):
j=0
while j<len(l(i)):
output.append(l[i][j])
j=j+1
i=i+1
print(output) | [
"noreply@github.com"
] | noreply@github.com |
ed5aaf4d9c069dfae5c52ce541ca6227e507404e | 358aaf68f3c60ebbbd86b3bc66d4e6c098bcb39e | /fonts/tsvga_et4000_8x16.py | ec50d5db6c710d173aebde5e57c209dc19065ccd | [
"MIT"
] | permissive | ccccmagicboy/st7735_mpy | d2de0046abd81978d5176dace45a40758377af82 | b15f1bde69fbe6e0eb4931c57e71c136d8e7f024 | refs/heads/master | 2022-08-28T23:18:04.353733 | 2020-05-28T04:19:21 | 2020-05-28T04:19:21 | 254,869,035 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,759 | py | """converted from ..\fonts\TSVGA_ET4000_8x16.bin """
WIDTH = 8
HEIGHT = 16
FIRST = 0x20
LAST = 0x7f
_FONT =\
b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x00\x00\x18\x3c\x3c\x3c\x18\x18\x18\x00\x18\x18\x00\x00\x00\x00'\
b'\x00\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'\
b'\x... | [
"cuiwei_cv@163.com"
] | cuiwei_cv@163.com |
8838064973dcf235bd1744d1dadead87051a80ea | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_widest.py | 8492170c13955906272fe657ccf1e56cec9420c8 | [
"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 | 236 | py |
from xai.brain.wordbase.adjectives._wide import _WIDE
#calss header
class _WIDEST(_WIDE, ):
def __init__(self,):
_WIDE.__init__(self)
self.name = "WIDEST"
self.specie = 'adjectives'
self.basic = "wide"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2fb12aec00a48be35b262b6bf6cbd7fb176cb67c | 3d7b4b097a1ddf08aadc0cc8552fb64b374e17a3 | /firstsite/conversion/views.py | 668f57e175d65986fe6df8882afca55ba243d30a | [] | no_license | kahihia/OnlineSite | f3e89034e0a99530238c512c5902200f4e48db8b | 58644cd2a23716c249cd5977749608a630ee94ae | refs/heads/master | 2021-01-21T10:22:20.981608 | 2017-01-01T11:49:21 | 2017-01-01T11:49:21 | 91,687,052 | 1 | 0 | null | 2017-05-18T11:48:31 | 2017-05-18T11:48:31 | null | UTF-8 | Python | false | false | 457 | py | from django.shortcuts import render
from django.http import HttpResponse
from interpay.models import User
def index(request):
return render(request, 'conversion/index.html')
# Create your views here
def detail(request, trans_id):
p = User.objects.get(first_name = "salman")
b = models.BankAccount.objects.ge... | [
"sepehrabdous@yahoo.com"
] | sepehrabdous@yahoo.com |
8b2c8aa97d01bb2c4395c2ca6d60e9f7e707861a | b6b23a10e97dbdf6f6b5532caa5620862f0513ce | /Libraries/NanoPB/_archive/generator/nanopb_generator.py | 9e85728641f607d9e72c991273d116e32f2c747e | [
"Zlib"
] | permissive | kwbbpc/arduino-old-2 | fb77ceef395232222549ea33cbc6835733ec54d0 | 3eeb21ecb27511368023113e69203c21506f90d6 | refs/heads/master | 2020-04-23T05:55:52.737285 | 2019-02-16T03:51:12 | 2019-02-16T03:51:12 | 170,956,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,267 | py | #!/usr/bin/python
'''Generate header file for nanopb from a ProtoBuf FileDescriptorSet.'''
nanopb_version = "nanopb-0.2.4"
try:
import google.protobuf.descriptor_pb2 as descriptor
import google.protobuf.text_format as text_format
except:
print
print "***************************************************... | [
"k4ls4ydog"
] | k4ls4ydog |
d044824c9b43cb3683ca050c720f6d3b10ba6526 | bc59c6fb1cbc2a4505f505a267f806cbe074b6c0 | /myproject/ajax.py | dd56cb321e2987f32da44606d8916eaacae873b3 | [] | no_license | micheledinanni/miniIPIP_test | 0449f54e171a8a6dcd7a285bb93497abffd7c1bf | 59723cfde237bee3ca000b5fc232912f6550bc4e | refs/heads/master | 2022-05-16T11:44:50.552889 | 2020-06-06T13:15:15 | 2020-06-06T13:15:15 | 160,211,850 | 2 | 2 | null | 2022-04-22T21:00:21 | 2018-12-03T15:23:47 | JavaScript | UTF-8 | Python | false | false | 374 | py | import json
from .logger import logger_file
from django.http import JsonResponse
def validate(request, id):
try:
with open('myproject/ajax_files/status.json', 'r') as jsonfile:
data = json.load(jsonfile)
jsonfile.close()
return JsonResponse(data)
except Exception as... | [
"michele.dinanni@libero.it"
] | michele.dinanni@libero.it |
f56ffcbf9e73013af4c6531cb180dc41e524665c | 2a882fde8266a381ce405c990516cc01ba4317d2 | /Mendel's First Law.py | f62359a3402bf7fedea29910920493ff8d98dd3c | [] | no_license | chandlerklein/Rosalind | acdf5c2c3e0134b8ff792ef525e5c8a55ab9db5f | 3587f596e063a0bef310203714f15fe05c3b0eb8 | refs/heads/main | 2023-08-16T04:14:41.997407 | 2021-09-16T23:45:52 | 2021-09-16T23:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # http://rosalind.info/problems/iprb/
with open('datasets/rosalind_iprb.txt') as f:
num_d, num_h, num_r = map(float, f.readline().split())
total = num_d + num_h + num_r
rr = (num_r / total) * ((num_r - 1) / (total - 1))
hh = (num_h / total) * ((num_h - 1) / (total - 1))
hr = ((num_h / total) * (nu... | [
"kleinc16@gmail.com"
] | kleinc16@gmail.com |
24f5f53ce96d023d4e27da65ff4e68c9dfcdb81d | 223faad72af5096c71f28808f156e4179aa185c6 | /paddle.py | 1db4122ed1848b9cd8cbae754d347f572160e560 | [] | no_license | AlexandrDaultukaev/pong_game | 6ed4d80eb477bdda884c9b1da523a1899ff85515 | 0a3c642461b462c9c65d16bfe85c2b4f83120230 | refs/heads/master | 2023-06-24T05:49:47.144943 | 2021-07-27T17:59:24 | 2021-07-27T17:59:24 | 390,080,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from turtle import Turtle
class Paddle(Turtle):
def __init__(self, x, y):
super().__init__()
self.x = x
self.y = y
self.penup()
self.shape("square")
self.shapesize(stretch_wid=5, stretch_len=0.8)
self.goto(x=self.x, y=self.y)
self.color("white")
... | [
"shyra31102000@mail.ru"
] | shyra31102000@mail.ru |
73456206a8ae6e65b0f1cf53ecb7a0b8b0cde6d6 | 18fa5f5f7ee625253240681fb4b7509d48a6adf7 | /python/books/writing-solid-python-code-91-suggestions/16.py | 3288669ba2653de2f9fb52e77513a817ff661505 | [] | no_license | heyulin1989/language | 849fa3619505d08e107379fc123ce6c178d5e2d4 | ee4b5db615bfd52ad4313da170f7bf6391b9ffa8 | refs/heads/master | 2021-07-05T15:46:11.706373 | 2021-07-02T10:12:54 | 2021-07-02T10:12:54 | 79,528,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #coding:utf8
"""
# vim: set fileencoding=utf8
from __future__ import unnicode_literals
"""
a="Hi"
b="Hi"
print a is b
print a == b
print "a = ",id(a)," b = ",id(b)
# 一但有空格就会不在一个内存中
a1 = "I am"
b1 = "I am"
print a1 is b1
print a1 == b1
print "a1 = ",id(a1)," b = ",id(b1)
"""
is 表示的是对象标示符(object identity): 两个对象是否在同一... | [
"heyulin_1989@163.com"
] | heyulin_1989@163.com |
3c5b887cbc4cdb2d6567919559b3ccd0c61bf851 | f6d271233b8a91f63c30148cdcdb86341ba45c2f | /external/TriBITS/tribits/python_utils/snapshot-dir.py | 577f9746a955bdf93ab040a8cb553ce61281078e | [
"MIT",
"BSD-2-Clause"
] | permissive | wawiesel/BootsOnTheGround | 09e7884b9df9c1eb39a4a4f3d3f8f109960aeca0 | bdb63ae6f906c34f66e995973bf09aa6f2999148 | refs/heads/master | 2021-01-11T20:13:10.304516 | 2019-10-09T16:44:33 | 2019-10-09T16:44:33 | 79,069,796 | 4 | 1 | MIT | 2019-10-09T16:44:34 | 2017-01-16T00:47:11 | CMake | UTF-8 | Python | false | false | 2,715 | py | #!/usr/bin/env python
# @HEADER
# ************************************************************************
#
# TriBITS: Tribal Build, Integrate, and Test System
# Copyright 2013 Sandia Corporation
#
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
# the U.S. Governm... | [
"ww5@ornl.gov"
] | ww5@ornl.gov |
6bac8cbe7d5c8f648531bd8b9df7cea5d5121a28 | 4562339920161ad5d2bbf65324318ce8df747559 | /Python_Functions/unitEdit.py | 05725a447e60b6ce18b4eb77ee689cc6868fe5a4 | [] | no_license | JLO64/Hardware-Donations-Desktop-App | 4dfb41874717888b5d10dcae6f82e9927ee2dcec | d238dbb6c30721f79cfae58d2cc32f4bf3fc4982 | refs/heads/master | 2020-09-16T05:12:36.184053 | 2020-04-16T19:15:06 | 2020-04-16T19:15:06 | 223,663,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,713 | py | import boto3, json, getpass, os, click
import terminalColor, settingsJson, fileFunctions, unitEdit, browseDatabase, settings
import array as arr
from pyautogui import typewrite
try: import readline
except: settingsJson.externalEditor = True
try:
from tkinter import Tk
from tkinter.filedialog import askopenfilen... | [
"64julianlopez@gmail.com"
] | 64julianlopez@gmail.com |
54ca30c8c40c9bb999bd83d71d9f182a0c7739ae | 7c9f984e3f3fa8e251e0fa8e65107dc0d7101002 | /get_graph_data.py | 50d7d11777dc6397af2cb243ca321e70c354962b | [] | no_license | ChaitMat/world_cup_2019_prediction_dashboard | a63bf1e979f832b566949e6fccf009cdd6e57e2f | e7df8113f43c2c51f283bee68f11efaf1342e25f | refs/heads/master | 2022-12-11T16:12:41.439861 | 2019-07-08T11:28:57 | 2019-07-08T11:28:57 | 191,324,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import pandas as pd
import sqlite3
import plotly.graph_objs as go
from get_rank import get_rank_table
from display_individual_data import dispIndvData
def getGraphData():
rank_table = get_rank_table()
trace = []
for (i,j) in zip(rank_table['EMNO'], rank_table['Name']):
indv_data = dispIn... | [
"chaitanya.mathkar@gmail.com"
] | chaitanya.mathkar@gmail.com |
db7e79e1527c31a36fa86ad326bd52e9ecab29d8 | 430cfece27c54180baf29b3199a67f79fe7d155c | /examples/projections/cyl/cyl_oblique_mercator_3.py | cd9f17fd91016137b34dc329604e31ca38d5372f | [
"BSD-3-Clause"
] | permissive | JamieJQuinn/pygmt | 139f25a3f4280b2d2d43c3fa63179437a9227d31 | 9269fbcb2fc7fca2d5c412acdb794be375c260ab | refs/heads/main | 2023-08-24T16:19:27.673739 | 2021-10-29T09:51:44 | 2021-10-29T09:51:44 | 384,119,354 | 0 | 0 | BSD-3-Clause | 2021-07-08T12:37:21 | 2021-07-08T12:37:21 | null | UTF-8 | Python | false | false | 1,013 | py | r"""
Oblique Mercator
================
Oblique configurations of the cylinder give rise to the oblique Mercator
projection. It is particularly useful when mapping regions of large lateral
extent in an oblique direction. Both parallels and meridians are complex
curves. The projection was developed in the early 1900s by... | [
"noreply@github.com"
] | noreply@github.com |
f0d990d45a27fde720efb4dff618a7fd5ef391b2 | 8600ea155f279e5a8dfe5a1926038511f6b6a7ea | /sale_crm/wizard/__init__.py | 7c43908361fc6be916f06247bd16776a8e4c1776 | [] | no_license | MarkNorgate/addons-EAD | c2fff89ab16fce3ba19fbe433ee5863705a6f4e5 | 840f28642b5d328e4b86839c413e5164622295a5 | refs/heads/master | 2020-04-23T22:11:00.164438 | 2015-07-22T12:24:53 | 2015-07-22T12:24:53 | 39,501,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"mark.norgate@affinity-digital.com"
] | mark.norgate@affinity-digital.com |
a35d4a56654493c1d685072f3d7735f1c90b45fd | 6853a26eb5604dc015f1b95fed3b64ef099ae37b | /main.py | 0c1a27436453fdb0229895568e4464689b9321eb | [] | no_license | filipppp/binomialkoefficient-manim | e056a94178e8fa712178e10c254ba43574ca8335 | e9adb6d0d3be9487142634a16f001f2c22321fb9 | refs/heads/master | 2022-07-31T10:13:51.461909 | 2020-05-16T01:30:33 | 2020-05-16T01:30:33 | 264,057,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,342 | py | from manimlib.imports import *
import sys
sys.path.append("E:\\3b1b\\")
from customs import MarkingMobject, ZoomInAndOut
class PermutationScene(Scene):
def construct(self):
# All SVGs from students
svg_m = SVGMobject("student")
svg_r = svg_m.copy()
svg_r.next_to(svg_m, 2*RIGHT)
... | [
""
] | |
377b21ca6961646b114df319987e5f99ad8f28bd | a1b158abe0188203873ec5e37c71c9cd6452196b | /freeze.py | 8787aea86853cc94f8e9be1e728beea5ea251aee | [] | no_license | taiki-cano/kabochappiNote | d13891338e4f412d6825d5fac8034e035a34a0c6 | 86e4dd819c4560c695fe84f1761c82045aed9afd | refs/heads/master | 2023-03-24T17:52:33.200703 | 2021-03-23T09:15:16 | 2021-03-23T09:15:16 | 350,598,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from flask_frozen import Freezer
from myapp import app
freezer = Freezer(app)
if __name__ == "__main__":
freezer.freeze()
| [
"bolu@outlook.jp"
] | bolu@outlook.jp |
fce854fa476c7f67e6ea810e5a2980fb700b79e3 | 2342744291c27d4501f53accf48678e22dfcfec7 | /scripts/download_and_regrid/Download_PRISMdata.py | 288ff86a7ba09a341b26f42b74865bb5b07de2bc | [] | no_license | l5d1l5/tree_mortality_from_vod | dc77858ac5bb690bc2dbae9d0eaa45793c8b0a99 | 0111df5ad1b61db121470a76b1f1a403f453bd89 | refs/heads/master | 2022-12-30T23:59:41.616552 | 2020-10-20T01:30:52 | 2020-10-20T01:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | import urllib
import os
import sys
from dirs import MyDir
#data=['ppt','tmax','tmean']
#year_range=range(2005,2017)
#month_range=range(1,13)
#link='http://services.nacse.org/prism/data/public/4km/'
#for file in data:
# os.chdir(MyDir+'/PRISM')
# if not(os.path.isdir(MyDir+'/PRISM/'+file)):
# os.mk... | [
"kkraoj@gmail.com"
] | kkraoj@gmail.com |
7051e4a16a1737b784cb8b5336898af39dcf1074 | b3f1f5b51f801bfdb640fd1225072d1316e911bc | /modules/figures.py | d07f16a9ee34f9f13baa347a443a1cef9eca6a80 | [
"MIT"
] | permissive | WolfGang1710/Figures_diffraction | 97d500a5ab885ac37e822cba0020592296143bef | 82b89ee55859f9eb408d91ca65dc5032a6423fdd | refs/heads/master | 2022-12-04T04:18:41.195561 | 2022-11-22T17:58:41 | 2022-11-22T17:58:41 | 266,510,501 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,022 | py | """
Title: Projet IPT - Diffraction DI
Description: Ce programme permet de créer les figures de diffraction
de la lumière et de les enregistrer.
"""
#pylint: disable=invalid-name
#===Importation des modules ===
import matplotlib.pyplot as plt
def save(image, nom_figure, cmap, chemin_dossier, nom_fichie... | [
"noreply@github.com"
] | noreply@github.com |
2a6b8636981543229b79a083e04eade5f4e1d75d | 7c998fd8a0f300ccd79aa8366b3ea9f75b7239af | /misc/speeding_ticket.py | 8c5e30a786c7cfdfdb0af41647f70a0d7bd390d4 | [] | no_license | mattchrlw/competitive-programming | 811b0b8b9732f9f6e56809129c6dbce8be271f0a | 0e965bcd237072a4459270f729d8bfe11d63e8bc | refs/heads/main | 2023-02-15T20:17:47.230618 | 2021-01-06T07:16:17 | 2021-01-06T07:16:17 | 316,663,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | fin = open("speeding.in", "r")
fout = open("speeding.out","w")
output = ""
speed = []
limit = []
n, m = [int(i) for i in fin.readline().split()]
for i in range(n):
l, s = [int(i) for i in fin.readline().split()]
for _ in range(l):
limit.append(s)
for i in range(m):
l, s = [int(i) for i in fin.rea... | [
"mattchrlw@gmail.com"
] | mattchrlw@gmail.com |
954b5f123263a27d2de8144a7805c66055a3a6b8 | a47cd75fdbea15c076e70a3312a6e4cf09aec492 | /菜鸟实例12--判断闰年.py | 3dc1939fb761bef531d82c3b20363884c21a1c24 | [] | no_license | iam66/sele_project_test1 | 38af85c0ed2c696d72184e92b180933f538c7850 | a5ab25cf431a10695ab50b50a85920f943b0768e | refs/heads/master | 2020-03-22T19:58:08.205296 | 2018-07-12T11:23:34 | 2018-07-12T11:23:34 | 140,564,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | year = int(input('请输入年份:'))
if (year % 4==0 and year % 100 !=0) or year%400==0:
print('{0}是闰年'.format(year))
else:
print('{0}是平年'.format(year))
| [
"765007536@qq.com"
] | 765007536@qq.com |
f7fb65690822efe6f71aad076d707f92528ec6ec | 55591cff4b4dbfec91ac8e498652c2ad60bfdffe | /datahub/activity_stream/interaction/serializers.py | 222e2a50af6ecc115e0552613b574b504ad24d4b | [
"MIT"
] | permissive | alixedi/data-hub-api-cd-poc | 2caf6575cced33f0b2b22582d8bdcd60e99ba7d8 | a5e5ea45bb496c0d2a06635864514af0c7d4291a | refs/heads/develop | 2020-12-26T05:52:39.575158 | 2020-01-30T15:27:27 | 2020-01-30T15:27:27 | 237,407,350 | 0 | 0 | MIT | 2020-02-07T12:38:47 | 2020-01-31T10:25:34 | null | UTF-8 | Python | false | false | 3,897 | py | from datahub.activity_stream.serializers import ActivitySerializer
from datahub.interaction.models import Interaction
class InteractionActivitySerializer(ActivitySerializer):
"""Interaction serialiser for activity stream."""
KINDS_JSON = {
Interaction.KINDS.interaction: 'Interaction',
Interac... | [
"alixedi@gmail.com"
] | alixedi@gmail.com |
5bf92804ebbb44951df8edec22035ecaa5639594 | e2216a22541b9bd1bd3f87ed2fd55e6f7b141dfe | /examples/sauerbraten_espaim.py | 47c326359f23f9e7939f4565ca94067f8eb90afd | [] | no_license | ALittlePatate/STW | 88866444dda70e5a70d0c9acc64f660391969d8d | 565d2055eccf1fb95347f47c35a7728809b95136 | refs/heads/master | 2023-02-16T15:29:29.095226 | 2021-01-19T16:35:02 | 2021-01-19T16:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | import sys
from math import atan2, asin, pi
from pymeow import *
class Offsets:
EntityList = 0x346C90
PlayerCount = 0x346C9C
ViewMatrix = 0x32D040
GameMode = 0x26f6c0
Health = 0x178
Armor = 0x180
State = 0x77
Name = 0x274
Team = 0x378
ViewAngles = 0x3C
cla... | [
"shucks@web.com"
] | shucks@web.com |
371a5524cd7cf37c6e5684e417e269098e0914b9 | 8674d7e3ff78e98ade68d3f45e46d730ecf6970c | /python/visualizer.py | 9685b9e22688c20a5ba7911fc74c994ddc2062f3 | [] | no_license | adrvdw/DataProcessing | 3a58caa47d0349f91a4152f70ae201780ddd8f7e | 7b1383d56ce46176d9ed395a529ec3448fda0cc4 | refs/heads/master | 2020-04-05T04:50:13.006459 | 2018-12-17T20:48:26 | 2018-12-17T20:48:26 | 156,569,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!/usr/bin/env python
# Name: Ad Ruigrok van der Werve
# Student number: 11323760
"""
This script visualizes data obtained from a .csv file
"""
import csv
import matplotlib.pyplot as plt
import numpy
# Global constants for the input file, first and last year
INPUT_CSV = "movies.csv"
START_YEAR = 2008
END_YEAR = 2018
... | [
"adruigrokvanderwerve@wcw-stud-145-109-34-86.wireless.uva.nl"
] | adruigrokvanderwerve@wcw-stud-145-109-34-86.wireless.uva.nl |
73cc3ea2b59f3696ec7a086dedd0fccfeca6d5cb | b244140226aa627ac0784f603e2df3d1a95be3d1 | /python_test/crawling.py | 9423f0d7d180135c193f8471df705c5402d34ef8 | [] | no_license | sontaku/learning_elk | 7720f2e3cfa54c2c1975e1f2e1a5a77a2f0fcabd | 8f453b3f05f91a6e984c0a9d0cd6fddef87c5a14 | refs/heads/main | 2023-06-04T11:43:47.310004 | 2021-06-22T11:44:24 | 2021-06-22T11:44:24 | 368,138,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | import requests
from pandas import DataFrame
from bs4 import BeautifulSoup
import re
from datetime import datetime
import os
import pymysql
date = str(datetime.now())
date = date[:date.rfind(':')].replace(' ', '_')
date = date.replace(':', '시') + '분'
query = input('검색 키워드를 입력하세요 : ')
news_num = int(input('총 필요한 뉴스기사 수... | [
"jyson19@gmail.com"
] | jyson19@gmail.com |
736887a4862a68ddb38a06f891def851858936db | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/twisted/test/test_ftp_options.py | ef567bbb49bfce24ee4cb271b1a59b1a8730dd7a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,765 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.tap.ftp}.
"""
from twisted.trial.unittest import TestCase
from twisted.cred import credentials, error
from twisted.tap.ftp import Options
from twisted.python import versions
from twisted.python.filepath import... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
b7283bfaeee4aac17256bbfa8a86fb9d0f0e1c8c | 6bc88ea8e817736a085bf386d4afbbf73a1b961f | /mutation/migrations/0001_initial.py | 66c77b51fdc85ca5386d75c4ef1826b0c1211cb4 | [] | no_license | Dodant/DB_First_Project | c0ad9b4f51db71435888e7324533431ee6b383ad | 37b99e4aeb4658cd2dea32f27d44bc99957c9b86 | refs/heads/master | 2020-06-05T08:02:02.569126 | 2019-06-17T15:09:43 | 2019-06-17T15:09:43 | 192,369,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | # Generated by Django 2.2.2 on 2019-06-17 11:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Allo_Syndrome',
fields=[
... | [
"ohho0728@naver.com"
] | ohho0728@naver.com |
3e5b84a9c8b44a20e8220b2f08183b6df5e4c710 | 936701969d2e58b2b767ba788784138c0c5dee95 | /todo_api/todos/serializers.py | a0aa85a8a16b54a53d117254ed4938e8b2f7a6be | [] | no_license | marciomarquessouza/todolist | 1adb0079ddfe282e34c4b135d7220f42226243c9 | 6e599138dc650960d12a85015ae57efb7a4b255b | refs/heads/master | 2020-03-13T03:35:47.007022 | 2019-02-12T20:21:37 | 2019-02-12T20:21:37 | 130,946,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | # todos/serializers.py
from rest_framework import serializers
from . import models
class TodoSerializer(serializers.ModelSerializer):
class Meta:
fields = (
'id',
'title',
'description',
)
model = models.Todo
| [
"marciomultimedia@gmail.com"
] | marciomultimedia@gmail.com |
12573798bb2cd66c19a6b323e9b7162707cd59a6 | 9da129ec93a6fd2c5f65b57a0faec21d8eb80720 | /Term_NSI/devoirs/4-dm2/Corrigé/S4/E4.py | 82d370f886007cdf745140140d3a4edd805448e6 | [] | no_license | FranckCHAMBON/ClasseVirtuelle | 79bd4e4114d27ca3792b46b1fb384c394397b329 | 48fe9883ee6763e79e561537bc0ed7048339b457 | refs/heads/master | 2022-08-22T15:35:48.128508 | 2021-04-28T07:21:04 | 2021-04-28T07:21:04 | 249,953,475 | 3 | 4 | null | 2022-08-05T09:28:10 | 2020-03-25T10:52:47 | HTML | UTF-8 | Python | false | false | 532 | py | """
Prologin: Entrainement 2003
Exercice: 4 - Initiales
https://prologin.org/train/2003/semifinal/initiales
"""
def initiales(texte):
"""Renvoie l'initiale de chaque mots de la phrase.
>>> initiales('Rentre Avec tes pieds')
RATP
"""
lettre=""
for i, c in enumerate(texte):
if c!=" " and (i==... | [
"franck.chambon@ac-aix-marseille.fr"
] | franck.chambon@ac-aix-marseille.fr |
c864394b9237eba1f5b927f0badf3a4f4273881d | 14c006e1f9441efd9a33ae717e02ae2f15a0b350 | /scoreboard.py | 4a64ab5ff75d1bc863a1b27a172905e174c20fe5 | [] | no_license | johng7765/Space-Invaders | 1cfa4a2a819aeb0c4f5619ae914d432bce99194e | 3d7d322b33a71335299d8096b8c890e3972f77ae | refs/heads/master | 2020-03-30T18:10:39.511692 | 2018-10-09T00:06:27 | 2018-10-09T00:06:27 | 151,487,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,071 | py | # scoreboard.py
# Created by: John Gawlik
# Campus ID: 889752424
# Due: September 21st, 2018
########################################################################################################################
import pygame.font
from pygame.sprite import Group
from ship import Ship
class Scoreboard():
"""A cl... | [
"johng7765@csu.fullerton.edu"
] | johng7765@csu.fullerton.edu |
e55655e807a18e9ab1404bb26635d96b384e723a | 6125e3cc779742ce582207b82f82d0b477033846 | /unit_test_debug/test_sd_convergence.py | 6f298399d4ecf2f25206c3e453d0500ad59882f8 | [] | no_license | awalenkiewicz/parcel | c0753ef8a102e56d6d7cde05912d2c56d96b600b | 261f9bbe5b8d392faf853262dd88f273c8015919 | refs/heads/master | 2021-01-19T18:15:31.459804 | 2016-10-13T09:25:44 | 2016-10-13T09:25:44 | 70,793,641 | 0 | 0 | null | 2016-10-13T10:01:30 | 2016-10-13T10:01:30 | null | UTF-8 | Python | false | false | 2,557 | py | import sys
sys.path.insert(0, "../")
sys.path.insert(0, "./")
sys.path.insert(0, "plots/comparison/")
from parcel import parcel
from libcloudphxx import common
from chem_conditions import parcel_dict
from scipy.io import netcdf
import numpy as np
import pytest
import os, glob
import subprocess
import math
import copy... | [
"ajaruga@igf.fuw.edu.pl"
] | ajaruga@igf.fuw.edu.pl |
ff8f76cc0d6c522541e6954dfadddf86f058148d | d9c24b7e995babaa37a338168e4ec9897f261a09 | /main.py | 287e2109b589341b5961b0ff126fb756809acab0 | [] | no_license | ChaseStruse/SecureFileStorage | 957ab15cb767eb76da41d4b71906a40163801915 | 56561243510177b451c19e8fcd9c9a31ad133d8a | refs/heads/master | 2020-08-28T18:39:43.896399 | 2019-10-27T02:33:28 | 2019-10-27T02:33:28 | 217,787,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | import sqlite3
import os
ADMIN_PASS = 'password4321' #super duper hard password
DB_NAME = 'userdb'
def menu():
print("****************************************")
print("* WELCOME TO YOUR DATABASE *")
print("****************************************")
print("* Choose from the following comman... | [
"chasestruse@gmail.com"
] | chasestruse@gmail.com |
d0ac379c9f0dfe3d593d8e268be2b785888ab442 | f2c0a279e3641b4b455472c4f960e48abeef0880 | /manage.py | dd171e4f3acf2bf0a4fccd99c1ca7fdba36c42b7 | [] | no_license | vk-ai/DjangoAssignment | 38269e0b774f81664822ac687f3d8763a30b0db8 | 51ab559adbc0f8540775522c071f599aed89b61e | refs/heads/master | 2022-04-30T09:15:12.241582 | 2020-04-28T04:40:52 | 2020-04-28T04:40:52 | 259,443,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'BolSellerApp.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"vinaykm.mails@gmail.com"
] | vinaykm.mails@gmail.com |
9562bc0b7e2dcc38f7a84b31462b6d5fd5598619 | 3c898b1aec7009110c63504d5a56e31914625d1b | /acrylamid/filters/rstx_youtube.py | 1866872d0d44360221e12addf431c60a545739b3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | MagicSword/acrylamid | e294b151ed6305f37fc5a5fdd4f1f0fb999a22f7 | 6f34bc5fb2175af1103aec7a910ef48a6842de03 | refs/heads/master | 2021-01-16T21:30:58.564719 | 2012-06-22T16:00:50 | 2012-06-22T16:45:38 | 4,817,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,988 | py | # -*- encoding: utf-8 -*-
#
# Copyright 2012 posativ <info@posativ.org>. All rights reserved.
# License: BSD Style, 2 clauses. see acrylamid/__init__.py
from docutils import nodes
from docutils.parsers.rst import Directive, directives
match = ['youtube', 'yt']
def align(argument):
return directives.choice(argum... | [
"info@posativ.org"
] | info@posativ.org |
54e305cc17a0c2232390a83ffbdeb8ed103b393e | 219d7cf7cf00b778ff1a5709406c144fcf2132f3 | /First Steps in Coding - Lab/07. Projects Creation.py | 7ca4becdbaa4bc97c0ff32e779c16f999679df79 | [] | no_license | SilviaKoynova/Softuni-Programming-Basics-Python | e8e175419383815c65c4e110fdb2b752d940e887 | 0dfef0850f2cb8471dfee1af89f137be4e887cb8 | refs/heads/main | 2023-07-13T00:35:09.389302 | 2021-08-27T07:43:45 | 2021-08-27T07:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | name = input()
projects = int(input())
need_hours = projects * 3
print(f"The architect {name} will need {need_hours} hours to complete {projects} project/s.")
| [
"noreply@github.com"
] | noreply@github.com |
f5d4a03f72cfbfd9afb8e3bd6721a179ada550f4 | a1ee833ae14e978cef8cf2bbabb7dfbf9e01d90b | /11 if_elif_else condition/example05.py | 4a0945ebdbb8ff0f4432d332a48cfdc1a5bdd182 | [] | no_license | AbhishekKunwar17/pythonexamples | eafc157b7b9092993effa9ba30b03b98c94f8262 | 05a739d19c050ed6b434ce02a51c34eb3f317b5a | refs/heads/master | 2023-05-01T18:22:59.738951 | 2021-04-29T19:29:24 | 2021-04-29T19:29:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | var1 = 5 # 5 -10 25
if var1 > 12:
print("var1 is above 12,")
if var1 > 20:
print("and also above 20")
else:
print("var1 is not above 20") | [
"ksrinivas0575@gmail.com"
] | ksrinivas0575@gmail.com |
8b84aac7a2c36c742e100e367bbaa2be7d8bd071 | 43bb8504e1a552ff4fa10975190e4228b0f3ab4a | /calibration.py | a8ae76cc8aa3e9b23f53ff6bb50b48275cef4f9d | [] | no_license | darraghmoran11/FYP_StereoVision | 716d2ed7fa9c8119498a220d35a250382937ebf7 | 6ddd59e71e9064a9edbb69f735a66ecbaa959f06 | refs/heads/master | 2021-01-11T01:03:54.408224 | 2017-04-04T00:39:02 | 2017-04-04T00:39:02 | 71,081,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | import numpy as np
import cv2
import glob
# termination criteria
criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001)
# prepare object points, like (0,0,0), (1,0,0), (2,0,0) ....,(6,5,0)
objp = np.zeros((6*7,3), np.float32)
objp[:,:2] = np.mgrid[0:7,0:6].T.reshape(-1,2)
# Arrays to store object... | [
"darraghmoran11@hotmail.com"
] | darraghmoran11@hotmail.com |
8e8df293aaca82bc4d7fcb58a03a63985dc58a74 | a626e80e926593409140089b32b525481e2e3e20 | /alchemy/report/views.py | 665eee1e52880dd0867ffe70037e1bd0963f8fb9 | [] | no_license | zmoog/alchemy | bc88ee68b2687e700d4e3107029fbb4468e23579 | 3f392e7f0a969e00897c10642c355afef6c483dd | refs/heads/master | 2021-07-02T22:05:22.478304 | 2013-02-09T13:21:22 | 2013-02-09T13:21:22 | 55,659 | 2 | 2 | null | 2021-06-10T20:22:53 | 2008-09-23T17:17:35 | Python | UTF-8 | Python | false | false | 4,831 | py | from django.shortcuts import get_object_or_404, render_to_response
from django.http import HttpResponse,HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.db.models import Q, Sum
from django.template import RequestContext
import datetime
from cash.models import Account, Transfer
def repo... | [
"maurizio.branca@gmail.com"
] | maurizio.branca@gmail.com |
7de217fd92e8d0892384b908bfab2fc26f614a13 | 7e27c916749fc15cbf59f96b5d7291148ac246cc | /views/grid_display.py | af0df438bb89da5288df809169b110530c19442b | [] | no_license | CellularAutomata110/SupercomputingChallengeExploringSimpleSpatialModelsOfRiverFloods | e422603c537bb933cf3227a285af7889ab2dc9eb | d4be8f36d718e9dad3ef9d83cea9c21585ff9a26 | refs/heads/main | 2023-03-30T09:05:31.398455 | 2021-04-11T04:45:12 | 2021-04-11T04:45:12 | 356,766,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,609 | py | from base import *
import pygame
import math
import numpy
from models.emulated_grid import EmulatedSimulationGrid
'''
Classes for creating and updating pygame surfaces based on simulation data.
'''
class SurfaceDisplay(object):
'''
Interface for displays of surface CRNs. If you want to make your own... | [
"noreply@github.com"
] | noreply@github.com |
8f9ff357b818a3c095780bb3540d6dd24fb3c113 | be0f79609f0edbcab6d793967f839dae385e4f4c | /leetcode_problems/file2/test40.py | 021e18433943ccaee46b625a9a453463780bf67a | [] | no_license | vt-dataengineer/leetcode | 73c9044b7ccb7b69b41987febd6a05a1a70a05be | cb88e3e4c546f9b99a343b5fc58e487233a2fac5 | refs/heads/master | 2022-11-21T05:56:02.165724 | 2020-07-20T06:47:15 | 2020-07-20T06:47:15 | 281,036,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # Input: "leetcode"
# Output: "leotcede"
if __name__=='__main__':
s = 'leetcode'
vow = ['a','e','i','o','u']
for x in s:
if x in vow:
print(x)
| [
"vishalthakur1712@gmail.com"
] | vishalthakur1712@gmail.com |
46775a2d62f1f88e33a39be1b2ef415a002147ee | 370c4c61262b6e05303e4f71466b4621435e4474 | /001.py | b1f198a70bdd76ef99e9afce7cf0d79592a7e185 | [] | no_license | GustavoJatene/practice | b2a0b83fc986d47c8f148cc909969a84cee84d85 | 41b18be18630bf7bcd0e0be3cbe19156b16acc72 | refs/heads/master | 2023-03-10T04:36:32.905721 | 2021-02-25T15:44:16 | 2021-02-25T15:44:16 | 272,723,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | import emoji
print(emoji.emojize('OLÁ MUNDO :earth_americas:',use_aliases=True)) | [
"jateneg@gmail.com"
] | jateneg@gmail.com |
b57d3ac479d3d244d3fc9de810ed1fea625cc212 | 07dade27902fd7999430feb8f04216e86eae2b30 | /pyseir/load_data.py | 0906cdb60c4bc73012035c852a53801148db7916 | [
"MIT"
] | permissive | paulirish/covid-data-model | a96f90a37cf9674bdb77f1bd07df953e2de34a59 | b93ae5d598b8378f9c1f2698e3162f87136cde74 | refs/heads/master | 2022-04-25T17:38:21.547505 | 2020-04-21T21:15:56 | 2020-04-21T21:15:56 | 257,725,678 | 1 | 0 | MIT | 2020-04-21T21:59:50 | 2020-04-21T21:59:49 | null | UTF-8 | Python | false | false | 18,762 | py | import os
import logging
import pandas as pd
import numpy as np
import urllib.request
import requests
import re
import io
import us
import zipfile
import json
from libs.datasets import NYTimesDataset
from libs.datasets.dataset_utils import AggregationLevel
from libs.datasets import CovidTrackingDataSource
from pyseir.u... | [
"noreply@github.com"
] | noreply@github.com |
275f44d420d97869a4286ce6d22606aee4bdb17f | ab2c197a1dd7555008334dcacaea5e655be52c7c | /pcapfile/test/linklayer_test.py | b944a648fbc379ec37942c4fb53f6c49c6194afb | [
"ISC"
] | permissive | joedoyle/pypcapfile | 7d9d2a18fb44636cd5511985dbff526dc98612e5 | 6bfe49a0fb53a99afd69105379b517b87fc11a5a | refs/heads/master | 2021-01-18T00:44:53.330362 | 2015-06-02T14:08:34 | 2015-06-02T14:08:34 | 36,510,907 | 0 | 0 | null | 2015-05-29T14:57:35 | 2015-05-29T14:57:35 | null | UTF-8 | Python | false | false | 1,322 | py | #!/usr/bin/env python
"""
This is the test case for the savefile.
"""
import unittest
from pcapfile import savefile
from pcapfile import linklayer
from pcapfile.protocols.linklayer import ethernet
class TestCase(unittest.TestCase):
"""
Validate the linklayer utility functions.
"""
capfile = None
... | [
"coder@kyleisom.net"
] | coder@kyleisom.net |
1b764ce502d2ceb934a00dc5bde05d886b4c5859 | 6f6f63efcf69d250b12f3fb76a3c0a343a5a7814 | /ops/polygon_geo/polygon_geo.py | fd802b160f7d69de40791d582f9781ef532dbd7d | [
"MIT"
] | permissive | YangHai-1218/Anchor_free_detection_rotation | ed73bc8b3a43d6328285039eabf7d95d77115b3a | 358d9f5df1beabc7a05a352d2cfa2283b17825a9 | refs/heads/master | 2023-06-04T06:35:02.502907 | 2021-06-22T13:22:11 | 2021-06-22T13:22:11 | 294,360,446 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from . import polygon_geo_cpu
def polygon_iou(poly1, poly2):
'''
poly1: det bboxes shape (N,9) the last one is score, ndarray
poly2: gt bboxes shape (M,8), ndarray
'''
return polygon_geo_cpu.polygon_iou(poly1, poly2)
| [
"haiyang@haiyangdeMacBook-Pro.local"
] | haiyang@haiyangdeMacBook-Pro.local |
512fe181a6ee75a9cfb44789babd62b308ce3f28 | 56c70c3972a448d228843d112992fdf8177e1f14 | /peiqi.py | 784926d12370c14644d593e7c9c701103841019f | [] | no_license | XGodLike/BusinessClassification | fb189f0f769a4f2afb8837a6fd9230e1d1b070fa | d4967f678f25a98d4c24bf018e649c87e50b0081 | refs/heads/master | 2020-04-14T19:15:15.366528 | 2019-01-30T02:20:15 | 2019-01-30T02:20:15 | 164,051,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py |
import turtle as t
t.pensize(4)
t.hideturtle()
t.colormode(255)
t.color((255, 155, 192), "pink")
t.setup(840, 500)
t.speed(10)
# 鼻子
t.pu()
t.goto(-100, 100)
t.pd()
t.seth(-30)
t.begin_fill()
a = 0.4
for i in range(120):
if 0 <= i < 30 or 60 <= i < 90:
a = a + 0.08
t.lt(3) # 向左转3度
t.fd(a)... | [
"junjunjiejie2008@163.com"
] | junjunjiejie2008@163.com |
68d457de3574e3a383d41023a4b8129e7e990d10 | ebc297aef9ccdab91c3ccfbcb3329405ad4d251c | /tests/test_url_builder.py | af90b9da5e6583cdfc5eda812865044e054caad9 | [] | no_license | DimitriKouliche/ma-scraper | fe0d6f6cecab7b7f8b66c879e82b87da57a1a3e4 | a1fe55e018d0f31967c2de046dbcd172c875ee9d | refs/heads/master | 2023-02-03T07:31:57.001670 | 2020-10-08T11:59:14 | 2020-10-08T11:59:14 | 301,973,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from scraper.url_builder import UrlBuilder
def test_extract_listings():
url_builder = UrlBuilder()
assert url_builder.get_district_url(5, 1) == "https://www.meilleursagents.com/annonces/achat/search/" \
"?place_ids=1&transaction_types=TRANSACTION_TYPE.SELL&" \
... | [
"dimitri.kouliche@ias.u-psud.fr"
] | dimitri.kouliche@ias.u-psud.fr |
ac30fb953e3a083b5c9dcb7334591d43bbaa1f57 | d2a2cfcd6629f85652949ea41cb0c19532620204 | /bin/wheel | eeca3ac5fa1d9a0e5a0ec03880f72221f48f75e0 | [] | no_license | thsus2296/test | 6709ba23f14c83b758b2caf6dde98bbb14536c3b | 86fcd2ccc239a7ad20c1a9c763d45cc5121409e1 | refs/heads/master | 2020-06-16T21:55:36.408322 | 2019-07-08T01:10:24 | 2019-07-08T01:10:24 | 195,714,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | #!/home/inyong/dev/trydjango/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"inyong@localhost.localdomain"
] | inyong@localhost.localdomain | |
93a9c900af72de0f3b35f389f388bc247916e3ae | 27a1c516b2caf387fbc0da6af873961e8f3452b9 | /gmplot/drawables/marker_info_window.py | 4f89c8e313627057508b00a9f0f3f7413f449186 | [
"MIT"
] | permissive | tirkarthi/gmplot | b2bccb2662a03f0331f6256e93286c90bd6be254 | 0979c51467e25cfe870668d3990ce7885e317f85 | refs/heads/master | 2022-12-05T17:38:01.355034 | 2020-07-03T19:09:29 | 2020-07-03T19:09:29 | 280,912,510 | 0 | 0 | MIT | 2020-07-19T17:09:20 | 2020-07-19T17:09:19 | null | UTF-8 | Python | false | false | 1,178 | py | class _MarkerInfoWindow(object):
def __init__(self, content):
'''
Args:
content (str): HTML content to be displayed in this info window.
'''
self._content = content.replace("'", "\\'").replace("\n", "\\n") # (escape single quotes and newlines)
def write(self, w, cont... | [
"frslm@users.noreply.github.com"
] | frslm@users.noreply.github.com |
a468ccdf43c987d187ed161205454ce4aef48536 | 7aa6a5e94c9dea6686a55f316b78a91e8e301ad0 | /31-nato-dictionary/codewars_unittest/__init__.py | 67596a1dec6777ad40ea468b610619eb0038ff53 | [] | no_license | marinasupernova/codewars | 3ede0d61693462551112bee1019c34396d91b2d9 | fcea73a6cf564159a7fc776edc47cf57fab121df | refs/heads/main | 2023-04-26T07:17:56.149954 | 2021-05-31T06:01:13 | 2021-05-31T06:01:13 | 345,687,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from .test_runner import CodewarsTestRunner
| [
"marina.de.suvorova@gmail.com"
] | marina.de.suvorova@gmail.com |
b9cea96bd1fe04ff6d961295ea869a78c3e571e4 | dfab6798ece135946aebb08f93f162c37dd51791 | /core/luban/db/models.py | e30723a4165928648d1c38b81f47e476985bd1ca | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,608 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
3f12c6a48e213cf41ddf3a04479036c49f11fa1b | b3343d5842f5f2fdee5a726b933709fc1bad7d32 | /top/api/base.py | dadb5f48f18295ee86abdb80dbbfc13992115533 | [] | no_license | llv8/syl | ae307e4f544b5160d80b23b129c0ec65b5900fa1 | 1fdb1011d1339e272accab0d37a9e73e9827daf4 | refs/heads/master | 2021-06-04T09:57:34.139322 | 2016-06-29T08:51:56 | 2016-06-29T08:51:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,416 | py | # -*- coding: utf-8 -*-
'''
Created on 2012-7-3
@author: lihao
'''
try: import httplib
except ImportError:
import http.client as httplib
import urllib
import time
import hashlib
import json
import top
import itertools
import mimetypes
'''
定义一些系统变量
'''
SYSTEM_GENERATE_VERSION = "taobao-sdk-python-20160511"
P_AP... | [
"venlv2046@gmail.com"
] | venlv2046@gmail.com |
3e488c1e6d8440ad53c140620d92ef2e370ce8d9 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/crnn_seq2seq_ocr/export.py | 5e3a5b228456dd05aac02549e97f25cb124b1625 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 2,428 | py | # Copyright 2021 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 to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
bfcf8014c00faabd8828474c77a4d96497ba9a38 | da54cb56e69ca730156156ca70a720cfbd7723ea | /others/coffee_plackett/mindsdb_acc.py | 78dfe064c969ce8ad89c969d29d4efe3ffbc3f23 | [
"MIT"
] | permissive | setohe0909/mindsdb-examples | b4f7908aa0c96fc0ea0721931f95bc4960bc2867 | 04fc9b4ad9bb8e960a996e1c4eab1e6054bca8ff | refs/heads/master | 2022-11-27T00:21:16.114913 | 2020-08-06T15:33:17 | 2020-08-06T15:33:17 | 296,442,864 | 1 | 0 | MIT | 2020-09-17T21:08:52 | 2020-09-17T21:08:51 | null | UTF-8 | Python | false | false | 237 | py | from mindsdb_native import Predictor
mdb = Predictor(name='coffee_predictor')
mdb.learn(from_data='data.tsv', to_predict=['Coffe_Malt', 'Chocolat', 'Gold', 'Medium_Barley', 'Dark_Barley', 'Dandelion', 'Beets', 'Chicory_Roots', 'Figs'])
| [
"george@cerebralab.com"
] | george@cerebralab.com |
38eaa72b941d96798a70a6dda2b4584e8d01c6e4 | 031dbb2a3ea47a0483db310db9f98796cc83c500 | /787_Cheapest Flights Within K Stops.py | 6023db6bc0143b13eabbfbbe62dfaa8852018733 | [] | no_license | Shwan-Yu/Data_Structures_and_Algorithms | 429fb127983e32931f2168f44ef1484c1cc4c87f | 9126c2089e41d4d7fd3a204115eba2b5074076ad | refs/heads/master | 2020-03-27T11:46:59.947303 | 2019-08-23T15:15:21 | 2019-08-23T15:15:21 | 146,507,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | class Solution(object):
def findCheapestPrice(self, n, flights, src, dst, K):
"""
:type n: int
:type flights: List[List[int]]
:type src: int
:type dst: int
:type K: int
:rtype: int
"""
if not flights: return 0
dp = [float("inf")] * n
... | [
"noreply@github.com"
] | noreply@github.com |
32c8fda23246b3e7a8c4cfa7a0b9b7ab104e3b81 | f03881a594d559949d5b96527a5a6c7a18d89ed7 | /0lab/src/main.py | 017c8d1b3bf5dae645a18d06b13d9f98e1575617 | [] | no_license | pkmxier/AI | 7954c25bd424f666d664e83b607cbba6c67a7444 | 8d80f471c37f4bc69939feea905a1d5c3cb67607 | refs/heads/master | 2020-06-05T04:32:17.027091 | 2019-06-17T10:31:00 | 2019-06-17T10:31:00 | 192,313,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,729 | py | numbers = [
169512848540208376377324702550860778129688385180093459660532447790298998967239009844131423368703852254379652436293267451165908499087709446140576906830525398016548195227615126428227016930742498245134936446888445262636336633279210669749830015450428910904353831472217149085157720200293646951583784688447268... | [
"noreply@github.com"
] | noreply@github.com |
e6b92eab9e39bcef0174059d7dc7e026466d654c | 8d22dc8acc1eaf46bc14456d9d4bc52d32a71553 | /cogs/owner.py | f60cb43974339ec043d73861df9dc9bf9f8b781a | [] | no_license | OneUXBrasil/OneUX-Bot | 0b47435981faf8336bedca1ff68f434fc141fbf9 | 8593cbe5d3cdf7675efce05275f48e40c4c52fce | refs/heads/main | 2023-01-29T07:20:48.107749 | 2020-12-12T23:34:29 | 2020-12-12T23:34:29 | 320,945,591 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,348 | py | import discord
import time, datetime, psutil, platform
from discord.ext.commands import *
from random import randint
class Owner(Cog):
def __init__(self, bot):
self.bot = bot
self.start_time = time.time()
self.color = 0x7A4EF9
@cooldown(2, 10, BucketType.user)
@guild_only()
@command(aliases=["u... | [
"noreply@github.com"
] | noreply@github.com |
233569d86185a253ad9a4b58e4346737fd05216a | 3a27766a6fcfec26970300a324aec6e6893618a1 | /main/urls.py | 6920733584fe925d68fc8202a1f61de919406406 | [] | no_license | sasori0607/iphone_w | b1011176473f2949c7b112c0d7caec9edd905d22 | 7215646a3f0b6d700e90cd9f9908d8eef3a22bbb | refs/heads/main | 2023-08-16T10:05:39.493365 | 2021-09-26T21:54:32 | 2021-09-26T21:54:32 | 376,524,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"cacopu060798@gmail.com"
] | cacopu060798@gmail.com |
713f486d6e5e3cec83efb4e96f4bf631482ec52e | 1149320697083005200e8df0ceb34bb3a4fef061 | /sat.spec | 3a0652551e7009a77e826b952cebb65e1ba46f4f | [] | no_license | avillalobosd/SATbot | f1757403bf42a5828f648ec7bc9d9dd249bca1e8 | cd2c78f9e46b393566e74fc9711293918ea3d085 | refs/heads/main | 2023-08-22T11:40:51.262991 | 2021-10-14T18:51:08 | 2021-10-14T18:51:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['sat.py'],
pathex=['O:\\PAGINAS\\SAT - 2021\\SAT-BOT'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],... | [
"noreply@github.com"
] | noreply@github.com |
b275e025bbf7161c2cb2daeeebb72fded4430968 | 68799236b3d607a91192d1ab7bb9707272444731 | /nodes - generation.py | 4afa150f11eb63237cf34118fe6a185c45eea7a8 | [] | no_license | DiegoL1M4/PROJECT__NIC-Protocol | 6727c17d9599039a1569bb5b84974325845c8a00 | 550bc17fdee16e0074c9a89f04de0bd73c51d676 | refs/heads/master | 2020-06-29T03:03:35.824342 | 2019-08-06T20:43:16 | 2019-08-06T20:43:16 | 200,420,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # -*- coding: utf-8 -*-
import numpy as np
bateria = 0.5
radio = 75.0
ch = 0
ch_count = 0
num_nodes = 100
area = 100
with open('nodes.txt', 'w') as file:
for i in range(1, num_nodes+1):
x = round(np.random.uniform(0, area), 2)
y = round(np.random.uniform(0, area), 2)
f... | [
"noreply@github.com"
] | noreply@github.com |
1b4fe453ca79824f64731d48bde6c32e9fbcf4a9 | 137329b85e6dea7a445bbbbee8b6d1477ff3c3b7 | /account/migrations/0002_auto_20210205_0220.py | f9a5804a8d70ac51a17c30c4f12fb9f516f7019f | [] | no_license | isaiaholadapo/django-blog | 4545084eed4a072105331347628f44e0bcfe1544 | 5b8dfa1c17abee6ff136ead4eaa4c6d8b90d81de | refs/heads/main | 2023-03-02T09:58:53.321243 | 2021-02-06T07:01:33 | 2021-02-06T07:01:33 | 335,270,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | # Generated by Django 3.1.5 on 2021-02-05 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='account',
name='date_joined',
... | [
"isaiaholadapo18@gmail.com"
] | isaiaholadapo18@gmail.com |
95c18cf28b8e463178f2178a08467aa780703687 | 6c3b6d35df9bf7cacbbee2aa4dddc46cd463c998 | /survey/utils.py | f256727c8fd35e62d078edaf2f685f6698960282 | [] | no_license | YuriyShashurin/SF_Final_project_backend | 752d28658b520e69cfe930f4571abbe7e9278bd4 | eb2f46f73ca4687673eddf5ab7094f57dd88c747 | refs/heads/master | 2023-09-05T09:11:25.373117 | 2021-11-09T15:44:35 | 2021-11-09T15:44:35 | 367,711,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py |
def jwt_response_payload_handler(token, user=None, request=None):
return {
'token': token,
'username': user.username,
'user_id' : user.id,
'email' : user.email
}
| [
"shashurin.edu@mail.ru"
] | shashurin.edu@mail.ru |
b2be745e9e96cf02e43aae6b8f4a59f77e2cc754 | 10eca9782a9f025b0afb5cb32a47d36fef1d1278 | /chatbot/tests/basic_test.py | 1ff7b4471e8eecf7775c2e1f3abea8f80c6a87d4 | [] | no_license | superxiaoqiang/chatbot-cs160 | d1dd1f8b694f9adf06419cef66c07fb34f514c7f | 3674f78b874ab371340b675e0e9c03d3665ce3e9 | refs/heads/master | 2020-12-31T06:10:54.299393 | 2010-03-16T23:52:28 | 2010-03-16T23:52:28 | 56,666,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | """Unit test for chatbot
Part of the chatbot project for cs160.
"""
from inputparser import *
import unittest
ip = InputParser()
class inputTest(unittest.TestCase):
def testInputList(self):
"""list input"""
response = ip.parse("List the 5 most expensive restaurants in Manhattan, New York.")
... | [
"paul.craciunoiu@39997754-0b0c-11df-a6e1-f7bfe9b6b944"
] | paul.craciunoiu@39997754-0b0c-11df-a6e1-f7bfe9b6b944 |
e96ad110a9cb5d04e3c1a4249b69f8ae56335ce5 | 7970354f8435f9fdc79662cc36ba68b6755d23c5 | /tests/calculators/test_np_activeCells.py | c9bccb553e8895ecb3ba2c3627b0647376ebcd99 | [] | no_license | calumroy/HTM | f197c763662d55decea3e99f66c84fa6d3ade4cf | 1f5cc8c9e533c991e87901ee313e93be76af481b | refs/heads/master | 2022-12-08T11:02:04.684706 | 2018-04-15T05:39:46 | 2018-04-15T05:39:46 | 8,181,199 | 2 | 0 | null | 2022-12-07T23:36:30 | 2013-02-13T15:02:51 | Python | UTF-8 | Python | false | false | 7,826 | py | from HTM_calc import np_inhibition
import numpy as np
import math
import random
import theano.tensor as T
from theano import function
from theano import scan
from HTM_calc import np_activeCells as nac
class test_theano_predictCells:
def setUp(self):
'''
'''
# Helper functions for the Main fu... | [
"calum@calumroy.com"
] | calum@calumroy.com |
a683c1f4c81d2952675346854e2f80efb8473601 | 37ba3d21dcb6edd21e48dbb7f12591ac3590ab64 | /python_problems_competitive/ten_kinds_of_people.py | 4ef27f518e9cd247adcaa9041da10f96bc2643ec | [] | no_license | Hygens/hackerearth_hackerrank_solutions | 2feaedec255a85792d305bb8ff35675254a03f2a | 86cc4c9ca4d5246f24db8cda93400f1d7ee00882 | refs/heads/master | 2021-07-06T15:56:28.906533 | 2020-04-28T22:45:56 | 2020-04-28T22:45:56 | 55,160,498 | 1 | 2 | null | 2020-10-01T06:48:09 | 2016-03-31T15:15:36 | Python | UTF-8 | Python | false | false | 331 | py | r,c = map(int,input().split(' '))
l = []
for i in range(r):
l.append(list(input().strip()))
n = int(input().strip())
for _ in range(n):
r1,c1,r2,c2 = map(int,input().split(' '))
if l[r1-1][c1-1]==l[r2-1][c2-1]=='0': print('binary')
elif l[r1-1][c1-1]==l[r2-1][c2-1]=='1': print('decimal')
else: print... | [
"noreply@github.com"
] | noreply@github.com |
484d7007aa18126e562a439f5ddb39f19a4e0ea8 | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/CartPoleAST/CartPoleNdRewardt/MultiCartPoleNd_RLNonInter.py | 7bde5b51f00c93349bfd677128345b1493e7a0c2 | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,181 | py | import os
os.environ["CUDA_VISIBLE_DEVICES"]="-1" #just use CPU
# from garage.tf.algos.trpo import TRPO
from garage.baselines.zero_baseline import ZeroBaseline
from mylab.envs.tfenv import TfEnv
from garage.tf.policies.gaussian_mlp_policy import GaussianMLPPolicy
from garage.tf.policies.gaussian_lstm_policy import ... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
fce86ff8bcc8ef3f7eb2614633191a9d4fd1e56b | 3b9c53041d6f2ceda05200ecf374b044743c8e54 | /graphistician/weights.py | 329ada54d9a63e7a2bae36d611756abce15a272c | [] | no_license | M0h3eN/pyhawkes | 9549c1db062ad0cb9fea45c5c2862c1a4e7077a8 | 4a790a6ff93bb7c19032d8763c0536c5cc49b486 | refs/heads/master | 2023-06-12T08:01:26.775188 | 2019-08-01T13:44:37 | 2019-08-01T13:44:37 | 382,609,070 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,592 | py |
import numpy as np
from pybasicbayes.distributions import Gaussian, GaussianFixedMean, GaussianFixedCov
from pybasicbayes.abstractions import GibbsSampling
from graphistician.abstractions import GaussianWeightDistribution
class FixedGaussianWeightDistribution(GaussianWeightDistribution, GibbsSampling):
def __in... | [
"mohsenhadianpour@gmail.com"
] | mohsenhadianpour@gmail.com |
17f42d961d07ae670ad5a9895a53fe22b9e5e27b | 3def27e101ca346af6b30247769719f5cd5a27c0 | /indiaos/config/docs.py | 95939bb230467499359e5175e7a089a84d88ecaa | [
"MIT"
] | permissive | anto-christo/indiaos | 9fb94527092570981288b42a05001cf33b61b522 | 4b029cf86e49dcabad852312293e6fa5116d4155 | refs/heads/master | 2020-09-13T19:50:15.187112 | 2019-11-20T08:30:13 | 2019-11-20T08:30:13 | 222,887,034 | 1 | 0 | NOASSERTION | 2019-11-20T08:24:27 | 2019-11-20T08:24:26 | null | UTF-8 | Python | false | false | 313 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/indiaos"
# docs_base_url = "https://[org_name].github.io/indiaos"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "IndiaOS"
| [
"scm.mymail@gmail.com"
] | scm.mymail@gmail.com |
9ccab3e9d9e733de3424fdc912d659bc0939faca | c5a36f358c0635f218f9239ad3a7e932fa4d64cd | /google_search.py | 099fab95bc0b411c30301f8e857f91a65e6ddd0c | [] | no_license | vijama1/VoiceControlProject-1 | e0121104e6145d18f79cf0c2d3513f2b80e657a9 | 634765207752073b89624954bc7694d4ffaacea8 | refs/heads/master | 2020-07-09T13:34:08.131022 | 2018-06-03T05:47:59 | 2018-06-03T05:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | # imports
import webbrowser
import tts
import SpeechRego as sr
#------------------------------------------------------------------------------------
# search gogle function
def search_google(filtered_query):
result = 0
# keywords to remove
remv_keywords = ['search','google','on','about','the','find','ok','... | [
"kumbhaj.abhishek1289@gmail.com"
] | kumbhaj.abhishek1289@gmail.com |
3917b640dda76239b40a71a612881b23d4d36377 | 59bf003a0397e2b6db1d474a0afaa90e52fb8ec9 | /problems/lc_211.py | 45f2ff7c58a2dbbf989703bbf647f32c5d65253f | [] | no_license | 224nth/leetcode | cd3c43a6173196628e1495e13776cd7c2a0a52f0 | 63bd7c91ef747ca553e374422aa96df14329702d | refs/heads/master | 2022-07-15T03:31:34.704770 | 2020-05-21T01:28:34 | 2020-05-21T01:28:34 | 259,326,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | import string
class Node:
c = None
children = [None for _ in range(26)]
end = False
def __init__(self, c, end = False):
self.c = c
self.end = end
def add_children(self):
self.children = [Node(c) for c in string.ascii_lowercase]
class WordDictionary:
def __init__(... | [
"nthapa@patreon.com"
] | nthapa@patreon.com |
01045278e80a129bf605929c5312c1b151934d0d | c2dccc91370a52570ed294af4b864e0459ec713c | /loaddata.py | 117025eb85ab92fcbfee390e42af050fe5dba779 | [] | no_license | gaozhengjie/teaching-document-management-system | 9d49abec512d04937696bb42ad6aab99d8c9dc1e | 927b7d3741d3faafe9a27b189757fd0c0dd40afb | refs/heads/master | 2020-04-30T22:01:40.858749 | 2019-03-24T13:03:24 | 2019-03-24T13:03:24 | 177,107,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | import pymysql
def loadDataSet():
host = "localhost"
user = "root"
passwd = "1q2w3e"
database = "file_manage"
charset = 'utf8'
use_unicode = True
# 打开数据库连接
db_conn = pymysql.connect(host=host, user=user, passwd=passwd, db=database, charset=charset, use_unicode=use_unicode)
# 使用 cursor() 方法创建一个游标对... | [
"noreply@github.com"
] | noreply@github.com |
fe0b5b9dd5b24d4e2028f101536f601fef3323df | 63be9d3c74144bb4f575bbc3eae65bdd92b51dab | /NeRFs/TorsoNeRF/run_nerf.py | bd991db35882a9705577db8d73aa4c005c7a0d82 | [] | no_license | bruinxiong/AD-NeRF | c2e059b83e342d1a34394d8373e0a4a3c1968f24 | a1dc83f27b6f757069ec27dbd81851a3f027d8d8 | refs/heads/master | 2023-06-30T10:31:31.724279 | 2021-07-23T10:14:24 | 2021-07-23T10:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,138 | py | from load_audface import load_audface_data, load_test_data
import os
import sys
import numpy as np
import imageio
import json
import random
import time
import torch
import torch.nn as nn
import torch.nn.functional as F
from tqdm import tqdm, trange
from natsort import natsorted
import cv2
from run_nerf_helpers import ... | [
"gyd2011@mail.ustc.edu.cn"
] | gyd2011@mail.ustc.edu.cn |
e8bf3df832fd868ec608b2b76bee94a023982c76 | 5174294cc3401c418d98b14b5a475a08f0b6eadd | /searchlight/i18n.py | e2ba2955c8d21d35ead9b0a11da3a095c179dbe4 | [
"Apache-2.0"
] | permissive | khushbuparakh/searchlight | 3e01927b50629b50a36e209fe34fded474a4a1db | 2c2f71fc08a13f757eb126faa8f8e8f714e32dd4 | refs/heads/master | 2020-12-13T09:01:10.717304 | 2016-04-07T01:34:09 | 2016-04-07T01:34:09 | 55,662,195 | 0 | 0 | Apache-2.0 | 2023-08-02T01:27:31 | 2016-04-07T03:56:00 | Python | UTF-8 | Python | false | false | 1,114 | py | # Copyright 2014 Red Hat, Inc.
# 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... | [
"lakshmi.sampath@hp.com"
] | lakshmi.sampath@hp.com |
83eb8569cc3356e75bba882839e75f14402a7d1c | f5df5f68ddbd1b5dbb004401b901505358032a64 | /practice (21).py | 2595b539dd0e13c0e8954e3dbb0c551d94debd55 | [] | no_license | GeginV/Iterations-Python | c29308351a8205372060f577540b618cd172db93 | 1d23d78a6d93dde6c7d49676d7f79b68cf269c66 | refs/heads/main | 2023-03-26T18:17:01.310389 | 2021-03-29T08:09:03 | 2021-03-29T08:09:03 | 352,561,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | L = [int(input()) %2 == 0 for i in range(5)]
print(L) | [
"noreply@github.com"
] | noreply@github.com |
14f141e37d9624efc4997a598f0eeee8a148532a | d9721f272a9eca6655972a8fb35285cf0e5ec76a | /Book/ch4.py | 97c0a79629f6567438002f54f8336ccbaadefa23 | [] | no_license | wh-jung0522/AlgorithmStudy | fcce4241b80dc1e89b604e0e856ab496dd10d215 | c0fe03540d3b24e366b80ddbe027a2c186c81979 | refs/heads/main | 2023-09-01T21:33:34.840374 | 2021-10-21T09:01:34 | 2021-10-21T09:01:34 | 356,115,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | def ch4_1():
position = (1,1)
dright = (0,1)
dleft = (0,-1)
dup = (-1,0)
ddown = (1,0)
N = int(input("Space : "))
Plan_list = input("Plans : ").split(" ")
for move in Plan_list:
if move == "R":
dmove = dright
elif move == "L":
dmove = dleft
... | [
"59599991+wh-jung0522@users.noreply.github.com"
] | 59599991+wh-jung0522@users.noreply.github.com |
5e58b6483a21d1dcda87883dadabb128dcf9cdbe | 4ed038a638725ac77731b0b97ddd61aa37dd8d89 | /cairis/gui/SecurityPatternDialog.py | 08a80cb3e41d28e481cae171536b5d583ce0b767 | [
"Apache-2.0"
] | permissive | RachelLar/cairis_update | 0b784101c4aff81ff0390328eb615e335301daa2 | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | refs/heads/master | 2021-01-19T06:25:47.644993 | 2016-07-11T20:48:11 | 2016-07-11T20:48:11 | 63,103,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
91a20661265981b49a7a777f11bf1c5c352b1cbf | c614d006cedca85e20d26ea4f80b1d57632b76ad | /mission_control/navigator_missions/nav_missions/totem.py | 29fdd183a661e5aa8dca05b2fc107b88109f8b5c | [] | no_license | LucasBA/Navigator | b404d90bac931a1c7e0a5101c63d17253a5d72d5 | 1edd25fe801821631e88444f8f79ca37f980ee8d | refs/heads/master | 2020-04-05T18:58:41.617025 | 2016-08-31T16:59:10 | 2016-08-31T16:59:10 | 64,950,985 | 0 | 0 | null | 2016-08-04T16:39:29 | 2016-08-04T16:39:29 | null | UTF-8 | Python | false | false | 1,193 | py | #!/usr/bin/env python
import txros # txros is required for all missions since it's the backbone on which we build missions.
@txros.util.cancellableInlineCallbacks
def main(navigator):
totem_list = navigator._node_handle.get_service_client('/mission/totem/list', SetBool)
totem_list = navigator._node_handle.g... | [
"lbassettaudain@ufl.edu"
] | lbassettaudain@ufl.edu |
a8cc921f9a8bbdd365acf5d3c14a6a650814c348 | 3493496a09ce9c4820ebcaabeaf7694900bf60a8 | /old_stuff/old_tf1_model/discriminator.py | 7d12c296ab9346b8e30b37f234163b0a3c6954c5 | [] | no_license | schmidtdominik/ArtGAN | 1ab1ed8c4b5ed0f01caa02b5568b18a8f45c24ac | e3751cbc860a18492c8a59e10088e7149435015b | refs/heads/master | 2020-08-03T11:30:50.927451 | 2020-02-16T23:04:35 | 2020-02-16T23:04:35 | 211,737,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,496 | py | import tensorflow as tf
#def batch_norm(layer):
# return tf.layers.batch_normalization(layer, training=True)
def discriminator_256x256(image_256x256=None, features_256x256=None):
with tf.variable_scope("GAN/Discriminator/discriminator_256x256", reuse=tf.AUTO_REUSE):
if image_256x256 is not None:
... | [
"schmidtdominik30@gmail.com"
] | schmidtdominik30@gmail.com |
7ec64ebfbf6b63a38518ca287dedb3a612f1cc58 | d889c12217bad2c8c9b49ecff6661575434c2071 | /simetricni-ne-evklidski.py | 191da9820fee2de800d0636bc4503194dba00c19 | [] | no_license | timotejvesel/Ant-colony-on-TSP | 53c9123f3c0a21a0facd1176bfc100516612e14f | 07eec5cbd275467ceb1b199e4895d9828cd7d129 | refs/heads/master | 2020-04-08T13:19:16.419456 | 2019-01-06T13:11:19 | 2019-01-06T13:11:19 | 159,385,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,946 | py | from random import *
import time
start = time.time()
import numpy
import math
def trikotna(file, n): # s tem zapišemo "matriko" iz txt datoteke v simetrično matriko.
sez = []
with open(file) as f:
sez=[float(y) for x in f for y in x.split()]
stevec = 0
razdalja = [[0]*n for i in ra... | [
"noreply@github.com"
] | noreply@github.com |
edb68685f9b28d0e3a8ffe8feaaa3c085fdf9521 | 8b3c910ce9452610023c8f314c82cd36b718b1ae | /cogs/EventController.py | 13697e57510147985e83c9541d814902e98159f2 | [] | no_license | AEnterprise/TriBot-HypeSquad | 0a750712566a8894dac9b2a3037a8c2294f93f4c | efd19d4877969fe80c98d53bf46c23841237d51d | refs/heads/master | 2020-03-31T21:30:55.515828 | 2018-10-11T11:51:37 | 2018-10-11T11:51:37 | 152,583,512 | 0 | 0 | null | 2018-10-11T11:51:56 | 2018-10-11T11:51:56 | null | UTF-8 | Python | false | false | 1,759 | py | import asyncio
import importlib
import datetime
import os
from subprocess import Popen
import subprocess
from discord.ext import commands
from discord import utils
from utils import Util, Configuration
class EventControl:
def __init__(self, bot):
self.bot:commands.Bot = bot
@commands.command(hidden=T... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.