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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00c899c181cdfa601864905f20683485621e49a2 | 83e47d754dca38f88dfb174b2cc2a4c0ff7de46d | /venv/bin/pip3 | 6ede972a2a67de540c190441245c6efc56143c82 | [] | no_license | ITzhang/CRM-Django | 805df34bb9673cc50a8afe2710019dd1b9ab145e | 7fe6cd16f45750fbfed0082eae57d5877e85c4e5 | refs/heads/master | 2020-04-14T19:19:21.264830 | 2019-02-15T06:36:39 | 2019-02-15T06:36:39 | 164,053,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | #!/Users/zhangjin/2018/Django_basic/CRM/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"zhangjinvip911@gmail.com"
] | zhangjinvip911@gmail.com | |
b3e25092776e555fecb58af0492b39823e2c3130 | d94508815d01f2328af56209fb2176e60af7022c | /RPC/cliente.py | 2fb671284cc9c1f198a57526f4f2e8097a2cba15 | [] | no_license | AlejoObandoGil/Ing-de-software | 51dd0ff8fc9a5489802c1b3ef7983a7d286088cf | 197b83cc8c15cfa9b232b1698ed6da34caf2d313 | refs/heads/master | 2023-02-12T15:59:22.007433 | 2021-01-09T05:33:26 | 2021-01-09T05:33:26 | 322,728,789 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import xmlrpclib
a =input(str('Ingrese el primer numero: '))
b=input(str('Ingrese el segundo numero: '))
proxy = xmlrpclib.ServerProxy("http://localhost:8080/")
print ("La suma es: " +str(proxy.suma(a,b)))
| [
"alejo.obando.g@gmail.com"
] | alejo.obando.g@gmail.com |
c7d48286539a0ef542b7b400f6a3c14bd802dd7c | 2f304de8e0e76df4c615a65b60bde7a514ecb9a3 | /Exercise2/code/Optimization/__init__.py | 5e6f00cae8bb73e011a71be6e6020380ddcbdb6a | [] | no_license | Chengjun-Xie/Deep-Learning | 56d7b825ba192e31bda38cc1396492ac9707a038 | ac8371b328dd949a3655cf69b72607ca156c9fa5 | refs/heads/master | 2022-04-05T19:00:19.864485 | 2020-02-03T16:31:06 | 2020-02-03T16:31:06 | 217,325,961 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | __all__ = ["Loss", "Optimizers"] | [
"xxujunxie@gmail.com"
] | xxujunxie@gmail.com |
266caf0b8aac1131892e35df498ac3d0f0b896d4 | 801c0f1bb516684308ff78cd7a51616791a0e874 | /chroniker/management/commands/test_status_update.py | 421eb285e80b9811de5d66c6e334a4e16a2a8f26 | [] | no_license | Andy-R/django-chroniker | c63283cb1f45b2dfe6aeb6559323085cad226c15 | 91d239e69fe3ef5eefa8088e80987ccafb6b45ef | refs/heads/master | 2020-04-05T22:58:59.964744 | 2017-02-10T15:08:33 | 2017-02-10T15:08:33 | 62,376,921 | 0 | 0 | null | 2016-07-01T08:18:00 | 2016-07-01T08:17:59 | null | UTF-8 | Python | false | false | 1,742 | py | from __future__ import print_function
import time
from optparse import make_option
import django
from django.core.management.base import BaseCommand
from chroniker.models import Job
class Command(BaseCommand):
help = 'Incrementally updates status, to help testing transaction ' + \
'behavior on different... | [
"chrisspen@gmail.com"
] | chrisspen@gmail.com |
cc7afd85a5ceea21d6ad669422f7625db0647b02 | 12a12dbaf416b7719810609988cd3f0d17b2d07a | /online_test/migrations/0008_studenttestattempt_submitted_via.py | 57769031e83eb78ba34338194ae5d8b78156af68 | [] | no_license | atulmala/classup2 | fca29f49481df1ad6393f14873fdc50a9557d271 | 62b7ad1164f7e548e6d599584eca7e6bfec311cc | refs/heads/master | 2022-09-20T15:33:59.119122 | 2020-06-01T11:20:14 | 2020-06-01T11:20:14 | 269,696,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('online_test', '0007_studenttestattempt_submission_ok'),
]
operations = [
migrations.AddField(
model_name='studen... | [
"atul.gupta@classup.in"
] | atul.gupta@classup.in |
0f326a38ed3bf737db8c6db4ed41edd84b9f07ad | d6eb6c4f340d343ea368507b1c7e7671d45a5767 | /src/third_party/gtest-1.6.0-macos/test/gtest_list_tests_unittest.py | 8a6c48f31687ce89534fa37172c21171567a05f1 | [
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause"
] | permissive | brn/mocha | 8242888c18081cb844a2c2bd0c222162cd46e4cf | 9ff68d6e2c753acf6ce57cdb3188f162549d2045 | refs/heads/master | 2021-06-06T06:43:06.230281 | 2021-05-07T16:04:12 | 2021-05-07T16:04:12 | 2,707,603 | 19 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,592 | py | #!/usr/bin/env python
#
# Copyright 2006, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice,... | [
"brn@ubuntu.(none)"
] | brn@ubuntu.(none) |
77886c4fdce97b19fff345eff0dc0332e3af7a48 | 3303377fcf3e250d018f8d0e1327db317be1c141 | /0x05-python-exceptions/102-magic_calculation.py | 1fb6758ed3870dfdd35d2bb20a3c939f260435b2 | [] | no_license | d1sd41n/holbertonschool-higher_level_programming | 5c90be7989c3242950c9fb056834c783b24f9875 | 342498c5d5ea5924d760b7e9108ef0693beee771 | refs/heads/master | 2022-12-23T08:23:51.235057 | 2020-09-24T18:44:51 | 2020-09-24T18:44:51 | 259,445,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | #!/usr/bin/python3
def magic_calculation(a, b):
result = 0
for i in range(1, 3):
try:
if i > a:
raise Exception("Too far")
else:
result += (a ** b) / i
except:
result = a + b
break
return result
| [
"Daniel Perez"
] | Daniel Perez |
01296b1396527e199042703aab5eef085ae70070 | 6706f0f798b3de04bef5677846bc3edb30ba1130 | /ansible/library/docker_list_containers.py | 2811d6b5a8afd9383cafe6167b8fccc79d54a424 | [
"Apache-2.0"
] | permissive | onap/oom-offline-installer | 9eb600b05adb549731ad8c2879465a7d7670e8dc | 2b699e120af0e748d2c3946c0bc0f65090695812 | refs/heads/master | 2023-09-04T05:12:11.737554 | 2022-10-24T11:51:14 | 2022-10-24T11:51:14 | 236,575,116 | 4 | 2 | Apache-2.0 | 2021-06-29T18:14:51 | 2020-01-27T19:30:27 | Python | UTF-8 | Python | false | false | 2,687 | py | #!/usr/bin/python
ANSIBLE_METADATA = {
'metadata_version': '1.1',
'status': ['preview'],
'supported_by': 'community'
}
DOCUMENTATION = '''
---
module: docker_list_containers
short_description: "List running docker containers"
description:
- "Lists all running containers or those with matching label"... | [
"b.grzybowski@partner.samsung.com"
] | b.grzybowski@partner.samsung.com |
41744dbf6abe509cc2ce8e3f467f84706a769e18 | 3014d0408b05e2ebcbf7d9a08e5a1c7208a5110e | /model/__init__.py | 964c92f7d81e5f4eb2b95216ce00292cafab0be4 | [
"MIT"
] | permissive | thu-media/FedCL | 75fcd021b5a1e68e5524acf9682cab744164f041 | 4b16e1061a644b663d5916a988f90adf9d37da23 | refs/heads/master | 2022-08-01T10:14:34.380234 | 2020-05-27T02:56:06 | 2020-05-27T02:56:06 | 267,024,987 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from .cifar_models import CifarModel
from .mnist_models import MNISTModel
| [
"yaox12@outlook.com"
] | yaox12@outlook.com |
971a106840e7982c7cd62b9e67005dbf74df1351 | d3c8d385682ea27d4779bf32bb42237a4c8d17c4 | /eveposcal/app.py | 2aff8c78b67de5a4678069adc65986234fbd9154 | [] | no_license | drakedevel/eveposcal | 8b7d3f63a8aaca67c4a395f17ef19b9887dbda36 | 4915b912ad0f509d9f95874f0f638a1f2386a47b | refs/heads/master | 2020-04-29T01:04:05.446015 | 2014-12-07T20:04:02 | 2014-12-07T20:04:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__.split('.')[0], template_folder='../templates')
db = SQLAlchemy(app)
| [
"adrake@adrake.org"
] | adrake@adrake.org |
26a884bb4ad9ab8937029d46559735644d2e19b8 | 8e9ea4e7300a51ad3251526e5a1dfdcef7e9bff5 | /Tasks/sheshukov/PyTasks/8.py | 709d8b85c680f035f6bc13596b8fe556d84e9940 | [] | no_license | BlackenedJustice/testRepo | 2baff560ed2d9d7de38bb1a0f813ac044c2bf217 | 81fa3893bfd4bba61d81928528b48255aaafdd33 | refs/heads/master | 2020-05-19T17:42:58.062510 | 2019-07-15T07:30:26 | 2019-07-15T07:30:26 | 185,140,879 | 6 | 30 | null | 2019-08-03T10:52:56 | 2019-05-06T06:58:20 | Python | UTF-8 | Python | false | false | 162 | py | a, b, c = map(int, input().split())
if (a, b, c) == (c, a, b):
print(3)
else:
if a == b or b == c or a == c:
print(2)
else:
print(0)
| [
"noreply@github.com"
] | noreply@github.com |
a35138f7aa55b0e6104e0f8c8a3728f31810f50a | 1e624ec0fb61f17e8a69389b306a19db6eb53c29 | /utilities/argument_funcs.py | 17cc0467597fbb669324b76acbff83a9989d1622 | [
"MIT"
] | permissive | riotonzuk/sight2music | 85a6750cf9965bf0ced791f1b58e7e742862bead | 4d655c40032f9d4ee1ff82043c5c7266aa422e89 | refs/heads/main | 2023-08-05T20:27:01.838062 | 2021-10-02T04:36:11 | 2021-10-02T04:36:11 | 412,671,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,142 | py | import argparse
from .constants import SEPERATOR
# parse_train_args
def parse_train_args():
"""
----------
Author: Damon Gwinn
----------
Argparse arguments for training a model
----------
"""
parser = argparse.ArgumentParser()
parser.add_argument("-input_dir", ty... | [
"noreply@github.com"
] | noreply@github.com |
be3942db024549e88fc2c2ce0d84110f053cb64a | b0928788cba0d0a28d3ccca063e80b8f2eb66161 | /src/progress/models.py | d261e974b98fc2f4369d76619a3a3841c7c3ec76 | [] | no_license | michal-sitarz2/WeightLossWeb | 74ef97e5b1efdf2d234ab1585832d609451920d4 | b3ac9ff818006da099f8796f7e8044836a8b771a | refs/heads/main | 2023-04-28T17:07:56.748248 | 2021-05-18T12:40:08 | 2021-05-18T12:40:08 | 343,893,715 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,698 | py | from django.db import models
from django.core.validators import MaxValueValidator, MinValueValidator
from django.forms import ModelForm
from django.utils import timezone
from account.models import Account
from pages.scripts.bmi_calculate import calculate_BMI
class Progress(models.Model):
# One-to-one relationship ... | [
"michalsitarz2001@gmail.com"
] | michalsitarz2001@gmail.com |
5d2162b0c6b6a8d5a45d6430ace217c8b5b3f4ae | ea057113ff7df21c65f8750bd28bc571b421f7fc | /django_first_project/django_first_project/views.py | f1d4f9891ae27de3d221ddb26b132cb1480b0aa3 | [] | no_license | Raj2Herald/Django2 | a5bf4b57484f8623836da67f5752639c3e26cb91 | eacf541be6c8c373e8ce2c91a2ccdfbb81be5a93 | refs/heads/master | 2020-12-08T18:41:11.564194 | 2020-01-17T10:48:20 | 2020-01-17T10:48:20 | 233,062,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | from django.http import HttpResponse
from django.shortcuts import render
def hello_world_view(request):
return HttpResponse("<h1>Hello world<h1>")
def hello_world_from_htmlpage(request):
return render(request,'index.html',{'name':'Ram'})
def form_view(request):
return render(request,'form.html')
def for... | [
"raj.shrestha@heraldcollege.edu.np"
] | raj.shrestha@heraldcollege.edu.np |
d6081a0c970f111db18106c9ef42555aa7930b73 | 4b70b7a7ab0faa2a5ac16a0053bf8e169db34684 | /setup.py | 961430a1786a92086b653471d688f593f03cec84 | [
"MIT"
] | permissive | gaow/dsc | 18e72c9fcd1c772fdf1b95bd3920686f5de10ddc | 00b729ed690e0775235cc29a8ecf7e9e5dafb8db | refs/heads/master | 2020-09-24T06:25:34.579786 | 2019-12-03T18:08:52 | 2019-12-03T18:08:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | #!/usr/bin/env python
__author__ = "Gao Wang"
__copyright__ = "Copyright 2016, Stephens lab"
__email__ = "gaow@uchicago.edu"
__license__ = "MIT"
import os, sys
sys.path.append('src')
_py_ver = sys.version_info
if _py_ver.major == 2 or (_py_ver.major == 3 and (_py_ver.minor, _py_ver.micro) < (6, 0)):
raise SystemErr... | [
"gaow@uchicago.edu"
] | gaow@uchicago.edu |
a8e6124bb37463615b831355a8b8b586e438038d | 77e17ab4795c415468c884bf02cf52c8df6bf082 | /openai_ros/src/openai_ros/robot_gazebo_env.py | c2cf915976ed10ae6025feca4f9cac265a884637 | [] | no_license | mjpatell/learning_openai_ros | b5a946f80faf52960ddbd7bfe7203eaa81cb6307 | d955a24fc8484006dbb7e4c9785e3d2428b12e2c | refs/heads/master | 2023-03-05T18:54:32.984395 | 2018-10-29T11:41:19 | 2018-10-29T11:41:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,131 | py | import rospy
import gym
from sensor_msgs.msg import JointState
from gym.utils import seeding
from .gazebo_connection import GazeboConnection
from .controllers_connection import ControllersConnection
#https://bitbucket.org/theconstructcore/theconstruct_msgs/src/master/msg/RLExperimentInfo.msg
from openai_ros.msg import ... | [
"myp@ipa.fhg.de"
] | myp@ipa.fhg.de |
aa4222d7121296f46a7502528baf20ee183c59f5 | af0deaee911417589b932022ad8bd0127fe42f24 | /store/urls.py | db22aac04b2701050a91449ba9c4263d85097de3 | [] | no_license | mayankkushal/go-green-v1 | b74e7ec7ca6ab0921e72fe43b5ea76f8eea739c6 | 76f16616073ecc101fbbbe9fe49173b9638f597c | refs/heads/master | 2022-12-08T21:21:12.223347 | 2019-02-08T16:29:37 | 2019-02-08T16:29:37 | 99,202,678 | 2 | 1 | null | 2022-11-22T01:52:51 | 2017-08-03T07:14:48 | JavaScript | UTF-8 | Python | false | false | 1,135 | py | from django.conf.urls import url,include
from django.views.generic import DetailView, TemplateView, ListView
from django.views.decorators.csrf import csrf_exempt
from . import views
from .models import Store
app_name = "store"
urlpatterns = [
url(r'^create_store/$', views.StoreCreate.as_view(), name='store_add'),
... | [
"mayankkushal26@gmail.com"
] | mayankkushal26@gmail.com |
46d92f8f16999e71f43a8b228f7ed36c8dc1d964 | 74c13ada72110dd8b42a24eb3d81956f39b9d0c8 | /test/AccessorTest.py | f2897fa4926df13418ab3a46f917608b85e5a3fa | [] | no_license | rizkivmaster/meloentjoer | 6a3623a009fda87809125e9dfc1109249f74c4b1 | ff6afee6e268749723511a1caec2811ed12ff2b8 | refs/heads/master | 2021-01-10T05:09:58.820344 | 2015-11-29T17:01:02 | 2015-11-29T17:01:02 | 46,928,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | import unittest
from accessors import bus_estimation_accessor
from accessors.entity.BuswayTransfer import BuswayTransfer
from accessors.entity.TrainRoute import TrainRoute
from accessors.entity.WalkRoute import WalkRoute
from accessors.routes import bus_route_accessor, walk_route_accessor, train_route_accessor, \
... | [
"rrangkuti@traveloka.com"
] | rrangkuti@traveloka.com |
b4afffcb64f5be530f07542fe48c029ba2ef57b2 | 27dec28f4bacddf31150741803bd5e9e06ec4592 | /applications/detr-detection.py | 8b112fc48d43369485aed17787ec4a6796bcebd0 | [
"MIT"
] | permissive | BrianOfrim/gstreamer-pyspin-src | e02653189979d933690d7f22b957d7d8d4569835 | 0021351d699d2b9563041828a869ce9e770d87b7 | refs/heads/master | 2022-12-23T04:52:45.095324 | 2020-09-29T05:03:57 | 2020-09-29T05:03:57 | 255,004,915 | 20 | 3 | null | 2020-04-30T02:41:07 | 2020-04-12T04:00:10 | Python | UTF-8 | Python | false | false | 4,796 | py | # Model from https://github.com/facebookresearch/detr
# Inference based on https://colab.research.google.com/github/facebookresearch/detr/blob/colab/notebooks/detr_demo.ipynb
import fnmatch
import os
import time
from PIL import Image
import numpy as np
import svgwrite
import torch
import torchvision
from gst_overlay_... | [
"bofrim@ualberta.ca"
] | bofrim@ualberta.ca |
7e0b8ad5684c410de74942820196b3c81c829fbe | d36de316f920342823dd60dc10fa8ee5ce146c5e | /brexit_legislation/urls.py | 924cff38cbcfd8a9bf87ee22b129c91f764ff4ba | [] | no_license | DemocracyClub/EURegulation | a621afa3ffae555ebd5fbdc205eceb7746a468d1 | 7cf0bf31b200ab1cb59922f0b3ca120be3757637 | refs/heads/master | 2022-07-22T04:48:59.555642 | 2018-06-26T14:42:19 | 2018-06-26T14:42:19 | 80,203,236 | 2 | 0 | null | 2022-07-08T16:02:53 | 2017-01-27T11:47:20 | Python | UTF-8 | Python | false | false | 318 | py | from django.conf.urls import include, url
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='home.html'), name="home"),
url(r'^api/', include('api.urls')),
url(r'^browse/', include('browse.urls')),
url(r'^search/', include('search.urls')),
]
| [
"sym.roe@talusdesign.co.uk"
] | sym.roe@talusdesign.co.uk |
581118fd879f0cd9f7bdfb4b029cebfbada00b0f | a123fccb21aec72d8cfe303b22c0795820120b20 | /file_reader.py | d5e89a11cb6d79a0db6ba504073419caa2ae3ee1 | [] | no_license | AnjalaD/simple_medical_data_processing_system | ac48ea83352cd63e7676e15e482fb9f89b110253 | f89e937181aa5adf6c640b68477aca97d77c0d3d | refs/heads/master | 2022-06-10T14:46:32.041207 | 2020-05-01T18:12:46 | 2020-05-01T18:12:46 | 260,385,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import json
def open_file(fileName):
f = open('./data/'+fileName)
data = json.load(f)
f.close()
return data
def get_users():
users = open_file('users.json')
return users
def add_user(username, password, type, pl):
users = get_users()
user = {
"password": password,
"... | [
"anjaladilhara@gmail.com"
] | anjaladilhara@gmail.com |
1a38cc2163d48ed4e680db7f18efef23eda8cd2b | b6b9b6c483b198875165daf50d5589af57488a26 | /setup.py | 38a66347276e57a2b71430f6a7a7e3f0b3e69883 | [
"MIT"
] | permissive | wumaoland/sherry | 655d559e147f31971d1d42c23b63c12af3257e8a | edaa6398260d5f8c7a90cdf2a9669f0a02ca5102 | refs/heads/main | 2023-07-29T08:25:06.919888 | 2021-09-02T06:17:57 | 2021-09-02T06:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # coding=utf-8
"""
create by pymu
on 2021/4/29
at 16:30
具体命令详解,请参阅:https://blog.konghy.cn/2018/04/29/setup-dot-py/
"""
from setuptools import setup, find_packages
from sherry import __sherry_info__
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Topi... | [
"1540235670@qq.com"
] | 1540235670@qq.com |
01f8f42fb980f7cf74de36d4025987a48d2a02a3 | d77e19636cd7d64019be3bf70d23102bf3e22fa8 | /pycheribuild/config/jenkinsconfig.py | af5a922903bacb23cbfd6057cee8eb27f5316c34 | [
"BSD-2-Clause"
] | permissive | bitvijays/cheribuild | 205d28d7e3b31d1ba43e61ab824a2454bfa841a5 | 860c1f729f40691f49a3df91f608204f7b128cf8 | refs/heads/master | 2021-01-02T04:55:26.846710 | 2020-02-10T11:33:25 | 2020-02-10T11:33:25 | 239,497,080 | 0 | 0 | NOASSERTION | 2020-02-10T11:36:06 | 2020-02-10T11:36:05 | null | UTF-8 | Python | false | false | 14,425 | py | #
# Copyright (c) 2017 Alex Richardson
# All rights reserved.
#
# This software was developed by SRI International and the University of
# Cambridge Computer Laboratory under DARPA/AFRL contract FA8750-10-C-0237
# ("CTSRD"), as part of the DARPA CRASH research programme.
#
# Redistribution and use in source and binary ... | [
"Alexander.Richardson@cl.cam.ac.uk"
] | Alexander.Richardson@cl.cam.ac.uk |
f425f1478027a2e178cbe9488d0d21b4803a7217 | 2e558e1b9491b39f900d914e9129b52b39fb0f81 | /V_2_2/params.py | 07b8d7a8c1d2c1fcdfcd43e73d191d45e8e3db8c | [] | no_license | PierreJab/FYP | 850338458175a85b04e192ba44862c8701ef7d95 | a5dab2ef1ce3f2411a215c4cb78a74e363ddedf7 | refs/heads/master | 2023-01-04T09:06:36.429345 | 2020-11-02T17:45:23 | 2020-11-02T17:45:23 | 306,643,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 24 10:56:31 2020
@author: pierrejablonski
"""
"""
The purpose of this code is save model V.2.3 parameters in a workspace
"""
# Libraires
# --------------
import pickle
# coordinates [long, lat] of aircraft 1 at time of change of course
#aircraft... | [
"p.jablonski@eleves-alsacienne.org"
] | p.jablonski@eleves-alsacienne.org |
08df29a0f00879b1815f8964d4e1d147556ed4c5 | 99a8fd7324d51de7d5762026256c558595341e02 | /order.py | ebcb7f8f8408eaaf43e6dc158f32bb18a46f4fff | [] | no_license | coolsnake/Quantitative-Contest | f306fc63a7a80d2d1c0f57590e60d35dc4a2a52b | 9aabdb7c5b74935fbfcd252043813e6b2504d357 | refs/heads/master | 2020-04-27T21:37:44.302178 | 2017-12-20T12:36:22 | 2017-12-20T12:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | from GlobalPramaters import *
from Global import *
import utils
# 开多仓:BID LONG
# 平多仓:ASK LONG
# 开空仓:ASK SHORT
# 平多仓:BID SHORT
class Order:
def __init__(self):
self.buf = []
def insert_order(self, side, symbol, volume, price, is_market, pos_type):
self.buf.append((side,symbol,volume,price,is_m... | [
"noreply@github.com"
] | noreply@github.com |
2cbaa7a7d1d5553890db2978cc928a6c834f2b18 | ac35e5ab0943504ec0bf56733b873e5603903a1c | /cardio/bin/rst2xml.py | 6d0e8a0fabfcf350156db86a82c8f1a0dce74d5b | [] | no_license | cesarPano/cardio | fa48be5613d7f225d33bcce87ca7df856af55dbd | e4ff9d22bc68d1c931be385f57832177b1a3eca1 | refs/heads/master | 2022-07-22T17:20:40.052830 | 2020-05-21T15:15:51 | 2020-05-21T15:15:51 | 265,878,073 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | #!/home/cesar/cardio/cardio/bin/python
# $Id: rst2xml.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 Docutils XML.
"""
try:
import locale
locale.set... | [
"cesar@panoimagen.com"
] | cesar@panoimagen.com |
6b7ce9b4ad4ad72ae342cbe2f470eb5a7f7cfb28 | 38b48d18961a03ded0e8ad0ef832d3bca6670bf7 | /102/102.py | 936b1e757df716b2ca35383d0a86e9db7be21cbd | [] | no_license | Vrokm/LeetCode-record | e132303741d039883cfdb3978da578a7e4f9bd16 | 11e3267988cb7eaf0c9681ca6a6941efd282f224 | refs/heads/master | 2022-05-20T21:04:05.845034 | 2020-03-22T13:34:30 | 2020-03-22T13:34:30 | 487,300,837 | 1 | 0 | null | 2022-04-30T14:38:26 | 2022-04-30T14:38:26 | null | UTF-8 | Python | false | false | 1,018 | py | '''
Use a queue to get the level traversal of a tree.
Runtime: 40 ms, faster than 98.11% of Python3 online submissions
'''
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def levelOrd... | [
"715811763@qq.com"
] | 715811763@qq.com |
e42e0f5bcf674bc0c12e342fd05eb5bef3a33a8c | e4a38155d92f1aa43f8883eea1883f79178d057a | /Other/xuexijia.py | 93ea5cd6afd2681c65ece25af09bc7a5c620a923 | [] | no_license | SuperLandy/Python | 5d2c8792eac6ad2ec95cb48326fd3170271ff496 | 313d404a3f6bf5af8fb5279c0376fb2a37e8290e | refs/heads/master | 2023-05-25T17:47:48.134582 | 2022-08-31T09:05:47 | 2022-08-31T09:05:47 | 156,337,702 | 2 | 0 | null | 2023-05-22T21:48:59 | 2018-11-06T06:38:54 | Python | GB18030 | Python | false | false | 1,611 | py | #coding utf-8
from tkinter import *
import tkinter.simpledialog as sr
import tkinter.messagebox as xx
root = Tk()
a = Label(root,text = "叫什么游戏好呢?")
a.pack()
xx.showinfo("弹个小窗口","然后告诉你,欢迎来到王者荣耀游戏大本营!")
id = 821 #设置被猜数值
num = 10 #程序循环次数
for i in range(1,num + 1): #... | [
"30717086+sbzzq@users.noreply.github.com"
] | 30717086+sbzzq@users.noreply.github.com |
503f3fae67fd2fc061fa0840870f7cd08f4abc8d | 3a65dec72a0f97f3bc64be61d681b00ad023905c | /AS2/Answer.py | e330c718addac2dafc659951129ea4320f818272 | [] | no_license | Lijuet/2021_Deep_Neural_Network | 869044f10a8eeece93b5929e9111e655103131e5 | 94b4e571abc6e9389166bc2507dcb0dbe9cf4127 | refs/heads/master | 2023-06-01T14:54:28.815822 | 2021-06-13T08:52:54 | 2021-06-13T08:52:54 | 358,489,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,132 | py | from collections import OrderedDict
import numpy as np
def softmax(z):
# We provide numerically stable softmax.
z = z - np.max(z, axis=1, keepdims=True)
_exp = np.exp(z)
_sum = np.sum(_exp, axis=1, keepdims=True)
sm = _exp / _sum
return sm
class ReLU:
"""
ReLU Functi... | [
"seleechae@gmail.com"
] | seleechae@gmail.com |
acbd6e928cf9350e02afcfa9dfd5982aecc06551 | 759eb5a9bad48935b13dfbe303f0b3fa7fab81f1 | /straightline_programs/polar.py | fbf148bec037f8c6457c6579c20d0c13f621955e | [] | no_license | tokomaki/Python-Projects | a677ed4809b2acd33f10bb461b6dc6fc73d5f140 | 85e8b527f54a998eb53d617337554ea467b1038b | refs/heads/master | 2021-04-29T16:43:09.606610 | 2018-02-15T16:57:55 | 2018-02-15T16:57:55 | 121,655,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # polar.py: Takes two floats x and y representing the Cartesian coordinates of
# a point as command-line arguments and prints the corresponding polar
# coordinates, calculated as r=(x^2+y^2)^0.5 and theta=arctan(y/x).
import math
import stdio
import sys
x = float(sys.argv[1]) # Takes a float x
y = float(sys.argv[2... | [
"justin.victoria09@gmail.com"
] | justin.victoria09@gmail.com |
e0d9facca919403475cac785d04f3ebd773d3537 | b3e17cb270bacf95e1ad31c363b26dddff6d878d | /tools/blas_usage.py | e76de26b71bb82c197ebfb8555669542a74fe091 | [
"Apache-2.0"
] | permissive | NickHardwood/perf-libs-tools | ac76c8c56525a4a6f5a6b0389318b9103341f31b | 28fec1b249b256ff3043a7b849082a980ee377b6 | refs/heads/master | 2022-04-05T11:44:05.116857 | 2019-10-21T21:28:18 | 2019-10-21T21:28:18 | 279,005,567 | 1 | 0 | Apache-2.0 | 2020-07-12T06:25:05 | 2020-07-12T06:25:04 | null | UTF-8 | Python | false | false | 12,815 | py | #!/usr/bin/env python
# perf-libs-tools
# Copyright 2017 Arm Limited.
# All rights reserved.
# Note we have the following stems
# BLAS1="rotg_ rotmg_ rot_ rotm_ swap_ scal_ copy_ axpy_ dot_ dotu_ dotc_ nrm2_ asum_ amax_"
# BLAS2="gemv_ gbmv_ hemv_ hbmv_ hpmv_ symv_ sbmv_ spmv_ trmv_ tbmv_ tpmv_ trsv_ tbsv_ tps... | [
"chris.goodyer@arm.com"
] | chris.goodyer@arm.com |
8264d9856db9f6fc8e13e29b771fc98f73c59707 | 437e23f34594d2fa47736dbcff8067f2c8eaa79f | /karyawan/forms.py | a5b3e09cc3eead685442a8090370a42fbefedd27 | [] | no_license | mrh09/CRUD-py | 5fc607c75ddbc68f30152625625f4e656988d3d9 | 7916c28ed854eec19a99d46310e24e0ee8752904 | refs/heads/main | 2023-04-01T13:42:21.335779 | 2021-04-07T02:21:54 | 2021-04-07T02:21:54 | 354,288,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.forms import ModelForm
from django import forms
from karyawan.models import Employee
class FormEmployee(ModelForm):
class Meta:
model = Employee
fields = '__all__'
widgets = {
'name' : forms.TextInput({'class':'form-control'}),
'position' : forms.TextInp... | [
"dayatmrh@gmail.com"
] | dayatmrh@gmail.com |
483f2c946159fb76dd85f4dbc28b7f76987bf6c2 | 8abd41c76c4b9ec29299748b42fb43c92cdd29c6 | /scripts/script_ordrs.py | f28137f2ec6ccebcb8ef87f99d53e1f15ebee81f | [] | no_license | s1lv3rus/mrpit | 5c50cbb7bc95e00da6a918ccdf71a267145810a9 | ed247764cd6f1c7e51d6dc05a6646472a3f3c22a | refs/heads/master | 2021-02-27T01:27:15.748134 | 2020-07-13T16:11:21 | 2020-07-13T16:11:21 | 243,486,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | import os
import django
from django.conf import settings
# settings.configure(
# INSTALLED_APPS=[
# 'django.contrib.auth',
# 'django.contrib.contenttypes',
# 'django.contrib.sessions',
# 'easy_thumbnails',
# 'orders',
# 'shop',
# 'coupons',
# 'accou... | [
"john_k@inbox.ru"
] | john_k@inbox.ru |
2799157d96b71ff3615a6ab9753f9497cd1bee80 | e13cd9a8a53a3d688bcc2621c18e4d0ce79fabcb | /legacy_code/process_back_test_can_1.py | 23c21ce071369a7039cd23115f6fb210432d302f | [] | no_license | renewday/sds | 2d59560515e67dcc84cb259b61e52ccf08f362f0 | 167b5fe6d1533506e104981c9beffdec4d274a0f | refs/heads/master | 2020-04-03T15:34:20.487630 | 2016-06-23T01:14:06 | 2016-06-23T01:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,401 | py | import os
import copy
import math
import sys
import matplotlib.pyplot as plt
import datetime
from scipy.signal import argrelextrema
import numpy as np
sys.path.append("../emd_util")
from generate_emd_data import generateEMDdata
from analyze import *
from spline_predict import linerestruct
from emd import *
from leas... | [
"thunderocean@163.com"
] | thunderocean@163.com |
dda22826a3fe9a31734e8493f8266e7652b50549 | 5c6a1c0d7fc61c13f3c5b370f4c07542ddfbb582 | /others/ODES/orbit_adaptive.py | c0f442686a2211dd2f07d297c6eea1163c5a2d34 | [
"Apache-2.0"
] | permissive | hbcbh1999/Numerical-Methods-for-Physics | 7afab39eb3171ce22ebbad8bdced8d9e0a263607 | 77c41fdf6184fe15fd6b897c3472f2bc00e4347c | refs/heads/master | 2021-01-12T01:28:40.519633 | 2014-03-20T15:32:37 | 2014-03-20T15:32:37 | 78,389,812 | 6 | 4 | null | 2017-01-09T03:19:33 | 2017-01-09T03:19:32 | null | UTF-8 | Python | false | false | 7,089 | py | # orbital motion. We consider low mass objects orbiting the Sun. We
# work in units of AU, yr, and solar masses. From Kepler's third law:
#
# 4 pi**2 a**3 = G M P**2
#
# if a is in AU, P is in yr, and M is in solar masses, then
#
# a**3 = P**2
#
# and therefore
#
# 4 pi**2 = G
#
# we work in coordinates with the ... | [
"steinkirch@gmail.com"
] | steinkirch@gmail.com |
f322456e61d1ce1064e068062a561229710d23c8 | eb3e04d2ccfecd7a5a3a7591c4114cd096960444 | /Session2/Homework_2.py/Ex_1_part1.py | 2bd4e0a2fd06352dcb32129ca570e4758f20a564 | [] | no_license | Sheepp96/ngoquangtruong-labs-c4e17 | a5e7ca08dd2a119d2e959c1d6f53b7e4ac98cdcd | bcbbc1c80c0833d19ba64b0831944b3d9e57f160 | refs/heads/master | 2020-03-14T12:16:21.350164 | 2018-05-06T21:45:49 | 2018-05-06T21:45:49 | 131,607,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import pyexcel
url = "https://www.apple.com/itunes/charts/songs"
itunes = urlopen(url)
raw_data = itunes.read()
text = raw_data.decode("utf-8")
# print(text)
# itunes_file = open("iTunes.html", "wb")
#
# itunes_file.write(raw_data)
#
# itunes_file.... | [
"quangtruong23121996@gmail.com"
] | quangtruong23121996@gmail.com |
c324f37dd274611a14446f37ed1cae6253176e5e | bf5dba3703e617367f900290053bfd0820599c4b | /models/item.py | beb652a86f4314e5a8aa36a4843aa6e2b57ce806 | [] | no_license | ashenoy95/flask-rest-api | 8d1460f0bdec6f942db409baad25cec35cc2b519 | 608dad93ad67d75d46f77c09d778f11ae6191078 | refs/heads/master | 2020-03-18T04:35:36.829308 | 2018-05-21T20:10:52 | 2018-05-21T20:10:52 | 134,295,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | from db import db
class ItemModel(db.Model):
__tablename__ = 'items'
id = db.Column(db.Integer, primary_key = True)
name = db.Column(db.String(80))
price = db.Column(db.Float(precistion=2))
store_id = db.Column(db.Integer, db.ForeignKey('stores.id'))
store = db.relationship('StoreModel')
... | [
"aniketshenoy@Anikets-MacBook-Pro.local"
] | aniketshenoy@Anikets-MacBook-Pro.local |
5306a2f64af4a94ca1b18c60aedf583b89749974 | 875bb84440094ce058a2ec25a661a7da6bb2e129 | /algo_py/boj/bj5648.py | 711657eeb72989ec9d754ee49844ee659979c08d | [] | no_license | shg9411/algo | 150e4291a7ba15990f17ca043ae8ab59db2bf97b | 8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d | refs/heads/master | 2023-06-22T00:24:08.970372 | 2021-07-20T06:07:29 | 2021-07-20T06:07:29 | 221,694,017 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import sys
num = []
while l := sys.stdin.readline():
num.extend(map(lambda x: int(x[::-1]), l.split()))
[*map(print,sorted(num[1:]))]
| [
"shg9411@naver.com"
] | shg9411@naver.com |
23ed19f180ca862dc0a8093f7326e0ac5d9e25c4 | 72c1ff4b6011d3079f3cafcc03d4b8486b9ebff8 | /script/release/const.py | 77a32332a7f21a187815ab1d41b8d0752f6f6afe | [
"Apache-2.0"
] | permissive | joehattori/compose | a69fda37d03215528765835b180c9aeff9a09f5e | f973300ee4882bfdc7f147fb178285905cdd6564 | refs/heads/master | 2021-08-01T11:54:48.086026 | 2020-04-18T16:49:58 | 2020-04-18T16:49:58 | 256,413,377 | 2 | 0 | Apache-2.0 | 2020-04-17T05:50:34 | 2020-04-17T05:50:33 | null | UTF-8 | Python | false | false | 156 | py | from __future__ import absolute_import
from __future__ import unicode_literals
import os
REPO_ROOT = os.path.join(os.path.dirname(__file__), '..', '..')
| [
"ulyssessouza@gmail.com"
] | ulyssessouza@gmail.com |
58713ebf73bc5d5e923bc7cbe4bdf338fc223e22 | 61ee5a4a22473a971e606ff632882f4297e34bf0 | /spec/spec_helper.py | a098cdb13822ac08edd54a817064aec566cf22f6 | [] | no_license | chapuzzo/beehive | 54ae8f33719402076c6c69097a6e8695dc0402b4 | 9339478fd292c167d67da92d35a46472e361a2b9 | refs/heads/master | 2022-12-01T08:55:18.214587 | 2020-07-29T22:17:38 | 2020-07-29T22:17:38 | 282,888,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | def configure(settings):
settings.format = "documentation"
| [
"luismax@gmail.com"
] | luismax@gmail.com |
59c1c659414fc3fa585ebfda8f86b48cc7304068 | 17b1f1fd513dab8547a9927b55734cdd258989f7 | /setup/settings.py | e1915bedb97c60c09926c1ad96f64b94d907422f | [] | no_license | claudia-duda/make-travel | 33a666509e7869b95ce1d91170bf05b9a1a0a41e | 08fe123531b327290f8dcc804960378deaffd148 | refs/heads/master | 2021-05-22T00:35:13.476073 | 2020-04-10T21:09:17 | 2020-04-10T21:09:17 | 252,886,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | """
Django settings for setup project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# B... | [
"claudiaeduarda_duda@hotmail.com"
] | claudiaeduarda_duda@hotmail.com |
0649845e37a97afb6152e3dcbb1a70857a7eb69e | b92029c56944c18dde02e99a2bded72655d69684 | /3 - Python Control flow/TryExceptElseFinally.py | 8d0c83e9d549b2033e50f8015e04031345466b1e | [] | no_license | chris9361/GNS3Academy | e0075c9f9f37c9192779704f2cd1878971a2b6a5 | 87e004e1a68704b8370777e0f09d5a22192535e5 | refs/heads/master | 2016-08-11T16:54:49.506870 | 2016-02-01T04:41:40 | 2016-02-01T04:41:40 | 45,660,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | for i in range(10):
try:
print(i / 0)
| [
"chris9361@gmail.com"
] | chris9361@gmail.com |
bdbc4de72e4acd1c958e4f4da2101fd47653caa2 | 96d73c74074f7a290b06cd528cd2379bca72f84d | /venv/bin/python-config | be907671c3be11912ea1913330d29d5a6ae3273e | [
"MIT"
] | permissive | maurinesinami/Blog | d860d83f48b86fb6548e67ad252ba4d1c75d1219 | a64515ead7e16098e7fd12d109adb25484880dca | refs/heads/master | 2023-02-05T17:01:51.068462 | 2019-06-03T12:40:33 | 2019-06-03T12:40:33 | 189,954,092 | 0 | 0 | null | 2023-02-02T06:27:57 | 2019-06-03T07:15:19 | Python | UTF-8 | Python | false | false | 2,341 | #!/home/maurine/Blog/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >= (3... | [
"maurinenami"
] | maurinenami | |
cfb95f9e613602ae0da566205f830dd5adf0eb0d | 15001cc540262b37afb15bb0aae7b47987eca368 | /expense.py | ce67237c188348722d6ff0c17b9ff3983ae5028d | [] | no_license | AmaRocket/Console-Expense-Tracker | db348d33d7c99ec8631ce9dd327373ab1b7f110b | 61c8c027519e2a48825afb069aa6a3faf3da0bd3 | refs/heads/main | 2023-08-24T08:15:26.811394 | 2021-10-27T18:56:11 | 2021-10-27T18:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | #from expense import Expense
class Expense():
favs = [] #class
def __init__(self, title, cost):
self.title = title
self.cost = cost
def is_short(self):
if self.cost < 100:
return true
#What happens when you pass object to print?
def __str__(self):
retu... | [
"noreply@github.com"
] | noreply@github.com |
8acd7bf9763935665eee0ec758a5151b18b89deb | 8702f6de78838bfac93406b0ce842ffdd0d63ed3 | /karta/apps.py | 4ee0ea5060136c83db1c2b6b5bb157851a028f8b | [] | no_license | nebnola/django-karta | 144b521e055625e9b871742ae8b6767142d7d7f2 | a736484dff8ba86defeecf91df5bf973a85ef28f | refs/heads/master | 2023-03-16T12:07:08.632004 | 2021-03-13T16:10:06 | 2021-03-13T16:10:06 | 291,556,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class KartaConfig(AppConfig):
name = 'karta'
| [
"fpagenk@posteo.de"
] | fpagenk@posteo.de |
0b2bc23d854c504cde18035e6dcee98ede072e0b | 66d5fea33d508c58027e5bbe8f9ef14f8d9a0720 | /src/mplib/scripts/python/pricing/gen_features.py | 32729beada71547dcb8ce06ddd27e73e31617e2d | [] | no_license | mpdevs/mplib | 15b64855f69e24652234fc047492a95ccf562363 | 69428979f4aa4e88d767419ed5a3624cd5ce7b55 | refs/heads/master | 2021-01-11T19:05:33.644004 | 2018-08-13T06:58:32 | 2018-08-13T06:58:32 | 79,313,702 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,513 | py | # coding: utf-8
# __author__: u"John"
from __future__ import unicode_literals, absolute_import, print_function, division
from mplib.common import time_elapse
from mplib.IO import Hive, PostgreSQL
from mplib import *
# @time_elapse
def gen_attribute_dictionary(out=False):
sql = """
DROP TABLE IF EXISTS elengji... | [
"keyps2@icloud.com"
] | keyps2@icloud.com |
e1c1d9186887dfc42c54deea365e8b576078468c | 93411d56254152ceeb6a4ec53569739125bd341f | /decryptM/pg_transform.py | 49e0703d8d0328d93010dea2aeee9fbd63ca80fc | [
"MIT"
] | permissive | kusterlab/decryptM | 274d4938c5a48f5d464e5cd243758ddd6a35bb05 | 38be047632fc315b12849596b7a83cd45a3b4021 | refs/heads/main | 2023-04-17T02:50:44.303425 | 2023-03-17T15:07:51 | 2023-03-17T15:07:51 | 523,340,827 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,069 | py | # pg_transform.py
#
# This script transforms the proteinGroups.txt file such that it can be fed into the decryptM pipeline.
# the output file will be placed next to the input file with the suffix restructured.
#
# Run this script as follows:
# $ python ./decryptM/pg_transform.py <in_path>
#
# Florian P. Bayer - Aug. 20... | [
"f.bayer@tum.de"
] | f.bayer@tum.de |
be8bf06c98b127071c3bd8602c14953a4da04ff1 | 7dba849f9a2560eca783e131a1f6396e92a6c710 | /bimeta/utils/read_json.py | f13088a219ae955a04cd0ddcffd51ba7141139ef | [] | no_license | dhuy237/BiMetaReduce | 9c7552c056bb7c794aa4e0f315948baa4edc3c24 | e9fc6bc28915cd73546e8b8cf589cfea08cc44ac | refs/heads/main | 2023-07-17T13:38:30.436794 | 2021-08-28T03:34:35 | 2021-08-28T03:34:35 | 345,863,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | import json
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--overview", help = "Input result file")
parser.add_argument("-t", "--time", help = "Output overview file")
args, unknown = parser.parse_known_args()
def readjson(data_path):
with open(data_path) as f:
content = f.readline... | [
"d.huy723@gmail.com"
] | d.huy723@gmail.com |
6d3f9120d7ff8e38f5cc3971b301af9878ccebd2 | 48fb4f0d890e837e61fe780718db392d4ca60956 | /feature_engineering/tokenized_features.py | 256a8a0cf765cc0a7173b9edb1c2cd383cd78b9e | [] | no_license | piiingz/fake-news-detection-weak-labeling | 50fcf9528628e2b08eba32b5445c2199fff92ba2 | c5c80f297bc096c2340f14324e7ec052b47b04ea | refs/heads/main | 2023-05-19T06:43:04.404832 | 2021-06-08T00:33:43 | 2021-06-08T00:33:43 | 374,820,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,100 | py | # -*- coding: utf-8 -*-
import re
import string
import nltk
import pandas as pd
from nltk.corpus import stopwords, wordnet
from nltk.stem import WordNetLemmatizer
PUNCTUATION = string.punctuation + '“”‘’-—–'
cleaning_regex = r"\w+s['´’]|\w+[-'´’.]?\w+|\w"
lemmatizer = WordNetLemmatizer()
def word_tokenize(subset:... | [
"ingviun@stud.ntnu.no"
] | ingviun@stud.ntnu.no |
a1398e72331ed024c65e651bab8b0f93a3cdaabe | 5c1e20754147ea87092d838102d1911f0a4bb873 | /brench/configure/RHS2007_config.py | 172eeb259db8a1876c3c52b83dee347ff3f38553 | [] | no_license | computational-psychology/BRENCH | be27841aae5e8c0cf4249a11733a919da1bcd686 | b4ab972bafd3470c2d8504a2ec41943622f7419f | refs/heads/main | 2023-08-04T23:37:16.900283 | 2021-09-30T08:06:55 | 2021-09-30T08:06:55 | 391,087,987 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | # Models
from brench.utils.adapters import ODOG_RHS2007, LODOG_RHS2007, FLODOG_RHS2007
# Stimuli
import stimuli.papers.RHS2007 as RHS_stimuli
# Evaluate
from brench.evaluate import (
calculate_targets_difference,
create_RHS_table,
plot_all_outputs,
save_plot,
)
# Where does this config save, by defau... | [
"joris.vincent@gmail.com"
] | joris.vincent@gmail.com |
06776326c22ac5d4bea6379e03a85e21cdc42f22 | 83c56567d72321616ae9933cbd199f935667289c | /age_distro/import_and_align_datasets.py | 8b8f24360294ff8f2799ff80497c95866a9fe4cc | [
"MIT"
] | permissive | bmcmenamin/sundries | 6aed7c34f3eba64eb0f0d3126a151483f12fa4df | 6834975860ec8e9b67c0763b85f3ff9f25bd0bea | refs/heads/master | 2023-07-03T00:08:57.476108 | 2023-06-12T01:12:25 | 2023-06-12T01:12:25 | 111,054,544 | 1 | 0 | MIT | 2023-02-11T00:31:04 | 2017-11-17T03:46:14 | Jupyter Notebook | UTF-8 | Python | false | false | 6,939 | py | """Functions for analysis of US census Age data"""
import os
import datetime
import numpy as np
import pandas as pd
MAX_AGE = 110
RESAMPLE_AGES = list(range(0, MAX_AGE + 1))
TARGET_AGES = list(range(0, 101))
# Tell pylint that I'm going to have some bad variable names...
#pylint: disable=C0103
#
# These are all ... | [
"bmcmenamin@gmail.com"
] | bmcmenamin@gmail.com |
b9756921bb9a50de8cccbc176675586bacc00e65 | 9326f8ba4a3299390f92df47b886a7a3049d5740 | /UniqList.py | 4b7d8280c79370bfcde6d5b43c4c098edeae560c | [] | no_license | probbe/python_u | 494b2592744a26dee3f8e125175bdfe7f3afe18d | c9481793691a5e4877d129cf048cfa49853111be | refs/heads/master | 2020-05-30T04:19:36.826707 | 2019-06-05T07:23:37 | 2019-06-05T07:23:37 | 189,533,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #function that takes a list and returns a new list with unique elements of the first list.
def unique_list(lst):
new_list = []
for i in lst:
if i not in new_list:
new_list.append(i)
print(new_list)
| [
"pauline.robbe83@gmail.com"
] | pauline.robbe83@gmail.com |
c486f32a10370faf275979eb17b475677699331f | eafd3737aea211d81677a562d358418225794b5a | /col/logic/window_graph_show_all_logic.py | fb6c296886d35b37dd3429244655c255a006aad1 | [] | no_license | ZemelZhao/col_new | ffcd5e7c8985fea7ddd34d871e72e3fb86038c58 | 739c647c4a40cec92e0ff10dba2eba59fdf40edb | refs/heads/master | 2020-06-20T01:41:02.550592 | 2019-08-01T08:23:01 | 2019-08-01T08:23:01 | 196,945,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,678 | py | #!/usr/bin/env python3
import sys
import os
try:
myFolder = os.path.split(os.path.realpath(__file__))[0]
sys.path.append(os.path.join(myFolder, os.path.pardir))
from windows.window_graph_show_all import WindowGraphShow
from base.log import Log
from base.conf import ConfigProcess
from base.val i... | [
"zemzhao@163.com"
] | zemzhao@163.com |
5d907bdb499d51effbfb87a703e1821057c4b768 | 04f575cc829557c367e4382ae482f894f7ab2a7f | /Chapter 2.3/Cash Register.py | f361a0aa82535ce93328aee29931a69eba5461e8 | [] | no_license | IsaacLeh1/In-class-examples | eddd4e97cb1e8628610422482951a8c9a3a656b1 | 2266f1620280186dcad9d55171fabab31452b303 | refs/heads/master | 2020-07-18T03:24:00.528340 | 2019-09-09T19:36:23 | 2019-09-09T19:36:23 | 206,164,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | #Isaac Lehman
#9/19
#Cash Register
#Amount of items
numItems=8
#Item cost
costPerItem=11.3
#Total before tax
subTotal= numItems*costPerItem
#Tax rate
taxRate=0.07
#Tax amount
taxAmount= taxRate*subTotal
#Total price
totalPrice=taxAmount+subTotal
print()
print(" SALES RECEIPT")
print("Number ... | [
"noreply@github.com"
] | noreply@github.com |
7f2ab6c1bdbd251b25752a7629109fcb73413d66 | 4e353bf7035eec30e5ad861e119b03c5cafc762d | /QtGui/QWhatsThis.py | 5b6146b3bf483cf8974d8bf69fddaa4d3f5f1a53 | [] | no_license | daym/PyQt4-Stubs | fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5 | 57d880c0d453641e31e1e846be4087865fe793a9 | refs/heads/master | 2022-02-11T16:47:31.128023 | 2017-10-06T15:32:21 | 2017-10-06T15:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | # encoding: utf-8
# module PyQt4.QtGui
# from C:\Python27\lib\site-packages\PyQt4\QtGui.pyd
# by generator 1.145
# no doc
# imports
import PyQt4.QtCore as __PyQt4_QtCore
class QWhatsThis(): # skipped bases: <type 'sip.simplewrapper'>
# no doc
def createAction(self, QObject_parent=None): # real si... | [
"thekewlstore@gmail.com"
] | thekewlstore@gmail.com |
e26bbee8f6e01a098ea626278a4af569234e5b69 | c7cbd8c1757309d65927d45da88ab6a2838d7efb | /graph_builder/.ipynb_checkpoints/graph_builder-checkpoint.py | 9fba64d3a627106fa5f8d0793e5ed5e0f1412c91 | [] | no_license | marta-kryven/decision-making | 17b3182d19de58434bc91e5b01c0be737da9b1f7 | a12bb72cc99904ed385e9154fb9d0cf2e73a6618 | refs/heads/master | 2022-08-21T17:52:04.694332 | 2020-02-07T21:34:59 | 2020-02-07T21:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,235 | py | #!/usr/bin/env python
# coding: utf-8
# In[20]:
import pandas as pd
import networkx as nx
# In[25]:
def build_graph(file_path):
graph_data_frame = pd.read_csv(file_path, sep='\t')
graph_data_frame['PARENTID'].fillna('X', inplace=True)
G = nx.DiGraph(world=graph_data_frame['world'][0])
edge_list ... | [
"ronald1andres2@gmail.com"
] | ronald1andres2@gmail.com |
77a95a3c09a93235489b0f1ca8e4b6cf32f15f22 | ac940d34e2419bf0d217b6444b4a79aa6472d80a | /botgw.py | aff121eb2a45172092133395988b18bd354bd2b8 | [] | no_license | dhifa/publik | 4f4b561b89152ae48785bce45814f8e376fd0bce | 4ad6162139ef980e73b9912d63622ec866f3f912 | refs/heads/master | 2020-03-10T21:58:18.441694 | 2018-04-15T12:28:30 | 2018-04-15T12:28:30 | 129,607,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131,178 | py | # -*- coding: utf-8 -*-
import LINETCR
from LINETCR.lib.curve.ttypes import *
from datetime import datetime
import time,random,sys,json,codecs,threading,glob,re,requests,urllib
from gtts import gTTS
import goslate
#kk = LINETCR.LINE()
#kk.login(qr=True)
#kk.loginResult()
cl = LINETCR.LINE()
cl.login(token='ISI TOKEN... | [
"noreply@github.com"
] | noreply@github.com |
3f02f558cd539b1a53d735cb00631e0c665d8264 | c557490fec13987c8e1e034914a3bd2acc7b1fa6 | /futuTest.py | 50c112a3a631878a9b83c723879cdf6f8e0865f3 | [] | no_license | manpakhong/futu | 89223e0a85c3fd4ad9f0acbec542116fcfa05356 | 08dc0ca74cc66c6ece42dd8a67617c56bb9fbcf7 | refs/heads/master | 2023-04-10T19:57:59.461091 | 2021-03-28T08:38:39 | 2021-03-28T08:38:39 | 352,279,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from futu import *
from futu.common.constant import ProtoFMT
from futu.common.sys_config import SysConfig
from futu.quote.open_quote_context import OpenQuoteContext
SysConfig.set_proto_fmt(ProtoFMT.Protobuf)
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
quote_ctx.close() | [
"manpakhong@hotmail.com"
] | manpakhong@hotmail.com |
7050bb6bc1a7734574676490ee4953612827d387 | c1f1d7e37a059719a0cec3ec29a927b5bd70096c | /maheshblog/wsgi.py | adf6f44ef961a499a3275016f6181ee657450692 | [] | no_license | hellodjangodev/maheshblog | 436ab17bbaad2133d666dec50bb21de774f753fa | 8d1fd5351a98a6ef64e4036ffa64c86f0da2c288 | refs/heads/master | 2021-01-13T12:46:49.716342 | 2016-11-06T12:51:47 | 2016-11-06T12:51:47 | 72,333,088 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for maheshblog project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"info@hellodjango.com"
] | info@hellodjango.com |
a7e57c370cdd942ba3edee059b279d2474ce76b3 | 31c50ab5729ee999698f0683c7f893a11c994269 | /home/migrations/0002_load_initial_data.py | b3b1bef16fb9c537436e22c7f4f5835b367fe7f8 | [] | no_license | crowdbotics-apps/regi-test-20062 | e86c2eeabb0156f17c7046820452fa8249ffb8f6 | 3089a7ccf13444fbdaedb40b02b9347ed7338010 | refs/heads/master | 2022-12-09T00:20:00.701341 | 2020-09-06T11:46:38 | 2020-09-06T11:46:38 | 293,265,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Regi Test"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bbf399a94e325f9bc2091e29633b06ec8093eecf | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/lblearnedinfo_ec56ce29319e76b0e1d8451951f052e6.py | e78c3385472f2daf5a117b909eb5acbcc9efa81a | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 5,389 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
05cb777d97858a32f8cf5f9222032ac3890a3fca | f2744afe34a855538a0d50ed90f608aba1adfded | /demo/day01/condiction_demo.py | 241d6e7ca3865df9531f1c93c7b8a83b7c80e3bf | [] | no_license | tiangaoyuan/gy-1908 | 4417054acaf04644c9a7ff76c7f62f794c90bbe7 | d7b5bffc38d073f68a76932c486e21074ee8fccc | refs/heads/master | 2020-07-22T12:51:28.177705 | 2019-09-09T02:55:31 | 2019-09-09T02:55:31 | 207,207,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#__title__ = ''
#__author__ = 'tiangy'
#__mtime__ = '2019/9/4'
# 大于>
print(1>0)
# 小于<
print(0<1)
#等于 =
print(1==0)
# 不等于 !=
print(1!=2)
#大于等于 >=
print(3>=2)
#小于等于 <=
print(4<=5)
# 字符串 列表 元组 == !=
a = "sssss"
b = "sssss"
print(a == b)
print(a != b)
# 成员判断 列表 元组 字典 ... | [
"2609628575@qq.com"
] | 2609628575@qq.com |
323dc9dfafaaecd399097690749c647753a3ee63 | 2699b6508febc0fddde5520c5498000746eee775 | /metadata/ns_swe20.py | 6c5a30471dad8351f5968fbd06f135d5c361138e | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | DREAM-ODA-OS/tools | e1c71ddb65c255dc291a1e10778b461f32e1b017 | 66090fc9c39b35b4ef439d4dfe26ac1349d9c5f2 | refs/heads/master | 2021-01-19T02:13:59.489229 | 2017-11-18T10:27:25 | 2017-11-18T10:27:25 | 18,381,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | #------------------------------------------------------------------------------
#
# SWE v2.0 namespace
#
# Project: XML Metadata Handling
# Authors: Martin Paces <martin.paces@eox.at>
#
#-------------------------------------------------------------------------------
# Copyright (C) 2013 EOX IT Services GmbH
#
# Permi... | [
"martin.paces@eox.at"
] | martin.paces@eox.at |
ddbe3b1221e0d27a64420716af0e3bfee97cf468 | cf6dfa53794cdbbae329c1eb9958141bd414531a | /start.py | 737cd2cf82b8c04ff95eac6e4802ce3c0824768d | [] | no_license | GuillaumeDerval/AIA-demo-runner | 02f3c43f1d63ce9d1e0c7fcd5f62aa81637f4935 | 71dd7e3670ae44455c8c390d72d1ff56da7142e2 | refs/heads/master | 2020-04-28T18:03:11.766563 | 2019-03-13T20:06:59 | 2019-03-13T20:06:59 | 175,466,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import os
import aiohttp_jinja2
import jinja2
from aiohttp import web
from bib_export import bib_all
from demo_list import demo_handlers
@aiohttp_jinja2.template('index.jinja2')
async def index(request):
return {
"demos": demo_handlers,
"load": os.getloadavg()[2],
}
app = web.Application()
a... | [
"guillaume@guillaumederval.be"
] | guillaume@guillaumederval.be |
806aafba29200df2df3c313dac71be67ff50c92d | 7015d619220cb020919d0a2ebe43b7433d4c928e | /extras/UDPReciver.py | be66462f88998e78f05a536d249187174edd41b4 | [] | no_license | vinicius741/integradoras5 | d768137a902df4b37410e47b7d6c476752bf7b0d | f60f0cfe1cc7cd284d32d336d190b6f3f2d6edf5 | refs/heads/master | 2020-03-19T10:29:02.741577 | 2018-06-21T18:35:30 | 2018-06-21T18:35:30 | 136,375,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import socket
UDP_PORT = 555
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind(('', UDP_PORT))
while True:
data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes
print ("received message:", data.decode()) | [
"vinicius741@gmail.com"
] | vinicius741@gmail.com |
8437f6181538d26b696fd736237986f5361a9524 | fa2ffc5487bef8240a1a5c7cfb893c234df21ee0 | /ormproject1/ormproject1/urls.py | 84231ae88dbbf078c2576b57e4b5aaff759cc7e0 | [] | no_license | sandipdeshmukh77/django-practice-projects | cfd4d8f29aa74832ed3dc5501a651cba3f201251 | 78f9bd9f0fac4aaeecce4a94e88c6880e004b873 | refs/heads/main | 2023-02-11T05:59:28.029867 | 2020-12-29T22:12:52 | 2020-12-29T22:12:52 | 325,446,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | """ormproject1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"sandipdeshmukh77@gmail.com"
] | sandipdeshmukh77@gmail.com |
1542e621e2e1755202713037bb1e522811c24c36 | f295416b1d82d46ee9320347d690c81d82313a2c | /mtools/test/__init__.py | 4d0d1f9b034ff8b8db4080bc98f3934a192a1783 | [
"Apache-2.0"
] | permissive | zhaoyi0113/mtools | 16e8d0cf01c30dc1049badb49944df04d6cae4a7 | 5914c224454f9d56f7f4171d427724c427b5d1ef | refs/heads/develop | 2021-01-02T23:08:26.934381 | 2017-09-14T05:21:37 | 2017-09-14T05:21:37 | 99,473,006 | 1 | 1 | null | 2017-09-14T05:21:38 | 2017-08-06T08:10:34 | HTML | UTF-8 | Python | false | false | 38 | py | from test_all_import import all_tools
| [
"thomas@10gen.com"
] | thomas@10gen.com |
52bd7198fb464a80818244f6fff668ca8bf4108b | d725a070fe906092a4e3435a9e46569644904494 | /docs/use_cases/model_applications/s2s/UserScript_fcstS2S_obsERAI_CrossSpectra.py | 8733d24c417960bee46a9f20acc606c9f63f1248 | [
"Apache-2.0"
] | permissive | dtcenter/METplus | 3721fbace99bf8be5b5c073ced6afa2cea026987 | a666ac3b58d19f04249f76c9340f2e4a4a27939b | refs/heads/main_v5.1 | 2023-08-31T11:22:37.097852 | 2023-08-03T12:59:18 | 2023-08-03T12:59:18 | 66,569,441 | 41 | 37 | Apache-2.0 | 2023-09-14T19:13:57 | 2016-08-25T15:19:30 | Python | UTF-8 | Python | false | false | 5,370 | py | """
UserScript: Compue Cross Spectra and make a plot
========================================================================
model_applications/
s2s/
UserScript_fcstS2S_obsERAI_CrossSpectra.py
"""
#################################################################################
# Scientific Objective
# -----------... | [
"noreply@github.com"
] | noreply@github.com |
326d98fd62a2fa1ab95a1a32bb4cb2798e745c36 | c0ffaffb793f89a8e45cd754c72408fe655fa7de | /postgres_project/urls.py | 8821343ba4ef0c9fba31ce0e2343bcd5d44e0bd0 | [] | no_license | TimeMachine00/profChap2 | a96a94a004db6c37232ba1f94d4253a56a2a06d1 | 5ba797ef1c610da6fde6d409a801ba29243c586b | refs/heads/master | 2023-01-06T23:52:25.703551 | 2020-10-11T05:00:15 | 2020-10-11T05:00:15 | 303,045,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | """postgres_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Cl... | [
"ai.py.syed@gmail.com"
] | ai.py.syed@gmail.com |
2e4cf249bffeafb7362389b88ced3f19b54073bd | e97ac2958be53c6e426eb63afd70a022c54a9414 | /node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | 577569044f450db95a88851a8b0cb694905e6abe | [
"MIT"
] | permissive | Namanlashkari/Dashboard-Angular8 | 1d42d9812e458cf38eafb99e2e9d399a153ae389 | d8f614a544ea15af969525959811ae4921d244d3 | refs/heads/main | 2023-02-04T13:19:54.782472 | 2020-12-25T10:38:23 | 2020-12-25T10:38:23 | 316,905,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,707 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"nlashkar@cisco.com"
] | nlashkar@cisco.com |
b90fccbacaa58a678e36447bb75a58160ba0a14c | cc244591f23b6a7fbbc02148b0d0b6c3606b4f49 | /build/common/cmake/autoware_build_flags/catkin_generated/pkg.installspace.context.pc.py | ca4c6d189e24da7a60ce0ebb2e3c0270b39a2dac | [] | no_license | kankan-sarkar/CARLA_ROS_SLAM | 2dfb4842840372944b37032e318bfe265128defc | 3ad5b174a44febf373478f586791039d2e4fb826 | refs/heads/master | 2022-12-20T13:28:37.563938 | 2020-08-31T06:23:32 | 2020-08-31T06:23:32 | 268,122,720 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "autoware_build_flags"
PROJECT_SPACE_D... | [
"trripy01@gmail.com"
] | trripy01@gmail.com |
5fce9d96448098fc349e8de274d42847db419566 | 15d164506d949a26c4a9b1231b79966ebd31834b | /DDPG.py | df8540706b5b3a832873d2a014af8b70fee56d0d | [] | no_license | sulagnag/Udacity-Deep-Reinforcement-Learning-p3-collaboration-and-competition | 87916521405b5b10a8f1efcefea9b2e0246d2add | 2513f13fe51311af638b2d4f2492a9b50cc1e18e | refs/heads/main | 2023-03-21T23:33:10.438496 | 2021-03-14T18:27:18 | 2021-03-14T18:27:18 | 342,344,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,425 | py | #ddpgagent
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import copy
import numpy as np
import random
from collections import namedtuple, deque
from model import Actor, Critic
from configparser import ConfigParser
device = torch.device("cuda:0" if torch.cuda.is_avail... | [
"noreply@github.com"
] | noreply@github.com |
ea603d8934329df1465b64261fe6511bbbd12638 | d485e1cacf2d889f1c86249ffef95a7af58ffe10 | /libs/fpm.py | bf2f9c1ee557a9e5a1de17b2f23e87121f98d67b | [] | no_license | yfsoftcom/python-auto-updater | bfa7952bd8a0835f575bc0244aee2b9e9bfb19ce | a129079868061cb6f0cb651ca59f633f792760c2 | refs/heads/master | 2020-12-03T03:37:42.847477 | 2017-07-19T09:56:32 | 2017-07-19T09:56:32 | 95,751,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import requests
import json
url = 'http://api.yunplus.io/api'
ping = 'http://api.yunplus.io/ping'
headers = {'Content-Type': 'application/json'}
class FpmLib(object):
def __init__(self):
pass
def ping(self):
r = requests.get(ping)
return r.json()
def call_func(self, method, params):
... | [
"yfsoftcom@126.com"
] | yfsoftcom@126.com |
67aa151920970c25f18981bdffb1eff81f15f7ea | 43284dd0d4b5b5bcdff244c34d8d84952f4f327a | /tkinter/tkinter7.py | cb04b1423d475c541a08f21ad72d2cc2cfb90295 | [] | no_license | devCronos/python-books-and-practice | cbe32034b5541fd77c168a125b65e8cfca762f34 | d45d41a936e1be46cc694341cb7c7481d9ef80a9 | refs/heads/master | 2021-01-18T22:28:45.209143 | 2017-04-03T09:20:07 | 2017-04-03T09:20:07 | 87,057,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from tkinter import *
root = Tk()
class ClauButtons:
def __init__(self, master):
frame=Frame(master)
frame.pack()
self.printButton = Button(frame,text="print message", command = self.printMessage)
self.printButton.pack(side=LEFT)
self.quitButton = Button(frame,text="quit"... | [
"claudiu.bargianu@gmail.com"
] | claudiu.bargianu@gmail.com |
a702e4b80caf7a516d063910b16df3193a3b12f8 | c7c1a7030ce94f9678fbb9c9e8469a9726592a0a | /server.py | 8f43ad1cccafa8117dc18e3aa062fcf936d5ae0e | [
"WTFPL"
] | permissive | giogodo/hydrus | a7e5d8a6b256109e914216d18efa2e4ed341ccf7 | 836ae13e1f80b02e063dac9829faaec0e5c89f89 | refs/heads/master | 2020-04-17T18:52:00.309884 | 2019-01-16T22:40:53 | 2019-01-16T22:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | #!/usr/bin/env python3
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COP... | [
"hydrus.admin@gmail.com"
] | hydrus.admin@gmail.com |
40321c8aa8913c80e5118db733f6dd041a180f2a | 7bee213f21b0bda96911833b5f41b66c5bf79602 | /blog/models.py | 1bb50557b8f08f0ce58e612c45ea574f6f9fd0f3 | [] | no_license | amansinha6189/Blogging-Website-Goalpost | 611dbc6800bc58c3e60546d1c38df0f1d58c2cbb | 178ff70b6df7d65e86190ff57c9cb644d6dd5320 | refs/heads/master | 2023-02-12T15:19:43.777121 | 2021-01-09T16:43:06 | 2021-01-09T16:43:06 | 328,200,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils.timezone import now
# Create your models here.
class Blog(models.Model):
sno = models.AutoField(primary_key=True)
title = models.CharField(max_length=100)
image = models.ImageField(upload_to='blog/images', defa... | [
"amansinha1729@gamail.com"
] | amansinha1729@gamail.com |
9cf4e517b9b2bab23985d8c610328520aad46532 | cd4b0e033d5e01c490be7954e6b99f89916f2b28 | /application/urls.py | 6a6f10114907b0c522c09923f085d30463f1599d | [] | no_license | hanakoro1192/twitter_product | 94d3275e0a141cabb753cd9b154200de04e5b7a3 | 0c59fd12e3edbce885e838dd870e2942b9ca9c8c | refs/heads/master | 2020-07-27T08:50:23.424883 | 2019-09-21T14:49:20 | 2019-09-21T14:49:20 | 209,035,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """application URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"csya18003@g.nihon-u.ac.jp"
] | csya18003@g.nihon-u.ac.jp |
d3044d1401b51802989ab12ea46e7f6a872eb0bf | 71a031c1e156ed6ec7b8514474ad5cc0e776efd9 | /script/SG1L-Capsule-DoubleArmV7A.py | 5c41addf0da723d220f4b86208398eff8d7375d5 | [
"BSD-3-Clause"
] | permissive | uoa-ws2020/uoa2020sg | 0b9fb8ab11f83db10f8f1d75ffc6a22f0cd8d995 | 018ad40d76ce5b44de15afbdaa8e9638605e4b0e | refs/heads/master | 2022-12-27T17:44:21.576823 | 2020-10-01T01:19:43 | 2020-10-01T01:22:07 | 295,605,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import WRSUtil
WRSUtil.loadProject(
"MultiSceneViews", "SG1L-Capsule", "AGXSimulator", "DoubleArmV7A")
| [
"noreply@github.com"
] | noreply@github.com |
6e382e0852866ec8d86491a31e8c05444282b1fe | e18e1f7b23cf2f143e3a448acd7568d841316043 | /resumemaker/pdf/migrations/0001_initial.py | 4e71575c83d2e6197aecd2f87d02782f0d25881e | [] | no_license | sandeepvaid/Resume_maker | c1395782dc4d70f6a4713b6cea15ecd46a3f1db8 | 62cc353b3b8896065cc6b95cb4ca7838a1b13afc | refs/heads/master | 2023-06-16T07:36:53.671061 | 2021-07-11T17:48:42 | 2021-07-11T17:48:42 | 385,016,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | # Generated by Django 3.2.4 on 2021-06-15 16:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Profile',
fields=[
('id', models.BigAutoFie... | [
"vaid77167@gmail.com"
] | vaid77167@gmail.com |
a4fbc5bdbec164a49f51911f92dd35fbcd08f049 | ab3810787b712d5c6f88eeceee1d47ae3341ed1a | /python/hamming/hamming.py | 204d38c866e12beb0fe28b9aa7859dbc47db5bfa | [] | no_license | deborahwalz/Exercism | cc156aaca3f55694479cc6e873dbf9e6c45e821c | c8c74e0abe81716c712a2f7fa4f197beae81d8be | refs/heads/master | 2023-04-15T19:17:31.289745 | 2021-04-30T17:13:51 | 2021-04-30T17:13:51 | 322,947,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def distance(strand_a, strand_b):
"""Calculate the Hamming Distance between two DNA strands."""
if len(strand_a) != len(strand_b):
raise ValueError("The Hamming Distance is only defined for sequences of equal length!")
return sum([a != b for a, b in zip(strand_a, strand_b)]) | [
"deborah.walz@gmx.de"
] | deborah.walz@gmx.de |
252411c3f8fbdc77719e7e62f136172d182be7f5 | e83bdb5da270e1e76257fc45e66a1f06e62440fa | /bayes.optim.py | bb7c6f017cdadd931f413525431d42530e9bc37e | [] | no_license | NaotakaKawata/shiritori | ae8c4c55a4137379000d585db2893cc4f861da52 | 98cff03412392274cb0bc86cf103be0f06dd12c3 | refs/heads/master | 2020-03-12T22:12:29.659777 | 2018-04-26T06:55:51 | 2018-04-26T06:55:51 | 130,843,025 | 0 | 0 | null | 2018-04-24T11:33:21 | 2018-04-24T11:23:16 | null | UTF-8 | Python | false | false | 2,718 | py | from __future__ import print_function
"""Example of how to use this bayesian optimization package."""
import sys
sys.path.append("./")
from bayes_opt import BayesianOptimization
import subprocess
import os
import json
# Lets find the maximum of a simple quadratic function of two variables
# We create the bay... | [
"noreply@github.com"
] | noreply@github.com |
5ac1dc504012a46748f6881e4b573dd64b89192d | 82709f514fbe94847f6f05a6ccd7a34c08fceaa0 | /lib/galaxy/jobs/runners/univa.py | 1afbed4e2c1a1ffcb7f2b9aa145bc77ec8db9c1a | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kelleyl/clams-galaxy | 72022781d295ff48806c11a1572e4b420e6d0a94 | 97ef5fed09d646999f2f60a8738f5c96fbdcb148 | refs/heads/master | 2022-12-11T06:02:41.615887 | 2019-09-30T00:29:55 | 2019-09-30T00:29:55 | 177,006,085 | 1 | 1 | NOASSERTION | 2022-11-14T22:39:09 | 2019-03-21T18:51:33 | Python | UTF-8 | Python | false | false | 34,726 | py | """
Kind of fail save job control via the DRMAA API.
Tested for UNIVA grid engine
known bugs/problems:
- if a job runs longer than the time limits of the queue two things happen
1. at the soft limit (s_rt) SIGUSR1 is sent to the job
2. at the hard limit (h_rt) SIGKILL is sent to the job
The second case is covere... | [
"m.bernt@ufz.de"
] | m.bernt@ufz.de |
e1be6cb81e9d66c660fafd0db382193191ef9e47 | 6b2db6fca8f31c4e6c96e68cf11e5ca3ce7e8a9b | /src/drawPerceptionAnaTimeSeries.py | 32382b65cd5bd0c0a5f3649d575b1d52a7cebdd3 | [
"MIT"
] | permissive | ningtangla/escapeFromMultipleSuspectors | e04da12488be9767c5b6511355c167fdcf18e723 | e6dcb0f7f9371b7ca6cca8779f69f18095092140 | refs/heads/master | 2022-05-03T05:25:21.556950 | 2022-04-20T13:51:53 | 2022-04-20T13:51:53 | 190,686,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,552 | py | from collections import OrderedDict
from collections import OrderedDict
import pandas as pd
from matplotlib import pyplot as plt
import itertools as it
import os
import trajectoriesSaveLoad as tsl
class Readcsv:
def __init__(self, getCSVSavePathByCondition, columnNames):
self.getCSVSavePathByCondition = g... | [
"ningtangzju@gmail.com"
] | ningtangzju@gmail.com |
7e674560d2a9be8aff0f294dad3f242b65276e81 | fd40d6375ddae5c8613004a411341f0c984e80d5 | /src/visions/core/implementations/types/visions_object.py | 4ca3062561d0563c83583f542943063a6f1c8e55 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | ieaves/tenzing | 93c3353e62621c90adefc5a174a2dcde9aacbc46 | 92d39c1c3a5633d8074e0ffe8c2687c465aebbc8 | refs/heads/master | 2020-04-25T07:14:31.388737 | 2020-01-07T02:51:13 | 2020-01-07T02:51:13 | 172,608,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | import pandas.api.types as pdt
import pandas as pd
from typing import Sequence
from visions.core.model.relations import (
IdentityRelation,
InferenceRelation,
TypeRelation,
)
from visions.core.model.type import VisionsBaseType
def _get_relations() -> Sequence[TypeRelation]:
from visions.core.implemen... | [
"ian.k.eaves@gmail.com"
] | ian.k.eaves@gmail.com |
e520cbdf38c10b43f9548d83aea07988ef8076c6 | 4ce2af8a8156389119bf6fcac36e85417f7a2506 | /exercises/07_django/country/country/settings.py | fd02641a243320d8fe9a7f35db7ff9f53aaacdf0 | [] | no_license | andeluvian/wsd2018 | 9d9064c3dc493c652e2db38bfdcc5036e416ce4e | bbfa76cabf95da34a4aa0fdfb7d8839cb53551e3 | refs/heads/master | 2023-01-22T14:49:47.915919 | 2018-12-02T19:02:55 | 2018-12-02T19:02:55 | 317,280,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,168 | py | """
Django settings for country project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"kenneth.forsman@gmail.com"
] | kenneth.forsman@gmail.com |
5db92d1494fb82d77ed3561379915f902da361d3 | 58b93b96c2a504899ec5b0752625004ae04518a7 | /src/cam_test.py | 6766923ab26771c1143fa689e1e1879f7555d5b1 | [
"BSD-3-Clause"
] | permissive | ashwinsushil/openmv_cam | 61c3f7999976dfcb7148d2d0d851458524515f20 | 07f66ccdff6a8377e85d8762845938f142872299 | refs/heads/master | 2022-01-09T00:00:47.866840 | 2019-06-02T17:01:05 | 2019-06-02T17:01:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | #!/usr/bin/env python2.7
# Python libraries
import sys, serial, struct, time, os, argparse
# Import OpenCV
import cv2
import numpy as np
def str2bool(v):
if isinstance(v, bool):
return v
if v.lower() in ('yes', 'true', 't', 'y', '1'):
return True
elif v.lower() in ('no', 'false', 'f', 'n'... | [
"accounts@wilselby.com"
] | accounts@wilselby.com |
9e10a3255e569f5c99b62dfd15ff7c9a47a55f21 | 121ae77d5a4410d1a74c4d2abb35910fc1ee501c | /aws/utils/common/awsinstancetype.py | c7b469aa16a28515700f7440369dab0d59b92be1 | [
"MIT"
] | permissive | warrenronsiek/emrcli | 6baee85a27c3106cc55ca31feccfb804f6c3d17c | 0874ae40be480e9f274867bc526fb6757b3db51e | refs/heads/master | 2020-08-02T23:01:45.357969 | 2019-05-10T19:24:55 | 2019-05-10T19:24:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,916 | py | types = {
"t2.nano": {"CPU": 1, "RAM": .5},
"t2.micro": {"CPU": 1, "RAM": 1},
"t2.small": {"CPU": 1, "RAM": 2},
"t2.medium": {"CPU": 2, "RAM": 4},
"t2.large": {"CPU": 2, "RAM": 8},
"t2.xlarge": {"CPU": 4, "RAM": 16},
"t2.2xlarge": {"CPU": 8, "RAM": 32},
"m4.large": {"CPU": 2, "RAM": 8},... | [
"share.code@aol.com"
] | share.code@aol.com |
35a8c74de378ac521d1c86e29ff4fb0fe804eba7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03829/s130253347.py | 369c68d33d9d4cee44e80bfa246abbd4af28f0be | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | n,a,b=map(int,input().split())
xs=list(map(int,input().split()))
l=[xs[i+1]-xs[i] for i in range(n-1)]
ans=[a*k if a*k < b else b for k in l]
print(sum(ans)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a9168fab23c53c2d5ff824a6eacc41714b899d47 | e05dc658cb37ff62e6fc8f53a60c9fcdf5806c7f | /Machine-Learning-A-Z/data_preprocessing_PROF.py | 45f71a312e23ea2fa1dbfe8ec9e5b0fbf06de1d8 | [] | no_license | Prof-DDP/Machine_Learning | ad2642e535e39b12c3713acba9af843928952186 | bd56bd654d29a11ba4783d5f2c3df01067c069f8 | refs/heads/master | 2020-03-25T06:13:20.595412 | 2018-08-04T21:26:28 | 2018-08-04T21:26:28 | 143,489,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | # Data Preprocessing
# Importing necessary libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
np.set_printoptions(threshold=np.inf) #so it shows the whole array when printing
# Importing dataset
dataset = pd.read_csv(r"Data.csv")
# Features and labels
X = dataset.iloc[:, :-1].values #t... | [
"dpoindexter20@centralcatholichs.com"
] | dpoindexter20@centralcatholichs.com |
db4228448c9798a962b2061d1469a89cdb804c90 | 3e74384cda370ae442bc020648c596ce90e7f1cf | /flask_appbuilder/tests/test_security_api.py | 63aa8861dbe2e609d49fd67d32e97c2a5cd62273 | [
"BSD-3-Clause"
] | permissive | thesuperzapper/Flask-AppBuilder | 846b34bb32768bd4f821fb4e8b73a09c8ba0d414 | 357c8100e96034c736860737a41c2004aa4e993b | refs/heads/master | 2022-06-23T05:06:17.059006 | 2022-05-25T10:16:23 | 2022-05-25T10:16:23 | 251,502,746 | 0 | 1 | BSD-3-Clause | 2020-03-31T04:46:27 | 2020-03-31T04:46:26 | null | UTF-8 | Python | false | false | 44,396 | py | import json
import logging
import os
from typing import List
from flask import Flask
from flask_appbuilder import AppBuilder
from flask_appbuilder import SQLA
from flask_appbuilder.security.sqla.models import Permission, Role, User, ViewMenu
from flask_appbuilder.tests.base import FABTestCase
from flask_appbuilder.tes... | [
"noreply@github.com"
] | noreply@github.com |
66b046fca4348342f44b6fccb8ee072e0a4f1306 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03696/s509896752.py | d2b5b083923b99b338db190c7478f534cf557b8f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | n = int(input())
s = input()
opens = 0
l = 0
for i in range(n):
if s[i] == "(":
opens += 1
else:
opens -= 1
if opens < 0:
l += 1
opens = 0
print("("*l + s + ")"*opens) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2631adf7b115733618830740b293385e2c8370be | af3cfe5378e2461172e003dee6671b6e5a348c64 | /python/EvaluationLV.py | d533804dea73c0e0c5c58fbf1e5844eec12e902d | [] | no_license | dparalen/cycle-evaluation | a6fc04067bed38075e78299d8647f9695f59c870 | 4092b769979dc38b06a5603f60c349dff29fe423 | refs/heads/master | 2020-04-25T18:34:49.268993 | 2012-02-01T00:07:25 | 2012-02-01T00:07:25 | 2,585,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py | #!/usr/bin/env python
#from Brent import CycleDetect
from Sven import CycleDetect
from Lotka_Volterra import LotkaVolterra2D
from Filter import ChFilter
from numpy import *
from multiprocessing import Pool
from matplotlib import pyplot
from Histogram import Histogram2D
import matplotlib
def simMap(X):
return LotkaVol... | [
"vetrisko@gmail.com"
] | vetrisko@gmail.com |
7824f1a34399e412abf45a090606e6f9607837a1 | 0eaab1305900d8e70dd746d676126d1667d9c314 | /scripts/cached_credentials.py | d2360fae08a54472419d0ad570e1d841faa8c3e2 | [
"Apache-2.0"
] | permissive | scudette/winreg-kb | 89ffc7f63c2630b266bed41d1c66dff64fd1d32d | f81b8bcaef8365d0c52bf3c87af2bccb4274bece | refs/heads/master | 2020-06-08T20:51:37.427445 | 2019-06-14T06:47:16 | 2019-06-14T06:47:16 | 193,304,780 | 1 | 0 | null | 2019-06-23T04:07:02 | 2019-06-23T04:07:02 | null | UTF-8 | Python | false | false | 2,497 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Script to extract cached credentials."""
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import logging
import sys
from dfvfs.helpers import command_line as dfvfs_command_line
from winregrc import cached_credentials
from ... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
f7c1ab4eed9429c83fbe7f22fcc0985716ff5de9 | 0b40a0f382dd8a9699365381515c453f92b06726 | /superlists/superlists/settings.py | e26c4fdb10cdf01afe719f53df3ca860735be5b0 | [] | no_license | xxping90/pydj | 5fe375b2f87fe992f4ff9d4e626d9f48b219663a | ec77e6150b622db687435ef9a3c0e41677bc554e | refs/heads/master | 2021-01-22T00:20:21.412766 | 2016-10-10T02:08:25 | 2016-10-10T02:08:25 | 68,585,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | py | """
Django settings for superlists project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os... | [
"xxping90@126.com"
] | xxping90@126.com |
e6d5c5787cd5b16c2b502a708e03751883318826 | bb7613ac275667f4c52579c09e8c8a386106bafa | /auctions_platform/foundation/foundation/value_objects/factories/__init__.py | 4a203a8ab9c3547169c2b04a6671157131e4cfa9 | [] | no_license | kod-kristoff/auctions-clean-py | fe25e44eb781d5685c93ac57005555c26e56f539 | cb087a32954d721621969d818e01f1a53ec6de1d | refs/heads/master | 2023-07-14T19:35:33.023484 | 2021-08-27T11:18:46 | 2021-08-27T11:18:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | __all__ = ["get_dollars"]
from .dollars import get_dollars
| [
"kristoffer.andersson@gu.se"
] | kristoffer.andersson@gu.se |
2eed9fb9929757c40a76ed6b04a89236a0aaf01a | 9e35335bb37acbe0c01be0a3d55cc20cfc297f9f | /dcodex_lectionary/migrations/0002_remove_lectionaryverse_unique_string.py | c41163993f060907ca7762bdacb8565eb87ccff1 | [
"Apache-2.0"
] | permissive | rbturnbull/dcodex_lectionary | abc95042ac7bce17f90c374592f05144994595df | 9a4787eb353d09fef023cd82af8859a7ee041aee | refs/heads/master | 2023-07-10T21:17:19.821852 | 2021-08-19T06:12:42 | 2021-08-19T06:12:42 | 208,526,419 | 0 | 0 | Apache-2.0 | 2021-08-09T01:12:50 | 2019-09-15T01:35:30 | Python | UTF-8 | Python | false | false | 343 | py | # Generated by Django 2.2.2 on 2019-09-19 12:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dcodex_lectionary', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='lectionaryverse',
name='unique_str... | [
"rob@robturnbull.com"
] | rob@robturnbull.com |
707087149193ea0d66da307d20b494b6c0a9119c | eb8c5326fe2a9b29e9dcae5c0f5ae5340255326a | /paddy/Default_Numerics.py | 2d3197898849424af6a0a3e182f4465c298f785d | [
"MIT",
"BSD-3-Clause"
] | permissive | chopralab/paddy | 566292591c64d03d5dd82595b278412a199e3282 | f7decc513c222850df76971389d0ca296423d199 | refs/heads/master | 2022-08-26T03:00:01.390406 | 2022-08-15T15:25:22 | 2022-08-15T15:25:22 | 224,104,348 | 2 | 2 | NOASSERTION | 2022-08-11T19:44:06 | 2019-11-26T04:44:57 | Python | UTF-8 | Python | false | false | 8,650 | py | """The :mod:`paddy.Default_Numerics` module contains functions for numeric
problems.
Routine listings
----------------
eval_numeric(object)
polynomial(object)
poly(x,seed)
trig_inter(x,seed)
mse_func(target, output)
gramacy_lee()
See Also
--------
:mod:`paddy.Paddy_Runner`
Notes
-----
The background information... | [
"beck117@purdue.edu"
] | beck117@purdue.edu |
9c3be53adb924fc8c126966bf2db5dc7e7196d27 | 7148de4a84b49f52973e774a502dc1355ef03b53 | /cspp1 Assignments/module 9/Odd Tuples Exercise/odd_tuples.py | 5361c1fe27d697d9535e50c499fcd8416f9c36f6 | [] | no_license | rohith-22/Test-project | 34a882fd61eecc64802d5da1073f5536072ffa2b | aad17f5b5bdd8278caebc9992bc5ec033d3475aa | refs/heads/master | 2020-03-24T17:24:03.163991 | 2018-10-24T09:39:31 | 2018-10-24T09:39:31 | 142,858,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | #Exercise : Odd Tuples
#Write a python function oddTuples(aTup) that takes a some numbers in the tuple as input and returns a tuple in which contains odd index values in the input tuple
def oddTuples(aTup):
'''
aTup: a tuple
returns: tuple, every other element of aTup.
'''
# Yo... | [
"rohithkottauppari@msitprogram.net"
] | rohithkottauppari@msitprogram.net |
97ef8b081ce63ae7f2b8f3e2cbde3222f722ea67 | a7e3a3f3d4d58f22f942eea37d1ed52fc8b15033 | /ping-pong.py | 487dd549f325250d8f70c9be4f74743ccfe44c97 | [
"CC0-1.0"
] | permissive | yorikkgg/Ping-pong-v1.2 | 2fba1107a652e3946a92d112472ffe929dafa9b1 | 767d00e6653b041585a61b5e599f04e0157dd034 | refs/heads/main | 2023-04-16T17:54:32.678920 | 2021-05-01T11:51:22 | 2021-05-01T11:51:22 | 363,396,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | from pygame import *
class GameSprite(sprite.Sprite):
def __init__(self, player_image, player_x, player_y, player_speed, wight, height):
super().__init__()
self.image = transform.scale(image.load(player_image), (wight, height))
self.speed = player_speed
self.rect = self.i... | [
"noreply@github.com"
] | noreply@github.com |
8b1c66b8b3b792914470aa94f0f354eefa4daa9e | b033000ca119f3fd9feaa64cebd6e60b1d85839a | /src/dotpaths/cfc_utils.py | 19dcca11906c6e1f21482644b4ab61f30b8bc87e | [
"MIT"
] | permissive | KamasamaK/sublimetext-cfml | 93c8e6858d08b3b8e85c1d23ef77587f3ce06f63 | 3730fca4679a5294234dfb3207eb41a4b313b87e | refs/heads/master | 2021-09-03T07:13:20.218103 | 2017-11-30T17:57:30 | 2017-11-30T17:57:30 | 97,273,191 | 0 | 1 | null | 2017-07-14T21:13:24 | 2017-07-14T21:13:24 | null | UTF-8 | Python | false | false | 10,298 | py | import re
import sublime
from os.path import dirname
from ..component_index import component_index
from .. import utils
component_name_re = r"""
["']component["']\s*,\s*(?:class\s*=\s*)?["']([$_\w.]+)["']
"""
component_name_re = re.compile(component_name_re, re.I | re.X)
cfc_dot_path_re = re.compile(r"^[\w\-_][\w.\-... | [
"jcberquist@outlook.com"
] | jcberquist@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.