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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35b823ee571526aabe931d1cf528fedc446c7de5 | 55e9f3b00fc2e488597bab5225ed321c86efbd4b | /sdk/test/test_frequency_response.py | 8e97d49e14aa132ed3efe4ee80569106b6d29d8d | [
"MIT"
] | permissive | bs-yapily/yapily-sdk-python | ad9d04c28f3d744830734c3444c1cef8215206fd | 0bba45e351b674eb655425a51190f539c4e9896f | refs/heads/master | 2020-08-26T17:18:53.156429 | 2019-10-22T11:01:16 | 2019-10-22T11:01:16 | 217,085,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # coding: utf-8
"""
Yapily API
To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501
OpenAPI spec version: 0.0.155
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __fu... | [
"systems@yapily.com"
] | systems@yapily.com |
71a8a66e76ca142acb18fe646e73586520d65752 | f53a307ff2cc14cebd76076384705e73e27ecbc1 | /visel.py | 624879eae93a60d6d1f1610cc279324815f11582 | [] | no_license | MrIvanushka/PaperGames | 49445e0223e95e004b1e46cc9ab409062b4e03a6 | b96424a547abb42568c6309979f4418141120d87 | refs/heads/master | 2023-04-26T08:36:09.229748 | 2021-05-12T14:34:16 | 2021-05-12T14:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,157 | py | from tkinter import *
import random
root = Tk()
root.title("Виселица")
canvas = Canvas(root, width=600, height=600)
canvas.pack()
def but():
y = 0
while y < 600:
x = 0
while x < 600:
canvas.create_rectangle(x, y, x + 33, y + 33, fill="white", outline="blue")
x = x + 33... | [
"77945441@mil.ru"
] | 77945441@mil.ru |
f924b1888a2653f0f5772334dba26dee8cade215 | 1013f2dcb64aa0ba3fb31b3e1c977e29d7ada36c | /env/bin/easy_install | ec2c06f53c26541d1ab14a3988a976a61d1f43e2 | [] | no_license | choww/dev-notebook | ef15a03410b6b03e0cc3dad7f7c2267fdc576ad5 | c1a230b162c6724e87907568df5b2b2f4c84fece | refs/heads/main | 2022-09-27T01:36:52.224469 | 2022-05-04T23:26:56 | 2022-05-05T23:48:27 | 108,310,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/home/car/Desktop/dev-notebook/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"carmenn.choww@gmail.com"
] | carmenn.choww@gmail.com | |
2a6d632308a3f0c4c3ea95d3be11ae0d38c3de5b | 5de1aaa1eb3f5baa012a4f6c26460466952a2465 | /Arkanoid.py | 816d7e2c207578d0e68cbe4727706ef2fe20b119 | [] | no_license | Matth900/Arcade_Games | 765a32db279b30d1dda779072045c6e5c21a9e64 | 646b1625a3de23457b239481b6780fe672745aa9 | refs/heads/master | 2021-01-19T22:32:58.939092 | 2015-04-18T15:51:56 | 2015-04-18T15:51:56 | 32,549,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,802 | py | # FIXING...Not working
import simplegui
import random
# initialize globals - pos and vel encode vertical info fohr paddles
WIDTH = 600
HEIGHT = 400
BALL_RADIUS = 20
PAD_WIDTH = 15
PAD_HEIGHT = 80
HALF_PAD_WIDTH = PAD_WIDTH / 2
HALF_PAD_HEIGHT = PAD_HEIGHT / 2
brick = list(range(50)) # We're assuming the grid o... | [
"1404268@studbocconi.it"
] | 1404268@studbocconi.it |
fcefeb835a401bd22559b96a215199270866a0b0 | 365bedfb999e9864b949d211cbb991a519fe48ab | /images/MNIST_loader.py | 72d870d182be4edf49d15dd60a2bcef8fa7457a6 | [] | no_license | levijpuckett/handwritten-digits | 9797533281ce456d5699639643496a7e76c0fd3f | f9ecb18ffb9424f96dcd85bb7aeaaed305c04fe8 | refs/heads/master | 2020-04-17T06:23:31.944587 | 2019-01-18T02:01:09 | 2019-01-18T02:01:09 | 166,322,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,370 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 8 17:32:53 2018
@author: levipuckett
"""
import numpy as np
import os.path
labelsPath = 'imagestrain-labels.idx1-ubyte'
imagesPath = 'train-images.idx3-ubyte'
def from_bytes(bytez):
return int.from_bytes(bytez, byteorder='big', signed=False)... | [
"noreply@github.com"
] | noreply@github.com |
71e8829afac3e0a0c65027c407736ec43eeb6262 | 0cba5529e387ba0f077b4e8ddeb96f914004f5df | /malaya/emotion.py | dcd419468d7b3fce6dc88b499f1cc790ea1925c7 | [
"MIT"
] | permissive | AsyrafAzlan/Malaya | dc78398ee6880578f40c5646a48882a5913217ae | 3d5166173cf74881f7a56fffaaf391813c55d4f1 | refs/heads/master | 2021-05-21T22:47:41.863857 | 2020-04-03T15:00:21 | 2020-04-03T15:00:21 | 252,841,526 | 1 | 0 | MIT | 2020-04-03T21:04:44 | 2020-04-03T21:04:44 | null | UTF-8 | Python | false | false | 1,861 | py | from malaya.supervised import softmax
from malaya.path import PATH_EMOTION, S3_PATH_EMOTION
from herpetologist import check_type
_emotion_label = ['anger', 'fear', 'joy', 'love', 'sadness', 'surprise']
_availability = [
'bert',
'tiny-bert',
'albert',
'tiny-albert',
'xlnet',
'alxlnet',
]
def a... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
199651930292784cddbb1dfed250ccfcd7ba621d | d38c54d3a5c8bfe741d2b02e702599d75f7de82d | /lab16/mininet/tcp_topo_myH1Server-myH2Client-BIGFILE.py | bf86e792478c8810e35f0c46f0229d9cbe360c50 | [] | no_license | yuhengy/NetworkLab | 2845eef8ec32fe00d0397b4bc313e2a171a40022 | 605ef1df2b529cf9a7046149bbb64def3947bb17 | refs/heads/master | 2023-02-24T17:36:59.923853 | 2021-01-28T11:12:40 | 2021-01-28T11:12:40 | 296,386,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | #!/usr/bin/python
import time
import os
import sys
import glob
from mininet.topo import Topo
from mininet.net import Mininet
from mininet.link import TCLink
from mininet.cli import CLI
script_deps = [ 'ethtool', 'arptables', 'iptables' ]
def check_scripts():
dir = os.path.abspath(os.path.dirname(sys.argv[0]))
... | [
"yangyuheng17@mails.ucas.ac.cn"
] | yangyuheng17@mails.ucas.ac.cn |
5283860926b860c7a1b9143ddbcc38c695bb2efb | 95b60a3f7db73ac8a6da2fc7385841067a2e6ea7 | /app/cache/RedisCache.py | 326b2b58bc6e9d924cab301bf43412a539b456f1 | [
"MIT"
] | permissive | coder-yuan/vue-template-api | 6a8ecfd46916705de56750b37fae3f615c7df5f5 | 135f13d7c32b4a2830366fc0b79a1e2a1eda6923 | refs/heads/master | 2022-05-27T05:15:29.919821 | 2019-12-06T10:59:45 | 2019-12-06T10:59:45 | 226,309,030 | 0 | 0 | MIT | 2022-05-25T03:41:22 | 2019-12-06T10:56:18 | Python | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : icode_flask_be
# @Package :
# @Author : jackeroo
# @Time : 2019/11/21 上午6:47
# @File : RedisCache.py
# @Contact :
# @Software : PyCharm
# @Desc :
from flask_caching import Cache
from app.config.Cache.RedisCache import RedisCache
cache... | [
"1132524215@qq.com"
] | 1132524215@qq.com |
1d2541191e621eea166d59f4e565d1ffd53ef94e | fcf4287f91bac1ecf2f9c1c007f8529fe8fa040b | /Rentify/rentify/core/.~c9_invoke_ez9l69.py | 0e241685e7e176af0581138412d43637cc709e90 | [] | no_license | citi-onboarding/rentify | 7ca96126f6b6eac871cdfed5a965581b35222cef | f98fb79f666f92a4dc9b51a6032bf742f12285e5 | refs/heads/master | 2021-08-30T07:04:45.364733 | 2017-12-16T15:56:16 | 2017-12-16T15:56:16 | 112,296,266 | 0 | 0 | null | 2017-12-14T14:51:46 | 2017-11-28T06:35:44 | Python | UTF-8 | Python | false | false | 2,729 | py | from django.shortcuts import render, redirect
from django.contrib.auth import login, authenticate
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from .models imp... | [
"evfl@cin.ufpe.br"
] | evfl@cin.ufpe.br |
f68c22a3ebcff8045d9ad3131f9b30a050725a36 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_filthiness.py | d1e4e34d83d291300555681e0bf38feb72c2e796 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py |
#calss header
class _FILTHINESS():
def __init__(self,):
self.name = "FILTHINESS"
self.definitions = [u'the quality of being very dirty']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
822de060466784748690413911f1bd522c7cfdc4 | ebb0f88adedf4d5202185b27fd2b8cecc1e59ebb | /pplot/figure.py | 5f79f1facf388ef88e8cc178d7e5fd4a5acc9fd6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | pmacosta/pplot | c528de8a6fcec83784ed92b84979a4d738444f57 | ac2e40aa1fc22a3c2aa39d894bc71c29ba33058a | refs/heads/master | 2020-12-31T04:28:02.763633 | 2019-06-11T18:35:59 | 2019-06-11T18:35:59 | 58,674,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,520 | py | """
Generate presentation-quality plots.
[[[cog
import os, sys
if sys.hexversion < 0x03000000:
import __builtin__
else:
import builtins as __builtin__
sys.path.append(os.environ['TRACER_DIR'])
import trace_ex_plot_figure
exobj_plot = trace_ex_plot_figure.trace_module(no_print=True)
]]]
[[[end]]]
"""
# figure.p... | [
"pmasdev@gmail.com"
] | pmasdev@gmail.com |
d8417c8ca8acec6cecbf368d3b3ad51f650efd6b | 475364e7eebdff89e2c78a07f84b098cfe7a445f | /mooc_algorithms/graph.py | 05398f2af02666d52aa02a900dd4c8e588e8ea96 | [] | no_license | ashishsubedi/DSA | 6f37d25cee857fd19faa7d24f0370bd222844381 | 9b87f88c6d9d131db4920ef0bfc6fa9d571908be | refs/heads/master | 2021-07-12T11:44:31.166006 | 2020-06-08T15:47:02 | 2020-06-08T15:47:02 | 158,732,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | class Graph:
def __init__(self):
self.vertices = {}
self.routingTable = {}
self.MST = None
def addVertices(self, vertices, e=[]):
'''
Add array of vertices. If e is given, all vertices will be initialzed with e
@param vertices: List of all vertices
@param... | [
"ashishsubedi10@outlook.com"
] | ashishsubedi10@outlook.com |
54eb14a012555c0ee5a15f3eb849bc2a25af597b | c137c1308bc62954e40e20e80eaa36e75a6766ef | /days/38/len-impl-py/solution.py | 1b2bc961874dfb7f57b805d1639e5dd39e9d2a31 | [] | no_license | shaversj/100-days-of-code-r2 | a7a45c07635fac52d1e506522cc18439a7e37da8 | 50dec098a60231eb4ac6972beb0adfeded215e10 | refs/heads/master | 2023-03-04T19:57:23.147768 | 2021-02-14T14:36:15 | 2021-02-14T14:36:15 | 259,045,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from typing import List
class LenCustom:
@staticmethod
def find_length(string: str):
count = 0
for char in string:
count += 1
return count
print(LenCustom.find_length("test"))
print(LenCustom.find_length([1, 2, 3, 4])) | [
"shaversj@gmail.com"
] | shaversj@gmail.com |
511ca25210aebdea239ec9c00fcca35b9da49554 | 71aaefa30760ecc699f533db24ebe353084cc8e0 | /src/tornado-webserver.py | 5cb8d891a7f973f9fb2c48ba6bffd64a68544abe | [] | no_license | rmessner/docker-deis-dashboard | e190fc4b450fbb8ab298cdb76eecd2f3d62a8b88 | 3e879bb12bd2f192bf4403a37f8c96fdcfb02b45 | refs/heads/master | 2021-01-01T19:42:54.864826 | 2014-12-03T17:44:17 | 2014-12-03T17:44:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from tornado.wsgi import WSGIContainer
from tornado.httpserver import HTTPServer
from tornado.ioloop import IOLoop
from tornado.log import enable_pretty_logging
from dashboard import app
http_server = HTTPServer(WSGIContainer(app))
http_server.listen(80)
enable_pretty_logging()
IOLoop.instance().start()
| [
"raphael.messner@gmail.com"
] | raphael.messner@gmail.com |
8e898266becce9d780c6884cb25e12a18f5f26ab | 79b35425287245a7beb3bc4b6d287b6e958119da | /My first model.py | 472ab8cef07d39699161015eb672a37fa4ee2a57 | [] | no_license | Jashshor/Python_AI_Model-first-tested | 9ab4fba38bccab90816d32a20b60336300ce9763 | 84387aec4a3254cf63ea44ba10a18c4d8ad6dbad | refs/heads/master | 2022-11-11T11:32:41.245704 | 2020-06-26T07:45:17 | 2020-06-26T07:45:17 | 275,100,751 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,703 | py | import pandas
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors ... | [
"3099681787@qq.com"
] | 3099681787@qq.com |
f173160d77e0d5bea220f33633e5bb63c9668916 | 50c20d107f98eb6c78553c9a0dcc20298df5958d | /courses/udacity/Intro to Machine Learning/svm/svm_author_id.py | bbf9b60353c3d39fb2b87320cb3e84193a894362 | [] | no_license | arnaldog12/Deep-Learning | a7b9dade336f9977109e8de4de8b65db35b711e3 | b0d46d93203394692cf9ba8d5628f8edc1589b6a | refs/heads/master | 2022-05-02T16:05:40.978508 | 2022-04-29T12:34:27 | 2022-04-29T12:34:27 | 98,334,247 | 90 | 51 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | #!/usr/bin/python
"""
This is the code to accompany the Lesson 2 (SVM) mini-project.
Use a SVM to identify emails from the Enron corpus by their authors:
Sara has label 0
Chris has label 1
"""
import sys
from time import time
sys.path.append("../tools/")
from email_preprocess import preproce... | [
"arnaldo.g12@gmail.com"
] | arnaldo.g12@gmail.com |
2eb15e7a7809dccc58b91240a1a0bdbde8f2ea7a | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/linear_model/plot_logistic_l1_l2_sparsity.py | afccba025af1f2bb50d6e3b57e30535232120bfa | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | """
==============================================
L1 Penalty and Sparsity in Logistic Regression
==============================================
Comparison of the sparsity (percentage of zero coefficients) of solutions when
L1, L2 and Elastic-Net penalty are used for different values of C. We can see
that large values... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
223aba0f3a6f0830d35ca6c772b7bd4a586e3e03 | 5e7aee7be8f1e99129957bbd26b93a0a22638b56 | /py/model.py | e3bf74cc518d1bee778f0d12e3c3a9981afed8c8 | [
"MIT"
] | permissive | alexisperrier/rabotnik | fa0391ccc62bf1c203a227ffe83ac1c32c738821 | e629118a692ea65dc39bf323f74096eec6c120e5 | refs/heads/master | 2023-04-08T15:09:49.843081 | 2021-04-15T11:02:22 | 2021-04-15T11:02:22 | 277,247,779 | 0 | 0 | null | 2021-04-15T11:02:22 | 2020-07-05T06:53:47 | Python | UTF-8 | Python | false | false | 13,710 | py | '''
Contain classes for most major database tables
Each class offers methods to insert, update, upsert ...
For instance the class Channel has the following methods:
- create: inserts a new channel in table channel
- update: updates data for a given channel_id, data is from API
- update_from_feed: updates data for a g... | [
"alexis.perrier@pm.me"
] | alexis.perrier@pm.me |
301e7d432329625c4c6abc24cb4ee6d962f715b5 | 311ed8e1b7d76d2dac128f853d54fd0890c6f1dc | /ee.py | 1b22dccdc0643cd5f7564acb87cb12dab25b15f8 | [] | no_license | alok1994/Python_Programs- | 445ac47ffbb4bb705ece697eca5b27bb99cc2ddc | 5da1c80f6d4e1469efdf8f849431bd8babfdc109 | refs/heads/master | 2022-06-05T11:01:23.835417 | 2022-05-13T12:54:53 | 2022-05-13T12:54:53 | 88,402,493 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | data_list=[1,3,2,9,4,6,7,8]
new_list=[]
while data_list:
minimum = data_list[0]
for x in data_list:
if x < minimum:
minimum = x
new_list.append(minimum)
data_list.remove(minimum)
print new_list
| [
"adeep@infoblox.com"
] | adeep@infoblox.com |
8f641be213c38d2d7cad0bb6497df44984f4c44f | ffe5bc9851a57851e70fbe9cf71b532482ad5813 | /CountSheep.py | 1f2256081516bc894c05223ea5450f6988fe0614 | [] | no_license | BigBricks/PythonChallenges | 0320e786cb0ceac0dce8ed098b44b3890abf1654 | 9ab39b2dfe07b0a23a205ed91d56296ac9a75828 | refs/heads/master | 2020-05-05T00:39:12.315967 | 2019-10-30T04:10:51 | 2019-10-30T04:10:51 | 179,581,968 | 0 | 0 | null | 2019-10-30T04:10:51 | 2019-04-04T21:46:50 | Python | UTF-8 | Python | false | false | 102 | py | def count_sheeps(arrayOfSheeps):
# TODO May the force be with you
return arrayOfSheeps.count(True) | [
"bsa6.23.94@gmail.com"
] | bsa6.23.94@gmail.com |
830407e09552cfb2cb0473e85960160bfe3aa607 | c6ccee43794d7aa95c81eb30afa986db1853a765 | /djangomediapil/fields.py | 9ca64ab3a447900cbde106de365ecfdd6521d6dc | [] | no_license | giorgi94/django-media-pil | b14eba7a661953aabb94e6f6959cc8ef8c77ef36 | 63dd25ecf81b0ef2b0d682c5ffeaddc016ef0249 | refs/heads/master | 2020-04-08T02:14:28.004119 | 2019-03-09T15:02:32 | 2019-03-09T15:02:32 | 158,928,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | import os
import json
import datetime as dt
from django import forms
from django.db import models
from django.core import exceptions
from django.utils.translation import ugettext_lazy as _
from .mediaPIL import MediaPIL
from .widgets import ImagePILWidget
class ImagePILField(models.TextField):
description = "Ima... | [
"giorgik1994@gmail.com"
] | giorgik1994@gmail.com |
0d3d361b190d5c8e94559f799d122150bbc60c1d | 0ba2975b23b7c15a804eb5a87490130c83c369f8 | /paper_experiment/compare_oversampling.py | 82420af7b26de0c1809a94789039b0c3cbbe29fe | [] | no_license | IqaHaziqah/on_the_way | eaf3cbda27d9c3935a2a849231133b8883cc3ba0 | bf3ad94535c046337eb0646ab355491f20475eaf | refs/heads/master | 2021-05-20T00:31:38.819902 | 2018-05-28T08:53:52 | 2018-05-28T08:53:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,138 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 8 20:01:28 2018
@author: zhouying
"""
import sys
sys.path.append('vae')
sys.path.append('distribution_ovsampling')
import pandas as pd
import numpy as np
import scipy.io as scio
from myutil2 import create_cross_validation,get_resultNB,compute
from vae6 import mnist_vae
... | [
"442049887@qq.com"
] | 442049887@qq.com |
37a0377ba0a802b58950a24f45ab331d51f47c8c | e147cf167bb9d0985b563d8aa5cad4d42b075004 | /app/libs/http.py | dbd5cf01d8bb9b646ff517c9b9e436333d241c0c | [] | no_license | pilu01/kk | b3f54b6343e178a184992af9f68a0a30f60aba9b | 02fde0c9374f3652cdd5b0458b9b878ca33a9fff | refs/heads/master | 2021-07-10T14:50:05.611996 | 2020-10-13T12:49:41 | 2020-10-13T12:49:41 | 207,334,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # -*- coding: utf-8 -*-
# @Time : 2020/9/14 15:31
# @Author : xhb
# @FileName: http.py
# @Software: PyCharm
import requests
class Http(object):
def __init__(self, url):
self.url = url
@staticmethod
def get(url, json_return=True):
r = requests.get(url)
if r.status_code != 200:
... | [
"xinhb@vastio.com"
] | xinhb@vastio.com |
e528b43a3e6dd339eefe897b88c870322865d82a | 4e6202e6c44fcde360a5cd22972556df2c3af975 | /src/compas_testing/rhino/gom.py | eadc3787c9cac4e165fd1cfb0e080c57c3af809f | [
"MIT"
] | permissive | franaudo/compas_testing | ce60e3cde066ce484b38dba472214b5104d0499f | f5c443b3c5f420793efda1bd156319cf7b85556e | refs/heads/master | 2023-05-31T12:46:09.603946 | 2020-01-27T21:24:02 | 2020-01-27T21:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | from compas.geometry import Point
from compas_rhino.artists import PointArtist
__author__ = 'Francesco Ranaudo'
__copyright__ = 'Copyright 2020, BLOCK Research Group - ETH Zurich'
__license__ = 'MIT License'
__email__ = 'ranaudo@arch.ethz.ch'
__all__ = ['draw_point_cloud_color',
]
def draw_point_cloud_c... | [
"ranaudo@arch.ethz.ch"
] | ranaudo@arch.ethz.ch |
39c2bccbbad0084903df070044113fb7721f2cfb | 24fec5484a82c7705185b3c8ff41ad4f93b7feeb | /pizza_shop/mainapp/migrations/0002_alter_cart_final_price.py | 82f7224fe27b3aea90a802ee9e7d25c950eb805e | [] | no_license | rita-mazets/isp_lab3-4 | 89d0e5ecc853b7e1630f59d49b33c7dbafff0c8d | 182ad669ac49a37249003b082abba707bb6ebf64 | refs/heads/master | 2023-06-06T09:34:31.860928 | 2021-06-14T20:16:26 | 2021-06-14T20:16:26 | 370,748,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # Generated by Django 3.2 on 2021-04-29 08:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='cart',
name='final_price',
... | [
"mmmazets@mail.ru"
] | mmmazets@mail.ru |
9cf8249155e099a4f2d638b13a734b6f3276c7d7 | d93cb231c2c2fdda9615d11d150045886608a8d7 | /server/admin.py | 1996b7b7dd7e4dde85e917c95b8ae503b6e31b5d | [
"Apache-2.0"
] | permissive | Kiesum/tfrs-1 | 1aea5245a4d80bdb36c637ab158f8ca2a45c68df | 12a8dff77c5b94687117e9a0822a1f1e28c453c5 | refs/heads/master | 2021-01-01T17:59:45.536698 | 2017-08-24T19:09:25 | 2017-08-24T19:09:25 | 98,216,933 | 0 | 0 | null | 2017-07-24T17:31:03 | 2017-07-24T17:31:02 | null | UTF-8 | Python | false | false | 2,394 | py | """
REST API Documentation for the NRS TFRS Credit Trading Application
The Transportation Fuels Reporting System is being designed to streamline compliance reporting for transportation fuel suppliers in accordance with the Renewable & Low Carbon Fuel Requirements Regulation.
OpenAPI spec version: v1
... | [
"gwalker@escapesystems.com"
] | gwalker@escapesystems.com |
950a91e7f352536d8c73b04d04228a01c66a4fda | 13a80359dedbf4aae47ad47ae9ae7d6dbd1bcb16 | /chat_search.py | 8b901c54b040ef6ce9c7070e7ef8804002ae8ebf | [] | no_license | tiarafreddyandika/mitm_addon | bb52569a4ed86142cfd11ec33b8f73f00ddc6053 | 8246f5d9230c0b3c9f456dd907c142d7db773c17 | refs/heads/master | 2022-11-11T19:20:53.325345 | 2020-06-18T03:55:55 | 2020-06-18T03:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import mitmproxy
from base.base_simple_gql_request import BaseRequest
class ChatSearch(BaseRequest):
def __init__(self):
super().__init__()
@property
def error_response_file(self) -> str:
return "./response/chat_attachment_error.json"
@property
def modified_response_file(self) ... | [
"alfon.lavinski@tokopedia.com"
] | alfon.lavinski@tokopedia.com |
0458ec665e53e9ec2babef6d8d8f4eb70518e005 | cb28edc8fecba9b12de7d5798ea8f04fd99cfce1 | /LIA_test.py | a6dcad4032e4749f4d5f30dfb1f0ca75ab1054db | [] | no_license | khoidnyds/Rosanlind | 5b597e267c6a9e9b54ed2c05f72537af8160b52b | 68902285e6ca462f8cebb21eae6016bc18d02518 | refs/heads/master | 2022-08-28T00:28:40.318066 | 2020-05-25T22:40:25 | 2020-05-25T22:40:25 | 266,893,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py | import unittest
from LIA import Mendel2
class MyTestCase(unittest.TestCase):
def test_seq1(self):
nuc = Mendel2(2, 1)
self.assertAlmostEqual(nuc.get_result(), 0.684, 3)
def test_seq2(self):
nuc = Mendel2(7, 31)
self.assertAlmostEqual(nuc.get_result(), 0.6142569731, 7)
if __... | [
"khoidnyds@vt.edu"
] | khoidnyds@vt.edu |
5e38d99387ab0922958a03e78b4d12fe8b189012 | 20171d2c050a727d265bb551861326d723e43322 | /2019/05/sunny_with_a_chance_of_asteroids.py | f493be77d97d3e5ce6938fde33bbf9f7a57c4546 | [] | no_license | paisuhas/AdventOfCode | d7d0e708e7672d4ec68e63fe9ec40b3eb1de320c | 31bad46f44a7c657d12bb5718d9e0903950993ff | refs/heads/master | 2020-09-24T06:39:45.694404 | 2019-12-13T06:50:20 | 2019-12-13T06:50:20 | 225,690,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | #!/usr/bin/env python3
def decode(opcode):
op = opcode % 100
modes = []
for i in [100, 1000]:
modes.append((opcode // i) % 10)
return (modes, op)
def get_operands(pc, modes):
global program
operands = []
for offset, mode in enumerate(modes, 1):
address = pc + offset if mode... | [
"spai@cs.wisc.edu"
] | spai@cs.wisc.edu |
b033e8f0b13e41e324b11e403739c993c52bbe7e | a4a01e251b194f6d3c6654a2947a33fec2c03e80 | /PythonWeb/Ajax/1809/Day02/1808/AjaxDemo02/run01.py | 35ac2bfbdbdab18d5da55f05332beae995cd1c85 | [] | no_license | demo112/1809 | 033019043e2e95ebc637b40eaf11c76bfd089626 | e22972229e5e7831dce2aae0b53ce19a6e3bb106 | refs/heads/master | 2020-04-09T07:10:49.906231 | 2019-02-27T13:08:45 | 2019-02-27T13:08:45 | 160,143,869 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,861 | py | from flask import Flask, render_template, request
from flask_sqlalchemy import SQLAlchemy
import json
import pymysql
pymysql.install_as_MySQLdb()
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI']="mysql://root:123456@localhost:3306/flask"
db = SQLAlchemy(app)
class Login(db.Model):
__tablename__ = "logi... | [
"huafengdongji@hotmail.com"
] | huafengdongji@hotmail.com |
35e5326d1aad1c103b3e76b9efefdd92864a2926 | 45edff14271724c5bf27e62e96eeb635840eae22 | /ML/ensemble_learning/util.py | d998161fe6c0a48ae7207841cc63d1e0147b0db8 | [] | no_license | DaiJitao/machine_learning | 1e41208dc94836a97e57a4b0f5778f8da2bb81d4 | 49e1db9ecbfbf886a11ce416eea402d214cf2049 | refs/heads/master | 2021-06-25T23:52:06.066315 | 2021-02-07T16:17:50 | 2021-02-07T16:17:50 | 209,712,507 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 347 | py |
"""
决策树常用的工具类:指标的计算、数据的加载
"""
import numpy as np
def load_data():
'''
根据《统计学习方法》第八章8.1.3产生数据.
:return:
'''
dataset_label = np.array([[0, 1], [1, 1], [2, 1], [3, -1], [4, -1], [5, -1], [6, 1], [7, 1], [8, 1], [9, -1]])
return dataset_label
| [
"hejinrong@news.cn"
] | hejinrong@news.cn |
2d62061754e25389e9568ddda07c4f09a77ac25f | db970f92ec15ff2a4221079d5b3c16c4000f3a2d | /tpot_secom_best.py | 1cf3dbfb67de19be280f5ab4a940e558e2d7a423 | [] | no_license | Ranga2904/AzureML_TS_SECOM | 390fab7b28b558bd76f5c78d14a1927f0f7197ca | 67aac95bd11a75beb1385365214aab5cfa0ba4a9 | refs/heads/main | 2023-03-19T03:24:39.160640 | 2021-03-14T15:24:27 | 2021-03-14T15:24:27 | 347,672,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | import numpy as np
import pandas as pd
from sklearn.ensemble import ExtraTreesClassifier, RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline, make_union
from tpot.builtins import StackingEstimator
from tpot.export_utils import set_param_recursive... | [
"noreply@github.com"
] | noreply@github.com |
d602bd37839f0456bfb7aabbb13cffddb3e2b1e3 | c4f2c58b2eb83f5bf672e82a39b6c96671f0eac1 | /iss.py | 64eeed4e973b979754e09aa5b058cac7b82be4c4 | [] | no_license | fthbrmnby/ISS-Position | 0bf36407c9384ebd02ed19e25c8687965a495bf4 | cf69b23fad97a8810b20e70ac5c144b0500c06e0 | refs/heads/master | 2021-01-19T22:34:36.257275 | 2017-07-31T07:46:57 | 2017-07-31T07:46:57 | 88,828,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,257 | py | from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.animation as animation
import urllib.request
import json
# basic map setup
globe = Basemap(projection='robin', resolution = 'c', lat_0=0, lon_0=0)
globe.drawcoastlines()
globe.drawcountries()
globe.fillcontine... | [
"fthbrmnby@gmail.com"
] | fthbrmnby@gmail.com |
1d33a72c9dcc9eadff29cb6b67e3cceb03f68a5f | 72aeb6cbad1a595e656c1469df3e27a1794d9542 | /Tarea/repaso/repaso/settings.py | dd312496f36add46bcc6cd0e3aa79d8963291163 | [] | no_license | monicanicole/DjangoRest-Angular | 87f3b83b2dd2ee035d943c04db8ebb4b3614ef3d | 1a2db5a0ae93a9fb7b800f3be0f5e92aab76aee3 | refs/heads/master | 2020-12-25T11:15:26.871064 | 2016-07-21T03:53:30 | 2016-07-21T03:53:30 | 63,833,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,352 | py | """
Django settings for repaso project.
Generated by 'django-admin startproject' using Django 1.9.5.
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
# ... | [
"monicanicole881@gmail.com"
] | monicanicole881@gmail.com |
85559cad23bef27acfad5460f0f619b730ca763d | 93720fa8240ed31835d53480a1db31519e5f22ea | /src/contest/migrations/setup_keyspaces.py | 1c9c5af1b564e9ce90742925a7f1c1b588b62935 | [] | no_license | riccitensor/contest-py | 788075916bbc6d78c8280977d542f78446151bef | c32f0321bd5819df9658cbeeb368aa70f3245af2 | refs/heads/master | 2021-01-25T08:55:23.822311 | 2012-06-11T19:44:05 | 2012-06-11T19:44:05 | 9,649,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | '''
Created on 25.12.2011
@author: christian.winkelmann@plista.com
'''
from contest.config import config_global
from contest.config import config_local
import cql
class Setup_Keyspaces(object):
def __init__(self):
dbconn = cql.connect(config_local.cassandra_host, config_local.cassandra_por... | [
"christian.winkelmann@plista.com"
] | christian.winkelmann@plista.com |
7dbe4f4d19fda2c3257bb3c276319a61d493f7d9 | a2558e0d92c6f9e3dcd6b12410ba824cb523075d | /app.py | 7d2bb02b84a5bb24ba3b367450d3bbe9100840fb | [] | no_license | agsorganics/agsorganicsbs | 0ea2240ebfd8651bb5a5b61819739d1571c7049c | 21404976ce2ef4d57cacbc093c3d9303ee604cb7 | refs/heads/master | 2022-09-08T21:12:22.435434 | 2020-06-06T08:39:07 | 2020-06-06T08:39:07 | 269,766,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | from flask import Flask, render_template, url_for, request, redirect
import csv
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template('index.html')
@app.route('/<string:page_name>')
def html_page(page_name):
return render_template(page_name)
def write_to_csv(data):
with open('da... | [
"eolisegun83@gmail.com"
] | eolisegun83@gmail.com |
bbae3698bee755a86e113f6ff4e7d52fe4f8a1ca | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210905000023.py | 9516b0bda58c56e4e39bbf9f8a08dc9dc32c935e | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,447 | py | import os
class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingres... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
46a790f3eecc7144206651c29840f940b5efa53c | 3ffb6d8600d767cf2e430b603a21ad9d85d1e02e | /Article/views.py | 3ee85e39abc330219488785956799d44b509b560 | [] | no_license | wyangyang1230/boke | 231ec662b5427daa4267a20126611ac159ec11da | f6da39c33aae7758fd6b4bba55b654ba533eeb90 | refs/heads/master | 2020-08-07T08:18:05.651256 | 2019-10-07T11:46:15 | 2019-10-07T11:46:15 | 207,441,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | from django.shortcuts import render
from django.http import HttpResponse,HttpResponseRedirect,JsonResponse
from django.core.paginator import Paginator
from Back.models import *
# Create your views here.
## 父模板
def base(request):
# get请求
data=request.GET
serach=data.get('serach')
print(serach)
# ... | [
"root@163.com"
] | root@163.com |
e8fd309c9d59ebfbf16e05e16b272c2b4b073b2a | c3470e984f3c27766f16da46dde1467004469c1f | /venv/lib/python3.7/base64.py | 551d86a0e7946c38b9135752f36068e2ff83adcf | [] | no_license | binwei-yu/zqweb | e647077b320d14988efda60af224a37e50cb19fc | 2e3036dd254230272614fafd375e5142aacdb9d5 | refs/heads/master | 2020-05-07T22:04:13.020298 | 2019-04-25T20:14:15 | 2019-04-25T20:14:15 | 180,927,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /Users/zhouqi/anaconda3/lib/python3.7/base64.py | [
"zqcarlos@umich.edu"
] | zqcarlos@umich.edu |
6d61713b8a648e26e0264e207a0bcba10f35cc49 | bcdd32e48435fdbcc717b300be34bccec188404f | /catkin_ws/src/camera_motor/Prediction.py | 8df13d9108796420a47c80b50af01f017da555de | [] | no_license | tuf22191/Senior_Design_Project_Spring_2017 | 8ce899a2138747f4aca9ec7f5e0f6d94dd1d56de | 21eff0ff5c2129b56c3d99ad01b9b49ffb2affbd | refs/heads/master | 2021-01-11T20:08:39.739420 | 2017-03-31T00:48:21 | 2017-03-31T00:48:21 | 79,049,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from camera_motor/Prediction.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
#import genpy
import std_msgs.msg
class Prediction(genpy.Message):
_md5sum = "f251b6023fb31... | [
"tuf22191@temple.edu"
] | tuf22191@temple.edu |
6a730ff82c333d93882e1a954aba3e8f1b3fef01 | 5d3b79b7f823a7c66a61c065be83cced6073731d | /Basics/Tuple.py | 751640c9af345dd68ec4ec62ef35c22c54f63280 | [] | no_license | gtripti/PythonBasics | e4d548c34fdfd47c38f59a44a53750295a59b736 | 2a13178001888ce3093e253ed49203b958489472 | refs/heads/master | 2020-06-25T11:46:45.559838 | 2019-08-24T19:16:15 | 2019-08-24T19:16:15 | 199,299,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | t = (1,2,3)
l=[1,2,3]
print(type(t))
print(type(l))
print(len(t))
t = ('one',2)
# slicing and indexing
print(t[0])
print(t[-1])
# build in methods
# 1.count
t=('a','a','b')
print(t.count('a'))
# 2.index
print(t.index('a'))
# immutability possible with list but not with tuple
l = [1,2,3]
print(l)
l[0] = 'NEW'
p... | [
"tripti.gupta97@gmail.com"
] | tripti.gupta97@gmail.com |
082fce6cf017f2b1f42c80cd64d20110852737af | 5e709e364397d8e26a8c188057b544d44b9fa2d5 | /blog/migrations/0001_initial.py | 579fcc154447c379e858f2cdbda9709ceeaed6f2 | [] | no_license | cdavis0119/my-first-blog | 56136df863f04eacb283643884e7c638d0a0da7a | 8d526cf4bf68b7bf9e9e18e544b188baabc698f2 | refs/heads/master | 2021-01-01T17:19:53.969453 | 2017-07-22T22:06:35 | 2017-07-22T22:06:35 | 98,050,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-22 18:06
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"courtneyldavis19@gmail.com"
] | courtneyldavis19@gmail.com |
3dca43e0102cde8dac9752705559f1b75cccde3d | 8203e42d18ea718302d19029b1df8a344d3a4ad9 | /quality/views.py | 75475e725155f9ebfceda9adf97f6b5ae7c31e0a | [] | no_license | sbsimo/quality | 07c6774d352f753aa11edc441c232dd507b53bf9 | a463cca3b223e8b135b7079c4aec9623e8b149fd | refs/heads/master | 2021-01-25T08:55:16.111596 | 2012-06-14T14:12:34 | 2012-06-14T14:12:34 | 2,779,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,129 | py | from geonode import settings
from geonode.maps.views import _perms_info, MAP_LEV_NAMES, _perms_info_json, \
LAYER_LEV_NAMES, _describe_layer
from django.shortcuts import render_to_response, get_object_or_404, redirect
from django.http import HttpResponse
from geonode.maps.models import Map, MapLayer, Layer
import json
... | [
"simone.blb@gmail.com"
] | simone.blb@gmail.com |
b06c0a336f7918f4804bc29c80b8474a18f07c42 | 3980219a237537ffbb2c1bdb25cbc606e2bc76dd | /teuthology/suite/placeholder.py | 4669c5faa101c6747fff433b1afbc57436791754 | [
"MIT"
] | permissive | dzedro/teuthology | 546ff04c906aaa8a846ff046a977ac55194e7494 | ed015732753d7564157f9f45c1fb1b868f88574d | refs/heads/master | 2020-03-17T21:03:07.971902 | 2018-06-04T12:29:23 | 2018-06-04T12:29:23 | 133,941,039 | 0 | 0 | MIT | 2018-05-18T10:38:30 | 2018-05-18T10:38:29 | null | UTF-8 | Python | false | false | 3,371 | py | import copy
class Placeholder(object):
"""
A placeholder for use with substitute_placeholders. Simply has a 'name'
attribute.
"""
def __init__(self, name):
self.name = name
def substitute_placeholders(input_dict, values_dict):
"""
Replace any Placeholder instances with values nam... | [
"ncutler@suse.com"
] | ncutler@suse.com |
48ae0683541c724901af2003c42a3e01a2680bd3 | 0acbec663e7b2b77f799e8f1f298d62fceecbe1c | /admin.py | e038343044d3571276f66c2871bc23ed928cea93 | [] | no_license | rashedul-islam/managebook | d264ca75b031e974337a5bdb1ffa261c381675ad | 0bdd7f01f2cfe9b436b41ac92c3a98ef62a70129 | refs/heads/master | 2021-01-13T16:58:09.363257 | 2016-12-25T12:40:20 | 2016-12-25T12:40:20 | 77,324,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.contrib import admin
from .models import Book, Genre, Choices
admin.site.register(Book)
admin.site.register(Genre) | [
"rashedul.islam.kth@gmail.com"
] | rashedul.islam.kth@gmail.com |
ebf8f91c4cebdb610c8c71f2511f1d32c8984cf2 | 1099175fcf3dca6d1ae00e5729c954c7838d3cce | /main.py | a34799ae095bf748fbe1221af66112b93a4061f1 | [] | no_license | thenfserver/bot-py | d990e360c8c164d329b77a72096d567d60fef95e | a8e3cbd193679281e9a8cf5dd2ef53bae814363b | refs/heads/main | 2023-04-25T14:42:49.572423 | 2021-05-07T03:29:32 | 2021-05-07T03:29:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | import discord, os, time, random, datetime, asyncio, platform, youtube_dl
from discord.ext import commands
from discord.utils import get
from discord import FFmpegPCMAudio
start_time = time.time()
intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix =["nf!", "NF!", "Nf!", "... | [
"noreply@github.com"
] | noreply@github.com |
3bb90c581abdb121a7c377a67bb816e7b76164f4 | 5bb5cc34e3d52f5cd1f88efde0c182735f682cf4 | /inference.py | fd7f0f5b1ec3a8af6da0607a48b699dd047f62c1 | [] | no_license | jtpils/pc_mr_net | 4f3816bed3b4cd6dd2fc4481cc3374a0ac5ffca8 | 3b5c3ce563473593ebd2b90d0d57a423852f822f | refs/heads/master | 2020-05-05T05:09:23.345742 | 2019-03-21T22:56:43 | 2019-03-21T22:56:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | import torch
from argparse import ArgumentParser
import os
import numpy as np
from h5py import File
from layers.pc_mr_net import PointCloudMapRegressionNet
from data.hdf_dataset_loader import HdfDataset
class InferenceDataset(HdfDataset):
def __getitem__(self, item):
data_file = self.data_files[item]
... | [
"jae251@gmx.de"
] | jae251@gmx.de |
46ca9958a730d18a7f5981a994caa4ea011f3532 | 75388db141483f6aa8994df4f97e83584b93e50e | /movie/movie_app/migrations/0001_initial.py | b7a48040292ddc91dcda7436e9623e4bcc3b592a | [] | no_license | bonrg/movies | 8a2c8b44b3525cce1633b163e4879a9c8d03c3d6 | e1703a3a887d87a5524e9d71c51700b83aa7e984 | refs/heads/master | 2022-11-29T06:26:01.097169 | 2020-03-25T07:26:55 | 2020-03-25T07:26:55 | 248,919,260 | 0 | 0 | null | 2022-11-22T05:24:58 | 2020-03-21T06:22:42 | HTML | UTF-8 | Python | false | false | 7,010 | py | # Generated by Django 3.0.4 on 2020-03-21 09:23
import datetime
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"a.uderbay@kazdream.kz"
] | a.uderbay@kazdream.kz |
9f08f0ce81f15f2afdcd8017b72a7d1a9acf39fd | 41976606488ba795e201c05cccdc4c39a3015875 | /app/views/perfil_views.py | 74cf6feb731dcf167f44950f98c2a49d16374f39 | [] | no_license | andersonvaler/capstone-backend-Q3-python | c16158f52ef57b47cb0e36d6f929ee3ef1c41fbf | 8cf10943e2ca98939e55f53c0a60fad882e0bc32 | refs/heads/main | 2023-06-23T10:44:30.524647 | 2021-07-24T16:24:03 | 2021-07-24T16:24:03 | 389,144,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | from app.models.lojistas_model import Lojistas
from flask_jwt_extended import jwt_required
from app.models.clientes_model import Clientes
from flask import Blueprint, jsonify
bp = Blueprint("bp_perfil", __name__)
@bp.get("/lojistas/<int:lojista_id>")
@jwt_required()
def get_lojista_id(lojista_id):
lojista = Lo... | [
"andersonvaler@gmail.com"
] | andersonvaler@gmail.com |
d3e323c429533162b102744f30b393fd5c2f8081 | 0951cb62572e75a8e8a7ef1f98092110bb73d20a | /pandas/tests/categorical/test_operators.py | 09a0607b67a88f0f3b238c65434191cfa6e3562f | [
"BSD-3-Clause"
] | permissive | ActiveState/pandas | 452de0fe049412f273caf6ebc86b8d0ffa0c68e6 | 106a04f14e0c090f95784c311f3d07c35e6ef276 | refs/heads/master | 2023-08-30T09:05:13.587536 | 2018-01-04T15:25:01 | 2018-01-04T15:25:01 | 112,227,117 | 1 | 4 | BSD-3-Clause | 2023-07-28T17:52:11 | 2017-11-27T17:32:22 | Python | UTF-8 | Python | false | false | 11,023 | py | # -*- coding: utf-8 -*-
import pytest
import pandas as pd
import numpy as np
import pandas.util.testing as tm
from pandas import Categorical, Series, DataFrame, date_range
from pandas.tests.categorical.common import TestCategorical
class TestCategoricalOpsWithFactor(TestCategorical):
def test_categories_none_... | [
"jeff@reback.net"
] | jeff@reback.net |
c2154d3a5fe4c8670860e1c2b5ea7301a892ea20 | 780b6cca690a213ac908b1cd5faef5366a18dc4e | /314_print_names_to_columns/save1_nopass.py | 8cb6c53bb39aa700c4f9bc48b51e4735762b74ba | [] | no_license | katkaypettitt/pybites-all | 899180a588e460b343c00529c6a742527e4ea1bc | 391c07ecac0d92d5dc7c537bcf92eb6c1fdda896 | refs/heads/main | 2023-08-22T16:33:11.171732 | 2021-10-24T17:29:44 | 2021-10-24T17:29:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from typing import List # not needed when we upgrade to 3.9
def print_names_to_columns(names: List[str], cols: int = 2) -> None:
name_list = [f'| {name:{9}}' for name in names]
output = ''
for i in range(0, len(name_list), cols):
output += ' '.join(name_list[i: i + cols]) + '\n'
pri... | [
"70788275+katrinaalaimo@users.noreply.github.com"
] | 70788275+katrinaalaimo@users.noreply.github.com |
0f31bab85029d70a6e19843c3d32bb3f395b7394 | 395707d0df8dd0df9667401b4bde0b38960b1e24 | /prefect-experiments/flow-of-flows.py | 9994d5303773c859051b69a0523ae07968bcb18b | [] | no_license | agatagawad/prefect-experiments | 539114b68f2ffdb4ec3f856f3b8d90213683440a | 7e4175d02a2e94f5a9af94a97733bf3d0a1c864f | refs/heads/main | 2023-04-02T09:09:28.011771 | 2021-03-27T17:52:10 | 2021-03-27T17:52:10 | 352,137,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,853 | py |
# Example from https://docs.prefect.io/core/idioms/flow-to-flow.html
from prefect import Flow, task
# from prefect.core import task
from prefect.core.parameter import Parameter
from prefect.tasks.prefect import StartFlowRun
@task
def A_task1(val):
return 10*val
@task
def A_task2(val):
return val + 5
with ... | [
"agata.gawad@yher.be"
] | agata.gawad@yher.be |
4669e42a6a2d00e57c11c14494944ba996bf543b | 9f55ac816c6a4bdb8ac35c4eea55ef5283c2a5cf | /homework/hw06/hw06.py | 17afe454cd9b9192798f9f042301cf27dc136aa9 | [
"MIT"
] | permissive | Nicoleyss/cs61a-self-study | ead2663df58bc5b080badd51a1d90b3e5148368f | e32d77f751af66008ff4c69ffe0b32688b275516 | refs/heads/master | 2022-01-08T17:39:00.442276 | 2018-09-08T18:22:58 | 2018-09-08T18:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | py | passphrase = 'CC74EB'
def survey(p):
"""
You do not need to understand this code.
>>> survey(passphrase)
'3d2eea56786a3d9e503a4c07dd667867ef3d92bfccd68b2aa0900ead'
"""
import hashlib
return hashlib.sha224(p.encode('utf-8')).hexdigest()
class Fib():
"""A Fibonacci number.
>>> start... | [
"tejashah88@gmail.com"
] | tejashah88@gmail.com |
8cf0710d3d1e894a8ffc673a018df78e74505973 | 81e84e22e5d8ce033499d382c584a57acd8af1d3 | /seconde_app/views.py | 984937b337e251b2cfde0a28b1a4f59465096650 | [] | no_license | LakhanKumarGautam/travello | 7525f3edd352995d2c2d85f40043102df78c9153 | 8ca9be9f211039f38176b2cdd71a19ccb04a2304 | refs/heads/master | 2022-07-15T09:25:31.386645 | 2020-05-18T18:05:07 | 2020-05-18T18:05:07 | 259,970,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home2(request):
my_dict = {'hii_Lakhan':"this is my best friend"}
return render(request,'home2.html',context =my_dict)
def add(request):
val1 = int(request.POST['val1'])
val2 = int(request.POST['val... | [
"50776528+LakhanKumarGautam@users.noreply.github.com"
] | 50776528+LakhanKumarGautam@users.noreply.github.com |
c2ba1834a55e267479f9cbd6ac9640b5e7397ba9 | 8fd4822d6d04fe0643b84139ddb1ee1d7d4d9f0a | /tests/test_signal/__init__.py | a5ff54368aa509e876bc36001ae564c1f61973dc | [
"MIT"
] | permissive | mcanatalay/SIMULOC | 48d4352599daa807009635953162d22fced273a0 | af32c522887dec08a0815052a5878b5a595b8d44 | refs/heads/master | 2021-08-22T17:12:30.332027 | 2017-11-18T23:33:14 | 2017-11-18T23:33:14 | 111,238,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | """Test class for Signal module."""
| [
"mcanatalay@hotmail.co.uk"
] | mcanatalay@hotmail.co.uk |
f0fb90be4126c4d7c1b3bc08502dc6de8c3bdc26 | 59405bb9af890a081e33f9f56d20a7ecb7d03853 | /02. Logistic Regression/Social Network Ads Logistic Regression.py | 899c9dbea65173d856b4baa545afc7a31c73e83f | [] | no_license | aaryankaushik/ML-Algorithms | cf9a69d15fee6c4f725f16ce4d463411e39fe474 | 38f86b5bebe1e2f50778d79c4833c050b852960b | refs/heads/master | 2020-04-24T23:19:02.879274 | 2019-02-24T15:01:53 | 2019-02-24T15:01:53 | 172,340,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | import pandas as pd
sn=pd.read_csv('Social Network Ads.csv')
gen=pd.get_dummies(sn['Gender'],drop_first=True)
sn.drop(['Gender'],axis=1,inplace=True)
sn=pd.concat([sn,gen],axis=1)
x=sn.drop('Purchased',axis=1)
y=sn['Purchased']
from sklearn.model_selection import train_test_split
xtrain,xtest,ytrain,yte... | [
"noreply@github.com"
] | noreply@github.com |
e9d40f1152b20f9719a6a72cf80ee1684fc24f55 | 3acd83134884afb4ee92f58346162f847328623a | /django_vuetify/settings/production.py | fefe519385f435d69a8f098d00b1f04d060c707d | [] | no_license | Navaneeth-Nagesh/django_vue | a9ff8810d21518c5cd8c210cc7b716cc11d0fc22 | 0e825373327d98ece325b6b282ea9ebf20a73586 | refs/heads/master | 2020-05-19T01:56:57.852744 | 2019-05-03T14:26:46 | 2019-05-03T14:26:46 | 184,769,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py |
import os
from .base import *
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
ALLOWED_HOSTS = ['']
# Database
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'US... | [
"navaneeth.webtrigon@gmail.com"
] | navaneeth.webtrigon@gmail.com |
0a34c488dbde7d4762ed53a0db5049c78bd899cf | be760ae24f4b9eb148ec3d3efe7d9490fc1c56d2 | /LPTHW/positive.py | 8699df3d8f2d7489e77826a968f0bcdd292c7839 | [] | no_license | yogicat/python-crash-course | 4a7c302cdc82647b3e2ccd42a80a9fedc9bf9c25 | af64c43aeb9a74cc794d88db9cbf6390e2e258eb | refs/heads/master | 2020-05-16T09:41:41.193500 | 2019-04-27T11:09:52 | 2019-04-29T11:09:52 | 182,958,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | def main():
i = get_positive_int("positive integer: ")
print(i)
def get_positive_int(prompt):
while True:
n = int(input(prompt))
if n > 0:
return n
main()
| [
"dahe.oh@gmail.com"
] | dahe.oh@gmail.com |
9a0d1a518ad80a316b052d7d50ffc3d5918fc703 | ddcef0ffeb4a024850252ff5c5da247c4433e207 | /src/mmgroup/tests/test_mm/test_prep_xy.py | 8ee8245cac11f4afb4009b578f4e7e43193d7ec6 | [
"MIT"
] | permissive | stratosthirios/mmgroup | 8423bc8c3d38a2478f76ba53ca99db8e8cf8dfa0 | a7a9a92a20580ecd697075f1c673989f0ad13bdc | refs/heads/master | 2023-08-29T00:01:42.038120 | 2021-10-17T20:27:46 | 2021-10-17T20:27:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,848 | py | from __future__ import absolute_import, division, print_function
from __future__ import unicode_literals
import numpy as np
from random import randint
import pytest
from mmgroup.mm import mm_sub_test_prep_xy
from mmgroup import mat24 as m24
from mmgroup.tests.spaces.sparse_mm_space import SparseMmV
from mmgroup.t... | [
"m.seysen@gmx.de"
] | m.seysen@gmx.de |
dd01c8f97e4ee6823d6132b76cc95d6b6bffdaac | 6eab9dfed4521d65df94da0cd2b6542793a7ba22 | /As1.py | 81349938f30450c5815e42540ddf773e1813c050 | [] | no_license | shreyansh-sinha/ML-Assignments | 430b04660773c6879885df04c4f72238724fd50e | 90eadde93e8c2e64b6c7cc6b15e7aee6c4fbb464 | refs/heads/master | 2020-12-18T12:52:08.480934 | 2020-05-23T07:15:38 | 2020-05-23T07:15:38 | 235,388,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | import numpy as np
#import pandas as pd
import matplotlib.pyplot as plt
def hypothesis(theta, X, n): # h = X.B_transpose
h = np.ones((X.shape[0],1))
theta = theta.reshape(1,n+1)
for i in range(0,X.shape[0]):
h[i] = float(np.matmul(theta, X[i]))
h = h.reshape(X.shape[0])
return h
# iterat... | [
"noreply@github.com"
] | noreply@github.com |
44c17b4c002a53f8d2f4fddad9e6dde17fc7dbcb | dbebe89c24d43b54d5b0a83f04b5d5d753f08b0e | /webapi/sandbox/testapp_Https_Sim_Fianancial.py | 6511a410e12e5200af33ed8c6e86ea7603209cad | [] | no_license | jianhuayan/traffic-dispersive | 91d07bd82c86678922607624a47ff825abd64c72 | 8a5ee0272ed4a16c3c50c36b070e1100466a0a42 | refs/heads/master | 2021-07-10T09:46:19.702409 | 2017-10-13T15:24:31 | 2017-10-13T15:24:31 | 106,841,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | from ixia.webapi import *
import ixchariotApi
import os
from subprocess import call
import dvn
IxiaIPaddr = dvn.const.IxiachariotIP
# webServerAddress = "https://'dvn.const.IxiachariotIP'"
webServerAddress = "https://" + IxiaIPaddr
print dvn.const.IxiachariotIP
print webServerAddress
apiVersion = "v1"
username = "N/A... | [
"jianhuayan@users.noreply.github.com"
] | jianhuayan@users.noreply.github.com |
8222458758108ced814b77fd8613c63ed0a6df86 | 395ba33c6faecc49eb3cbf32d7cc09ed4ee9c5f0 | /Person.py | ffcc9c3c461dc21d300e7524cb02c28bc96be5c5 | [] | no_license | MackRoe/Herd_Immunity_Term2 | 823d6e9ab8502efb09150529d364450a120a98dc | 236601fd9128790c9ec4d0e48163a700141f9d86 | refs/heads/master | 2020-09-26T06:23:56.950292 | 2019-12-10T18:07:25 | 2019-12-10T18:07:25 | 226,187,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import random
from Virus import Virus
class Person:
''' The simulation will contain people who will make up a population.'''
def __init__(self, is_vaccinated, infection=None):
''' We start out with is_alive = True
All other values will be set by the simulation through the parameters
w... | [
"elaine.music@students.makeschool.com"
] | elaine.music@students.makeschool.com |
15ea8659d5ebb57864269738d0afdbd7d47851c3 | 7eaf758ed8954794ddcf0d56ca247b31ce68af55 | /dapl_ckeditor/app_ckeditor/urls.py | 137a4999f6819af53ba1b45926f5892668891cc9 | [] | no_license | b4isty/Django-Ckeditor | 72a9050c464860931e0b85d2984a68fdca2bfa0e | fe11c3ecdb9706c6aade959ad688ca2f39ce4fe8 | refs/heads/master | 2020-03-23T20:07:58.233621 | 2018-11-14T15:00:16 | 2018-11-14T15:00:16 | 142,023,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django.urls import path
from . import views
urlpatterns = [
path('home/', views.home, name='home'),
path('blog/', views.blog, name='blog'),
path('blog_list/', views.blog_list, name='blog_list'),
path('blog_details/<int:pk>/', views.blog_detail_view, name='blog_details'),
path('blog_edit/<int:p... | [
"baishakhi@digitalaptech.com"
] | baishakhi@digitalaptech.com |
fe4b88457337dd6b7961c723050db6e1729548f3 | 6cb4f70534e4087ef11163a1c660374784a9bb6c | /skia/skia_library.gypi | 9fc63d05a542b784b4aeb847ab61b87833d9e715 | [
"BSD-3-Clause"
] | permissive | yodamaster/engine | 07a3e576b680f6c2d0db30c0b0be763d279f5884 | 33e5611409d261f8783e762e69e82b1dfa3ac480 | refs/heads/master | 2021-01-16T22:22:17.491692 | 2015-11-13T22:02:30 | 2015-11-13T22:02:30 | 46,162,097 | 1 | 0 | null | 2015-11-14T04:58:45 | 2015-11-14T04:58:45 | null | UTF-8 | Python | false | false | 13,850 | gypi | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This gypi file contains the Skia library.
# In component mode (shared_lib) it is folded into a single shared library with
# the Chrome-specific enhancemen... | [
"jackson@google.com"
] | jackson@google.com |
76e5e742f70e3956df15fe104b869bd14bb845b2 | a68cf0acc3127303bed87d982558aa458ff5ad62 | /VRD/__init__.py | 1a1456cb40908938312912d832749d3b2c1e6dff | [] | no_license | AbhiJay-K/VRD | cf45f1a3047c0906d996c851e576c0d746b5b013 | 673ca3818a558c9ca3e5ada8290bb1f2da0fda1b | refs/heads/main | 2023-08-11T16:35:48.943967 | 2021-09-23T15:27:45 | 2021-09-23T15:27:45 | 395,602,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | __version__ = '0.22' | [
""
] | |
c6b05976675faa83c8508a32dc60ddb4607ba399 | 9975809b516d3e6ff4cf3082761fde8f2c4cdcdb | /blogengine/blog/utils.py | db7d922921be4c805f219e53a1682a3a7de65ebb | [] | no_license | ameagle/django1 | ecba2b4a93724d92c4446e2b1957163ead9cfdc3 | f7895970b4480324be332e4a16b2c807d8b88bab | refs/heads/master | 2023-08-05T02:14:10.624488 | 2021-09-26T19:07:19 | 2021-09-26T19:07:19 | 408,866,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | from django.shortcuts import render, redirect
from django.shortcuts import get_object_or_404
from .models import *
class ObjectDetailMixin:
model = None
template = None
def get(self,request,slug):
obj = get_object_or_404(self.model,slug__iexact=slug)
return render(request,
... | [
"ao@ixi.ru"
] | ao@ixi.ru |
250e40e1c9cc2fcc4091722bca3c92a70c3ac1bf | feab2811821b0d7bcb6dc4c7b29c703757a85747 | /and.py | 3bb581c8b3225921eca07c515454b7223ba2cebd | [] | no_license | smritipillai/256314_Daily_Commits | b2e6638efde4dfdd19c4b3b8fc375160c7350080 | 90dbbc896213c9d9239b4c10eafb0e7ccbc7c2e2 | refs/heads/main | 2023-04-03T14:49:26.089096 | 2021-04-23T06:04:22 | 2021-04-23T06:04:22 | 359,127,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | if (1==1) and (2+2 >3):
print("true")
else
print("false")
| [
"smritipillai.smriti@gmail.com"
] | smritipillai.smriti@gmail.com |
5167039388d0d43817b5eb5500459c05bf2b35e8 | c181023ce9db43e957df86420d3005b677d16fde | /Boxplot_calculations.py | d0d12c4969daa087e46251bc2f6687d243be6d79 | [] | no_license | dcmuelle/Master-Thesis | 5c9184145db2c4084a06e38f5795af9fa6bf5dcf | 70cffd1ba5d3df37dfc5a54b38070c541b279af0 | refs/heads/main | 2023-07-07T21:37:01.079184 | 2021-08-10T06:51:18 | 2021-08-10T06:51:18 | 394,547,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "olympic-particle",
"metadata": {},
"outputs": [],
"source": [
"def Boxplot_calculations(meteo_data):\n",
"meteo_data = meteo_data[meteo_data.time.dt.year == year]\n",
"hourly_average=meteo_data.groupby([meteo_data[\"tim... | [
"PsiVmGij75"
] | PsiVmGij75 |
0c3252c4dcf7604b633a0875ad23e72836719ee2 | 75ff3b2483447ae18bffe508fe66844bf5e57199 | /course_parsers/campus_course_parser.py | afc239a915693a790d2f4822245d63c4814f5a26 | [] | no_license | SantoshSrinivas79/StudyBoi | 84bdaa4227d05abcd46a3ba22e49ad96ebec5309 | 2c56b2ff35cbb3f85efb4de0168966d7d7d47791 | refs/heads/master | 2022-04-24T20:27:53.202585 | 2020-04-27T12:51:45 | 2020-04-27T12:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import requests
from bs4 import BeautifulSoup
from parameters import *
class Course:
def __init__(self, title, duration, link, description):
self.title = title
self.duration = duration
self.link = link
self.description = description
def parse_course(url):
try:
respon... | [
"urigami2010@gmail.com"
] | urigami2010@gmail.com |
922c0ec014cbb7e3e0b8cf73bd810fb9a6f986a2 | 631a90a2af858b784f19b1242c91f1aaa807cd86 | /Merging-catalogs-V2/Benchmark_plotter.py | 48606cac840ba664f9ece3aefc47d89f97620209 | [] | no_license | atilapaes/PhD-PostDoc | 560430cc8aa0f845934216acf9ec42d2aed9046b | 8611e636e8d9974b3f4fdf24739f474131b9ea51 | refs/heads/master | 2022-12-19T21:06:53.738581 | 2020-09-26T03:54:42 | 2020-09-26T03:54:42 | 281,584,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 15 01:48:07 2020
@author: atilapaes
"""
import pandas
#%% Data importing and preparation
# Import catalog of single events (no duplicate present)
catalog = pandas.read_csv('result_catalog_merged_ES_MFA_FINAL.csv',index_col='Unnamed: 0')
catalog['d... | [
"atila.paes@gmail.com"
] | atila.paes@gmail.com |
8c988b95d39cf5d55d0879a8e1fb1ad9356e1543 | 843da58da462f0d82c847c12a4b67eeaee072e3d | /r2env/__init__.py | 92d4d42ea0d3c4f5fb6debe86e1689ae9b80ad18 | [
"MIT"
] | permissive | as0ler/r2env | 1864a2d716c688aaac4ed944a3ca65a75a373381 | 8796a6502741ccef82bdc7174c2ad5f04c87b3ef | refs/heads/master | 2023-05-30T08:51:02.346778 | 2021-05-24T22:41:03 | 2021-05-24T22:41:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from r2env.package import Package
from r2env.repl import main
import r2env.ipdb
import os
def load_packages(cfg):
from r2env.db import Radare2
from r2env.db import R0
pkgs = []
pkgs.append(Radare2(cfg))
pkgs.append(R0(cfg))
return pkgs
cfg = {
"srcdir": "", # depends on the pkg
"linkdir": "/usr",
"envdir": ... | [
"pancake@nopcode.org"
] | pancake@nopcode.org |
b81eacbae1cc55af0ff7165de0962951628a87e6 | 6fa14cd7be2d22553496326bce954b74dd6779bd | /ejercicios 1er año/impares hasta 100.py | 94d9029aa6a93b794e87029da74ab48b1637eed9 | [] | no_license | nucleomis/Archivos_Python | 28e93dfac08eee604f25173ecdbfc3e86eb952ef | dd3e104bb38e9763d1e5efb22614e845f21d68f1 | refs/heads/main | 2023-06-22T13:19:27.952059 | 2021-07-20T14:05:13 | 2021-07-20T14:05:13 | 387,810,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | ##Hacer un pseudocódigo que imprima los números impares hasta el
##100 y que Imprima cuantos impares hay.
a=1
cont=0
while a<99:
a=a+2
cont=cont+1
print (a)
print ("la cantidad de veces que se repiten los impares son", cont) | [
"nucleo.mis@gmail.com"
] | nucleo.mis@gmail.com |
fdc34fc0a555f3f41229467a66e4e653cb445b40 | a45f69e1daf40a933a5805eddda36d59658815de | /cloudipsp/async_api.py | c8f3ef18ebb6eafc068660e7b594636dcc96f4ff | [
"MIT"
] | permissive | xen/cloudipsp_async | c97f4dba286c8999162a3854aa82427ec35bb4bf | 6e1045de16ad535d858860cd202f8bd0f887aa83 | refs/heads/master | 2022-12-04T11:37:16.820299 | 2020-08-25T21:21:37 | 2020-08-25T21:21:37 | 289,747,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import logging
from types import MethodType
from cloudipsp import exceptions
try:
import aiohttp
except ImportError:
aiohttp = False
from cloudipsp.api import BaseAPI
log = logging.getLogger(__name__)
class AsyncAPI(BaseAPI):
is_async = True
def __init__(self, **kwargs):
if not aiohttp:
... | [
"mkashkin@gmail.com"
] | mkashkin@gmail.com |
83acc1d478a46b104cd5f8f7702ae959347f562a | 2b757e74a9ec0a208a1591fd7597d2975bbc5f1d | /app.py | 3bd6635749da14fdcab2bd448f077641b760dff8 | [] | no_license | surfeatcoderepeat/multifinger | cb2110f639c9fe0aeb59b0d789e504569e1005df | 627ecebd3fa2d3d6cae58855051a230297d7b705 | refs/heads/main | 2023-07-14T18:17:41.545934 | 2021-08-27T13:17:48 | 2021-08-27T13:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,221 | py | import base64
import datetime
import io
import dash
from dash.dependencies import Input, Output, State, MATCH, ALL
import dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
import plotly.express as px
import lasio
import pandas as pd
import plotly.graph_objects as g... | [
"RY15618@grupo.ypf.com"
] | RY15618@grupo.ypf.com |
e7457ef3edccd7ffa5e7a792a53e60da70576705 | aa32c9526306990f599a495919508d16d4361492 | /lesson_002/03_favorite_movies.py | 481a1866b45c67e363391500e597a80794a498f5 | [] | no_license | nnngracheducation/pyHomeWorks | 31ff46a8376fdf28bab5de4637cedc220edd31ee | 507bab7a63ae9b72d20797ca6e815783da41eaae | refs/heads/master | 2023-01-08T18:29:35.743241 | 2020-11-07T15:35:24 | 2020-11-07T15:35:24 | 310,876,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Есть строка с перечислением фильмов
my_favorite_movies = 'Терминатор, Пятый элемент, Аватар, Чужие, Назад в будущее'
# Выведите на консоль с помощью индексации строки, последовательно:
# первый фильм
# последний
# второй
# второй с конца
# Переопределять my_f... | [
"nnngrach@gmail.com"
] | nnngrach@gmail.com |
178073e46d08f76dd3f07a0d95396e86a2d69c87 | 4887a1a84e5ae0a3f4e23c41576b53e11e56840c | /parkproject/manage.py | 99de1c8a11bea0e3ef907c1d17e2f720a6d87d4f | [] | no_license | liujwplayer/python | c39dfd9d76034e9f4f8dd053442d3cbf3b220020 | 5e270a06c6c0a13cbabb409cebd64fdc6b3150d2 | refs/heads/master | 2020-04-01T08:29:03.386841 | 2018-10-28T05:41:56 | 2018-10-28T05:41:56 | 153,032,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "parkproject.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"liujwplayer@163.com"
] | liujwplayer@163.com |
584a3ac0d6ea04049204f7aaf58c6306f7ddde0d | aeca65f4c5396942d0b710d8915e1c6f53ff218a | /src/carbon_intelligence/meter/models.py | edfeee268242d98fba7385513a34f33dcaebf44c | [] | no_license | rbennell/carbon-intelligence | 9aaaf433faa68094b3f94c010c0021557dd223e1 | 73cb0786cb05e7ae13a9a9e48650e07de9fcb04c | refs/heads/master | 2023-08-11T06:02:04.359094 | 2020-04-19T14:34:28 | 2020-04-19T14:34:28 | 256,499,256 | 0 | 0 | null | 2021-09-22T18:52:51 | 2020-04-17T12:39:28 | Python | UTF-8 | Python | false | false | 1,381 | py | import datetime
from django.db import models
# Create your models here.
METER_TYPE_CHOICES = [
("electricity", "Electricity"),
("gas", "Natural Gas"),
("water", "Water"),
]
UNIT_CHOICES = [
("kWh", "kWh"),
("m3", "m3"),
]
class Meter(models.Model):
id = models.IntegerField(primary_key=True... | [
"rbennell@hotmail.co.uk"
] | rbennell@hotmail.co.uk |
aa4be24b9867a5c959b936e949960dfdea6302f6 | 6c43a8e9075d0f1a1a3b6d478731f7e303487efb | /app.py | d7efc9b87a16427ab97db0948ee2cb6aaad94e74 | [
"MIT"
] | permissive | ericavdp/flashcards | e94a88f9326387a0c061a5bbd89fa4bd0d9968a3 | f758e12efca935afb4e0af550c98654a95056963 | refs/heads/master | 2020-04-21T09:40:14.970210 | 2019-02-06T18:56:15 | 2019-02-06T18:56:15 | 169,457,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,333 | py | from flask import Flask, render_template, request
import pymysql
import pymysql.cursors
from random import randint
app = Flask(__name__)
@app.route('/')
def main():
return render_template('index.html')
@app.route('/showMakeCard')
def showMakeCard():
return render_template('makeCard.html')
@app.route('/ma... | [
"noreply@github.com"
] | noreply@github.com |
48259064e154e547151d473c41338ec1af6d2bd3 | c2f2c299b2dcc33229010ef77c96293059dfab61 | /classrooms/urls.py | 0041d6784e0553a9bbc50fd91b64bb597a0ac8d8 | [] | no_license | nbalrifai/Classrooms | f6895fa74e3ad84aad7fbde64e755439304f363d | 6100b9bd0e7c773cf3c4e90edef9993415cbb2b3 | refs/heads/master | 2022-01-18T09:00:07.401363 | 2019-07-21T17:39:06 | 2019-07-21T17:39:06 | 198,065,792 | 0 | 1 | null | 2019-07-21T14:21:54 | 2019-07-21T14:21:53 | null | UTF-8 | Python | false | false | 839 | py |
from django.contrib import admin
from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from classes import views
urlpatterns = [
path('admin/', admin.site.urls),
path('classrooms/', views.classroom_list, name='classroom-list'),
path('classrooms/<int:class... | [
"lailaabdulraheem@gmail.com"
] | lailaabdulraheem@gmail.com |
d1564abb5583ba7d937b0d846491cf7aa40a1cb2 | 00ef8e1eb57b73427508b20aadf0266da6b1f900 | /rlf/exp_mgr/viz_utils.py | f323dee2afc60a42bb37336d3b28e50fe18fb7b4 | [] | no_license | amy12xx/rl-toolkit | f4643935cc8afd960356bfeae74c233d2596dea9 | 8254df8346752ea0226ae2064cc1eabc839567b0 | refs/heads/master | 2023-08-14T00:56:52.270642 | 2021-09-28T15:59:32 | 2021-09-28T15:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,503 | py | """
Utilities for manipulating images, rendering images, and rendering videos.
"""
import os
import os.path as osp
from argparse import Namespace
from typing import List, Optional, Union
import cv2
import matplotlib.pyplot as plt
import numpy as np
import rlf.rl.utils as rutils
try:
import wandb
except:
pass
... | [
"me@andrewszot.com"
] | me@andrewszot.com |
432430035beb53f8a57dcc46ac91de96ad290daa | d00a51990868a5e4eb4cc3100d47bd1f8930ffa3 | /rllab/envs/mujoco/ant_env.py | c0dc8b41edf98c55fa5588c3d3b046b6de4cf8ec | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | akashratheesh/rllab | 42f1d2a21701343c317ef70c7432439236dbafd7 | 5b0232d2a1b412dd4fd7eb5835142f25ff981afe | refs/heads/master | 2023-08-28T16:20:42.932852 | 2021-10-25T00:43:33 | 2021-10-25T00:43:33 | 417,612,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | from .mujoco_env import MujocoEnv
from rllab.core.serializable import Serializable
import numpy as np
from rllab.envs.base import Step
from rllab.misc.overrides import overrides
from rllab.misc import logger
class AntEnv(MujocoEnv, Serializable):
FILE = 'ant.xml'
def __init__(self, *args, **kwargs):
... | [
"anusha.nagabandi@gmail.com"
] | anusha.nagabandi@gmail.com |
a24fa36e3d4cbc2f2bd776e44a28aa7d7c325484 | 3d273d7102dba56a99ba8eb2a163b160d4e882bc | /gnn.py | a1b8df84b637bbe80321af57010d083a8cf94d49 | [] | no_license | silent567/nn_parts | 0b85b2d615f040cff0fd38c402b0fa83558b3f1b | 1f0dfe1b0a0b794066220f2c0bb200bfbef605a1 | refs/heads/master | 2020-04-28T23:25:58.929950 | 2019-03-14T16:08:21 | 2019-03-14T16:08:21 | 175,655,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,548 | py | #!/usr/bin/env python
# coding=utf-8
# 20180825 by tanghao
# This file contains graph-network-related layers
import tensorflow as tf
from .init_var import *
from .fc import *
from .norm import LayerNorm
class FastGCNN:
'''
The class for the FastGCNN layer, which is based on "Convolutional Neural Networks on ... | [
"silent56@sjtu.edu.cn"
] | silent56@sjtu.edu.cn |
03e2a912883ed7271a2cc5d4993b027cbcef07ec | 7df7efb0872a24471d376ceda741b3752502ebc9 | /flaskAPI/models.py | e4cac78ed42cd486872a78f09ceae07b7e61a327 | [] | no_license | EliasAguirre/Flask-Python-Api | 4546541082f656f76cc4cf017725e8a2ebeacab7 | be813fd48ecdf4b7cedda98cd0e1c7c004d6115c | refs/heads/master | 2020-12-27T06:04:31.951371 | 2020-02-02T15:06:12 | 2020-02-02T15:06:12 | 237,787,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from main import db
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(10), index=True, unique=True)
age = db.Column(db.Integer, index=True, unique=True)
def __repr__(self):
return '<User {}>'.format(self.name)
def init_db():
db.create_all()
... | [
"eliasdavid.aguirre.a@gmail.com"
] | eliasdavid.aguirre.a@gmail.com |
bff7b6d57c42b3b74cbfa6b65e9e3e4fd2c58bd0 | a766f6ee10be86bd33d2cfc06c19d94247b6ad08 | /aea/cli/registry/registration.py | e2da0dfcaf986b79c130ef7afa9834bdbe712d07 | [
"Apache-2.0"
] | permissive | ejfitzgerald/agents-aea | 3b07db6c1f9f5fc8fded4ce497a2283ae88f0b84 | 6411fcba8af2cdf55a3005939ae8129df92e8c3e | refs/heads/master | 2022-12-07T05:53:55.379150 | 2020-08-14T15:22:19 | 2020-08-14T15:22:19 | 288,688,666 | 0 | 0 | Apache-2.0 | 2020-08-19T09:24:07 | 2020-08-19T09:24:06 | null | UTF-8 | Python | false | false | 2,053 | py | # -*- coding: utf-8 -*-
# ------------------------------------------------------------------------------
#
# Copyright 2018-2019 Fetch.AI Limited
#
# 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 ... | [
"panasevychol@gmail.com"
] | panasevychol@gmail.com |
fea85b2a070376ac73feafffcec765b84aadb0fe | f3cec139bc484a376753ac8089f000e25927d940 | /Xray_trainloop.py | 8d4678958367de1bf0ffec7d01a7353f64c729fb | [] | no_license | wisemin7/covid | e28e309c1f35eec11a886bf4f6cf0495506b64dd | f347664df8de97c1643e3a060183e8c01a3c925c | refs/heads/master | 2022-11-09T16:34:43.764813 | 2020-06-27T10:26:16 | 2020-06-27T10:26:16 | 275,346,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,831 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 11:25:33 2020
@author: hoon
"""
import torch
import torchvision
from torchvision import transforms
from torch.utils.data.dataset import Dataset
import os, sys, random
import numpy as np
import PIL
from PIL import Image
from gen_utils import *
from ds... | [
"noreply@github.com"
] | noreply@github.com |
010885dad083a7b1ec9ebb80c5c3d64b92989605 | 37930870719caede967fdf6905c032e22d086e8b | /scripts/imaging/chaining/slam/light_parametric__mass_light_dark__source_parametric.py | 80e4df39df68667dc5cd365fcf51cfac21c6f9f0 | [] | no_license | Cywtim/autolens_workspace | cbede944c0f85ee95cd7362fee957ef77e701280 | da40cafee8dc26e5d8b1041888fb280598e74a5e | refs/heads/master | 2023-04-05T14:22:06.091992 | 2021-04-15T20:29:28 | 2021-04-15T20:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,711 | py | """
SLaM (Source, Light and Mass): Light Parametric + Mass Total + Source Parametric
================================================================================
SLaM pipelines break the analysis down into multiple pipelines which focus on modeling a specific aspect of the strong
lens, first the Source, then ... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
fcf73361e13334179a65507f2fd77fdb971b2c40 | 8ca47670ed87ff22b1086032e14175bb1b6760c7 | /scrapyCrawler/scrapycrawl/scrapycrawl/scrapy_redis/dupefilter.py | e17cd6c15b889ecc4131e8c88f9910d2803b4684 | [] | no_license | public-spider/spider | 789aad3b0f781464267f03234cd26ea4e1147978 | f1e57f3ac6548b1bb8f6a5dc1f03c39c481f9311 | refs/heads/master | 2020-12-24T14:53:38.040968 | 2014-10-20T03:15:27 | 2014-10-20T03:15:27 | 22,784,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | '''
Created on Aug 13, 2014
@author: whisky
'''
import redis
import time
from scrapy.dupefilter import BaseDupeFilter
from scrapy.utils.request import request_fingerprint
class RFPDupeFilter(BaseDupeFilter):
def __init__(self, server, key):
"""
initialize duplization filter
... | [
"260643431@qq.com"
] | 260643431@qq.com |
a652e78af109d2bacbf8df44bfbe96159701df7b | d6375b3202143d7a0761dcb82a2ae8466ff4676a | /apps/users/migrations/0001_initial.py | 09323b8724c2cf41125463026fb876b9fb3956ef | [] | no_license | Allkoman/mxonline | 264c85d18100c3a458b103dcef16393a883d6607 | 431d524e32043aead36f4da71a8424a132a5c1bc | refs/heads/master | 2021-01-20T14:10:27.493578 | 2017-02-24T01:21:41 | 2017-02-24T01:21:41 | 82,746,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-02-20 06:19
from __future__ import unicode_literals
import django.contrib.auth.models
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependenc... | [
"18646085515@163.com"
] | 18646085515@163.com |
1e6e066f903701f4d59405a4f73cd24b8d2114a3 | f950882940764ace71e51a1512c16a5ac3bc47bc | /src/ThirdParty/freetype/src/tools/PaxHeaders.20567/chktrcmp.py | b08e1c1af6a391977a0aba1d7924afee49d7c048 | [
"FTL"
] | permissive | ViacheslavN/GIS | 3291a5685b171dc98f6e82595dccc9f235e67bdf | e81b964b866954de9db6ee6977bbdf6635e79200 | refs/heads/master | 2021-01-23T19:45:24.548502 | 2018-03-12T09:55:02 | 2018-03-12T09:55:02 | 22,220,159 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | 30 mtime=1398010730.538379929
30 atime=1417845746.439132282
30 ctime=1398010730.538379929
| [
"nk.viacheslav@gmail.com"
] | nk.viacheslav@gmail.com |
47b47f8164ca12deea39a8616361bde823c92e50 | 09c976bf8d942bb30e284fff9f76db1845c2aa6a | /UTD_CS_6375/HW6/ScikitKmeansAndKmeans++.py | b8d692a229dbc4680cbc8e6554d8e7a633fb2639 | [] | no_license | mikexie360/UTD_CS | 232d62ca992b43c8f4917f5525fc006fdc7132df | 23f7a6266841f6c25dd649d56060b961343869f7 | refs/heads/master | 2023-04-30T06:40:55.272767 | 2021-05-25T00:48:02 | 2021-05-25T00:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,433 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 10 17:29:41 2020
@author: ROHITH PEDDI
"""
import pandas as pd
import numpy as np
from sklearn.cluster import KMeans
data_train = pd.read_csv('leaf.data', header = None).values
M, N_c = data_train.shape
cluster_centers_actual = data_train[:, 0]
X = data_train[:, 1:N_c]... | [
"rohith.peddi7@gmail.com"
] | rohith.peddi7@gmail.com |
a2912b63ff16dc838e87900ce2db2d1f3a43c590 | 0d153f781d04c0fa925a864e03bf28d2bd61cb06 | /python/p7.py | 443704e9aca28ce794b8c809d7048a90e9545fa0 | [] | no_license | glovguy/project-euler-solutions | f9750cf1ca71a2aba9433f99d89838749aa9cf00 | 38f9c60d9d45f88d5d9a384404ab5d41cff491f0 | refs/heads/master | 2021-01-21T15:04:41.877811 | 2020-06-07T21:20:27 | 2020-06-07T21:20:27 | 57,855,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | '''By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13.
What is the 10 001st prime number?'''
def is_prime(num):
upperLimit = int(num/2)
for n in range(2, upperLimit):
if num%n == 0:
return False
return True
def prime_numbers(until):
... | [
"karlsmith@bouzou.com"
] | karlsmith@bouzou.com |
a3143711129b88f014fda2d2ef6ac1b8d0d0f0c0 | 6a0a7269ee3cd16763510753a9b2b073accd017d | /5 Airflow/L3/dags/exercise4.py | b997cad138f3cbe2165205bae8ec154054d644fb | [] | no_license | villoro/DEND | e8a5010a916ecf70c47780f9a59b84ccc5dcbcb2 | 398d297232cc5139d9536019db2fd5d60a9ac04f | refs/heads/master | 2021-05-18T16:50:26.306945 | 2020-04-25T09:57:39 | 2020-04-25T09:57:39 | 251,325,163 | 0 | 0 | null | 2020-04-25T09:57:40 | 2020-03-30T14:10:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,782 | py | import datetime
from airflow import DAG
from airflow.operators import FactsCalculatorOperator, HasRowsOperator, S3ToRedshiftOperator
#
# The following DAG performs the following functions:
#
# 1. Loads Trip data from S3 to RedShift
# 2. Performs a data quality check on the Trips table in RedShift
# ... | [
"villoro7@gmail.com"
] | villoro7@gmail.com |
52e17291e5c10f8c1e415d3e6968fd57a2fa3c58 | b5321f6865f91ef8fb783a3e76e15e0d13e5a711 | /lesson_11/lesson11_ex1.py | 8aeb00e829a0e0bced0a4739ba3f56ff5a8b1983 | [] | no_license | DianaChumachenko/PythonIntro | 6689772391ed7f7e3c9380cf8470ae67fd3e9dd4 | 46e7c4c8b07ebdb076073910337b18f4d7f5ac1a | refs/heads/main | 2023-02-09T09:50:51.679456 | 2021-01-04T19:31:27 | 2021-01-04T19:31:27 | 311,464,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from pprint import pprint
d = dict(zip([x for x in range(32, 128)], [chr(x) for x in range(32, 128)]))
pprint(d) | [
"dchumachenko0508@gmail.com"
] | dchumachenko0508@gmail.com |
b094b2109fab7c668ff7b27eeb1147aa55d6aa9c | 8e13c309b04ab6e56de828ab6f2206ba84ed00d8 | /app/models.py | 72a1eae3d26f16bbd0dea9f9f8a6a06fbf0c381c | [] | no_license | mr-Sanchez/first_project | d809cfc93c8486d51ae82fae303f264fb0130d32 | 8a5defb863833fcb6905e55f34271aaabcd7485b | refs/heads/main | 2023-05-24T13:22:45.216893 | 2021-06-03T14:28:18 | 2021-06-03T14:28:18 | 363,196,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | from app import db
import re
from sqlalchemy.orm import backref
class PaymentMethod(db.Model):
id = db.Column(db.Integer, primary_key=True)
payment_method_name = db.Column(db.String(100))
payment_method_caption = db.Column(db.String(100))
class ClothesCategory(db.Model):
id = db.Column(db.Integer, p... | [
"aleksandr.ptrk@gmail.com"
] | aleksandr.ptrk@gmail.com |
f8527e61ab34f1911b17fa049c376e9b2b0500f1 | 2bb2d5f01b1f9c77e8092f1bdbf15eb10b263b2b | /livecareer/items.py | 0e150df1eb46e48395e3d8a284e86ddb68281e46 | [] | no_license | vasarmilan/livecareer-scraper | 5ab96500ed167e319eb6814953cc8f7a885bdffd | f1b545a5de506fb223d94699cfb42c66897a9959 | refs/heads/master | 2022-04-22T09:49:54.860732 | 2020-03-17T11:58:08 | 2020-03-17T11:58:08 | 247,695,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class LivecareerItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"vasarmilan@gmail.com"
] | vasarmilan@gmail.com |
fdb31dc080683eafda61d023918635e0d3993089 | 19a5407847be78fcc48dfedbfa677c78e26d39e6 | /PythonLearn/函数式编程/高阶函数/filter.py | 87444e5290e4104e6f75fc8d9fa03eae05144359 | [] | no_license | gong782008371/yuquan | f9ac943ef6f1f8a0f855eb7be289ba5f830fccfe | 93ef594ec671f3ac3a945609065bd481238cead6 | refs/heads/master | 2020-06-05T02:25:47.070041 | 2017-01-11T11:31:18 | 2017-01-11T11:31:18 | 31,074,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # -*- coding:utf-8 -*-
#Python内建的filter()函数用于过滤序列。
#
#和map()类似,filter()也接收一个函数和一个序列。
#和map()不同的时,filter()把传入的函数依次作用于每个元素,然后根据返回值是True还是False决定保留还是丢弃该元素。
def is_odd(n):
return n % 2 == 1
print filter(is_odd, [1, 2, 3, 4, 5, 6, 9]) #[1, 3, 5, 9]
def not_empty(s):
return s and s.strip()
print filter(not_empty, ['A... | [
"782008371@qq.com"
] | 782008371@qq.com |
9dcb940cd9146536df36cac078e567c812b0cf16 | e6c1c1352df0ff0906e23b3cd14520155b9d0e0c | /mysite/settings.py | ef3b731603b572d49fec66ecf0a1b4eb6d8e28b4 | [] | no_license | elciorodrigo/apiCep | 63645190d8439bb3c49f786bd474c0597655c707 | abdb7bfb2787b93ad5b19a989747d99d70c67538 | refs/heads/master | 2021-08-11T20:30:44.460138 | 2017-11-14T03:57:26 | 2017-11-14T03:57:26 | 110,638,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"elciorodrigo@gmail.com"
] | elciorodrigo@gmail.com |
d3ae884063fc0c7dd51548c9a177d6e35488fb1e | 0687f997984b71293ba896862758f46103901b36 | /compute_prediction/cnn_test.py | 2999faa86459e04be7a87ac6426d9d8c0203540b | [] | no_license | XinYao1994/Clara | 28b6ad41428301a49401d60d36d15741857dbbdc | eea38c52beb17600dd325f465a3740f267bab2e5 | refs/heads/master | 2023-08-29T22:01:17.451714 | 2021-11-01T04:08:25 | 2021-11-01T04:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,830 | py | import warnings
warnings.filterwarnings("ignore")
import numpy as np
import tensorflow as tf
#import matplotlib.pyplot as plt
import tqdm
import csv
import re
import pickle
with open("training.pickle",'rb') as ftrain:
dataset_train = pickle.load(ftrain)
X, Y = dataset_train
with open("testing.pickle",'rb') as ... | [
"qiuyimingrichard@gmail.com"
] | qiuyimingrichard@gmail.com |
bffe1c48eedf03607efaea59b6631311acfecb45 | 684cc3be4bbc6b7edfc9467e21d80b6bcfa692bc | /db/__init__.py | fc3b5e809327dc514f4fc4dd894ba88dbed3ba87 | [] | no_license | sap-ibso-t4/DemoJam2020-ML | 99ed38735ece9a95a583579c995cf7e9cde6cea5 | cb4cbe77cfb76e25b4792231b9b0444e5a236c81 | refs/heads/master | 2023-01-10T21:44:18.989212 | 2020-11-03T09:35:16 | 2020-11-03T09:35:16 | 297,948,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from .sqliteAPI import SqliteAPI
from .dict_to_itab import data_frame_to_internal_table
| [
"zzfancitizen@gmail.com"
] | zzfancitizen@gmail.com |
2aeb217b02dbe82cdc5445f4bec4aafb01b07802 | 68049b03dbbd9a3d778571794472e07c05fb00ad | /python/courses/jose_portilla/flask/sandbox/10_databases/10_1_flask_and_databases_practice/setupdatabase.py | e2f38694c1a0eb91547cf484e4e8aa594a19934b | [] | no_license | tjkhara/notes | c9e96ecea6efed860c521eb7df562c5715091aea | 5602a25ba23104e4154700108f1b8a3a0144f712 | refs/heads/master | 2023-01-20T07:42:47.129359 | 2020-11-24T06:43:24 | 2020-11-24T06:43:24 | 285,811,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from basic import db, Puppy
# creates all the tables
# takes classes and converts them into tables
db.create_all()
sam = Puppy('Sammy', 3)
frank = Puppy('Frankie', 4)
miles = Puppy('Miles', 10)
# These will say none because they are not in the database yet
# They don't have any ids
print(sam.id)
print(frank.id)
prin... | [
"tkhara@gmail.com"
] | tkhara@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.