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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a5e3c2dd3665157ca080d0fc9762c4e20c48c388 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/7cf0626d7b9176f0eba3ff83c69c5b4553ae3f7e-<validate_distribution_from_caller_reference>-fix.py | b639b22fa205318f577ce5de14a54a2382c3197b | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py |
def validate_distribution_from_caller_reference(self, caller_reference):
try:
distributions = self.__cloudfront_facts_mgr.list_distributions(False)
distribution_name = 'Distribution'
distribution_config_name = 'DistributionConfig'
distribution_ids = [dist.get('Id') for dist in dist... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
bcd9281825c14953b9fccc4138038bbcbbbbf55c | 6bc158e88a9ad3f1ace53b3b390b4edf6f648045 | /custom_resources/SsmParameter.py | d48ec0d09a216de1107695f95ac6472928305bd9 | [
"Apache-2.0"
] | permissive | vrtdev/custom-resources | 7048149304a322a79e5d87cc889b8b07d261dac4 | cf06d160c290420ea59459aa03f3271ffeccc798 | refs/heads/master | 2023-06-22T21:08:54.497162 | 2023-06-09T06:03:14 | 2023-06-09T06:03:14 | 157,861,522 | 2 | 2 | Apache-2.0 | 2023-06-09T06:03:15 | 2018-11-16T11:59:43 | Python | UTF-8 | Python | false | false | 187 | py | from .ssm import Parameter
# Backward compatibility
class SsmParameter(Parameter):
_deprecated = 1535105258
_deprecated_message = 'Use custom_resources.ssm.Parameter() instead'
| [
"niels@dest-unreach.be"
] | niels@dest-unreach.be |
524c8ff5f2a25c3cb76aa0b81d6370d9e3914eb1 | 44ba5a35f622c13c7a69406f6813ec0289f71653 | /codeless/olr.py | 102b6f047e206f9fc8323fbac5b35022aaec8e3b | [
"MIT"
] | permissive | porky5191/CodelessLibrary | 0fa7dbf50c6f672bbc9b5cb52b7a0043072927ec | e2c7087b6c09bda611010017760580db3ed71fa5 | refs/heads/main | 2023-01-21T20:44:08.065716 | 2020-12-05T04:07:42 | 2020-12-05T04:07:42 | 317,565,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | """
The :mod:`codeless.olr` module includes methods
to handle outliers.
"""
import numpy as _np
def StdOutlier(df, columns, strategy='replace'):
'''
This method removes all outliers and replace it with 3rd standard
deviation value.
Parameters
--------------------
df: rectangular datas... | [
"noreply@github.com"
] | noreply@github.com |
9653ed4aa3babc4252a0c78481cc6d47d5212224 | 7076bd51a148592681b2b9122b21161936f373f1 | /start.py | 8e1bfc4c050aefed4b14b8a244dc4876b456418c | [] | no_license | mvrkmvrk/scrap | e2ef2934f3fbcd8ddd9347486fe717b53b295254 | 7100f1d3a2701d15e47fc89497d8374fd4c1ea02 | refs/heads/master | 2021-01-10T06:54:35.892591 | 2016-01-30T01:53:30 | 2016-01-30T01:53:30 | 50,568,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import time
from config import CONF
from datetime import timedelta
from crawl_scheduler import start_crawler
from report_scheduler import start_report_scheduler
while(True):
#load fresh updated config
print "CONFIG:"
print CONF.config
start_crawler()
start_report_scheduler()
print "sl... | [
"manishramani200x@hotmail.com"
] | manishramani200x@hotmail.com |
b24b3b508692c9d3bbffa96ff99acdc158a53fa4 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.1/desktop/kde/base/kdesdk/actions.py | ab36d22af81fe87c89ebff98566184311e00fa96 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import kde
def setup():
autotools.make("-f admin/Makefile.common")
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
b0b7745a5a2c04f67274c103e18b26a5617a9095 | dd2d0bf4b254733754210bc0619facade56f4709 | /nfc_mario_real_life/db_util.py | b6d01ac74d867efee82f39ee5fe86a65ac6baf2a | [] | no_license | yongyct/nfc-mario-real-life | b8d448a1676bb2d6ad52c7d9dc38bc0aa56d8cf5 | 05044aa011888095c91bb21568228c253b0a95ac | refs/heads/master | 2020-07-02T09:27:01.752135 | 2019-09-03T15:26:45 | 2019-09-03T15:26:45 | 201,486,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import MySQLdb
### Configs
DB_HOST = "192.168.1.29"
DB_NAME = "coin_test1"
def db_connection():
db_conn = MySQLdb.connect(
host=DB_HOST, # your host, usually localhost
user="pi", # your username
passwd="raspberry", # your password
db=DB_NAME # name of the data base
)
return ... | [
"yongyct@gmail.com"
] | yongyct@gmail.com |
13411d765c50fcd3653748ce5da0ccd0dd1a35bb | 499e47d188d75f2bc98333b2868283741634cce0 | /asn_values.py | 38e7013ac64ba8f4b2ba81322e4c541374aa9f7f | [
"Apache-2.0"
] | permissive | imnetdb/example-DC1 | 49dfcac030770903a86339640175a4a67327f1e6 | ecebd9d059026eff7dbb2d216cfa8df3c7ece5a8 | refs/heads/master | 2020-04-26T00:05:18.860141 | 2019-03-06T18:27:21 | 2019-03-06T18:27:21 | 173,166,466 | 0 | 0 | Apache-2.0 | 2019-03-06T18:27:22 | 2019-02-28T18:31:24 | Python | UTF-8 | Python | false | false | 3,370 | py | #!/usr/bin/env python
# Copyright 2019 Jeremy Schulman, nwkautomaniac@gmail.com
#
# 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
#
# Unl... | [
"noreply@github.com"
] | noreply@github.com |
836347b2855350536a9f9138aee883ec86338aa6 | 0b96051d3338ecaf96f23e64d922e1e17b810893 | /acceleration_cal.py | e530692a3f96f23d6be4544b0159e36cf8275e7f | [
"MIT"
] | permissive | Thickduck/Physics | 08446cb5edcd893d8592aa548671544e95454065 | 408eca1d7a1f9698e1da0159c66117376d156d26 | refs/heads/main | 2023-08-26T11:03:18.114826 | 2021-10-08T08:58:54 | 2021-10-08T08:58:54 | 414,897,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #This code is going to be a simple yet efficient acceleration calculator
v = float(input('Your given final velocity [in m/s]: '))
u = float(input('Your given initial velocity [in m/s]: '))
t = float(input('Your given time period [in seconds]: '))
a = v - u
afinal = a / t
print('Your acceleration [in m/s^2]: '... | [
"noreply@github.com"
] | noreply@github.com |
cd7c124c0c94b8d638bf99a7f9e639fac195662a | 0fea8a6421fe5f5967f2202910022c2bfd277b4d | /080.3个人在餐厅吃饭,想分摊饭费。总共花费35.27美元,他们还想给15%的小费。每个人该怎么付钱.py | 4918e634266d62ad981aaa179b90c88947fe0b17 | [] | no_license | maohaoyang369/Python_exercise | 4dc10ec061aa0de2bcfe59c86be115e135fb3fab | 8fbee8854db76d09e2b1f9365ff55198ddabd595 | refs/heads/master | 2020-04-09T23:04:02.327118 | 2019-09-05T14:49:07 | 2019-09-05T14:49:07 | 160,646,057 | 0 | 2 | null | 2019-03-21T14:44:13 | 2018-12-06T08:50:19 | Python | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# 3个人在餐厅吃饭,想分摊饭费。总共花费35.27美元,他们还想给15%的小费。每个人该怎么付钱
prices = 35.27 * (15/100) + 35.27
oneperson_pay = prices/3
print(oneperson_pay) | [
"37652726+maohaoyang369@users.noreply.github.com"
] | 37652726+maohaoyang369@users.noreply.github.com |
1eb55cab2f62bea3b661a9f66e36c0075a331716 | f6a898038637feef0a995979099a940ee6158b08 | /vivatech_django/apps/jobs/views.py | 07540859e92cdfcd5dafc37cff17b1656e2a12dc | [] | no_license | MykhailKo/vivatech | 9608af7916fbcd221dc510595e94523bb042053e | 09d72c8cf784545d6d87725e4accdcf47cb0299b | refs/heads/master | 2021-01-09T12:44:37.317874 | 2020-04-15T07:41:13 | 2020-04-15T07:41:13 | 242,305,060 | 0 | 0 | null | 2020-04-06T19:23:01 | 2020-02-22T08:15:32 | JavaScript | UTF-8 | Python | false | false | 456 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect
from django.utils import timezone
from django.urls import reverse
from .models import Job, Brand, Service
def about_page(request):
jobs = Job.objects.all().order_by('priority')
brands = Brand.objects.all()
... | [
"tuareg1812@gmail.com"
] | tuareg1812@gmail.com |
8c6828e6bb5f3f1a65b67c4cab8ebc0d03a52f07 | 90b5ea794a5ff72112fe349719e168b9808d7239 | /data_scripts/GetMCP1Data.py | 4ba77cd33042dd00487a654f7b7ecf54c44f3e1d | [] | no_license | sk1806/ND280Computing | fa2d31e87e169d247e08bf69f7916ac59e3e01a3 | bb3dcdf33fd6342ed0df6db82528443f0040c584 | refs/heads/master | 2021-08-06T00:28:43.995916 | 2018-07-24T16:59:25 | 2018-07-24T16:59:25 | 100,965,385 | 0 | 1 | null | 2019-03-28T06:06:19 | 2017-08-21T15:17:52 | Python | UTF-8 | Python | false | false | 3,260 | py | #!/usr/bin/env python
"""
A script to get middle pass processed files from the LFC
Any other suggestions please e-mail me, b.still@qmul.ac.uk
"""
import ND280GRID
from ND280GRID import ND280Dir
from ND280GRID import ND280File
import optparse
import os
import sys
# Parser Options
parser = optparse.OptionParser()
##... | [
"stewartt@heplnx109.pp.rl.ac.uk"
] | stewartt@heplnx109.pp.rl.ac.uk |
7084e55c99b72f20d2ad2dc57bbae849b16cb024 | 618d83fd8cb8b83cce04cf0b049ef173e2afd299 | /train_end2end.py | 0e1fe89eb532d425d83b51f095599c5b7a84f6a8 | [] | no_license | JackLangerman/PC2WF | 082b4d78966c55171867179cc5889746bf93a7db | ad64052c9a8445fde1828023530b67cd0bb963f3 | refs/heads/main | 2023-04-14T19:36:21.415392 | 2021-05-02T22:53:05 | 2021-05-02T22:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,239 | py | import os
import time
import numpy as np
from glob import glob
import logging
import argparse
import random
from tqdm import tqdm
from model.resunet import NewResUNet2, NewnewResUNet2, ResUNetBN2C
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data impor... | [
"yujliu@phys.ethz.ch"
] | yujliu@phys.ethz.ch |
451b9c80de142f02826c29e7ac1406bc1b49e935 | 1f4b88040c07246f0b7afc1fda91afba9705288a | /GoogleHeadingScraper/GoogleHeadingScraper/wsgi.py | 5115f936f519f2d7868ef925e174814f52ae4c98 | [
"Apache-2.0"
] | permissive | qasimahsan77/TopHeadingScraper | b1b714a58479e4dc3ba92d69d2d1081c406e4b57 | 22b9e84619bb8c304d59d4fb21ad4d789ab6ff01 | refs/heads/master | 2020-03-10T09:03:04.918648 | 2018-04-12T19:43:14 | 2018-04-12T19:43:14 | 129,301,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | """
WSGI config for GoogleHeadingScraper project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_A... | [
"Qasim Chaudhry@DESKTOP-R3MST43"
] | Qasim Chaudhry@DESKTOP-R3MST43 |
0790434648a5e2b6c1e43748736139b6675b341e | 652acee0b0d7bf5d4812cbebb57d3e8068cf5e18 | /auxmethods.py | a81f20ab4f821245f3ff4db031c0f58bd197b3cf | [] | no_license | kramadugu/CARWEBAPP | 90109910a8944f4610f15f38f3a6f088fdef2b67 | 0215e978777df359f862ba3d2148df00661214ba | refs/heads/main | 2023-01-24T11:46:19.460325 | 2020-12-04T06:53:29 | 2020-12-04T06:53:29 | 317,935,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,442 | py | import pandas as pd
dummy_html_template = '''
<html>
<head>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<title> CAR WEB Application </title>
<h1> Web Application for CAR Analytics Capability Demo</h1>
<div id="logo">
<img src="{{ url_for('static', filename='ghd-logo... | [
"noreply@github.com"
] | noreply@github.com |
c3c0eacb424d3721c9f9a104d11b39018e3af8ee | 8df95fdf3f7ba9b03be4cb6c6e331f6befe1d6e0 | /tests/test_dask_image/test_ndmorph/test_cupy_ndmorph.py | 872e1b631e54eac3ae23ff16bbe0809e3375c95b | [
"BSD-3-Clause"
] | permissive | jacobtomlinson/dask-image | c13646b8a56edf6f59a80cc9eeec598b595f95a2 | 9e1bc735cf8c17c4c68d7d2795fe2961348461f3 | refs/heads/main | 2023-08-31T08:13:40.994050 | 2021-10-05T14:54:52 | 2021-10-05T14:54:52 | 413,860,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import dask.array as da
import numpy as np
import pytest
import dask_image.ndmorph
cupy = pytest.importorskip("cupy", minversion="7.7.0")
@pytest.fixture
def array():
s = (10, 10)
a = da.from_array(cupy.arange(int(np.prod(s)),
dtype=cupy.f... | [
"noreply@github.com"
] | noreply@github.com |
8b9982db722fb56533e3edea8b2f4956449a436d | caad7132a47cd32629f1d83a128c4bf8a227b145 | /Apps/classproject/onlineapp/migrations/0003_mocktest1.py | 85db79ae5fae4c64ca813544230d9b1efdae4fdb | [] | no_license | chaitukrb/summer_2019_klu_chaitanya_b | d12ef40ed9489e2cfb9284db904a23311594182a | 32df6a9225cd08cbe987abc43d70d86fb6aa5d1a | refs/heads/master | 2023-05-26T06:40:51.797453 | 2019-10-14T06:30:03 | 2019-10-14T06:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # Generated by Django 2.2.1 on 2019-06-06 15:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('onlineapp', '0002_student'),
]
operations = [
migrations.CreateModel(
name='MockTest1',
... | [
"1998chaitu@gmail.com"
] | 1998chaitu@gmail.com |
58b80c98bc5f528f9e9de78f846693e7339654ff | bdb180a32b4848d801e9e63a9984c155ead49a94 | /pgoapi/protos/pogoprotos/networking/responses/release_pokemon_response_pb2.py | 3510da546d525c9bc14f0aa1e34834ddd8cf2fe6 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | DarkSwatcat/pgoapi | 831e97c82aee712a2fa2bb11cd153300151c8ef5 | 19be65b0bfeeba3e5ada2f8b809cdb475dd068ad | refs/heads/master | 2020-12-03T03:36:26.686592 | 2016-08-16T15:44:55 | 2016-08-16T15:44:55 | 65,774,480 | 0 | 0 | null | 2016-08-16T00:37:02 | 2016-08-16T00:37:02 | null | UTF-8 | Python | false | true | 4,146 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/networking/responses/release_pokemon_response.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message... | [
"catwashere@yahoo.com"
] | catwashere@yahoo.com |
222c2557720e7879b4ab27d46a98bb57e3e91b93 | 40c523920023f97ac64492f70ccf32d0e9294e78 | /list/pythonlist.py | 759515e100f68ce02c2a694b1c7db2d72b1534a5 | [] | no_license | NishatSultana3538/pythonMay2020 | da2a23acf646c70b2689b3ff50986a35a3aaacc5 | bf7f6fcaabf1e3bec475501876c3ca37dcfdf7e5 | refs/heads/master | 2022-11-08T10:43:30.920757 | 2020-06-21T05:08:48 | 2020-06-21T05:08:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | grocery = ["harpic", "tide", 'deodorant', "oranges","banana","eggs", "56" ] #this is a list
print(grocery)
print(grocery[0])
print(grocery[3])
#print(grocery[20])
#print(grocery[1,])
numbers = [1,2,3,4,5,5,7,9] #this is a list
print(numbers[2])
print(numbers[5])
print(numbers[5])
numbers = [1,8,3,4,5,3,2,9]#this is ... | [
"nishatsultana@nishats-mbp.home"
] | nishatsultana@nishats-mbp.home |
090a8a34b75f1dac753ddb67f1867cb76d3e58cf | 07f7c800e957e0a2b327b1bd2c7390218d87c2e5 | /code/running_example/test.py | ef81e39c7a2bb46bfe2bb832b481d03c87eeb03e | [] | no_license | come-come/NPM201507 | b7759166973cb66d2045b734738abba813e74385 | 375dbeb0b05ead5be73e64114527fb1f10778f87 | refs/heads/master | 2021-09-12T11:10:16.211547 | 2018-04-16T06:44:18 | 2018-04-16T06:44:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2018/3/24 19:49
@Author : Junya Lu
@Site :
"""
import networkx as nx
import matplotlib.pyplot as plt
G1 = nx.DiGraph()
G1.add_edge(1,2)
pos = nx.spring_layout(G1)
nx.draw_networkx(G1, pos, with_labels=True, node_size=10)
plt.show() | [
"lujunya94@163.com"
] | lujunya94@163.com |
432424a0d86af03d13eba921128e9638b4f45aa5 | f20170c477579b43a3ae502c537a9674f30827f2 | /zoo/animalerie/views.py | 4cf35825718d268b59812159a763318bc9dcfeff | [] | no_license | perciane/autonimieinfo2 | 26f9f65e586c6a6d2c03bea6f2419971fbb4471f | 915364f280e6968848bc53309e0038f7423ea77a | refs/heads/master | 2020-04-18T22:25:47.100565 | 2019-01-27T09:53:46 | 2019-01-27T09:53:46 | 167,793,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render
from django.template import loader
from .models import Animaux, Equipement
def index(request):
animaux_list = Animaux.objects.all()
template = loader.get_template('animalerie/index.html')
context = {
'anima... | [
"47076871+perciane@users.noreply.github.com"
] | 47076871+perciane@users.noreply.github.com |
5e678bdd3f010d3a7ae628f6e7f666273837265f | 8a4c26e66c58b076a03147df0fc5b25749726b6e | /ctf/scripts/Crypto_zlib.py | 863f8b3257d24799de59d9d8ee02330c1de26e80 | [] | no_license | wgf4242/wgf4242.github.io | 39dc80f30486b67b4343ff122ea22cd3e50b0837 | 187d0d37bf82c4b02c24a86ea74a95428db9ad29 | refs/heads/master | 2022-11-06T13:59:25.455353 | 2020-06-25T00:23:02 | 2020-06-25T00:23:02 | 255,836,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from zlib import decompress
data = open('c1.png', 'rb').read()[0xF4289:]
decompress(data) | [
"wgf4242@gmail.com"
] | wgf4242@gmail.com |
49f48183f32cdc5dd9dced4f10d3f4293c907b65 | 758b475451f96bb63b0fd4922beb7b6e1ed40137 | /CalDAVTester/branches/users/sagen/calendarquery-3483/memusage.py | 38ffcf772b3f25e9b875a790a22cd6f16fe664bf | [
"Apache-2.0"
] | permissive | svn2github/calendarserver-raw | da9f0bfa94d8080a9803eab5e4630be21645b329 | 37edd10248e8c13dc13f65ff52c72df1783e3499 | refs/heads/master | 2023-01-11T00:51:40.137861 | 2015-01-07T00:07:46 | 2015-01-07T00:07:46 | 14,276,537 | 1 | 0 | null | 2022-12-21T13:08:16 | 2013-11-10T13:09:44 | Python | UTF-8 | Python | false | false | 5,786 | py | #!/usr/bin/env python
#
##
# Copyright (c) 2007 Apple 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 requi... | [
"sagen@apple.com@e27351fd-9f3e-4f54-a53b-843176b1656c"
] | sagen@apple.com@e27351fd-9f3e-4f54-a53b-843176b1656c |
94441011a2b628e6ade319ba6fe05aa2e33398eb | e70e8f9f5c1b20fe36feab42ad4c2c34fc094069 | /Python/Programming Basics/Simple Calculations/02. Inches to Centimeters.py | 955473f8a25126df1ba1825d71bb4153c24c4017 | [
"MIT"
] | permissive | teodoramilcheva/softuni-software-engineering | 9247ca2032915d8614017a3762d3752b3e300f37 | 98dc9faa66f42570f6538fd7ef186d2bd1d39bff | refs/heads/main | 2023-03-29T15:55:54.451641 | 2021-04-09T18:46:32 | 2021-04-09T18:46:32 | 333,551,625 | 0 | 0 | null | 2021-04-09T18:46:32 | 2021-01-27T20:30:18 | Python | UTF-8 | Python | false | false | 80 | py | inches = float(input('Inches = '))
print('Centimeters = ' + str(inches * 2.54))
| [
"noreply@github.com"
] | noreply@github.com |
cf31e9ef970457e8274e161426aa38a9500508f4 | 49b913358fc0f2c5895e3a7a4714e83beaab103c | /Yank/multistate/utils.py | ae82f042c8df5023cc51eb9a9c42c60735ee6b8b | [
"MIT"
] | permissive | kmboehm/yank | e87f9998b47ded371aa9331fee749ec4d3cd895d | fea7b06b865c1975f489d4286c98f1890d30473e | refs/heads/master | 2020-03-28T13:07:00.347275 | 2018-09-10T16:17:34 | 2018-09-10T16:17:34 | 148,367,941 | 0 | 0 | MIT | 2018-09-11T19:18:55 | 2018-09-11T19:18:55 | null | UTF-8 | Python | false | false | 11,205 | py | #!/usr/local/bin/env python
# ==============================================================================
# MODULE DOCSTRING
# ==============================================================================
"""
Multistate Utilities
====================
Sampling Utilities for the YANK Multistate Package. A collecti... | [
"levi.naden@choderalab.org"
] | levi.naden@choderalab.org |
57d18e9eacd44616ff4bd34af1c19a719e54f0ab | b0cd3738bbf42a88d7e622ff010ac57fcdda548c | /src/data.py | 8a21dd40ead9949688fe48ca8aac933a57c361e8 | [
"MIT"
] | permissive | lmbaeza/piecewise-polynomials | 26517ea53d0f76ed145d9b1a068088063f4d174b | d0918a531cd54c6f965e37eb1972216bb817929c | refs/heads/main | 2023-06-13T07:04:43.758580 | 2021-07-06T21:19:40 | 2021-07-06T21:19:40 | 380,038,167 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,234 | py | # Datos del Ejemplo
EXAMPLE_DATA = """0.0 1.882026172983832
0.043478260869565216 1.1991335734841833
0.08695652173913043 1.4855906554212017
0.13043478260869565 2.1119520369261844
0.17391304347826086 1.9186942002037166
0.21739130434782608 0.48782448278344404
0.2608695652173913 1.4412102732546792
0.30434782608695654 0.878... | [
"lmbaeza@unal.edu.co"
] | lmbaeza@unal.edu.co |
64e77b5c994c74309295efaca11d2175fdfc4438 | 26f0f3ff27d010e6500b949667310e75ac299dd0 | /Program/MainUI.py | 9812cef87e97cf1ce96b8aabec27e929794c5b88 | [] | no_license | thachln/TranTruongMMCII.github.io | 5841c455ebc343d16664e1554f17a0ff5d565832 | e56f36f4976f2da15740988f4f4d4b517a373799 | refs/heads/main | 2022-12-25T06:08:16.615145 | 2020-10-07T12:38:28 | 2020-10-07T12:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,863 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainUI.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# Coded by TranTruong
#
# WARNING! All changes made in this file will be lost!
import sys
import os
from PyQt5.QtGui import QPixmap
from PyQt5 import QtCore, QtGui,... | [
"noreply@github.com"
] | noreply@github.com |
db0afec86c62701b4b6b347de2fe3cb745f7d55f | ef32b87973a8dc08ba46bf03c5601548675de649 | /pytglib/api/functions/get_chat_sponsored_message.py | 71868b22788dde705d4134cc9c51f27345d2e10d | [
"MIT"
] | permissive | iTeam-co/pytglib | 1a7580f0e0c9e317fbb0de1d3259c8c4cb90e721 | d3b52d7c74ee5d82f4c3e15e4aa8c9caa007b4b5 | refs/heads/master | 2022-07-26T09:17:08.622398 | 2022-07-14T11:24:22 | 2022-07-14T11:24:22 | 178,060,880 | 10 | 9 | null | null | null | null | UTF-8 | Python | false | false | 776 | py |
from ..utils import Object
class GetChatSponsoredMessage(Object):
"""
Returns sponsored message to be shown in a chat; for channel chats only. Returns a 404 error if there is no sponsored message in the chat
Attributes:
ID (:obj:`str`): ``GetChatSponsoredMessage``
Args:
chat_id (:... | [
"arshshia@gmail.com"
] | arshshia@gmail.com |
746d311e42fc79ed1278602202f8e94d91500fe3 | dfc45b19501a40267313a20b60abdb390199d04a | /epub2gif.py | 37897cf3bbbe59097948208bac5b8a14e7dbb5a1 | [] | no_license | silviolorusso/epub2gif | b1bebe58623a745194e1d34c577c4dbf8da1a7be | 341f95c0d011b5c25c8e8435c9aafb83b8e89bb6 | refs/heads/master | 2016-09-15T14:02:47.306144 | 2014-12-02T18:30:54 | 2014-12-02T18:30:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | ## epub2gif
import sys, os, glob, shutil
import ebooklib
from ebooklib import epub
from PIL import Image, ImageFont, ImageDraw
from images2gif import writeGif
# args
if len(sys.argv) == 2:
bookname = os.path.splitext(sys.argv[1])[0]
book = epub.read_epub(sys.argv[1])
else:
print '\nNo EPUB file provided.... | [
"silviolorusso@gmail.com"
] | silviolorusso@gmail.com |
696dc4a10e6d65f954751c0978303144843ff68f | 4c1aaea9eb1d62aa06e7b1cecebfe5ddadee4265 | /add_linked_lists.py | 65303a6713f943f15c23af5de989790407d791b6 | [] | no_license | ashishmh/leetcode-python | 37fa4e4ce601efa1b661c9e34d8e0ffa559932e5 | bf7dc7b8b6cc0bb218a43e60e469fcd9f83891a7 | refs/heads/master | 2020-04-15T08:44:47.531664 | 2019-01-08T01:23:46 | 2019-01-08T01:23:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import sys
# https://leetcode.com/problems/add-two-numbers/
class ListNode():
def __init__(self, val):
self.val = val
self.next = None
def addTwoNumbers(l1, l2):
if l1 is None:
return l2
if l2 is None:
return l1
resultPtr = None
result = None
carry = 0
while (l1 is not... | [
"maheshwari.ashish1992@gmail.com"
] | maheshwari.ashish1992@gmail.com |
b2fc58c3d5d6d34fa9c404efb3d34ae652c88deb | 1d3e1225f0881e71575bc14bfb2e544e4e057710 | /adv/apps.py | 2a7f65b8c27879628a559b0c3f2d0aca3110379e | [] | no_license | abhishekloni01/adsite | b458f0fe2a54ec2fa68222384429b9d36d056407 | b7d8829d539c6af207701af4f29f6048998db0e0 | refs/heads/master | 2023-05-04T01:46:10.259395 | 2021-05-26T08:31:30 | 2021-05-26T08:31:30 | 369,867,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.apps import AppConfig
class AdvConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'adv'
| [
"abhishekloni01@gmail.com"
] | abhishekloni01@gmail.com |
820ea0f5a556da7b21450c7424c3a5f391eb438f | 92f6ba119b3bd4cbbe52d8d3303b5ff52dd5b041 | /8月/0806/python/tcpserver.py | 7796c73d135c67c3f18ab02161a99427840a7999 | [] | no_license | WangZhaorui-pang/summer | d30ca55162216247183c19c71e7b2b55cd171190 | 85268eb91d70f6afff88166d50acc5b34585b98b | refs/heads/master | 2020-06-25T23:27:45.519466 | 2019-08-09T06:57:15 | 2019-08-09T06:57:15 | 199,453,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | import socket
count = 0
#新建一个 tcp socket
tcp_sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
#绑定端口
address = ("0.0.0.0",7000)
tcp_sock.bind(address)
print(f"bind{address}...")
#监听
tcp_sock.listen(10)
while True:
#等待链接
conn,addr = tcp_sock.accept()
print(f"{addr}connected")
#接收来自客户端发过来的数据
... | [
"3239938564@qq.com"
] | 3239938564@qq.com |
2e49cacbc2c9545d61168d05bea557ef8e7393ee | 74794f078bf4466b960e2e11d8bd8733cebf1395 | /blog/models.py | b8999065e59f045a9761fe5e5537e1ea3a39fed9 | [] | no_license | codenamepaopitz/blog_project | 6ab42376b6fa7921899326324d4eb908664170af | 9566a34acdaf1d3c79a36513a3bbe2eeb6c339f9 | refs/heads/master | 2020-03-27T21:33:19.846062 | 2018-09-03T07:00:32 | 2018-09-03T07:00:32 | 147,155,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from django.db import models
from django.urls import reverse
# Create your models here.
class Post(models.Model):
title = models.CharField(max_length=200)
author = models.ForeignKey(
'auth.User',
on_delete=models.CASCADE,
)
body = models.TextField()
def __str__(self):
retur... | [
"ryanbaimedia@gmail.com"
] | ryanbaimedia@gmail.com |
383012c2774273a6515951c21045c06dc4e93ee4 | e460034f7c3fece0cb445c2f74f66f6b6adb05ba | /app/apps/routes.py | 1a5fc5f7f4e418a0a6e03f92c40913099551b9e0 | [] | no_license | svieira/Budget-Manager | b22236a47008700890338b6723963ae2daa72d2f | 0f6f940b6a692d391f5cb54e7ca84713c82593f0 | refs/heads/master | 2021-01-01T19:56:40.481876 | 2012-07-22T11:37:12 | 2012-07-22T11:37:12 | 3,008,017 | 30 | 6 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from flask import Blueprint
from hip_pocket import Mapper
routes = Blueprint("app", __name__)
mapper = Mapper(routes, base_import_name="apps")
mapper.add_url_rule("/", "index.index")
mapper.add_url_rule("/<table_name>", "index.view_table")
| [
"thelastfool@gmail.com"
] | thelastfool@gmail.com |
d42ad27755dcd2630933bae15db8eef81a82d012 | 7e18979a18c8a23ae93d1ed14c4bac30e101ae0e | /play.py | d0ee0b98223f86c51a43f1cfa1b2522eb0ff7ad2 | [
"MIT"
] | permissive | Freddy-Jensen/record-and-play-pynput | d36e0e2b90873151b718d09a5c2beae62cb36314 | 0601cc0ccfc5017a264a75cab18e5c0d9ce9bafa | refs/heads/main | 2023-08-12T00:51:03.203801 | 2021-09-17T02:02:51 | 2021-09-17T02:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,841 | py | from pynput.mouse import Button, Controller as MouseController
from pynput.keyboard import Key, Controller as KeyboardController
import time
import json
import sys
n = len(sys.argv)
if n < 3:
exit("Takes two arguments - name of recording to play and number of times to play it")
if n > 3:
exit("Only takes two... | [
"georgepjensen@gmail.com"
] | georgepjensen@gmail.com |
bea362a5f1db93824dfc840d76918c4abf5671f3 | 3df31a1a9b6a36504395a0ada821010229f3d281 | /app.py | ac4dfbcd9556c28b6d6ec90d4f9b392a15650120 | [] | no_license | mickyginger/cocktails | b54d1f38b144b05afb93d4c57bedfcd3724b0a05 | 4ea09b13018e507c6b7b295312f5f71242fc9b7f | refs/heads/master | 2022-12-10T16:30:27.909882 | 2018-10-16T18:59:51 | 2018-10-16T18:59:51 | 149,778,074 | 5 | 0 | null | 2022-12-10T02:10:13 | 2018-09-21T14:54:59 | Python | UTF-8 | Python | false | false | 490 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
from flask_migrate import Migrate
from flask_bcrypt import Bcrypt
from config.environment import db_uri
app = Flask(__name__, static_folder='public')
db = SQLAlchemy()
app.config['SQLALCHEMY_DATABASE_URI'] = db_u... | [
"mickyginger@gmail.com"
] | mickyginger@gmail.com |
039a3452010ce342a27554c18b0625ee81a2779a | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20171001/express_route_circuit_authorization.py | bedae3d9a79d6a3dc6430718bb78d7840978bec3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,604 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
63bae0546009c90331b6e41866ad10aa18974b22 | 4c26faf3bd68229767b9848318237c076fd8ccda | /providence_data_pull/json_to_csv.py | a22acd287d6efff7cc0b003ac987d2112ed4a6e6 | [] | no_license | nitin-bs/providence_datapull | b75d9ece96bb4721dcf088002c41c4fa0be1fab7 | 461d5b7e2cdc4a56cb16d76a77ea2fa8dde8d6ff | refs/heads/master | 2023-05-10T17:09:11.849713 | 2023-05-04T05:48:56 | 2023-05-04T05:48:56 | 273,283,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import json
data=json.load(open('hosts.json',))
outfile=open('hosts.csv','w')
outfile.write('installationId,public_ip,auth_token\n')
for i in data:
dict_val=json.loads(i["params"])
auth_token=dict_val["auth_token"]
public_ip=dict_val["output"]["public_ip"]
outfile.write(i['installationId']+','+public_ip... | [
"noreply@github.com"
] | noreply@github.com |
14ae17b3708ad08118d733219149d9ae822339c6 | 71dbd869e45fb4821f9243e742de7939f539936f | /fbi.py | 0fc1c83a5019cc95d6a10cd0494144032a965e99 | [] | no_license | geoG-4027/fbi-1 | 63467e28d2f4d07562bd51e20cb05a3e2c818e42 | 52fbead9012f03549b077e27e5022942447449b5 | refs/heads/master | 2020-07-25T05:28:50.148772 | 2011-07-21T00:54:04 | 2011-07-21T00:54:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | #!/usr/bin/env python
###
# Simple Fogbugz Interpreter
###
import atexit
import cmd
import ConfigParser
import getpass
import os
import readline
import sys
from FogBugzPy.fogbugz import FogBugz
class FogbugzInterpreter(cmd.Cmd):
'''
Commands:
list
filter
edit/update
add/new
[#xxx]
relo... | [
"lhl@randomfoo.net"
] | lhl@randomfoo.net |
fc77eaf0993fe68fe4b3692b3b0971b77c561865 | 8bb6fad924eae0aa03e36e70816ab9659131c190 | /test/account_test.py | 47ce554ce9c49f948983a15223a1f0369c55b25b | [
"MIT"
] | permissive | birkin/illiad3_client | 98c6f2200a24b140dc1a489692a16d552554d402 | d9dc3a1dbdc9b4c3181111eedc02867ab0d59088 | refs/heads/master | 2020-12-03T04:01:20.922533 | 2018-07-13T13:06:20 | 2018-07-13T13:06:20 | 95,804,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,263 | py | import os, sys, pprint, unittest
## add project parent-directory to sys.path
parent_working_dir = os.path.abspath( os.path.join(os.getcwd(), os.pardir) )
sys.path.append( parent_working_dir )
from illiad3_client.illiad3.account import IlliadSession
class AccountTest(unittest.TestCase):
def setUp(sel... | [
"birkin.diana@gmail.com"
] | birkin.diana@gmail.com |
74d47602c4f550e876b5fd2ef924ff434c766145 | 95c54df2341b68e5acc2c55f8de7f974e0db0eb9 | /laba-1/pyrob/tasks/task_5_7.py | d5892473a8943f8b88ba03080ac4191ee849a8b0 | [
"MIT"
] | permissive | galqiwi/python-mipt | e74bb169b27db1b166a2dee8b6adc0b6cb56a3d1 | b0e4e3a3f45bbe317066c27666878383c80a63fa | refs/heads/master | 2020-07-17T15:40:26.469019 | 2019-12-09T20:49:37 | 2019-12-09T20:49:37 | 206,046,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #!/usr/bin/python3
import pyrob.core as rob
import random
class Task:
CHECKS = 10
def load_level(self, n):
rob.set_field_size(10, 20)
l = random.randint(5, 12)
i = random.randint(2, 6)
j = random.randint(0, 5)
rob.goto(i, j)
for m in range(l):
k ... | [
"galqiwi@gmail.com"
] | galqiwi@gmail.com |
1d325c76ef895bd9b95455d93d77fbad69d9837e | 226f4a13b074a30d10bd40e386eb042133b3fc99 | /sklearn_based_classifier/mood_lyrics_rbm.py | ddbc024d7d998ba18edfa085bb57016c2aff12fc | [] | no_license | AnushaRamakrishnan/CSCI544_Lyrics-Sentimental-Analysis-and-Mood-Classification | 0472c862f82703e2def0ccd05fd8b6c847e0b9d8 | 4ed06b8961f8940500ff8a54b40843104044de6e | refs/heads/master | 2021-04-22T13:26:33.903737 | 2016-12-03T19:27:16 | 2016-12-03T19:27:16 | 75,482,937 | 0 | 0 | null | 2016-12-03T15:45:34 | 2016-12-03T15:45:34 | null | UTF-8 | Python | false | false | 11,805 | py | import os
import time
import string
import pickle
from operator import itemgetter
from nltk.corpus import stopwords as sw
from nltk.corpus import wordnet as wn
from nltk import wordpunct_tokenize
from nltk import WordNetLemmatizer
from nltk import sent_tokenize
from nltk import pos_tag
from sklearn.pipeline import P... | [
"noreply@github.com"
] | noreply@github.com |
0bae00f015eb779296a12c9eb94ab0e7623798ed | 9e943c5dbc94943b89cca06503d00a09fd74101e | /UnrealFutbol/Registro/migrations/0008_auto_20201024_2126.py | 730c94ba1388a3936b7c30f3f674cac44a0f9029 | [] | no_license | Nicolopezc/Fase3LopezCariqueo002D | 16a26987cb088246e0ee936c5c3b99ee855ba3f4 | dc5f6e4edaead7a73b50df405505a7c8d5b5992f | refs/heads/main | 2023-01-19T11:55:08.525391 | 2020-11-29T21:34:10 | 2020-11-29T21:34:10 | 314,916,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # Generated by Django 3.1.2 on 2020-10-25 00:26
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('Registro', '0007_auto_20201024_2125'),
]
operations = [
migrations.AlterField(
model_name='usuario',
nam... | [
"Nico.lopezc@alumnos.duoc.cl"
] | Nico.lopezc@alumnos.duoc.cl |
8d1646c8af9faff846069ec84a3712a1cce6f82e | 5ebb373db7882669299c24812438751d68294a10 | /53.py | 131fbc0d01b03bf1dbd301ed3488a0e804d263f8 | [] | no_license | cankot97/5.3D--Morse-Code | 271aee33275db233a43bd5b2189c0aa8b39a4f59 | 967f80af3c6aa51b99c5599197ee8b239f8bf55f | refs/heads/master | 2022-07-14T02:50:21.537387 | 2020-05-17T05:16:34 | 2020-05-17T05:16:34 | 264,588,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,603 | py | import sys
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QWidget, QLabel, QLineEdit
from PyQt5.QtWidgets import QPushButton
from PyQt5.QtCore import QSize
import RPi.GPIO as GPIO
import time
GPIO.setmode (GPIO.BOARD)
GPIO.setup(10,GPIO.OUT)
CODE = {' ': ' ',
"'": '.----.',
... | [
"noreply@github.com"
] | noreply@github.com |
51c26ac222c2e68425eef899e8e368eebc05e8c6 | 3075034a528a4d11f26b919b8c742507fde112a7 | /test/config.py | 355ff661f2305e70f80b86da91665ff3d278a64f | [] | no_license | ealipio/python-selenium | 84e27e48890296b8e15b36d0d1fb5c890d5429a7 | 968550ae3cf9ba8946232a336f3b366d7f29b690 | refs/heads/master | 2020-03-21T23:25:41.365225 | 2018-06-30T06:01:39 | 2018-06-30T06:01:39 | 139,186,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | EDGE_PATH = 'C:\eisson\python\myenv\drivers\MicrosoftWebDriver.exe'
CHROME_PATH = 'C:\eisson\python\myenv\drivers\chromedriver.exe'
URL = 'https://www.google.com/'
| [
"eisson.alipio@gmail.com"
] | eisson.alipio@gmail.com |
6b220a8f373903a80a1b9af64de410a62a4f3ff1 | 866fe93eac60cfb6c7d4c7d199b1fc80fd63c82b | /Stochastic Shortest Path/value_iteration.py | 7fb77d850ac8f7d07b08674e2b8e607606d8606d | [
"MIT"
] | permissive | UDONWei/path-planning-algorithms | 7b6b949bbb2e6bf812e52c9370a00a5c5c00cac5 | ae02c14de530f3f35850c9ec6b3eb71570d5d170 | refs/heads/master | 2022-10-24T05:08:20.547317 | 2020-06-20T06:45:54 | 2020-06-20T06:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,144 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: huiming zhou
"""
import env
import tools
import motion_model
import matplotlib.pyplot as plt
import numpy as np
import sys
class Value_iteration:
def __init__(self, x_start, x_goal):
self.u_set = motion_model.motions # feas... | [
"zhou.hm0420@gmail.com"
] | zhou.hm0420@gmail.com |
ddae75244051f0b75448f75d5905b5ecd58e332c | ab37d80a8bcd20b2e5072a0a725d042a5815fdc8 | /links/admin.py | 7ad6a60fe7713c6997f8f1ec63fbe0ab35ef57bd | [] | no_license | bacchtrack/first_stabs | 3d4c73f8a60bd8b913c415b9e0d56df3f2ab9be6 | 40213680c7b52ab9307d4c1050730cd38eaad209 | refs/heads/master | 2020-03-19T21:49:40.995382 | 2018-06-15T04:29:07 | 2018-06-15T04:29:07 | 136,951,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from .models import Link, Vote
class LinkAdmin(admin.ModelAdmin):
pass
admin.site.register(Link, LinkAdmin)
class VoteAdmin(admin.ModelAdmin):
pass
admin.site.register(Vote, VoteAdmi... | [
"AB035472@digicelgroup.com"
] | AB035472@digicelgroup.com |
54fc93245320b6edc0ac4b957b06b307d4b5b7a8 | 0b98e2cf8b376c0a62cf276940f9db510ff3c6b7 | /cegis/main/synthesizer.py | 9ec9f79ed02c045f2cf62d8c8ffd39a37de35670 | [] | no_license | annoygithub/sigmod2021 | c0f5563d8a42515d7418088172d7aa9e6a267b9e | a5032846f5e8910d882a65fdb1f113eaa43ac92b | refs/heads/master | 2022-12-26T14:11:46.695227 | 2020-10-05T01:53:23 | 2020-10-05T14:09:45 | 297,501,802 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,238 | py | import base64
import time
import hashlib
from jinja2 import Template
from tyrell.spec import parse
from tyrell.enumerator import SmtEnumerator
from tyrell.interpreter import PostOrderInterpreter
from tyrell.decider import Example, ExampleConstraintDecider
from tyrell.synthesizer import Synthesizer
from tyrell.dsl impo... | [
"71679201+annoygithub@users.noreply.github.com"
] | 71679201+annoygithub@users.noreply.github.com |
5269f7c7e96e43075cf4d757735dc56a5fdefe24 | 7e88c6cd5863b5c37cfe23f6583420be7696112d | /step_1.py | b0292ccfdd3bf95f67139eace29ab7d0775f665c | [] | no_license | RoshchynaA/HoweWorks | b72ef3599d7a542fc1ae2ced5933a843c1ff30db | 7fedf0fcc2b139eb7ccaaeeb87dd893038bfcdf6 | refs/heads/master | 2023-07-08T10:17:12.472228 | 2021-08-16T10:35:04 | 2021-08-16T10:35:04 | 396,705,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | a = 9
print((a // 3) ** 3)
b = a % 9
print(b)
c = a + a*b
print(c + 1)
print(a != b)
print(c > a)
mood = input("Hi! Are you happy today?")
int(input("How many time did you smile this morning?"))
print("You can do more! :)")
| [
"roshchinaaaa@gmail.com"
] | roshchinaaaa@gmail.com |
170d5bd23458b1d9796869d2f3583d080d46bf05 | e64cf8f44eb403d19400e2c1f6d257fcf6964a2b | /zeal/extension.py | 6cee86dbdf9843d3c516fa501349e6865b7b971d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pbkhrv/ulauncher-zeal | d3874daafe7dee8fded1ec6c1be91ded4e5289a7 | b9cf5f6ebfe84bbf35862672dcfd9b8de07cc657 | refs/heads/master | 2022-03-26T11:33:25.952922 | 2020-01-01T02:47:53 | 2020-01-01T02:47:53 | 213,110,166 | 3 | 1 | null | 2019-10-06T13:29:43 | 2019-10-06T04:47:52 | Python | UTF-8 | Python | false | false | 5,375 | py | """
Extension to query Zeal docsets
"""
from datetime import datetime, timedelta
from operator import itemgetter
from typing import Dict, List, Set
from ulauncher.api.client.Extension import Extension
from ulauncher.api.client.EventListener import EventListener
from ulauncher.api.shared.event import (
KeywordQueryE... | [
"pbkhrv@pm.me"
] | pbkhrv@pm.me |
f6ebb3862bcfeae9cb815cf8f6f75caf7ece1cbf | c4a57dced2f1ed5fd5bac6de620e993a6250ca97 | /huaxin/huaxin_ui/ui_android_xjb_2_0/register_page.py | f36c00fdfd14245afe93d9b85d7c54953dbe4ae2 | [] | no_license | wanglili1703/firewill | f1b287b90afddfe4f31ec063ff0bd5802068be4f | 1996f4c01b22b9aec3ae1e243d683af626eb76b8 | refs/heads/master | 2020-05-24T07:51:12.612678 | 2019-05-17T07:38:08 | 2019-05-17T07:38:08 | 187,169,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | # coding: utf-8
from _common.page_object import PageObject
from _common.xjb_decorator import gesture_close_afterwards, user_info_close_afterwards, robot_log
from _tools.mysql_xjb_tools import MysqlXjbTools
from huaxin_ui.ui_android_xjb_2_0.binding_card_page import BindingCardPage
import huaxin_ui.ui_android_xjb_2_0.ho... | [
"wanglili@shhxzq.com"
] | wanglili@shhxzq.com |
843a8c86d8419846434527396687d9df0d5ab046 | 549528b63dcbba44e27688ee20c746b46e4fb0d9 | /Excercises/Ch5/Ch5ex01.py | 16dd3ec1e156088e3596fbd73bb920e8f8a31b89 | [] | no_license | btatkerson/CIS110 | f960ad74e315d57080012eb73baf1bc08c848be1 | 3dc4ead1bcd43bc9a70c997e685b4ac39fa64cc3 | refs/heads/master | 2020-06-19T07:09:49.002373 | 2019-07-18T01:08:45 | 2019-07-18T01:08:45 | 196,610,474 | 0 | 0 | null | 2019-07-18T01:08:46 | 2019-07-12T16:21:49 | Python | UTF-8 | Python | false | false | 447 | py | def main():
day=int(input("Enter the day number: "))
month=int(input("Enter the month number: "))
year=int(input("Enter the year: "))
months=["January","February","March","April"
,"May","June","July","August","September"
,"October","November","December"]
monthStr=months[month-1]
date1="{0}/{1}/{2}".format(mon... | [
"daniel@dadomdesign.com"
] | daniel@dadomdesign.com |
9f51a684b8c7951a2e4fc7e6f2705499041116ae | 8f7a30fd1c4d70535ba253d6e442576944fdfd7c | /Topics/Magic methods/10 puppies/main.py | e444a74a24c6ddca7f787232073b25a34c423935 | [] | no_license | TogrulAga/Coffee-Machine | 9596c3d8ef1b7347d189249f20602b584d8842e3 | f065de747bd1b626e4e5a06fac68202e41b6c11e | refs/heads/master | 2023-04-11T20:54:21.710264 | 2021-05-09T23:01:48 | 2021-05-09T23:01:48 | 365,864,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | class Puppy:
n_puppies = 0 # number of created puppies
# define __new__
def __new__(cls):
if cls.n_puppies >= 10:
return None
cls.n_puppies += 1
return object.__new__(cls)
| [
"toghrul.aghakishiyev@ericsson.com"
] | toghrul.aghakishiyev@ericsson.com |
aa8cc484f5009014d69c2fe7871ef3ec9e2fce2d | fc2f0187f58a2d8462e5742da491c052117167e7 | /django/virtualenv/bin/django-admin | a7dd38b86f702c7c27e4103d50600a8ec86927e7 | [] | no_license | megamole/raspberry_audio_streamer_prd | b11d6a2cf09693933a72f5e7be0707034c6e8efc | 483a5943f26ede2fbd6cf54138ccc49ed480cf76 | refs/heads/master | 2020-03-25T12:39:28.991639 | 2018-09-16T16:09:15 | 2018-09-16T16:09:15 | 143,786,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | #!/home/chema/.WORK/django/virtualenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"jm.alonso.garcia@gmail.com"
] | jm.alonso.garcia@gmail.com | |
b406d955332efadf7b39d8e692f501aabfc7d248 | 49f1efce6a023a0b73dd0748249ab743e1c942d1 | /euler0094.py | 3a441e1d9a08ca9e28455fdfcfd9333b2664e2f6 | [] | no_license | quoner80/project-euler | 4c1c98611c4d5cd055f447f7191a4289ce35d88c | 4211dcbb43ce25aa2b81bb4b1f2b7dc6de191e72 | refs/heads/master | 2020-06-14T23:29:38.342535 | 2017-01-16T08:47:42 | 2017-01-16T08:47:42 | 75,399,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,751 | py | # Almost equilateral triangles
# Problem 94
#
# It is easily proved that no equilateral triangle exists with integral length sides and integral area. However, the almost equilateral triangle 5-5-6 has an area of 12 square units.
#
# We shall define an almost equilateral triangle to be a triangle for which two sides are... | [
"noreply@github.com"
] | noreply@github.com |
1cf69558c08f6a7a93d0161116eba0cf3bc08fa5 | 9391f012558db9a7e5417f2ad4e99e9687325a5e | /code_final/news_pipeline/news_fetcher.py | 5e1655d8cb441c3e4d88c35a49423492f7e42c27 | [] | no_license | onlineai/News_Recommendation_System | b5e4e0565740244dd291a28274bfd3334ad86109 | b5e23e4f6d58d8f709ae3b96dbddcfee5c32ac5c | refs/heads/master | 2020-05-16T12:12:10.362296 | 2018-03-28T15:57:04 | 2018-03-28T15:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | import os
import sys
from newspaper import Article
#import common package in parent directory
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'common'))
from cloudAMQP_client import CloudAMQPClient
DEDUPE_NEWS_TASK_QUEUE_URL = "amqp://jdgwwllh:l1SZBgJjuY0ntfOh-AbizUKqjfNZ84V6@donkey.rmq.cloudamqp.com... | [
"richkate0222@gmail.com"
] | richkate0222@gmail.com |
fd33a30813c94b57e897cb3db4874d1c5fc8106f | 54c0a7fbb97a01b5ea8914346685c1a6c12614ac | /luff_studu/1.py | cc979758593385d0ce91c69a8dc7d0639f77a1b9 | [] | no_license | Loner1024/study_repository | f81a6a55a3773fdb03b7d52396d2d14502e4a926 | be315b3fefb4532688aa548a4e4a344fbe460469 | refs/heads/master | 2020-03-30T21:02:49.167634 | 2018-10-04T18:18:28 | 2018-10-04T18:18:28 | 151,614,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | import json
user_info={'user1':'password1','user2':'password2','user3':'password3'}
with open('allow_status.txt','r') as f:
allow_status=json.loads(f.read())
i=0
while i<3:
i=i+1
username=str(input('请输入用户名:'))
if username in user_info:
if allow_status[username]==0:
print('你的账户已锁定')
exit()
else:
passwor... | [
"xth12138@gmail.com"
] | xth12138@gmail.com |
580505ac4ba1e1a284893894570d873fee8578a5 | 3bc7db0cc5f66aff517b18f0a1463fffd7b37a6f | /generate.py | 5162c4a370a08417a9a630111ec0eec988adcd19 | [
"MIT"
] | permissive | patilvinay/docker-python-node | 6643f96fd89214c7fe54c0010890052030e60016 | fbab922c579ea0b6b12ce2183fe8d0e48cdd666a | refs/heads/master | 2021-10-08T04:05:59.094149 | 2018-12-07T15:09:01 | 2018-12-07T15:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,020 | py | #!/usr/bin/env python3
import itertools
import os
from copy import deepcopy
from glob import glob
from os.path import dirname
from os.path import join
from shutil import unpack_archive
from typing import List
from urllib.request import urlretrieve
import requests
import yaml
from dockerfile_compose import include_doc... | [
"austin@austinpray.com"
] | austin@austinpray.com |
3b7b6372c035f7aad3539d3e76117d3e42be0556 | f0901a26b7f9ee3dfc1f78bf5aa5bd42f0f56600 | /0x08-python-more_classes/101-nqueens.py | 70db839e3441a0a9aaa3f97d4c59fafece29bce5 | [] | no_license | trevor-ofarrell/holbertonschool-higher_level_programming | 73c610bea49ea933d9ceb3e7c91ed6a7e584af5c | dfcf546ef9882b70cf0b381ff06697e227188c1a | refs/heads/master | 2020-07-22T21:39:08.375396 | 2020-02-12T07:56:20 | 2020-02-12T07:56:20 | 207,335,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | #!/usr/bin/python3
from sys import argv
if len(argv) != 2:
print("Usage: nqueens N")
exit(1)
try:
N = int(argv[1])
except:
print("N must be a number")
exit(1)
if N < 4:
print("N must be at least 4")
exit(1)
def solve(N, i, a, b, c):
"""function to determine squares where a queen c... | [
"744@holbertonschool.com"
] | 744@holbertonschool.com |
dc2c585ae7d7fca0beee6bf3a1ad69b954519988 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-Quartz-2.5.1/Examples/TLayer/TLayerDemo.py | d71e50b3335c923a766abb8f7e771799cc0a1a04 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 1,877 | py | from Cocoa import *
from PyObjCTools import NibClassBuilder
from Quartz import *
import objc
import ShadowOffsetView
class TLayerDemo (NSObject):
colorWell = objc.IBOutlet()
shadowOffsetView = objc.IBOutlet()
shadowRadiusSlider = objc.IBOutlet()
tlayerView = objc.IBOutlet()
transparencyLayerButto... | [
"opensource@apple.com"
] | opensource@apple.com |
7d85e4730a9deab00de6c9f99789a79155508f02 | fa802b70b874ff99ceff8fbe1ab52056848e7bd7 | /users/migrations/0001_initial.py | 38e909172cbe08b2bc8e2b98c47a261099293c44 | [] | no_license | k151202/airbnb-clone | d2a5e049e30b92f543eeace6ceacc1277833110c | b715e86392bca7cd1c34b709702c3f932e8961a2 | refs/heads/master | 2021-06-27T06:15:00.731567 | 2021-03-14T16:21:47 | 2021-03-14T16:21:47 | 223,073,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | # Generated by Django 2.2.5 on 2021-02-16 12:40
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permission... | [
"k151202@naver.com"
] | k151202@naver.com |
18fe26585d5b3bcbf48dd6e10e9f14d8362cff74 | 62508b2d74ed7446c31b80a39a6f342528ec304d | /hw_2_3.py | 6ca00da7f0579251f7fd873d08fc539aec540d49 | [] | no_license | Unkovskyi/PyBase08 | 7c19b4221578f03833ba508920eeaa972621ebe6 | 7b338faa172a18758edc39d43a15d97797a2aeaf | refs/heads/master | 2020-04-07T13:13:07.094487 | 2018-12-19T08:34:55 | 2018-12-19T08:34:55 | 158,397,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # Task 2_3
# 1 способ
factorial = 0
natural = int(input('input natural number: '))
while natural < 0:
natural = print('You input not natural number')
natural = int(input('input natural number: '))
else:
if natural >= 0:
factorial = 1
for i in range(2, natural + 1):
facto... | [
"noreply@github.com"
] | noreply@github.com |
52b21b740694d0538af75c4f9499cfa28336eaee | cd9f9f6b2375140629877d942527b47c6e6de153 | /cgi-bin/newscommunity/check_storage.py | 93e0907ecc6c29fa4a73b442325a04fc46c87a2f | [] | no_license | jyakjive/yakjivenet | 01bbf631cfe71898744590242bb38fe0862c37b7 | 7cf32e0cc06445921dc3128d389244d03ee2cba8 | refs/heads/master | 2021-02-06T08:36:14.690418 | 2020-01-08T05:05:09 | 2020-01-08T05:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | # imports
from newscommunity.ncvars import *
from newscommunity.application import APPLICATION
from classes.application_handler import *
from util.fileutils import getMultiDirTreeSize
# definitions
def getStorageRatio():
dirs = [APPLICATION.dataDirectory, APPLICATION.newsFileLocation]
spaceUsed = ... | [
"noreply@github.com"
] | noreply@github.com |
9fe4b485fe94fc60ed291bf9967668858d284d51 | fdf6b31fa0e98138ce553bd7ac7b59949512b233 | /TemplateMakers/test/datasets.py | 3004ea6f39cfd1a5a8034f55ce3c53c4c53c78c0 | [] | no_license | cms-govner/EFTMultilepton | 3b4e0f7e468d73addb917997c384612be1a2ba5c | 3609e0dee3ddc4dc65673213416c490e3de859fa | refs/heads/master | 2020-06-30T18:42:34.442398 | 2019-11-22T01:09:17 | 2019-11-22T01:09:17 | 200,914,952 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | # first do: setenv PYTHONPATH ${PYTHONPATH}:/cvmfs/cms.cern.ch/crab/CRAB_2_11_1_patch1/external/dbs3client
# usage: python datasets.py > sampleLists.sh
import datetime
from dbs.apis.dbsClient import DbsApi
dbs = DbsApi('https://cmsweb.cern.ch/dbs/prod/global/DBSReader')
### discover datasets:
#thing = dbs.listDataset... | [
"geoff127@gmail.com"
] | geoff127@gmail.com |
bb52c2d4d921fdc5800e2a0e5feb305d190ea71e | 58abfb4618fdc1030a064053edd32243057ffde8 | /plane_sprites.py | 7ecc10f66a3590ba3723d1eaf7c8bcd829ddaa56 | [] | no_license | loserup/Aircraft-Battle | 76c1862577ea1801ec7af2cb414eb199d697cad9 | 78f04c8e2d3075ec344934ef4a7a4c008d68e4a6 | refs/heads/master | 2021-05-21T13:45:36.714772 | 2018-10-27T09:11:35 | 2018-10-27T09:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,445 | py | #coding=utf8
import random
import pygame
# 屏幕大小的 常量
SCREEN_RECT = pygame.Rect(0, 0, 480, 700)
# 刷新的帧数
FRAME_PER_SECOND = 60
# 创建敌机的定时器常量
CREATE_ENEMY_EVENT = pygame.USEREVENT
# 英雄发射子弹事件
HERO_FIRE_EVENT = pygame.USEREVENT + 1
# 创建开火敌机的定时常量
CREATE_FIRING_ENEMY_EVENT = pygame.USEREVENT + 2
# 创建开火敌机开火的定时常量
CREATE_ENE... | [
"zinkworld@live.cn"
] | zinkworld@live.cn |
513e63af05b9489a3168b1f4f389088edf36f4a2 | 0cf316b6a125442294acdf78fe725de42a3ce6b4 | /python/CosmiQNet.training.py | 6d6e36cca5b642da0885b772be944269f78223c1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | GPrathap/utilities | 2a5f9ef2df9fdaa7a2ee9208aa8bbbca879be1f2 | 0624564e53a2860e66265654c23908688067798a | refs/heads/master | 2021-01-19T17:59:00.588299 | 2017-08-26T14:08:38 | 2017-08-26T14:08:38 | 101,102,401 | 0 | 0 | null | 2017-08-22T20:01:22 | 2017-08-22T20:01:22 | null | UTF-8 | Python | false | false | 4,008 | py | # The NN
with tf.device(gpu):
# Input is has numberOfBands for the pre-processed image and numberOfBands for the original image
xy = tf.placeholder(tf.float32, shape=[None, FLAGS.ws, FLAGS.ws, 2*numberOfBands])
with tf.name_scope("split") as scope:
x = tf.slice(xy, [0,0,0,0], [-1,-1,-1,numberOfBands... | [
"ggeesara@gmail.com"
] | ggeesara@gmail.com |
b228fcc2d5299d3a34b7b72c8e649ba5bc2b0d5d | c3c6309077f4fdfee6ba299799f509e7bafcd083 | /m3t4-Definición y uso de colecciones secuenciales/python/ListsExample.py | 2c720171bb40b80af13560c64fd27a41f46622e1 | [] | no_license | halcon7057/poo-unal | 31ec9174b3348d19ba378d25838ded1d3da1f0bc | d0e24f7e42768425996d13618d949e7390cc102a | refs/heads/main | 2023-06-09T13:22:35.474990 | 2021-06-30T03:31:24 | 2021-06-30T03:31:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # Create a list
myList = [5, 3, 8]
print(myList)
# Add element
myList.append(7)
print(myList)
# Insert element
myList.insert(2, 1)
print(myList)
# Change element
myList[0] = 4
print(myList)
# Returns the index of the first element with the specified value
print("Index of value 3:", myList.index(3))
# Returns the v... | [
"noreply@github.com"
] | noreply@github.com |
5b8468dad0ffc2610646ee99a9814491cbdeb199 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/eve/client/script/ui/eveUIProcs.py | ea6ae5bc59cf6e80cb3020348a440d2d503d85e2 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,969 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\eveUIProcs.py
import uthread
import eve.common.script.sys.eveCfg as util
import locks
import random
import svc
import carbonui.const as uiconst
import localization
class EveUIProcSvc(svc.uiProcSvc):
_... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
25f8e2073ee9caf7663b21319963efbaac7fae3f | 504d9b5560a9ab7850438130463307280852c95c | /convertWord.py | 04ba2b2aedadc9b286eff78b8fc7feed6ef5524e | [] | no_license | yuroc0598/coding | c5414fe3cf0120608cdc7a7e2c6d4b962c124eaf | 7110fd8ddcfa36eba19eff68cf6468eea4bf812b | refs/heads/master | 2020-04-16T08:05:39.215884 | 2019-01-24T16:47:53 | 2019-01-24T16:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | #!/usr/bin/env python
def ezconvert(s):
if not s:
return ''
lst = s.split(' ')
lst.reverse()
print ' '.join(lst)
def convert(s):
if not s:
return ''
re = ''
curWord = ''
for i in range(len(s)):
if i == len(s)-1:
curWord += s[i]
re = cur... | [
"gabrielchen@gwu.edu"
] | gabrielchen@gwu.edu |
f64b97c14652064f8f1b5a83e2026223d7be2c59 | b5038bb8a36dae974166ece4740de5c4b7d7a733 | /vagrant/catalog/application.py | c58c6e116acdc295122908cea154ff3a82e128a0 | [] | no_license | mmvulich/fullstack-nanodegree-vm | 357da95175aad1a931979adcd13863472207af5a | 50f5bb1e8d6937ef750e8753fe6538816f378bbd | refs/heads/master | 2020-04-06T11:44:38.033432 | 2019-02-05T14:22:23 | 2019-02-05T14:22:23 | 157,428,391 | 0 | 0 | null | 2018-11-13T18:40:36 | 2018-11-13T18:40:36 | null | UTF-8 | Python | false | false | 13,342 | py | #!/usr/bin/env python3
#
# Author: Matt Vulich
#
# Creation Date: 2019-01-04
#
##############################################################################
from flask import Flask, render_template, request, redirect
from flask import url_for, jsonify, flash
from catalog_database_setup import Base, Category, CategoryI... | [
"mmvulich@gmail.com"
] | mmvulich@gmail.com |
30fbda5cc42a9929d958e05c5c4e9e90d3c384ab | 25a72d8c36e453a934e9026c0393db1b5061c3a2 | /run.py | a14ab49b719c12194ecf17a8d9dc75e7595ee4e0 | [] | no_license | aerwin3/raxfit-central | 49acbdee4b591e7067e978d4220726909fdb63b5 | 8e5b06452e2365507d62c053c77045c266ed2fcb | refs/heads/master | 2021-01-19T07:49:45.394255 | 2014-05-06T18:51:41 | 2014-05-06T18:51:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | from flask import Flask
from shared import db
from blueprints.base import blueprint as base_blueprint
from blueprints.classes import blueprint as classes_blueprint
from blueprints.athletes import blueprint as athletes_blueprint
# Setting up the application and the configuration
app = Flask(__name__)
app.config['SQLALC... | [
"aerwin3@gmail.com"
] | aerwin3@gmail.com |
87375d046c8cc441138150a0d677d4645630c6aa | 1190513d8dfeb6bb8dee3f369abbdeb5bdd3a8b4 | /app/views.py | f2b4b1e71adc859e6fed78ce419a51c6bbe96124 | [] | no_license | coolphp/Instagram | 9023b74396264324973e062695b053bb77d02f65 | 9f9c7c323df8f76bfcbc621efe6e17f043b000d8 | refs/heads/master | 2021-01-15T10:06:49.809182 | 2016-01-18T08:21:37 | 2016-01-18T08:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,394 | py | # coding:utf-8
from app import app
from flask import render_template, flash, redirect, request, url_for
from app.forms import IndexRegisterForm
from app import db, models
import uuid
from helpers.email import Email
@app.route('/')
@app.route('/index', methods=['GET', 'POST'])
def index():
form = IndexRegisterFor... | [
"khigor777@yandex.ru"
] | khigor777@yandex.ru |
56224a3fce0e199a3c7a08faa60a1ccb3e9f2d8e | 54fcce7ab2e8878f2fc7e67be0b1c9dfe0b6f7a0 | /dissect/modeling/static/function.py | 29a6428d505d273ab52161effde0fa8c9f839bef | [] | no_license | qdamian/dissect | 7cb492f6220f2b890964754b1f4072a453173ed1 | b1090219f4d8845fac99d4003603000e80b613a7 | refs/heads/master | 2020-05-24T14:03:32.051218 | 2014-02-04T01:54:39 | 2014-02-04T01:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | #region GPLv3 notice
# Copyright 2014 Damian Quiroga
#
# This file is part of dissect.
#
# dissect is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any lat... | [
"qdamian@gmail.com"
] | qdamian@gmail.com |
e8f12a592b12780213cb6df3e3697784ba067b61 | 0a8f150b73cbf28f45c0be135c0ae467c507bad3 | /IMP/ISE.py | 9c447c0fc2097ace20bc5a006996363795354537 | [] | no_license | JavuesZhang/CS303_Artificial_Intelligence | 4b3451ed6a03537b14d36c86fa17588a2939dfb9 | 31edb4b1fd8a1c1841c8c387312a7633c4e43d66 | refs/heads/main | 2023-02-04T01:41:19.321490 | 2020-12-24T03:22:30 | 2020-12-24T03:22:30 | 324,055,201 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,029 | py | # -*- coding: utf-8 -*-
# written by mark zeng 2018-11-14
# modified by Yao Zhao 2019-10-30
# re-modified by Yiming Chen 2020-11-04
import multiprocessing as mp
import time
import sys
import argparse
import os
import numpy as np
import random
core = 8
iteration = 1000
result = []
def IC_Sample(seeds, nodes):
act... | [
"48386227+JavuesZhang@users.noreply.github.com"
] | 48386227+JavuesZhang@users.noreply.github.com |
1906c60807145c0a7e0490bb441f5c6aa35b4330 | fed37117fc7e6a8119be34dd0bbbdc1f47a7503b | /Web Scraping Exercises/main.py | b99b6c46b340ec6424f7679ebf125226e35d4470 | [] | no_license | maribard/PycharmProjects | 6de1641db5808648d0200dadf2b8dd4412063b92 | 9ed489f53c0409bb761f868dd0c0696f7e58046e | refs/heads/main | 2023-08-17T06:41:23.184192 | 2021-09-20T05:40:14 | 2021-09-20T05:40:14 | 408,332,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | import requests
import bs4
import lxml
base_url = 'https://quotes.toscrape.com/page/{}/'
i = 0
list_authors = []
while True:
i += 1
res = requests.get( base_url.format(i))
soup = bs4.BeautifulSoup( res.text, 'lxml' )
pages = soup.select( ".col-md-8" )
if "No quotes found" in str( pages ):
... | [
"mariusz.bardyn@gmail.com"
] | mariusz.bardyn@gmail.com |
39134c11f984cf56d93883d73fc9b8c55c534b06 | b5db032a0fc69b6cbdb49d8f05b640fb30873834 | /dataAnalysis/prmodel.py | 23cb73fd3224207fe1b695b3e39d8bd10fb4efb9 | [
"MIT"
] | permissive | zhiyue-archive/lab5 | 226febe804cd53e704cf4ab55c0020e8dba4b117 | fe16e33725ab3ff2aa6b8cf5009b1f0e43bdc4af | refs/heads/master | 2022-05-20T22:18:45.528353 | 2017-07-16T08:55:31 | 2017-07-16T08:55:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,593 | py | from dataOperation.models import Formulation, FormulationDataGrid, TestData
from numpy import array
from sklearn.preprocessing import StandardScaler
import os
from config import MODEL_FOLDER
from keras.layers import Dense
from keras.models import Sequential, load_model
from keras.callbacks import LambdaCallback
import ... | [
"qinzishi@gmail.com"
] | qinzishi@gmail.com |
fbfb8d4e5fe8833d97f5c2cb23cc28e44b73821b | 365f4104b46dfc73115344fd3c53da8a8b89483b | /project_name/admin.py | c6972e439c38673cdd5cb188bfded9af7c188af0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rytis/generic_django_project | d1d8dfba2f085100c1e624ed580445b897478d5f | 0e86d331374941134be233e54c9927f8a01bc573 | refs/heads/master | 2020-12-25T06:46:13.687849 | 2011-04-11T14:32:33 | 2011-04-11T14:32:33 | 1,705,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # -*- coding: utf-8 -*-
import datetime
from django.contrib import admin
| [
"hraban@fiee.net"
] | hraban@fiee.net |
1fa70ff85f8a0bdee9287f32162bb2b3ed332899 | 7c9d506275f57d87b8ecc14010a7846928ca68e9 | /ex12.py | 68d87f13b7457c69e21c5f50e65944f7b45a240a | [] | no_license | dylanreed/LPTHW | 91bf06149d7bbe83f331cd1b427f5732cf973b3d | 3ee97f09106ad3cb09b97114137c4cf9626f89f1 | refs/heads/master | 2020-04-15T16:49:44.088628 | 2012-05-29T16:05:51 | 2012-05-29T16:05:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | age = raw_input("How old are you? ")
height = raw_input("How tall are you? ")
weight = raw_input("How much d0 you weigh(lbs)? ")
print "So, you're %r old, %r tall and %r lbs heavy." % (age, height, weight)
| [
"dylan@dylanreed.comgit config --global github.user awesomeguygit config --global user.email dylan@dylanreed.co"
] | dylan@dylanreed.comgit config --global github.user awesomeguygit config --global user.email dylan@dylanreed.co |
5125a8430f642d9e4914c91a4725cf001c14b50f | f37b37194ae798a3cb753e826c987299217931cf | /test_settings.py | b653715f8570f61b05dd3767028aa1d59b02eec3 | [
"MIT"
] | permissive | lovvskillz/django-globee | d7489093bd2ed45a60163211e5694d9e576665b2 | d1bb51566f2e67a18106008a33124948cba1d66a | refs/heads/master | 2022-08-12T16:08:13.329235 | 2022-07-23T10:13:41 | 2022-07-23T10:13:41 | 142,476,154 | 7 | 1 | MIT | 2018-12-26T22:41:59 | 2018-07-26T18:00:46 | Python | UTF-8 | Python | false | false | 487 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'SOMEVAL'
INSTALLED_APPS = ['globee', ]
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': o... | [
"vadim17@hotmail.de"
] | vadim17@hotmail.de |
4e37678605af3dc2ae0d0e4602bb53002693317b | 66bb3b404b94b2bfe9c49446b5acc174aed1e350 | /_portfolio/portfolio_project/accomplishment/migrations/0001_initial.py | 90cbfded0fcc13c73b45599f4b0b380fa809de21 | [] | no_license | akmax101/django_project | fe3a2133f7db2eab487f39359515a918e332c0b1 | a45a7ee22da064acf67a19a81d36fbee203baaea | refs/heads/master | 2022-07-24T07:09:26.542242 | 2020-05-09T23:19:02 | 2020-05-09T23:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # Generated by Django 2.2.12 on 2020-05-09 22:38
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='accomplishment_detail',
fields=[
('id', mo... | [
"shashwat5013@gmaiil.com"
] | shashwat5013@gmaiil.com |
57a4c9eb8e55f753b47ff6ffb950cec1d249562a | b876076e7a50ea0e03078b353b0df65c0ec4734b | /embeddedAPI/contents/views.py | d4fa74e04668027d3dba6b585e7bb15477d33589 | [] | no_license | MACabatic/EmbedAPI | 6e027708a381d6ac14f0fd63ebf58d8faddd7793 | 95ef5cd25f8951accd778524f15139c391190f58 | refs/heads/master | 2021-09-07T21:50:59.210307 | 2018-03-01T15:16:11 | 2018-03-01T15:16:11 | 122,646,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,898 | py | import json
from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from rest_framework import status,viewsets,parsers,views,permissions
from rest_framework.decorators import api_view
from rest_framework.response import Response... | [
"noreply@github.com"
] | noreply@github.com |
3ba1b1996b8e80922006a8d50e8d8bb2d610f3c9 | da221e4431ed66c4c8069560809327253e4f3ecc | /PhaseDetectionPlot.py | 822c26e01e5da892eb0efcbc4f9c94646759ebcd | [] | no_license | iramin/GGS | 7d3c98fd4bb453c76abd718e94c8027df35b9865 | c053f1ce1a95e380a3f3f858477eebaccf76f41c | refs/heads/master | 2021-05-14T17:41:49.076915 | 2019-04-24T16:30:53 | 2019-04-24T16:30:53 | 116,052,036 | 1 | 0 | null | 2018-01-02T20:00:31 | 2018-01-02T20:00:31 | null | UTF-8 | Python | false | false | 7,174 | py | import matplotlib.pyplot as plt
import matplotlib.dates as md
import matplotlib.patches as patches
import gc
from PhaseDetection import get_interval_tree_from_model
from PhaseDetection import *
def plot_all(intervals, intervals_blocked, milestoneRun, ldms_data, ldms_time_data, name='all_in_one', savePath='D:/ac/PhD/... | [
"r.izadpanah@knights.ucf.edu"
] | r.izadpanah@knights.ucf.edu |
b1ce9c9f3c6a4da4e41e158cd3872a64af2f9ff2 | 6671be3a542925342379d5f6fc691acfebbe281f | /discounts/src/app.py | 496dec244427273c6b9407c558f1a2a838d82d7d | [
"Apache-2.0"
] | permissive | dalmarcogd/mobstore | e79b479b39474873043345b70f7e972f304c1586 | 0b542b9267771a1f4522990d592028dc30ee246f | refs/heads/main | 2023-04-29T22:27:20.344929 | 2021-05-18T12:00:00 | 2021-05-18T12:00:00 | 365,539,054 | 0 | 0 | Apache-2.0 | 2021-05-17T23:22:58 | 2021-05-08T14:46:34 | Go | UTF-8 | Python | false | false | 880 | py | from concurrent import futures
import grpc
from src import settings
from src.consumer import sqs
from src.discountsgrpc import discounts_pb2_grpc
from src.handlers.disounts import Discounts
from src.handlers.products import handle_products_events
from src.handlers.users import handle_users_events
class Server:
... | [
"dalmarco.gd@gmail.com"
] | dalmarco.gd@gmail.com |
b60ec9d8a532fb17462307c1d9483a17e4c3006e | f5446c204b95319ecb9377436c336357bb182541 | /physics-mecanum/src/robot.py | 979b7532d97ad301437df9b651c9b529b7b28b55 | [] | no_license | Cal16king/FRC_63_2020_Infinite_Recharge | ed90f5524dc2e0bdaf507f194c7aca5355519112 | a045815bacef67f881e917ab1ce0a0f1ff5a0d7b | refs/heads/master | 2020-12-19T09:29:06.700828 | 2020-01-23T13:13:19 | 2020-01-23T13:13:19 | 235,696,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,201 | py | #!/usr/bin/env python3
import wpilib
from wpilib.buttons import JoystickButton
from wpilib.drive import MecanumDrive
from wpilib import Spark
from wpilib import Victor
from wpilib import SPI
import math
from navx import AHRS
import ctre
class MyRobot(wpilib.TimedRobot):
"""Main robot class"""
# Channels on ... | [
"noreply@github.com"
] | noreply@github.com |
3a6ba615db0bfcc07397e83ee225b30aa914dd85 | 52ba9407878b6602c40821face0d289c429ccf0a | /scripts/sign_transaction.py | 9a035763147021d5d5b5b2e295d82a82866cc1b7 | [] | no_license | skycoin/ledger-nano | 4acb7d6d56b536da0341b69b7944a4451144488b | e721c932b2251c24c796e688baf2c0facad7e815 | refs/heads/develop | 2020-04-19T15:45:44.069348 | 2019-05-02T19:31:26 | 2019-05-02T19:31:26 | 168,282,905 | 6 | 7 | null | 2019-05-02T19:31:27 | 2019-01-30T05:08:26 | C | UTF-8 | Python | false | false | 6,252 | py | from adpu_call import send_to_ledger
from struct import unpack
import binascii
# command to generate txn
# ./skycoin-cli createRawTransaction -m '[{ "addr": "2cPurVYpW1MCqk7cjNjqDG531BoRCgJ8iTD", "coins": "3"}, { "addr": "hbWbgT97s7RoGEfqoiiJgV5pkdaAsBow3o", "coins": "3"}, { "addr": "qGJNvH2LM1jrawo1ZggreLYaTpwUXCkzWh... | [
"milromchuk@gmail.com"
] | milromchuk@gmail.com |
b877bc285b7f1c36aab045fadc8b9eb38449a2cb | 596cdf3116214603215d197a44de6168f53e4ab0 | /bin/django-admin.py | 4c8520db7cd36555c1a4065301ef2821923ac5a6 | [] | no_license | houdaboudad/tp_ihm | 3a197796de71cbe73e34c77d9b569797c1b7b9b5 | b0f53fd64077f77a58f037527c81dd96711e2232 | refs/heads/master | 2021-01-22T06:07:28.484390 | 2017-02-12T15:54:36 | 2017-02-12T15:54:36 | 81,736,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/home/rime/Projet-ihm/virtualenv1/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"boudad.houda@gmail.com"
] | boudad.houda@gmail.com |
c19885a43c7bc2581c9b7559141a346acbc17f2f | 3aa1776d989a6a254202f39ad4dbff0c78fa93b8 | /prepare_dataset.py | 9c42457343dd3c7eafa69789d9f8b161748b379e | [] | no_license | shubha-rajan/starter-project-scripts | d98b296f33d55309456e7d7bfc377e74f5b694ad | 559858f62dd7b69d0e323458878cf6f84809014b | refs/heads/master | 2020-07-25T03:02:12.590687 | 2019-09-12T21:06:36 | 2019-09-12T21:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | import argparse
import io
import glob
import os
import csv
from google.cloud import vision
from google.cloud.vision import types
from PIL import Image, ImageDraw
def rename_files(label):
files = glob.glob(f"{label}/*.jpg")
for fileno, filename in enumerate(files):
new_name = f"{label}/{label}{fileno}... | [
"noreply@github.com"
] | noreply@github.com |
22b037b8f09b7ad5fbf8b865601226957ee33559 | d605ba0bd18c3c69d19a01b7672887987b634399 | /Code_算法图解/4.1.3分而治之 找出列表最大数字.py | e543b953da782d583ef2f4ce4a5076cc7f51c9b7 | [] | no_license | WMXNLFD/Algorithm | f58f539d110857598ca791ac7497efa495e1d276 | e05a8898a627049f3be5e1b96a8cf4281a2c05c7 | refs/heads/master | 2020-04-26T07:23:41.229782 | 2019-04-10T08:37:54 | 2019-04-10T08:37:54 | 173,392,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | def max(list):
big = list[0]
i = 1
while i < len(list):
if big < list[i]:
big = list[i]
i+=1
return big
print(max([1,2,3,4]))
#上面是自己写的非递归版本
#下面是答案递归版本,牛比
def max1(list):
if len(list) == 2:
return list[0] if list[0] > list[1] else list[1]
sub_max = max(list[1:... | [
"792631046@qq.com"
] | 792631046@qq.com |
f3163805bef7e2a224a69a335ca8397b53d51d7b | abdf64068b3bd657370b74e7001840b929e2c27a | /basic_quo_fea.py | 313af737272412000f92d1d7eaba85f5f54f1183 | [] | no_license | luciasalar/Lyrics-and-Depression | 5be8340abf19d790e203c4cebc3ebcb4adfa33b3 | b00184b653daaf29085640e6dc4c7bece9a0e9d3 | refs/heads/master | 2023-05-14T04:22:40.182855 | 2021-06-02T13:30:33 | 2021-06-02T13:30:33 | 259,613,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,768 | py | """Here we compute the basic stats for user quotes."""
import pandas as pd
#from QuoteDetector import *
class SelectText:
def __init__(self):
self.path = '/afs/inf.ed.ac.uk/user/s16/s1690903/share/QuoteAndDepression/data/'
self.participants = pd.read_csv(self.path + 'participants_matched.csv')
... | [
"s1690903@hawksworth.inf.ed.ac.uk"
] | s1690903@hawksworth.inf.ed.ac.uk |
5bc7c0859e688fb8a636fe3ba7f3f2ba7dc8cc9e | 331a0ec80a812e1969ac15695d00892c298dce2a | /blog_site/settings.py | ebad59286310b5e1a62b2fa74369b176c2287979 | [] | no_license | ashish2810/blog_site | f563a87b0d304648263d0a958b8e5725bd5a9e52 | 2b955fb5b8f669d86e7f0be87e0d381f1c8ca559 | refs/heads/master | 2021-01-11T20:20:40.711444 | 2017-01-16T08:04:48 | 2017-01-16T08:04:48 | 79,096,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,117 | py | """
Django settings for blog_site project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import ... | [
"ashishmittal2810@gmail.com"
] | ashishmittal2810@gmail.com |
1665a38b60a5e73fd7a966c2cef2fa745e176772 | 6c6f935eba89ee3434f0b390fe9b5eaa464ef2a2 | /app/routes/userModify.py | 4caf01ad9df18d616de2e32ed5365b1d52887904 | [] | no_license | gti525/h19-passerelle | f76bbd63d0ea5f43def92a5dbf55c3f469fae100 | bdb0cfe347c18c9ed5e1925d9d82a2503309c511 | refs/heads/master | 2020-04-16T05:54:20.584844 | 2019-04-14T11:29:54 | 2019-04-14T11:29:54 | 165,326,144 | 4 | 2 | null | 2019-04-04T15:30:28 | 2019-01-11T23:40:05 | Python | UTF-8 | Python | false | false | 1,895 | py | from flask_login import current_user
from flask import render_template, Blueprint, redirect, request, flash
from app.models.users import Merchant, User
from app import db
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import ValidationError, DataRequired, Email
use... | [
"jasmin.lapointe@hotmail.ca"
] | jasmin.lapointe@hotmail.ca |
eab79d50f246b41e7ca2d6791bef6ec5ac89c03c | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/OpenGL/Demo/NeHe/lesson3.py | 499a6e4689f5adda4626afec603848f84836b3c1 | [] | no_license | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,888 | py | #!
# This is statement is required by the build system to query build info
if __name__ == '__build__':
raise Exception
import string
__version__ = string.split('$Revision: 1.8 $')[1]
__date__ = string.join(string.split('$Date: 2002/12/31 04:13:55 $')[1:3], ' ')
__author__ = 'Tarn Weisner Burton <twburton@us... | [
"hyl946@163.com"
] | hyl946@163.com |
13acf06be5b680229c448bc5098cc70d6c4968cf | 8917c42937c3508ab243f7efa7294b7fb4f05909 | /robotXY.py | 30886e72cdeb9a8ba5ec72a6292220ebf29cee46 | [] | no_license | kwilewski/Memero | 21bb5c0a35bed3079699f6c4f78a85e96df4f921 | caf99bb14cdba17522914c8b297a1561eacd8d74 | refs/heads/master | 2020-05-27T04:01:32.633756 | 2019-05-25T12:16:11 | 2019-05-25T12:16:11 | 188,475,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | class robot_xy(object):
"""description of class"""
def __init__(self,x_pos,y_pos,angle):
self.x_pos = x_pos
self.y_pos = y_pos
self.angle = angle
def position(self):
return '{}|{}|{}'.format(self.x_pos, self.y_pos, self.angle)
def set_x(self, x_pos):
self.x_po... | [
"krzysztof.wilewski@gmail.com"
] | krzysztof.wilewski@gmail.com |
906f84f14666538c126c47c04b7f2193cb3ebbe9 | aa2157e595b89c3512857e41fee16e8b11d7a657 | /Fresher Lavel Logical Programms/self pratice cording.py | 3516f73c6f1c0c6da8089aed6e2689850f2ee33b | [] | no_license | biswaranjanroul/Python-Logical-Programms | efee6276eea3eafab9ee6b6e7e0910b715a504d1 | 152dcecf2ecae7891a11769f250a4dc8d9d6b15f | refs/heads/master | 2022-12-15T07:37:45.978218 | 2020-09-17T13:24:53 | 2020-09-17T13:24:53 | 296,326,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | List=[True,50,10]
List.insert(2,5)
print(List,"Sum is:",sum(List))
| [
"biswaranjanroul2@gmail.com"
] | biswaranjanroul2@gmail.com |
7191a890a3b78f804d1a9b6876d8923e01757187 | 4e6dbadcaec044a0edac237cfd84e4653c0e98e5 | /mobile_robotics_utilities/scripts/simple_trackbar_hsv.py | 56bcbd90442c42e92d1f416466259593b04cf70b | [] | no_license | piraka9011/EECE5550_MobileRobotics | 26b1830cc5fc2107c340c9da546a5ff92af41b18 | 597ab1b92d22aef2ed0a1061d0c7a2c7f6211d0e | refs/heads/master | 2020-05-07T14:25:28.242226 | 2019-04-12T12:56:33 | 2019-04-12T12:56:33 | 180,593,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,882 | py | #!/usr/bin/env python
"""Simple example for using trackbars. Segments image color based on HSV."""
__author__ = "Anas Abou Allaban"
__maintainer__ = "Anas Abou Allaban"
__email__ = "anas@abouallaban.info"
import cv2
import numpy as np
import time
trackbarWindowName = 'Trackbars'
FRAME_WIDTH = 640
FRAME_HE... | [
"piraka9011@hotmail.com"
] | piraka9011@hotmail.com |
61b8e12ef142755e0f21788aadb9c6115e531a51 | 9abc2f4fbf1b31b5a56507437b4a8d9c3f3db7e6 | /newsletter/migrations/0001_initial.py | 7ec8cdad3f338cedbfa3b2dd1bbe2848327e86e9 | [] | no_license | odbalogun/ticketr | e9fe8461d66dabe395f0e1af8fbecc67dbb16e97 | 94f24c82f407f861f1614a151feb3fdd62b283e5 | refs/heads/master | 2022-11-30T22:40:30.931160 | 2019-08-09T14:34:38 | 2019-08-09T14:34:38 | 188,833,600 | 0 | 0 | null | 2022-11-22T03:50:30 | 2019-05-27T11:50:07 | Python | UTF-8 | Python | false | false | 742 | py | # Generated by Django 2.2.1 on 2019-06-09 23:51
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Subscribers',
fields=[
('id', models.AutoFi... | [
"oduntan@live.com"
] | oduntan@live.com |
3257118e28b9313b80431811480ac0d8a136bdf6 | dd6c23aa9e514b77c3902075ea54e8b754fd3bce | /docs/source/conf.py | e32250b11378e8936ab862fdc86707876239259d | [
"MIT"
] | permissive | gvx/wurm | 78b71880ff9acbd503281fbe61d77063bac59643 | c6702aee03785713035ed75632b3898f4fee1664 | refs/heads/master | 2023-05-02T06:14:37.251061 | 2021-05-26T15:34:09 | 2021-05-26T15:34:09 | 328,152,422 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"gyvox.public@gmail.com"
] | gyvox.public@gmail.com |
679a5eb09af9be8f8a7604012b2a1d201063ae6f | 5ec16270cce46f10de87846d23cdd35fb88ad1f4 | /Figure3/get_all_RFs.py | 724e0eed3ed2510da54316225b5b6fa36833a1e9 | [
"BSD-2-Clause"
] | permissive | jiaxx/neuropixels_platform_paper | bb906d65189e4edbe5c5c5cf5c669496db25aa5f | 4f8bcc26fa6fbec1ae687c650bacc9ea67a7036d | refs/heads/master | 2023-04-29T12:05:55.402204 | 2021-07-28T19:06:51 | 2021-07-28T19:06:51 | 295,580,119 | 0 | 0 | NOASSERTION | 2020-09-15T01:22:38 | 2020-09-15T01:22:37 | null | UTF-8 | Python | false | false | 4,032 | py | import pandas as pd
import os
import numpy as np
import xarray as xr
import pandas as pd
import matplotlib.pyplot as plt
from scipy.ndimage.filters import gaussian_filter
from allensdk.brain_observatory.ecephys.ecephys_project_cache import EcephysProjectCache
from allensdk.brain_observatory.ecephys.ecephys_session i... | [
"joshs@alleninstitute.org"
] | joshs@alleninstitute.org |
412fe4757678fa93ee5e91ecdc4101efd54d1aa7 | f0655e0170f605fbdd6e7182906cc41960502f18 | /install/joy_teleop/lib/joy_teleop/joy_teleop | 3005c89c838e49cd87e635e328b8cb5f575f63fc | [] | no_license | SheldonLeeLXY/PipeWorld | 0ec049421a94c5b5dab62c42fb1e77d4e31b3728 | c53c58c8dcbd20493f91e5d1be0b2bb2892b5c96 | refs/heads/main | 2023-06-18T13:23:02.204019 | 2021-07-20T16:36:22 | 2021-07-20T16:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | #!/usr/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'joy-teleop==0.3.0','console_scripts','joy_teleop'
__requires__ = 'joy-teleop==0.3.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
lo... | [
"1003807869@qq.com"
] | 1003807869@qq.com | |
1931dfa1cd94d78f7391c58c8a4a3cd983eea70e | 5d68394ca2518962fb7aa9dc78cf645a6ce596a2 | /Zach.py | 3a9a44cb8475f92bdc021c2cc7e0490f1a6c377b | [] | no_license | djs412/Agricola | 2da9755d652069db1650676d28d0099672fdbcf7 | 6221449380c0268a0713a0f8ca3fc398678fdbec | refs/heads/master | 2021-01-13T14:47:03.864133 | 2016-01-24T21:50:55 | 2016-01-24T21:50:55 | 49,600,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | 2 2 1 2 2 2 3 0 1 0 10 15 4 2
2 2 1 2 2 2 3 0 1 0 10 15 4 2
3 4 2 1 1 -1 2 -1 0 0 8 15 4 4
| [
"djs41286@gmail.com"
] | djs41286@gmail.com |
301672efd7279966df4a90644df89c2c862fb46a | c0c6df19f9d2b71c62b4892a0fa880f27ef9c52a | /Homeworks/HW4.py | d871e6eb5d745fe78a2fd20a24012418f24e9a37 | [] | no_license | deniztoksoz/GlobalAIHubPythonCourse | fe09803f39504d3c897c7ff4488bb2fb868bd076 | ba29a0f1905961e92ea8d7cad855100abe779893 | refs/heads/main | 2023-04-10T15:41:50.743416 | 2021-04-09T21:46:48 | 2021-04-09T21:46:48 | 355,257,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | #yöntem 1
#öğrenci adları kullanıcıdan alınıyor.. Randomize olarak 0 ile 100 arasında 3 adet not atanıyor.
import random as rnd
ogrbilgi={}
notlar=list()
for i in range(1,6):
s={}
s["ad"]=input("%i. öğrencinin adını giriniz : " %i)
s["vize"]=rnd.randint(0,100)
s["proje"]=rnd.randint(0,100)
s["final... | [
"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.