blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
111859fe0f3c3ce7e9ce96a399d4144f3ca12f60 | 9dca27bf3f45fe55d4ad557ec377836eb5b32611 | /plottingScripts/myKalman.py | 65ace041584e5b6767edd4e2309eab98d3e93e59 | [] | no_license | Hayels406/Tracking | 42441ffa5724c8c5adece74b45755eccbbd16f5e | c82908147f1084937b80943725001f870f4125aa | refs/heads/master | 2021-03-22T04:04:05.040970 | 2018-08-09T12:43:05 | 2018-08-09T12:43:05 | 109,285,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | /home/b1033128/Documents/Tracking/myKalman.py | [
"h.e.l.moore@newcastle.ac.uk"
] | h.e.l.moore@newcastle.ac.uk |
0237b7a65a84dd7422316e2658be58ff39456d31 | 4f8bdddd8a6a9b6bd7ef42ee4c2f89a73ce5564b | /Image Recognition.py | ea31c007b23ba6ffaae6cb9b3c0bed4011e28785 | [] | no_license | KshitizzB/Image-Recognition | b169233d3e10362d32c8df2f2c7b0a3cf85f856d | 951ab0b08fcf443bd5df58a474f9ff821f56eb21 | refs/heads/master | 2020-03-22T11:56:53.908138 | 2018-07-06T16:23:00 | 2018-07-06T16:23:00 | 140,006,522 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | # Importing the Keras libraries and packages
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from keras.layers import Dense
# Initialising the CNN
classifier = Sequential()
# Step 1 - Convolution
classifier.add(Conv2D(32, (3, 3... | [
"noreply@github.com"
] | KshitizzB.noreply@github.com |
58eef6f7c5bccd89ee0ccd34eafd3e455e420680 | d40a047b3f409760e5dbcf6768df7047e5f487ff | /web/adoption_stories/adopteeStories/urls.py | 678426b7b507245babddb10a3858b928c423d22e | [] | no_license | ourchinastories/ourchinastories | 72629aed44ea15c43f75f753180e57be9566f87c | 593904786abac0294c3e933456987ffeff9026e2 | refs/heads/master | 2021-06-09T05:20:31.304499 | 2016-10-26T10:28:37 | 2016-10-26T10:28:37 | 71,987,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | from adopteeStories import views
from django.conf.urls import url
urlpatterns = [
url(r'^adoptee/(?P<pk>[0-9]+)/$', views.AdopteeDetail.as_view(),
name="adopteeDetail"),
# TODO: Eliminate tech debt and have better REST behavior here
url(r'^adopteeCreate/$', views.AdopteeCreate.as_view(),
na... | [
"jennah@stedwards.edu"
] | jennah@stedwards.edu |
4aa4a264e521e8263d040372856d3cbd5cf179fc | d6f3a38313fa132bf882173602a58b4e88615230 | /compare_image/compare4.py | 2517d6f51e53ad79f2ac004f76f4bd854d624f25 | [] | no_license | thouger/FGO_Battle | 531173ab209f30a915dc0e6b75e65babded87364 | 7ab00b6b939a1b3d8e7de89df73c5fe9e6f17285 | refs/heads/master | 2020-03-30T00:51:18.842574 | 2018-11-26T10:09:49 | 2018-11-26T10:09:49 | 150,547,308 | 1 | 0 | null | 2018-09-29T05:06:52 | 2018-09-27T07:32:44 | Python | UTF-8 | Python | false | false | 3,771 | py | import cv2
import imageio
import numpy as np
import scipy
import scipy.spatial
import pickle
import random
import os
import matplotlib.pyplot as plt
# Feature extractor
def extract_features(image_path, vector_size=32):
image = imageio.imread(image_path, pilmode="RGB")
try:
# Using KAZE, cause SIFT, ORB... | [
"t@e.com"
] | t@e.com |
b1b10f74c7b2b141fab2f67520ef2bafb047a1f3 | 051d25888b6a36e50714fa5940f6a31ee951ce77 | /gentb_website/tb_website/apps/dropbox_helper/dropbox_util.py | f43f6ff658915949644e878347d6b70ddd524912 | [
"MIT"
] | permissive | cchoirat/gentb-site | d0d627ffc160c53b61d92dc8f02a11f930a2b09a | 24ebce58cd5f5e0a2f1449e2f14b1f75b592f28f | refs/heads/master | 2021-01-21T02:20:55.909012 | 2015-11-25T18:27:23 | 2015-11-25T18:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | from os.path import join, isdir
import os
from apps.dropbox_helper.dropbox_retriever import DropboxRetriever
from apps.dropbox_helper.models import DropboxRetrievalLog
from django.conf import settings
def get_dropbox_metadata(predict_dataset):
"""
Wrap the DropboxRetriever function
- (True, DropboxRetriev... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
3b973d3e09c9f97de38156ab5d5c65f3f37eac88 | 3b9898c95102c35ac05079ebbff68a2553951c65 | /Ch5.DePitta/pycustommodules/solvers/solver_utils.py | 797b9b1319b828083195c02d56ad4b284c422b59 | [] | no_license | savagedude3/comp-glia-book | 902460f1137c4ee0d9fc53993412376eec08668e | c2e3fa54c22c9c2e04376e9af4cb3491ad1dfe91 | refs/heads/master | 2022-03-29T04:38:16.565159 | 2019-04-27T20:48:29 | 2019-04-27T20:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | """
solvers_utils.py
Library that defines solver related data structures.
Methods:
- solver_opts : create dictionary for settings of "continuous solvers such as
Euler or RK4 solvers (in related H and CPP files).
v1.0
Maurizio De Pitta', The University of Chicago, March 1st, 2015.
"""
import numpy as ... | [
"maurizio.depitta@gmail.com"
] | maurizio.depitta@gmail.com |
bcb660a70c23a57e06a129b7d5e0ac8a48ccc062 | 440736bf8cdfff0b5569105519204414414b455a | /reviewboard/hostingsvcs/tests/test_bitbucket.py | 17ebf6a31a0ba0b0ec1a00ab52f35359a3acad75 | [
"MIT"
] | permissive | bbbbbgit/reviewboard | ef456bbd848a26a0babe9bbf9d1ccfdf6cafcffc | f9cff6699ec387600d1d0540db32d1a0517c203d | refs/heads/master | 2022-07-17T01:38:12.774767 | 2020-05-12T02:43:03 | 2020-05-12T02:43:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,819 | py | """Unit tests for the Bitbucket hosting service."""
from __future__ import unicode_literals
import logging
from django.contrib.auth.models import User
from django.test.client import RequestFactory
from django.utils.safestring import SafeText
from djblets.testing.decorators import add_fixtures
from reviewboard.hosti... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
b793c18b73cf718d4a56d2d86079e007fcdd1110 | 5b2525863ad7d02aae57328e598493a5dd816335 | /oli_crm/cliente.py | 7bc5f3e6aaed34d06c324b2800cf9c5c9473d4db | [] | no_license | rejamen/oli_studio | 4707a718baa27630571caadd0298ee654799ef6b | 56fc6a2456dff51d9d9182648b3d62bb6cc69dee | refs/heads/master | 2020-06-14T17:20:00.239332 | 2018-01-24T21:19:05 | 2018-01-24T21:19:05 | 195,070,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
import os, sys
from openerp.osv import osv
from openerp.tools.translate import _
from datetime import datetime, date
class cliente_cliente(models.Model):
_name = 'cliente.cliente'
def check_permission(self, cr, uid, ids, context=None):
f... | [
"rejamen@gmail.com"
] | rejamen@gmail.com |
0f575114c740a9d4d0a6ef18d6c3eed531df65f9 | fff3c194287eea1260c18a638d2d0287b7ce80d7 | /Fazt-Python/functions.py | c87f77e9c30fab3ed7fe2178a8fa86871f35eab8 | [] | no_license | jav2074/python-curso | 8efecd848df9d9949220d1edcadbf546662c9972 | 8bbc1215a00efe80ecade8b7bc79607e9a201010 | refs/heads/master | 2022-05-23T03:09:11.874813 | 2020-04-28T04:05:20 | 2020-04-28T04:05:20 | 259,351,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | def funcion():
print("Hello dude!!") ## Declaración normal
sumar = lambda n1, n2: n1 + n2 ## Declaración más cool
print(f"La suma de 10 + 30 = {sumar(10,30)}") | [
"jav.electrochance@gmail.com"
] | jav.electrochance@gmail.com |
7d73a85d5a3225d378732273639e817589855b7f | 1f6fcaba4fb7c5023e21105f3941ff921b48f9da | /manage.py | 20465c7d94f9f938d476f83ea55f69edb8f3ccd8 | [
"MIT"
] | permissive | Hugo-mesk/sb-admin-django | 79564c2cda609be1159413de16ddc103daa9efca | 55cb7c6704db9ac287ead67c76b4e9666e55a231 | refs/heads/master | 2020-04-29T19:52:31.816341 | 2019-09-18T01:14:09 | 2019-09-18T01:14:09 | 176,368,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sb_admin.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"hugo.mesk@gmail.com"
] | hugo.mesk@gmail.com |
32f23cb372dfdf98567ae16228bdbb95e6934524 | 74549d7c57b4746ac2a9c275aa12bfc577b0e8af | /hogwartsEmailAdderss.py | 245b738aa52c6cc12e18274915c1042e79fc0fa9 | [] | no_license | abidkhan484/hackerrank_solution | af9dbf6ec1ead920dc18df233f40db0c867720b4 | b0a98e4bdfa71a4671999f16ab313cc5c76a1b7a | refs/heads/master | 2022-05-02T11:13:29.447127 | 2022-04-13T03:02:59 | 2022-04-13T03:02:59 | 99,207,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #!/bin/python3
import string
def isValid(email):
for i in range(5):
if email[i] not in string.ascii_lowercase:
return 'No'
else:
if email[5:] != '@hogwarts.com':
return 'No'
return 'Yes'
if __name__ == "__main__":
s = input().strip()
result... | [
"noreply@github.com"
] | abidkhan484.noreply@github.com |
30be4f592bf60c640c8d02efec383730b5e1a5b5 | 8bcf166b364427c77daebaca28e30145ffefe72e | /v0.5/training/keyword_spotting/eval_quantized_model.py | 9f9648df0cb1234ca6e78506c79f4b0a2fd1c2c3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | shahbazabbasi313/tiny | 61992854194460a03b94b45ee5719d60ad7aa4a6 | 0b04bcd402ee28f84e79fa86d8bb8e731d9497b8 | refs/heads/master | 2023-07-22T13:04:03.353053 | 2021-08-16T15:30:00 | 2021-08-16T15:30:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,654 | py | import tensorflow as tf
import os
import numpy as np
import argparse
import get_dataset as kws_data
import kws_util
def predict(interpreter, data):
# Get input and output tensors.
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
# Test the model on input d... | [
"noreply@github.com"
] | shahbazabbasi313.noreply@github.com |
dbab2a986b7d8d5f43a5b9fe7805078b099fd92d | 42b6dbe23ba392fe53d958e26d77a596ee5b7c5a | /RegistroHoras/Actividades/admin.py | 6b324b6805062a400c7aa894be36788e987df86c | [] | no_license | parraletz/RegistroHoras | 611d0eb44542d595b65f97c66f17bfff9af167d3 | 6096f26af84932f4f2cb8764e76cc2bd54f8bb7a | refs/heads/master | 2020-04-06T07:06:11.313349 | 2012-09-13T02:10:33 | 2012-09-13T02:10:33 | 5,774,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from django.contrib import admin
from RegistroHoras.Actividades.models import Actividad
class ActividadAdmin(admin.ModelAdmin):
list_display = ('ticket', 'usuario' , 'fecha', )
ordering = ['ticket',]
class Media:
js = ('/media/js/tiny_mce/tiny_mce.js', '/media/js/textarea.js')
admin.site.register(Ac... | [
"parraletz@MacBook-de-Alex.local"
] | parraletz@MacBook-de-Alex.local |
6d77d6d52951c53f4d0ef07221cb6ae33d1286a2 | 2c904b9f2cdb7baf1f84dbd622312357e05de734 | /config/wsgi.py | b6b2b1f00bf49f88e5a2ca9848f049a169f6e0c1 | [] | no_license | teresaliu20/Social-News-Backend | e026701531df198592138f11b1d5ab71bc0ea8b9 | 86d0823f27a265d6e977240de7fbbe9e524199f4 | refs/heads/master | 2021-09-09T09:33:50.202607 | 2019-05-06T03:02:42 | 2019-05-06T03:02:42 | 170,370,281 | 0 | 0 | null | 2021-09-08T00:59:58 | 2019-02-12T18:35:01 | Python | UTF-8 | Python | false | false | 1,942 | py | """
WSGI config for paper project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` se... | [
"teresali@usc.edu"
] | teresali@usc.edu |
1fcb89c5c39abd1703dd85a4ef5a5f187e638036 | e0985213177cb63350db6efa9c2be93af3dccc55 | /1. Neural Networks and Deep Learning/Week 3/planar_utils.py | 852c34d6eca94af4e2e40240ffd97764b5cd764b | [] | no_license | Tinsae/Deep-Learning-Projects | c3e7172d31e6b4ebae63b23b7b8a4584b243c7b3 | 9853ed9d0e0675dab5d612bcc267ae9a666c17e2 | refs/heads/master | 2020-04-05T13:47:22.006512 | 2019-06-10T00:20:49 | 2019-06-10T00:20:49 | 156,909,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | import matplotlib.pyplot as plt
import numpy as np
import sklearn
import sklearn.datasets
import sklearn.linear_model
def plot_decision_boundary(model, X, y):
# Set min and max values and give it some padding
x_min, x_max = X[0, :].min() - 1, X[0, :].max() + 1
y_min, y_max = X[1, :].min() - 1, X[1, :].max(... | [
"Tinsae@users.noreply.github.com"
] | Tinsae@users.noreply.github.com |
f401333e5549b41f09b8c1318936448c3a83d737 | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part9-Manipulating-DataFrames-with-pandas/No08-Changing-index-of-a-DataFrame.py | c7f11201fbcc7e64a48481ca0e8a27f8c2375844 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | #Changing index of a DataFrame
'''
As you saw in the previous exercise, indexes are immutable objects. This means that if you want to change or modify the index in a DataFrame, then you need to change the whole index. You will do this now, using a list comprehension to create the new index.
A list comprehension is a s... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
66f58fbdd6e05d8b3b7be819f956b8858a9e2dd3 | df1ce1c88d5997259a8429dfbb07377a561113f0 | /assignments/2008-2012/universityOfWaterloo/cs116/a6/a6q1.py | c984ed2cee674a280cf845e45c2f89b6f98d8798 | [] | no_license | watadarkstar/school-works | 0b4c5603461b02cd573ac00caa04660ddd58ad78 | d4b7c8a19415bc2d74c73eb4a5da0932020ee5a6 | refs/heads/master | 2016-09-05T22:53:27.341377 | 2013-08-26T06:04:43 | 2013-08-26T06:04:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | ##
## *****************************************************
##
## CS 116 Assignment 6, Question 1
## Darren Poon
## (How_many_buckets)
##
## *****************************************************
## Contract: how_many_buckets: int[>o] int[>0] int[>0] -> int[>0]
## Purpose: consumes the height and radius of a cylindr... | [
"dyhpoon@gmail.com"
] | dyhpoon@gmail.com |
ffcd183098cfe16aeeca43b435378c6bfc58a74c | 586973165efb8ac1347b1d5e5187200d9fbaa4e1 | /prediction/Long_short_term_memory_keras_in_tf.py | bd0fd73b9bf1c26a15965bd57caa0e27b27bdfba | [] | no_license | Jaehoon-Cha/machine_learning | 01dd84445fa646786b503122b21477209a574f8a | a0f84da3dc1df5a99a05ec09b4913c14bf4820f2 | refs/heads/master | 2020-06-10T20:20:33.194291 | 2019-07-17T03:05:58 | 2019-07-17T03:05:58 | 193,735,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 28 13:10:13 2019
@author: jaehooncha
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.preprocessing import scale
import tensorflow as tf
from tensorflow.keras.layers import Dense, Dropout, CuDNNLSTM, BatchNormalization
from tensorflo... | [
"Jaehoon.Cha@xjtlu.edu.cn"
] | Jaehoon.Cha@xjtlu.edu.cn |
317c96201c4bbb1152cd1d5db29ad9863b206e8f | e2e9714ed29e337598f104873e3ee6f476fd1030 | /URET/uret/__init__.py | ff4f758dc2ce7d0931600204c606355fe8e9e787 | [
"MIT"
] | permissive | shekoelnawawy/Ohio_13 | 5cc776431e31fcb2d4b0aed43d35d3d4cf25dea8 | 14ec296603a3a0cbd0a0ff0dceebf4cd48e24de9 | refs/heads/master | 2023-08-09T21:28:13.880192 | 2023-07-25T19:04:46 | 2023-07-25T19:04:46 | 637,802,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | """
Universal Robustness Evaluation Toolkit (URET).
"""
import logging.config
# Project Imports
from uret import core
from uret import transformers
from uret import utils
# Semantic Version
__version__ = "0.1" | [
"shekoelnawawy@gmail.com"
] | shekoelnawawy@gmail.com |
d027bb05b1862af384adc59f927dd4b314f9cd57 | 2ab1359e620d3cde6aa6dbbc4ac0052aa4d8b60d | /not_used/pd_dash.py | 0176797fff5b79e89fe8824ed903ff1dd563d52b | [] | no_license | lauratomkins/gis714_project | 167fef58e09ae3d841dca07c96b6d1186c7e2541 | 5261b4751ba040e4b9732cdf553a80b886570408 | refs/heads/master | 2022-11-12T08:07:57.670108 | 2020-06-25T18:10:49 | 2020-06-25T18:10:49 | 258,236,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,010 | py | # step3_map.py
# GIS 715 Student-led lab - Dash
# Add map of California fires by cause.
# Now we will add a second component to the Dash layout. We can use the scattermapbox plotly object to create a map of fire point locations.
# For now the map is not interactive (beyond the out of the box functionality).
# We will ... | [
"lmtomkin@ncsu.edu"
] | lmtomkin@ncsu.edu |
f66ad507a19057092e4b6df1111b5029c988e1a9 | 20448841fe75541d2f5b9879178e0f874daede38 | /Whats Your Name.py | 57d7231ef7080fc9104d81d3a0bc0a99dc7fff91 | [] | no_license | dnskvamsi/Hacker_rank_python_solutions | d421bfe231c3d6913fc5285c254ec67ea2c76845 | d118734f2cee1df64df02e0421fff68aa5c51cc7 | refs/heads/main | 2023-05-03T23:28:20.035678 | 2021-05-26T10:59:31 | 2021-05-26T10:59:31 | 370,945,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
def print_full_name(first, last):
print("Hello "+first+" "+last+"! You just delved into python.")
if __name__ == '__main__':
first_name = input()
last_name = input()
print_full_name(first_name, last_name)
| [
"noreply@github.com"
] | dnskvamsi.noreply@github.com |
844110cd890f6188de3e075fd83348fe08cb99db | 14869a028857850c9847780a18949e40f23f2390 | /format.py | 1195d3754b01c9375087971705df0cceb8462387 | [] | no_license | djdevastate123/gittest | 97c17428b3d7d05475c2094258c06f3afabecf8a | 9b9f554ba8231cd3639cc9e80f2d6c75623c0534 | refs/heads/master | 2021-01-20T15:07:08.724089 | 2018-04-26T05:58:07 | 2018-04-26T05:58:07 | 82,796,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# format.py
#
def main(args):
print("{} {}".format(1,2))
print("{1:>20} {0:>10}".format(1,2))
print("{1:_>20} {0:.>10}".format(1,2))
print("{1:_^20} {0:.^10}".format(1,2))
print("{:10.5f}".format(3.14159265))
print("{:*^30.5f}".format(3.1... | [
"krzysiek.st12@vp.pl"
] | krzysiek.st12@vp.pl |
9d5dc3893913b6b5006a5bcb85823c9e26f502f5 | c923b6c128d59346b628f8e7efb44733dea75188 | /serialize.py | 20c0fad1302e25937454ce0dec9c66ff53788846 | [] | no_license | archcompyym/lab_1 | 391fc9d9e4aaa11d19c80d1b27c2a8fa0d867d37 | 29a0ceec5fefe41935b939670d7e7eaa0d4725ab | refs/heads/master | 2021-01-19T02:50:48.285775 | 2017-06-07T09:55:16 | 2017-06-07T09:55:16 | 87,296,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import pickle
import yaml
import json
pickle_type = "pickle"
yaml_type = "yaml"
json_type = "json"
def load(file_obj, serialize_method):
""" deserialize data"""
if serialize_method == pickle_type:
return pickle.load(file_obj)
elif serialize_method == yaml_type:
return yaml.load(file_obj)
... | [
"vimikeva@gmail.com"
] | vimikeva@gmail.com |
24558780b52d38e43180b755205c210b0960481d | 80308dc6fcbc87294d4ae96c4b30d0aac6e88d6a | /multifield_batch_update/dialogs/change_log.py | 33ff4545cf46192dd83b0ce3824a14148f628e55 | [
"Apache-2.0"
] | permissive | d3v3l0/anki_multifield_batch_update | 0d2924b4d2c164d7aee5702fb6b648878da5aaea | 4960a6e969256ff0df2ebf37312e80fa009fcddb | refs/heads/master | 2022-01-07T00:08:58.959963 | 2019-07-16T04:54:29 | 2019-07-16T04:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,817 | py | # Copyright 2019 Matthew Hayes
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | [
"matthew.terence.hayes@gmail.com"
] | matthew.terence.hayes@gmail.com |
5dd3020194be4c171728f463e6545624855f4e17 | 0ce2222dea1171a118fa248eb4c5e5f0f6c653a3 | /tests/main_test.py | cb849772a8efd556c8df21c09b3cbf5d4deb0f8b | [] | no_license | ijandric97/pawtrails-api | b7e801edee740f1ba8e78d94c9bee147f09074a1 | 04f821ba92642d36eed7131388e52a8a7e17134c | refs/heads/master | 2023-08-05T04:49:46.486757 | 2021-08-20T13:17:12 | 2021-08-20T13:17:12 | 365,889,839 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from fastapi.testclient import TestClient
def test_healthcheck(client: TestClient) -> None:
response = client.get("/healthcheck")
assert response.status_code == 200
assert response.json() == "OK"
| [
"ijandric97@gmail.com"
] | ijandric97@gmail.com |
8ba3cfe7aac4b2be3b6c7f45f3b277c2dfa3d565 | 4de1ebd9870e264128a9bbdce1f25af5256de543 | /Functions2.py | 453854b2456236d4ccdd5d8020a59e86f3b7aeb2 | [] | no_license | lhenslee/superscreener | 80d2bbfcf750f3f7b0b42d2b21b223f1ba680dbc | b92374d8b392be2bca36191f36505234a2949492 | refs/heads/master | 2021-01-23T20:38:33.655630 | 2017-09-11T20:59:26 | 2017-09-11T20:59:26 | 102,870,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,430 | py | from alpha_vantage.timeseries import TimeSeries
from bs4 import BeautifulSoup as bs
import datetime as dt
from decimal import *
import numpy as np
import os
import pandas as pd
import pandas_datareader as pdr
from pandas_datareader._utils import RemoteDataError
import pickle
import threading
from urllib.requ... | [
"ilanetheboss@debianlane.lane.com"
] | ilanetheboss@debianlane.lane.com |
8e9117700b1d68aac821093d352d3191e6d3d04b | 77296ca8e8e7d52fdf5b7a51edfd81b4d2a6411e | /{{cookiecutter.project_slug}}/tests/params.py | 28a95129ea1c626d96bc858e9f7aefc608dc0884 | [] | no_license | ann-cooper/cookiecutter-estimator | 686bd73805e8305adda4a04024a3460583c61c42 | f68bdf6dc041128b071b9ff85e1405746567b553 | refs/heads/main | 2023-03-24T01:38:47.668365 | 2021-03-23T11:12:24 | 2021-03-23T11:12:24 | 349,731,710 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | from collections import Counter
rules_params = [
("1. 1, 1 returns 3", 1, 1, 3, False),
("2. 0, 1 returns 3", 0, 1, 3, False),
("3. 1,0 returns 1", 1, 0, 1, False),
("4. 3, 0 returns 3", 3, 0, 1, False),
("5. 0, 2 returns 3", 0, 2, 3, False),
("6. 3, 2 returns 5", 3, 2, 5, False),
("7. 3, 1... | [
"cooperannc@gmail.com"
] | cooperannc@gmail.com |
013654ac9a924e69f4700208a6c896d4f852b00f | 3afab94a839e6a3b3c393adc489d49d3f95e325f | /core/api/viewsets.py | ff0065ac63d86c96d4b140574d35b45b14660695 | [] | no_license | gustavolio/DjangoREST-APIPontosTuristicos | ec9b88560bd4b619cdb0ae7e53b11a5c97e0aa36 | f1bae32a5979eefea14c4ee02dc647fa8041aa37 | refs/heads/master | 2023-01-23T10:49:25.542990 | 2020-12-03T20:02:44 | 2020-12-03T20:02:44 | 284,767,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | from rest_framework import viewsets, filters
from .serializers import PontoTuristicoSerializer
from core.models import PontoTuristico
from rest_framework.permissions import IsAuthenticated
# from rest_framework.permissions import IsAdminUser
from rest_framework.authentication import TokenAuthentication
class PontoTuri... | [
"g.cdcomp@gmail.com"
] | g.cdcomp@gmail.com |
7a557dc7b524ac47a104f6c74e8d7e1557c61e19 | 93b6ec0a0b7d350e42a96f662bd8c19038915373 | /scripts/gen_release.py | dc62bf7ab977f1199b48f0e2e110064bddfc86ea | [
"Apache-2.0"
] | permissive | thought-machine/please-servers | 10c2fc20207249d18c116f2baa5d1c76a5a95c5f | d31c2a2ade0b80aac9067b00a43d7d0a073489d7 | refs/heads/master | 2023-08-22T13:58:36.814065 | 2023-08-15T14:43:24 | 2023-08-15T14:43:24 | 232,153,786 | 7 | 12 | Apache-2.0 | 2023-08-24T08:39:55 | 2020-01-06T17:47:53 | Go | UTF-8 | Python | false | false | 3,661 | py | #!/usr/bin/env python3
"""Script to create Github releases."""
import hashlib
import json
import logging
import os
import subprocess
import sys
import zipfile
from third_party.python import colorlog, requests
from third_party.python.absl import app, flags
logging.root.handlers[0].setFormatter(colorlog.ColoredFormatt... | [
"peter.ebden@gmail.com"
] | peter.ebden@gmail.com |
2c876b1f1e1c38c15823f76a07a89de077f6621b | b6ba70e8535ccd4df1d14dc7c07a093642e281a0 | /examples/function_and_class/knn.py | f7a495bf0ea5c9b8a18579b30927ac40d3e3b7a3 | [
"MIT"
] | permissive | Obarads/torchpcp | 99b233c086617697dfc7e5f0c04ae16aff247daf | 86e19cc5c1196f22f609f2d98504b913272cbba8 | refs/heads/master | 2023-07-05T20:44:20.485218 | 2021-08-16T01:53:47 | 2021-08-16T01:53:47 | 293,244,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,451 | py | import numpy as np
import torch
from torch.utils.data import DataLoader
# local package
from libs import tpcpath
from libs.dataset import SimpleSceneDataset
from libs.three_nn import three_nn # PointRCNN
# torch-points-kernels
import torch_points_kernels as tpk
# torchpcp pacakage
from torchpcp.modules.functional.o... | [
"id115561@gmail.com"
] | id115561@gmail.com |
20ac97c759b78886592cf435a9a22569d62392bd | 4d9422c56a606432eaa2d0a45c16ee0df390b639 | /model/callbacks.py | df0cbd8ef1c382663eba693f5150bbe52ed9a5b4 | [
"MIT"
] | permissive | svpeeters/performance_prediction | f3f139d93d2527752bba41ab1c305e74925c1073 | 713e78441d59a5dafccaa43858a0478a29b43e2f | refs/heads/main | 2023-04-11T05:20:43.247242 | 2021-04-22T19:43:44 | 2021-04-22T19:43:44 | 314,288,762 | 0 | 0 | null | 2020-11-20T14:50:38 | 2020-11-19T15:26:25 | Python | UTF-8 | Python | false | false | 4,409 | py | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import tensorflow as tf
tf.get_logger().setLevel('ERROR')
class MonotonicCallback(tf.keras.callbacks.Callback):
"""
Callback that organizes the monotonic penalty computation for the training and th validation set. If the model
is in training mode the pen... | [
"speeters@mail.upb.de"
] | speeters@mail.upb.de |
0d788a1849f7407ed0c963a2f1ff2282a44211eb | a8599b7cb0f1deac1b8a62a35f3f1c95c6d0e7ba | /lookerapi/models/prefetch_access_filter_value.py | 57b4a9ca5a801c241765ae52b290b512cbe56f01 | [
"MIT"
] | permissive | llooker/python_sdk | b82b1dbe30a734b1cc1e1bcafd3d2ac7ce9fa705 | 8364839b1de0519771f2f749e45b4e6cb1c75577 | refs/heads/master | 2020-03-30T08:40:42.562469 | 2020-01-16T00:08:31 | 2020-01-16T00:08:31 | 151,030,473 | 13 | 10 | MIT | 2020-01-16T00:08:32 | 2018-10-01T03:07:09 | Python | UTF-8 | Python | false | false | 6,563 | py | # coding: utf-8
"""
Looker API 3.0 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | [
"russell@looker.com"
] | russell@looker.com |
524b08c17f3b308214909ee6b437d2bfceb346b4 | 6c8d702b5956aab847f5783d96965a227e649eff | /find_coordinates_germany.py | d752a4b2b2c7684dabd77aa075ccb048cae9e6dd | [] | no_license | ew-shopp/weather_import | 2155d83476f7106348bae086ec97ad21cc5caa8a | c1880223714f1ce6d369feeed7ed7907eeb3639f | refs/heads/master | 2021-04-30T01:44:05.197464 | 2019-09-10T13:50:44 | 2019-09-10T13:50:44 | 121,489,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,100 | py |
import pandas as pd
import geopy.distance
jot_cities = pd.read_json("sf/citiesInJotDataset_germany.json", typ="series")
geonames = pd.read_csv('sf/download.geonames.org-export-dump/DE.txt', sep='\t', header=None)
geoname_cities = []
for i in range(len(geonames)):
if "P" == geonames.loc[i,6]:
entry =... | [
"steffen.dalgard@sintef.no"
] | steffen.dalgard@sintef.no |
bbe71ab825436d8c21b377fc1eec83eefb6a5520 | dda122e6ba6d3b591dd7c0e808a4c42e8a93d714 | /data_structures/stack/test_stack.py | 0a9367dda1e9bd14aaa55bd37da9e38df6adfe73 | [] | no_license | tobyatgithub/data_structure_and_algorithms | 4c8e1d8a756ba8950446ffd00568a237204f5684 | bd2f46bf9bffb846dc1262093619b7da395a2203 | refs/heads/master | 2020-04-08T13:42:56.661842 | 2019-02-13T08:38:16 | 2019-02-13T08:38:16 | 159,403,405 | 0 | 0 | null | 2019-02-13T08:37:51 | 2018-11-27T21:44:50 | Python | UTF-8 | Python | false | false | 1,516 | py | from .stack import Stack
from node import Node
import pytest
@pytest.fixture()
def empty_stack():
return Stack()
@pytest.fixture()
def single_stack():
tmp = Stack()
tmp.push(2)
return tmp
@pytest.fixture()
def mid_stack():
tmp = Stack()
tmp.push(2)
tmp.push("4")
tmp.push(['6'])
re... | [
"toby.fangyuan@gmail.com"
] | toby.fangyuan@gmail.com |
19cb350fe6ef91ef6239c5d4681aab2a4ccd5ce6 | 397e4863f1d123c9a7d5e0dac74d8747c3408b83 | /netmikouse.py | 3bab56ba7739b8337568ca73d5c97d9d6fb6fe16 | [] | no_license | javincraig/Homelab | 91686d858dff55c6f3eaf8a02d121e3dc8179af4 | c0513378c20bd3928d875b3006dff16421d0696d | refs/heads/master | 2020-04-27T08:16:56.346167 | 2019-08-18T16:37:54 | 2019-08-18T16:37:54 | 174,164,649 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | from netmiko import ConnectHandler
#---------------Gather information---------------------
ip = input('What is the management IP?: ')
username = input('What is the username? [cisco]: ') or 'cisco'
password = input('What is the password? [cisco]: ') or 'cisco'
cisco_switch = {'device_type': 'cisco_ios',
... | [
"noreply@github.com"
] | javincraig.noreply@github.com |
6a7d74b421446916cc56287fe801c65bbd719a47 | fce9aa2870a749dd9eb86c4123360467f524fb7b | /Team-Notes/Python-Competitive-Programming-Team-Notes/Number Theory/is_prime_number.py | d7547f3caf17e834eb73568817631687fb352b02 | [] | no_license | KOYOEN/Coding-Test | 82ae0f5cfe6fb02b9b8ab4322e94c554fb64cda4 | 6080cfae3d7c317b9ae0c5d097046431b857954f | refs/heads/master | 2022-12-28T19:28:07.070033 | 2020-10-08T04:28:27 | 2020-10-08T04:28:27 | 298,543,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import math
# 소수 판별 함수(에라토스테네스의 체)
def is_prime_number(n):
# 2부터 n까지의 모든 수에 대하여 소수 판별
array = [True for i in range(n+1)] # 처음엔 모든 수가 소수(True)인 것으로 초기화(0과 1은 제외)
# 에라토스테네스의 체
for i in range(2, int(math.sqrt(n)) + 1): #2부터 n의 제곱근까지의 모든 수를 확인하며
if array[i] == True: # i가 소수인 경우(남은 수인 경우)
... | [
"happy2473@me.com"
] | happy2473@me.com |
3e351c8c1dc090583cc67990266dda903cd032c1 | bf2608e054216fdacfd81ace22080b85b373d08d | /lib/python/usdNodeGraph/ui/graph/pipe.py | 4f3e46bddb8fee82a2787221ffb305947313909c | [] | no_license | yoann01/usdNodeGraph | 89d31dcf6d25ad9da557ee035483ac6e4972361f | 30909589bc546d24e55b8eeed4a61b17bef65d97 | refs/heads/master | 2020-09-08T09:35:20.244013 | 2019-09-26T15:42:23 | 2019-09-26T15:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,724 | py | # -*- coding: utf-8 -*-
# __author__ = 'XingHuan'
# 8/29/2018
from usdNodeGraph.module.sqt import *
import math
PIPE_NORMAL_COLOR = QColor(130, 130, 130)
PIPE_HIGHTLIGHT_COLOR = QColor(250, 250, 100)
class Pipe(QGraphicsPathItem):
"""A connection between two versions"""
def __init__(self, orientation=0, ... | [
"xinghuan951230@gmail.com"
] | xinghuan951230@gmail.com |
f8072d166c27ede45c6eea1cc9f07f9f1b317f63 | 3ec8a082b67f01ec09e0fc70d13551dc8785c935 | /src/Network.py | edecac642235a0f5120c0ec227e66adef4baa76d | [] | no_license | SiWALLE/ML-Exercises | efbddd0794c67bd429c5620a0c362c1b9cbc6c89 | ea316b56ce06000882eefeb6c12fd69bbca3b531 | refs/heads/master | 2021-01-10T15:45:13.825332 | 2015-11-23T11:56:18 | 2015-11-23T11:56:18 | 43,604,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | import numpy as np
import random
class Network(object):
def __init__(self,sizes):
self.num_layers = len(sizes)
self.sizes = sizes
self.biases = [np.random.randn(y,1) for y in sizes[1:]]
self.weights = [np.random.randn(y,x)
for x,y in zip(sizes[:-1],... | [
"liangsibiao@live.com"
] | liangsibiao@live.com |
1d0f1708b2047d74b522e65d8dec492d48924d31 | b01fa826686cd72a1d132e9c719c3341a104e837 | /backend/vacancies/urls.py | 9a41152607890096d8b98d94c6b3af765254d9e6 | [] | no_license | V-ampire/kmsjob | d52a265eb79c778098294778d8d1730e05ef1b05 | 6c73f296cb74090c165dfee102ea99d46f299038 | refs/heads/master | 2023-08-10T19:57:42.693168 | 2021-09-29T11:24:17 | 2021-09-29T11:24:17 | 372,736,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | from django.urls import path
from . import views
app_name = 'vacancies'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('by_date/', views.ByDateView.as_view(), name='by_date'),
path('search/', views.SearchView.as_view(), name='search'),
path('detail/<int:pk>/', views.VacancyDet... | [
"webjob010@gmail.com"
] | webjob010@gmail.com |
8d9ed80c405b51c9ccd69aa03cda41513299e041 | 2bca0f3f0eb3d0560cf5953a1bcc6bfb4f1e8262 | /python_test.py | 7c16d4fd6d0e9d6f991ed8f53af9d22c21b7f837 | [] | no_license | apdjustino/UrbanSimDataExplorer | 2254f1bd437e92695948409ebfd518ba2d314768 | f5fdd4848d2efc5350ef19c1cc428808fb6555fa | refs/heads/master | 2021-01-24T20:40:20.156171 | 2018-01-10T15:56:37 | 2018-01-10T15:56:37 | 51,838,158 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | import datetime
print "Current time is: {0}".format(datetime.datetime.now())
| [
"justinmartinez14@gmail.com"
] | justinmartinez14@gmail.com |
ce8c9ecc1ead17d79aae5400b88c34aa2d8b7af9 | 9a78e2a176f93fce034b16d67dd47ed80e875dfa | /diploma/settings.py | d5b620694ca73d45ea871d164e8ca7c2d1fff431 | [] | no_license | sinchuk140995/courseon | f431a4071321b7a7e7d9315ad508e0feddd1204a | 0e955db4f35cc6cdbde6b919095dd5885e45094c | refs/heads/master | 2021-06-18T11:32:26.261228 | 2017-06-10T12:26:24 | 2017-06-10T12:26:24 | 94,334,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | """
Django settings for diploma project.
Generated by 'django-admin startproject' using Django 1.11.1.
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... | [
"sinchuk140995@gmail.com"
] | sinchuk140995@gmail.com |
6d448fccf0934c608839d970b48032d28903b3bb | a6b543cd11b2d5e66a87c7240b80050b34616aef | /code-implementation/dstree_random_forest.py | 04e383c0f82a77d7e84864129767f516606a9d09 | [
"MIT"
] | permissive | GamjaPower/kaggle | e7814de293d5eee58653eccf1700fd6033548726 | 8ebedc73769c3c04d9c80f9e8877a10164c9c5e8 | refs/heads/master | 2020-03-30T05:56:26.882863 | 2018-09-29T09:13:57 | 2018-09-29T09:13:57 | 150,828,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,176 | py | # -*- coding: utf-8 -*-
'''
Created on 2018. 9. 24.
@author: jason96
Apply Gini Impurity
'''
import pandas as pd
from graphviz import Digraph
import os
import operator
import numpy as np
raw_data = {
'name': ["Kang", "Kim", "Choi", "Park", "Yoon"],
'짱절미': [True, False, False, False, False],
'셀스타그램': [F... | [
"jason96@localhost"
] | jason96@localhost |
7dbdef860fb395b2ba8fcbbcdc96fb4cfb5f506f | c742b2449118a93dbd3dc02bd4c2c0f64aada70d | /config/urls.py | 28f590cbf43e5437ca9e146844c888203f13795a | [] | no_license | XerxesDGreat/lego-django | 28cf927a5d887a60df0744bb8f545a938b99581c | 413bd783e4591b1659b369f539214d546fcfefbd | refs/heads/master | 2022-12-09T19:22:02.409304 | 2018-07-28T14:50:29 | 2018-07-28T14:50:29 | 134,971,037 | 0 | 0 | null | 2022-12-08T02:17:43 | 2018-05-26T15:03:52 | Python | UTF-8 | Python | false | false | 798 | py | """lego 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-based vi... | [
"josh@life360.com"
] | josh@life360.com |
f28354d557aa4187afb4bed39f29e95ef56adc1a | bbe62b72f111dbff6d4640b4466e6fc9f750ee06 | /Ryker.py | c32dae111b1de922bd51eb0c94b15341d09f62a3 | [] | no_license | Get2dacode/python_projects | 210f54e8f9af394d82d4423c474e4d2e46d28270 | e3e54d0d403486eabefbda4ec3e7eb997fd4e984 | refs/heads/main | 2023-09-01T02:14:43.762971 | 2021-10-04T14:38:36 | 2021-10-04T14:38:36 | 411,525,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | from gtts import gTTS
import speech_recognition as sr
import os
import re
import webbrowser
import smtplib
import json
import datetime
import wikipedia
def talkToMe(audio):
"speaks audio passed as argument"
print(audio)
for line in audio.splitlines():
os.system("say " + audio)
# use the sy... | [
"noreply@github.com"
] | Get2dacode.noreply@github.com |
5d72ac65b8e839c4bc6c03dba165452e798e2782 | 033f74cb79f13ac11fdd350988ade17d9a574512 | /pages/urls.py | b548e1bb25545969789f2e0e907aecaafd97c33b | [] | no_license | LevitKanner/LK | 0c8f9371c02cf9b505b4c410133fff9351dae87d | 06299b4cf9254b02c248a402463151eda6e987af | refs/heads/master | 2023-01-30T18:54:24.429389 | 2020-12-15T16:57:19 | 2020-12-15T16:57:19 | 320,998,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.urls import path
from . import views
app_name = 'pages'
urlpatterns = [
path('contact', views.contact, name='contact'),
path('<str:page_name>', views.index, name='index'),
path('', views.index, {'page_name': ''}, name='home')
]
| [
"lkanner21@gmail.com"
] | lkanner21@gmail.com |
ff232665d973cfa366f41832e709d9e67bf27184 | 8666bba3cef8dabf3fbe129eb7f32c46f4715c35 | /src/db/MainLandMarket/GetStockHistory_wind.py | a670f2053c031b7895fce66c841936e097e60994 | [] | no_license | Wangxian111/nsnqt | 0c357130f9923097b03eb43eaf1317d044027fc7 | b1536d857be526501578a7c7da6137e0a51c9cf0 | refs/heads/master | 2020-05-23T08:18:51.809583 | 2016-10-07T06:55:30 | 2016-10-07T06:55:30 | 70,222,925 | 0 | 0 | null | 2016-10-07T07:00:58 | 2016-10-07T07:00:57 | null | UTF-8 | Python | false | false | 1,391 | py |
from WindPy import *
from datetime import *
par_list = "pre_close","open","high","low","close","volume","amt","dealnum"
#full value set
#w.wsd("600518.SH", "pre_close,open,high,low,close,volume,amt,dealnum,chg,pct_chg,swing,vwap,adjfactor,close2,turn,free_turn,oi,oi_chg,trade_status,susp_reason,mf_amt,mf_vol,mf_amt_... | [
"harry0519@gmail.com"
] | harry0519@gmail.com |
cd6ec6391a155ab9683f22c18d3cb4dcde470e84 | aab2ad13d6023544fbe546d8ca90bb28259a6fc1 | /image_rc.py | 8f670933f38a45cfdfee90bb8a9b0eebbe0b71de | [] | no_license | HanzoZY/DBCD | c141384ac85226f5dfbe16cdbe478251d5bfc3ee | c3818bb6738f64d3a6a1ccdbc40124b05307a200 | refs/heads/master | 2020-03-28T20:55:59.939875 | 2018-09-17T11:32:09 | 2018-09-17T11:36:53 | 149,114,828 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'image_rc.qrc'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
| [
"zhangyuhan@zyhdeMacBook-Pro.local"
] | zhangyuhan@zyhdeMacBook-Pro.local |
3d456ff2fdf7f69d9519317f0a9a47b44322d273 | f4b75e06e456dbd065dc57f07d55a2f5ec4ad688 | /openstates/data/migrations/0012_person_current_role.py | d9e866c1e3a313f007b32336097bd875c571590a | [
"MIT"
] | permissive | openstates/openstates-core | 19bf927a2e72c8808a5601f4454846acaf32218a | 3055632ea7ddab6432cc009989ffb437aed6e530 | refs/heads/main | 2023-09-05T10:30:58.866474 | 2023-09-01T15:43:59 | 2023-09-01T15:43:59 | 251,511,904 | 19 | 27 | MIT | 2023-09-06T19:30:03 | 2020-03-31T05:47:28 | Python | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.0.5 on 2020-08-04 15:24
import django.contrib.postgres.fields.jsonb
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [("data", "0011_auto_20200804_1108")]
operations = [
migrations.AddField(
model_name="person",
n... | [
"dev@jamesturk.net"
] | dev@jamesturk.net |
a3a06aca09ad8ed5aa53a1d92bd793ea85813cff | fb8bc02a724a3cb907920f4bff8d26b27b42683f | /Day 4/My_Package/setup.py | 59d31a59cfd3aec65a8fd6b7cc3576aa05384883 | [] | no_license | timelyanswer/python-hafb_KHK | 24c507f71d7381194e573ece6b7892de7921fe86 | 5f0e9d306eea28aa0886071c5e1bead44ede8025 | refs/heads/main | 2023-07-08T02:16:39.793601 | 2021-08-12T22:12:09 | 2021-08-12T22:12:09 | 394,317,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python3
"""
Author : t11 <me@wsu.com>
Date : 8/12/2021
Purpose:
"""
from distutils.core import setup
setup(
name='class_decorator',
version='0.1',
py_modules=['my_class_decorator'], # need my_xxx so it does not confuse with the other
#Metadata
author='Waldo Weber',
author_... | [
"kimjeong@hotmail.com"
] | kimjeong@hotmail.com |
67feadc4b9b3d489f7627d697e4e124f5a290f02 | 2869a088aa01d8ca6349f855d882630ff1431a7b | /PythonBasics/Chapter9/chapter9.py | 6af27ec025a3bd33981637074e7cb29311d1db5f | [] | no_license | hectordelahoz/PythonExercises | 56b2081da1db85d916aafc7b046b94245892bf38 | d21a704a76a7e7f2ecac6a774ef74f3595cc2d2c | refs/heads/master | 2022-09-24T08:51:12.402383 | 2022-08-30T00:56:54 | 2022-08-30T00:56:54 | 235,253,926 | 0 | 0 | null | 2022-08-30T00:56:55 | 2020-01-21T04:13:12 | Python | UTF-8 | Python | false | false | 2,188 | py | class Person:
def __init__(self, **kwargs):
self.__myName = kwargs['name'] if 'name' in kwargs else 'John'
self.__myAge = kwargs['age'] if 'age' in kwargs else '21'
self.__myNationality = kwargs['nationality'] if 'nationality' in kwargs else 'American'
def name(self,myName = None):
... | [
"212518053@ge.com"
] | 212518053@ge.com |
e6310bc1faa76aed5031790a2ab7dd92ca71f610 | c50ca4ccf0fba21386368a18b5db3bb13544a9ec | /todo/models.py | 9b4b45d740194da4464b7dd3de81fe3ba91e6bc8 | [] | no_license | Nairmangit/django | 380e578a192791e9775952ad242d40e767bb1763 | 2d52f10bce52ea9043a434e21ebdd7d1dc2974d1 | refs/heads/master | 2020-09-21T00:20:21.882923 | 2019-12-03T09:57:52 | 2019-12-03T09:57:52 | 224,626,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.db import models
class Todo(models.Model):
text = models.CharField(max_length=30)
complete = models.BooleanField(default=False)
def __str__(self):
return self.text | [
"pavelshuralyov@yandex.ru"
] | pavelshuralyov@yandex.ru |
9856f239043013457366bdb2394c01a64ad38b85 | 564642b3ba5ec3a240f816f3dac7f8f95aa7520e | /classification/lossfun.py | e92d09f561657ef89001666381916e2403fd3512 | [] | no_license | JinZT-Git/HS-Codes | 933f7c097b7e0111561c43336cd84486484267dc | a3705b4db5323502a20d3e4cb363d57e6946e713 | refs/heads/main | 2023-08-23T17:12:20.277977 | 2021-10-15T12:05:32 | 2021-10-15T12:05:32 | 417,377,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | import torch
import os
import torch.nn.functional as F
from config import Config as cfg
class_weight = cfg.class_weight
os.environ["CUDA_VISIBLE_DEVICES"] = cfg.gpu_device
def cross_entropy_loss(preds, target, reduction):
logp = F.log_softmax(preds, dim=1)
loss = torch.sum(-logp * target, dim=1)
if reduc... | [
"915681919@qq.com"
] | 915681919@qq.com |
c9db921904acd0462c0ff0fb4a4c844a1efe7c31 | 4b9fb3080a86e036536471a6c10697ee375be6b9 | /image_handlers/split_image_text.py | 72b9f7b9477f1fa825a71d3caf38a61dc64edfae | [] | no_license | Lai-smile/decompress_extract_file | f2a4ec5582cd7d7490eb4e26f621bcfada9262e7 | eb736bc138727240a45e7e88696023549029990c | refs/heads/master | 2022-05-30T03:30:58.465864 | 2020-05-01T03:33:10 | 2020-05-01T03:33:10 | 260,361,821 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,895 | py | # Created by lixingxing at 2018/11/14
"""
Feature: #Enter feature name here
# Enter feature description here
Scenario: #Enter scenario name here
# Enter steps here
Test File LocationL: # Enter
"""
import os
import time
import cv2
import numpy as np
from constants import path_manager
from image_... | [
"noreply@github.com"
] | Lai-smile.noreply@github.com |
497e345288a9d28536fdbaf5f67a2102b003849e | 7652b3d21519771aa073c4f4a9d66f4f4d5db013 | /creating-project/project/project_app/urls.py | de7fffc7ea068fde214f0d92d79c134b3e945a32 | [] | no_license | pavkozlov/NETOLOGY-Django-homeworks | 9c64cde294590c8a85c5f89fd2190fe989720c84 | c331fa10906470c974802932e9d7d7526841f6f1 | refs/heads/master | 2022-11-27T22:36:12.537296 | 2019-07-17T16:19:11 | 2019-07-17T16:19:11 | 189,250,824 | 0 | 1 | null | 2022-11-22T03:14:37 | 2019-05-29T15:20:09 | Python | UTF-8 | Python | false | false | 282 | py | from django.urls import path
from .views import stations_view
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('stations/', stations_view, name='stations_view')
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| [
"it.pavelkozlov@gmail.com"
] | it.pavelkozlov@gmail.com |
f30f5d1496cb56926ce73d581deca33497224893 | 4c446b67986260b37978e663bcef040e4e925a33 | /project2/part b/reddit_model_v2.py | 108ea81f02317afae0ff5ff679171106797716d9 | [] | no_license | xukaiyuan/Database-Systems | 1ec815533c5c61765a48d00f3d7133ca1453232e | bd3fa8275b117f221431b37cc9b067387b9c9089 | refs/heads/master | 2020-03-11T10:34:14.252258 | 2018-06-07T03:25:32 | 2018-06-07T03:25:32 | 129,946,450 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,573 | py | from __future__ import print_function
from pyspark import SparkConf, SparkContext
from pyspark.sql import SQLContext
# IMPORT OTHER MODULES HERE
flag = 0
save = 0
predict = 1
from pyspark.sql.functions import *
from pyspark.sql.types import *
from pyspark.ml.feature import CountVectorizer, CountVectorizerModel
from py... | [
"kyxu95@gmail.com"
] | kyxu95@gmail.com |
f427572dcc294f2f278b1dc156e4b0e0c130a115 | a4c5a56ed6d3c4299213ff8fd0e4f37719e063ff | /tests/test_override.py | ec0ad1f2bfab03914d5df5c21408b1e52fcbb993 | [
"BSD-3-Clause"
] | permissive | pyecore/motra | 76add183cf2777bef5916b88e30dd2b3eef8cb06 | c0b3e8e54b46572c3bc10bb2b719102e267c371b | refs/heads/main | 2023-09-02T12:44:37.688979 | 2021-10-27T05:53:01 | 2021-10-27T05:53:01 | 395,357,398 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | import pytest
import inspect
import pyecore.ecore as ecore
from motra import m2m
@pytest.fixture(scope='module')
def t1():
# Define a transformation meta-data
t = m2m.Transformation('t1', inputs=['in_model'], outputs=['in_model'])
@t.mapping(when=lambda self: self.name.startswith('Egg'))
def r1(self:... | [
"vincent.aranega@gmail.com"
] | vincent.aranega@gmail.com |
2eb64c8805a832356c2c1af85b8173d8303d1b14 | 09cb91bdfc1569f12f73648e390943602c3790c5 | /voters/viewsets.py | df2daf53f9207631ddd90cd37d8e58afe475f2af | [] | no_license | Chukwunazaekpere/ceo-bincom-test | 0a916bff6be82df47684550399ee77de285106e9 | 69dd413c20fe79ece0b732b8b161d951d598be56 | refs/heads/master | 2023-07-01T04:36:51.568102 | 2021-08-05T19:57:10 | 2021-08-05T19:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from rest_framework import viewsets
from .models import (
Voters
)
from .serializers import (
VotersSerializer
)
class VotersViewSet(viewsets.ModelViewSet):
queryset = Voters.objects.all()
serializer_class = VotersSerializer
| [
"emmanuelchinaza5777@gmail.com"
] | emmanuelchinaza5777@gmail.com |
1285ed4012292a12041f5aaf57a58b6db329bf76 | aa06db0771f92f9c21a16ace4f91196b4b607e58 | /store/store/migrations/0015_auto_20170913_1636.py | ea3064dc31e49639a8c8add2ea524d66fe32f85b | [] | no_license | cami-project/cami-project | 7b51430b2e97565d58fbab98f3a68108821e5c6d | 386b6ea158f3849dd302e9c15d3c7acc1ac2eac5 | refs/heads/master | 2020-04-12T03:05:38.970568 | 2018-09-21T14:04:00 | 2018-09-21T14:04:00 | 59,824,119 | 2 | 1 | null | 2018-03-09T13:18:37 | 2016-05-27T09:49:17 | C | UTF-8 | Python | false | false | 505 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2017-09-13 13:36
from __future__ import unicode_literals
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('store', '0014_auto_20170825_1309'),
]
operations = [
migrations.... | [
"alex.sorici@gmail.com"
] | alex.sorici@gmail.com |
2d906722068461d7ff7b6331b9cc36ebbc8e6d9a | f2f362267e48662445eeac3bb309a61353b275b5 | /leetcode/closest_binary_search_tree_value.py | 410727a8b18cac3b64d2ea0bef91100999e47834 | [] | no_license | karthikpalavalli/Puzzles | 78dfe87edfaacc72782f6391e225841768e3638d | e4e02635d7b5cf001201b4ab05f70836beb1b8ff | refs/heads/master | 2020-03-30T12:20:07.064549 | 2019-12-21T01:49:55 | 2019-12-21T01:49:55 | 151,219,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def closestValue(self, root: TreeNode, target: float) -> int:
def dfs_inorder(root):
if root is None:
return
nonlocal closest_value
... | [
"karthik00p@gmail.com"
] | karthik00p@gmail.com |
2332d5c21dfd47be0eab2e6439fbacef32c5aeb3 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil199.py | b8ba1c63c355402f38a256e26772b3f9cb67ca75 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | # qubit number=2
# total number=33
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5b3e342ade56e396a3dfad0237f974e5082e1bc9 | 114b61513733083555924fc8ab347335e10471ae | /stackone/stackone/viewModel/MultipartPostHandler.py | df8c4aa526fbfe18ae6a303322624a6199dcffe3 | [] | no_license | smarkm/ovm | 6e3bea19816affdf919cbd0aa81688e6c56e7565 | cd30ad5926f933e6723805d380e57c638ee46bac | refs/heads/master | 2021-01-21T04:04:28.637901 | 2015-08-31T03:05:03 | 2015-08-31T03:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,033 | py | #!/usr/bin/python
####
# 02/2006 Will Holcomb <wholcomb@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later v... | [
"18614072558@163.com"
] | 18614072558@163.com |
2827c9aa71286f778f7010ddcf378a307b7e403f | 1df8bb2fafac39dbea2f0c92831933a479508c0b | /defoe/nzpp/setup.py | 9ae583e7449c74cc9844499d3372251b36cecb09 | [
"MIT",
"CC0-1.0",
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | alan-turing-institute/defoe | b816aee7de0510dbc71322dd156015fd429d4e8f | d7d2a22c8976fb0b0016cb0a231d4822424f8e88 | refs/heads/master | 2022-03-08T09:05:48.148085 | 2022-02-11T10:59:37 | 2022-02-11T10:59:37 | 165,081,527 | 16 | 6 | MIT | 2022-02-01T09:39:53 | 2019-01-10T15:14:53 | Lex | UTF-8 | Python | false | false | 725 | py | """
Given a filename create a defoe.nzpp.articles.Articles.
"""
from defoe.nzpp.articles import Articles
def filename_to_object(filename):
"""
Given a filename create a defoe.nzpp.articles.Articles. If an
error arises during its creation this is caught and returned as a
string.
:param filename: ... | [
"michaelj@epcc.ed.ac.uk"
] | michaelj@epcc.ed.ac.uk |
5dcc386e96726fe2001888a8096c2940980aae92 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/aphidivor.py | 488d7159a51c32e35a6a3d61bdf217023f68d3e4 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('RennJIT.py', 2), ('WestJIT2.py', 3), ('WestJIT.py', 2)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
cacff14e0b1b2678353ba2d462a5de00a04555a7 | 55ab4d0aecc49078e7a0f47a05457c9602327ed7 | /egs/madcat_arabic/v1/local/create_mask_from_page_image.py | b4147dcd3851a52f5a1a9319a6986519f66ac00b | [
"Apache-2.0"
] | permissive | aarora8/waldo | 56a171f0b2048d980023173ab38f5248db936eeb | ad08a05fa9e9890ad986f11d4bca3c773b228d87 | refs/heads/master | 2020-03-14T04:43:47.513263 | 2018-06-07T05:09:47 | 2018-06-07T05:09:47 | 131,447,076 | 0 | 0 | Apache-2.0 | 2018-04-28T22:00:19 | 2018-04-28T22:00:19 | null | UTF-8 | Python | false | false | 5,535 | py | #!/usr/bin/env python3
# Copyright 2018 Johns Hopkins University (author: Ashish Arora)
# Apache 2.0
""" This module will be used for creating text localization mask on page image.
Given the word segmentation (bounding box around a word) for every word, it will
extract line segmentation. To extract line segmentatio... | [
"dpovey@gmail.com"
] | dpovey@gmail.com |
afbe370c3f2219dd8bd99964dbbbedd97b09d9be | a65e0a3afebbd3c033f56d198103704d8f8092ff | /Text-Categorization/kfoldprep2.py | 327532ab398312956c4f05c730b041ebe6335dfd | [] | no_license | layth79/ece467-NLP | a44087085b247f5279ec897f6b0c73ee543655ac | 796195a67d5f9634d56dc53d946618818ba05948 | refs/heads/main | 2023-07-13T20:32:20.317460 | 2021-08-12T00:28:36 | 2021-08-12T00:28:36 | 395,126,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | import random
testDoc = open("corpus2_train.labels")
#Cross Validation
testSet = open("corpus2_test.list", 'w')
validation = open("corpus2_test.labels", 'w')
trainSet = open("corpus3_train1.labels", 'w')
#shuffle data
lines = testDoc.readlines()
random.shuffle(lines)
open('corpus3_shuffled.labels', 'w').... | [
"layth.yassin@cooper.edu"
] | layth.yassin@cooper.edu |
dcf60d425a75a5583dc890529bb1f1fffe42a262 | 428ee863e50fecfaedbbf64f3da95e9acb746ae4 | /src/tamsin/main.py | a9ea83fa097c8b5749742963afb74886d3b5d15a | [
"BSD-3-Clause",
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | catseye/Tamsin | ba53a0ee4ac882486a958e6ba7225f19eea763ef | 1c9e7ade052d734fa1753d612f2426ac067d5252 | refs/heads/master | 2021-01-17T09:21:25.202969 | 2016-03-31T15:00:14 | 2016-03-31T15:00:14 | 19,212,331 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,766 | py | # encoding: UTF-8
# Copyright (c)2014 Chris Pressey, Cat's Eye Technologies.
# Distributed under a BSD-style license; see LICENSE for more information.
import os
import subprocess
import sys
from tamsin.buffer import FileBuffer, StringBuffer
from tamsin.event import DebugEventListener
from tamsin.term import Atom
fr... | [
"cpressey@catseye.tc"
] | cpressey@catseye.tc |
4708a37bf64d1775f833ff0ec1f2ed6eef44407f | 4c6927247a3a5fcc73d6101a3cb905f85f03c7a8 | /Data/process_data.py | e646ea023c62ce4f62a93f0262a0836bc44cd355 | [
"Unlicense"
] | permissive | PZebarth/Python-ML-Pipeline | 2c0ca9ea4b44b388b0ba83f44a9653f5967fa32e | b12b32db850c95298b225638f7a32e54e5d1221f | refs/heads/main | 2023-02-10T05:34:53.559108 | 2021-01-05T19:18:28 | 2021-01-05T19:18:28 | 325,661,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,317 | py | import sys
import pandas as pd
from sqlalchemy import create_engine
def load_data(messages_filepath, categories_filepath):
'''
Loads csv data from messages_filepath and categories_filepath filepaths and
merges into a single dataframe.
Input:
messages_filepath - filepath string
categories_file... | [
"noreply@github.com"
] | PZebarth.noreply@github.com |
ac09433b7ea92f104f6fa94e0dd0943bbfee0442 | 2d0f5d0e9b134dd43747f9a324c7c1a5d60d20da | /working_with_timestamps.py | 8368b09f6ca896a81ca88ffccbf7d68ca5769a21 | [] | no_license | sushrut7898/complete_python_mastery | 4521254d5ea8d9f1c2a80a82239f977b4bf5eb3e | cd10c6fe3546893aa58b9a5fc41141cbe18e3293 | refs/heads/master | 2022-12-08T08:41:05.971723 | 2020-08-14T06:54:32 | 2020-08-14T06:54:32 | 285,747,101 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import time
print(time.time()) # in seconds from win beg time
def send_emails():
for i in range(10000):
pass
start = time.time()
send_emails()
end = time.time()
duration = end - start
print(duration) | [
"sushrut7898@gmail.com"
] | sushrut7898@gmail.com |
861dff28f9a037a7efe6412727882352ecd7643e | adbc8062ea7620eae45a94b9882dfb2b6bb8d103 | /server/trips/urls.py | 8839aef735bdea7bc4375f5e56aac81570f83a20 | [
"MIT"
] | permissive | el-Joft/taxi-app | d50063de5969f2cd07c97aa79b07693bd3862acd | 570cc6879aaab2ec944e29f2f5f8e2a710a97716 | refs/heads/develop | 2023-02-04T17:41:28.977300 | 2020-12-30T15:13:18 | 2020-12-30T15:13:18 | 323,642,400 | 0 | 0 | MIT | 2020-12-30T15:13:19 | 2020-12-22T14:03:06 | Python | UTF-8 | Python | false | false | 297 | py | from django.contrib import admin
from django.urls import path
from trips.views import TripView
app_name = 'trips'
urlpatterns = [
path('', TripView.as_view({'get': 'list'}), name='trip_list'),
path('<uuid:trip_id>/', TripView.as_view({'get': 'retrieve'}), name='trip_detail'), # new
]
| [
"ottimothy@gmail.com"
] | ottimothy@gmail.com |
8d1d223014ed6a6fd3dedf230f0818e8b775fd28 | 3c564b05a236f3ea3940f8354a85cffb8a502c5f | /run.py | 6595710fc72673428344099ef7e59562672859ba | [] | no_license | shalevy1/tesseractDataGenerator | ee0b88c2e780bd2617cf7ac60fc413b87e660191 | 57d35646f9ac7b32394fbacf7a04a1124ad84596 | refs/heads/master | 2022-11-14T09:38:47.232596 | 2019-07-03T13:53:39 | 2019-07-03T13:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from Utils import genData
codesfile = 'codesKOR.txt'
trainingAmt = 1000
trainTestSplit = 0.7
outputdir = 'data'
# chars = getCharList('charsFixed2.txt')
# genCodes(chars, 'codesKOR.txt', 10000)
genData(trainingAmt,codesfile, trainTestSplit, outputdir)
| [
"rafayk7@yahoo.com"
] | rafayk7@yahoo.com |
4fe20784e210003df990201f226915a4f8702cd0 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2021_10_01_dataplanepreview/operations/_code_containers_operations.py | 39304e6ffb704920562356f3609fa0b63f3eb4b9 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 19,903 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
358e0825a1854b062e87d35611e52cd3c239266d | 21540ab033e180a3d94b270b7faffac7fe4af68f | /wordshop2/Project_01_10_page62-63/Project_05.py | e45ba58fc5058ea1e533a49592edf98b0103a792 | [] | no_license | tuan102081/wordshop1.2.3.5 | eaa344bdb04f565d1354b9476b4d4ecafc5cc7f3 | 70e75b56f48a2e5b1622d956f33831f80e64d368 | refs/heads/master | 2023-07-14T23:26:31.089484 | 2021-08-30T18:53:24 | 2021-08-30T18:53:24 | 401,411,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | """
Author: Nguyen Duy Tuan
Date: 29/08/2021
Program: project_05_page_62.py
Problem:
An object’s momentum is its mass multiplied by its velocity. Write a program
that accepts an object’s mass (in kilograms) and velocity (in meters per second) as
inputs and then outputs its momentum.
Solution:
Display:
... | [
"you@example.com"
] | you@example.com |
c536a4122ad57a3aa5fa4992da64a4835318a3c1 | b5dcba412c6f84aed7eef05d18ba96faf997c311 | /KdV-Python/MZKdV.py | 9b5036d3571becc603abcffb984e5787b8c0f632 | [
"MIT"
] | permissive | jrpriceUPS/Renormalized_Mori_Zwanzig | d2794d4c7c25a1b95ca73ab75fcab56a84845a9a | f818a63291497da88cf42e99408e2bb3a0452986 | refs/heads/master | 2023-04-15T03:12:30.294887 | 2021-05-03T16:05:34 | 2021-05-03T16:05:34 | 99,272,655 | 1 | 3 | null | 2021-02-01T19:39:03 | 2017-08-03T20:32:33 | MATLAB | UTF-8 | Python | false | false | 116,988 | py | # Author: Jake Price
# Date: February 8, 2021
# Purpose: Collection of custom functions for running CMA simulations of KdV,
# analysis functions, and renormalization scripts. Generates some images
# from past papers, but not all (didn't want / need to duplicate everything)
# Translation o... | [
"jrprice@pugetsound.edu"
] | jrprice@pugetsound.edu |
b15cb12b89fe63134e1f752e00d8353aa705616b | 82eff9bf5b66359786b83e9e63669bbed68135f7 | /tools/read_yaml.py | d90210f36c111b41775f94942ad61003683135b0 | [] | no_license | chunshan160/requests_pytest | a342cd8a9c26b6ef94a35dfce8838262a22727e5 | 2d94336c475e53bd9e652ea1b9223d398b4f20ec | refs/heads/master | 2023-03-14T04:31:57.244132 | 2021-02-27T07:24:47 | 2021-02-27T07:24:47 | 327,075,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time :2020/9/10 13:55
# @Author :春衫
# @File :read_yaml.py
import yaml
def read_yaml(file_path):
fs = open(file_path, encoding="utf-8")
data = yaml.load(fs,Loader=yaml.FullLoader)
return data
if __name__ == '__main__':
pass | [
"1605936478@qq.com"
] | 1605936478@qq.com |
31a4117bf7d5808eb49856299756dd6f40979207 | a652341f459d51821135c898dbed74f235522d9b | /rc_hr_payroll/models/account_move.py | c4c3f0f4824c5523d9bf655d2946c887d5486aec | [] | no_license | cokotracy/Rack-Centre-Limited | 4faacb786b7970ea6aae14784f1b8f2aa41ac089 | d99ad07828c67165e6182def5c5288fc70c964ec | refs/heads/main | 2023-08-18T23:58:18.035063 | 2021-10-08T09:19:00 | 2021-10-08T09:19:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class AccountJournal(models.Model):
_inherit = 'account.move'
state = fields.Selection(selection=[
('draft', 'Draft'),
('submit', 'Submitted'),
('approve', 'Approved'),
('posted', 'Posted'),
('cancel', '... | [
"padinality@yahoo.com"
] | padinality@yahoo.com |
d1d4d820a0192a57ce3f08ff8119ef3b48143c2f | 8b57fa887dd292ec65bd34de881d4f4cf6d88b61 | /PY/longestword01.py | 9d37a8172ec456931af005e4ee7f3c03275ac235 | [] | no_license | ggerod/Code | f83b8d4f15f93d61f20c467bb9ed686ffd61805f | 61108017191bce3e3ed93d954ec795fac3666cba | refs/heads/master | 2020-06-27T10:47:05.925558 | 2019-12-12T21:43:25 | 2019-12-12T21:43:25 | 199,931,500 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #!/usr/local/bin/python3
filename = "/usr/share/dict/words"
file = open(filename, "r")
longestword=''
longestwordlen=0
for line in file:
word=(line.strip()).casefold()
if (len(word) <= longestwordlen):
continue
norepeat = True
for char in word:
if (word.count(char) > 1):
norepeat=Fal... | [
"glen_gerod@comcast.com"
] | glen_gerod@comcast.com |
a6b1ec75c16eda1006d8b4afae13de3fc33f9b90 | e378f1b2d57000d87ee58a981642192fe8101b1c | /tests/test_functional.py | 9e59336a9639e1962bf1c3396c39d621050b2f9a | [
"MIT"
] | permissive | gjo/pyramid_services_autowire | 267fbed3425d89687c8c9de0c7cc85252f17be5d | 11eeb7afe1c207c077f9440a3b0b4ceacb6fbfef | refs/heads/master | 2020-03-19T15:54:45.663611 | 2018-06-09T07:50:03 | 2018-06-09T07:50:03 | 136,691,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,145 | py | # -*- coding: utf-8 -*-
import unittest
from pyramid.config import Configurator
from pyramid.request import Request
from zope.interface import Interface, implementer
class FunctionalTestCase(unittest.TestCase):
def test_does_not_wired(self):
from pyramid_services_autowire import Autowire, DoesNotWired
... | [
"gjo.ext@gmail.com"
] | gjo.ext@gmail.com |
7d60b4ea277ff718ac71e522b814eb5897edeeef | 265eb14569da3c97ff7d7f4ba8b73a39e41bf120 | /atv.py | 02c274466046a37323a7316674b7ccffd3a12e79 | [] | no_license | skandamurthy/vehicle | 1108d2330c930864325d8b477b2279340cc61cbb | be59e69a95e5caca7ed2e972f1a21d443e5a399c | refs/heads/master | 2020-03-24T10:54:26.343589 | 2018-08-27T20:27:49 | 2018-08-27T20:27:49 | 142,670,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | from bike import Bike
from car import Car
class Atv(Bike,Car):
fuel_used ='Petrol'
def __init__(self,fuel_used,handle,is_gear,ac,steering_wheel,seat_belt,audio_player,no_of_wheels,speed,weight,milage,colour):
self.fuel_used =fuel_used
Bike.__init__(self,handle,is_gear,no_of_wheels,speed,weight,milage,colour)
Ca... | [
"skandasneha@gmail.com"
] | skandasneha@gmail.com |
6350e7fa49e2ce61ba60225c83d5827aa6da7a6f | 7703a8b5ebdcdf38ce296d84899392213c741236 | /ush/hafs/ww3.py | ad9e7da05a45678e0037d4f5b80de4811ef8b363 | [] | no_license | hafs-community/HAFS | b1add5a86b18e00e6a13830dfaa770a3560fd8ab | cba6b3649eb7a25bb8be392db1901f47d3287c93 | refs/heads/develop | 2023-08-16T21:25:31.668385 | 2023-07-28T20:24:05 | 2023-07-28T20:24:05 | 176,363,600 | 22 | 48 | null | 2023-08-31T22:06:20 | 2019-03-18T20:23:54 | Fortran | UTF-8 | Python | false | false | 44,649 | py | #! /usr/bin/env python3
"""This module handles WW3 related scripts for HAFS system."""
__all__ = ['WW3Init', 'WW3Post']
import os, sys, re
import produtil.datastore, produtil.fileop, produtil.cd, produtil.run, produtil.log
import produtil.dbnalert
import tcutil.numerics
import hafs.hafstask, hafs.exceptions
import h... | [
"Bin.Liu@noaa.gov"
] | Bin.Liu@noaa.gov |
fa85f6349539cbce239586af29361b2e453947ec | 3d8a2e25588dc4205aa5ebf02021ae055917cccd | /selexsubmitter.py | fb34291f2db38bbf19bd8d4333f1a385f7be8cbb | [
"MIT"
] | permissive | jctoledo/abselexsubmit-freebase-writer | af66613f745577af9781ed1962a8c81d74b9c95c | 1601f8b57386f69fffc2a8a4a4cf43ac256cfdb3 | refs/heads/master | 2021-01-23T22:11:05.694811 | 2013-10-09T15:52:44 | 2013-10-09T15:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43,987 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2013 Jose Cruz-Toledo
# 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, mod... | [
"josemiguelcruztoledo@gmail.com"
] | josemiguelcruztoledo@gmail.com |
00a04631d405777d81b1263ac835474cf042b535 | 36118a688c058d04cc15b63c0e2e7e03a1ebf8a0 | /custom_components/luxtronik/const.py | 4e8579de4cb0d0539363222b592d4b455acc4a22 | [
"MIT"
] | permissive | AlmAck/luxtronik | 79535e08d2e1a47d11faea2e87ea3950a6592565 | c6d590390911cbee13fee30bda4e3b9f777f1310 | refs/heads/master | 2023-01-13T18:54:00.115713 | 2020-11-23T06:17:13 | 2020-11-23T06:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | """Constants for the Luxtronik integration."""
from homeassistant.const import (
DEVICE_CLASS_TEMPERATURE,
DEVICE_CLASS_PRESSURE,
DEVICE_CLASS_TIMESTAMP,
ENERGY_KILO_WATT_HOUR,
PRESSURE_BAR,
TEMP_CELSIUS,
)
ATTR_PARAMETER = "parameter"
ATTR_VALUE = "value"
CONF_INVERT_STATE = "invert"
CONF_SAF... | [
"bouni@owee.de"
] | bouni@owee.de |
d003323768ea7f4519c90921a33b9eb198732852 | 69033ac834a34f10df535f102197d3af05e5ee69 | /cmstack/codegen/tvmgen/tvm_translation.py | 94d23726e2acc6b4c753f6d6f9920df4d7801b75 | [
"Apache-2.0"
] | permissive | he-actlab/cdstack | 126c3699074bf6ef30f9f9246704069d27e9e614 | 38f605cfa299bf97b5875a19f9fd811a2671d56f | refs/heads/master | 2023-04-10T10:42:10.199207 | 2019-10-03T02:12:49 | 2019-10-03T02:12:49 | 354,713,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,582 | py | import tvm
import numpy as np
from hdfg import hdfgutils
from hdfg import load_store
from tvm.contrib import graph_runtime
from tvm.relay import op as _op
from hdfg.passes.flatten import flatten_graph, is_literal, is_number
from hdfg.passes.node_mapping import map_nodes
from codegen.codegen_utils import CMLANG_CAST_M... | [
"sean.kinzer@gmail.com"
] | sean.kinzer@gmail.com |
1c0c27da1a5ffd2ada1e238f96d4179c01990331 | 2cb9d1bf6e674049dd03b04e5714d12a268425a4 | /sariq_dev/darslar/10_dars_uy_ishi_5_.py | eb5ae2c36841e0c7e64652eb8400aa8e43b095c9 | [] | no_license | RuzimovJavlonbek/anvar.nazrullayevning-mohirdev.uz-platformasidagi-dasturlash.asoslari.python-kursidagi-amaliyotlar | 02885608c40e9dd9ae0d13013619ef787240bcf6 | f999be39d0e3c7edb990f9c3c29edbeeb0e19c2d | refs/heads/main | 2023-07-02T20:16:56.146956 | 2021-08-06T03:12:49 | 2021-08-06T03:12:49 | 390,466,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | a = float(input("a="))
if a < 0:
print(" Manfiy son")
else:
print(" Musbat son")
input()
| [
"ruzimov_javlonbek_1997@mail.ru"
] | ruzimov_javlonbek_1997@mail.ru |
1d8b9e59de43646ea4b505eedff319fb9b974db2 | 4b449a67f2907638a563eee529073d23c346acc7 | /Card/migrations/0001_initial.py | 9ef256b4b11a0a383319b00003e6242222d1eb0d | [] | no_license | yuanjie101/Ecar | f3adced83e154d36f3ca3bfa1b829ca62471e8ad | 24b0789469ca2715cc01038ec8d0fe7be3a6e350 | refs/heads/master | 2022-10-12T06:02:12.373394 | 2020-05-23T09:49:45 | 2020-05-23T09:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | # Generated by Django 3.0.4 on 2020-03-16 09:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('Login', '0001_initial'),
('Deck', '0001_initial'),
]
operations = [
migrations.... | [
"re.masterzero@gmail.com"
] | re.masterzero@gmail.com |
66e35dbb42b295345eba7f7c190fc3f63a6c00f8 | 67423cd76b549cea780059856f149c15207fc205 | /run1.py | 52ca277cd729722b5679e4bc8e92adda75ea00f4 | [] | no_license | checkcheckzach/lunar-lander | e69435fc73fe6dd19e00422c5d9946f42e6d41e1 | 1a01acaab2106398e4043f2ff45ccec623467e0a | refs/heads/master | 2020-06-16T23:48:53.399525 | 2019-07-08T04:25:37 | 2019-07-08T04:25:37 | 195,736,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | import lunarlander
import matplotlib.pyplot as plt
PARAMS2 = [
{'l_rate': 0.0001, 'gamma': 0.9, 'epsilon_decay': 0.998, 'min_epsilon': 0, 'max_epsilon': 1, 'buffer_zize': 5000,
'batch_size': 32},
{'l_rate': 0.0001, 'gamma': 0.94, 'epsilon_decay': 0.998, 'min_epsilon': 0, 'max_epsilon': 1, 'buf... | [
"noreply@github.com"
] | checkcheckzach.noreply@github.com |
cf0a7901e1817c03cbed6cd2351cd3b0691188c2 | 109af9bb1315554acc2266f97f777049d1449520 | /input.py | ffc0a5c42986684d13ac5f6a16a11b9705fb4d2e | [] | no_license | itsuttida/Python | c2ad326a58d50bea27dcd7f970cdde326f574896 | 2b034d028d292384e14e1f458ac68ed4c7ccc63e | refs/heads/master | 2023-05-25T20:10:32.822410 | 2021-06-13T07:00:00 | 2021-06-13T07:00:00 | 345,884,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # age_aew = input("Enter your age: ")
# print("aew : " , age_aew , '123' , 1 , 2.34)
# age_nick = input("Enter your age")
# print("nick : " , age_nick)
# f_name = input("Enter your name : ")
# l_name = input("Enter your lastname : ")
# full = f_name + l_name
# print(full)
#sum age = f
age_aew = int(input("Enter yo... | [
"suttida.s@teohong.com"
] | suttida.s@teohong.com |
ec662f925b59e24fde024e4243aba389f33e0432 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/sieve-14.py | 52bce3a36228b57f2739edf857ed492498c0ab0c | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,587 | py | # A resizable list of integers
class Vector(object):
items: [$ID] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
3195ba4e15a300cbdd468a885fafc5e2749eb25f | 37a05e589e90e8a265eb849bdebf8f8739fb97ac | /img1.py | b0ddf657c966dfd475d4f658d045b6156ab4dcff | [] | no_license | Dust1N69/Jerry | 06d1425b1495401f15f0e24b671dc06d13399e6b | 75af9954e20f03857d2e5981c9414ae63dfbb4ed | refs/heads/master | 2023-06-25T22:31:44.388203 | 2021-07-29T13:50:28 | 2021-07-29T13:50:28 | 389,825,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import cv2
img1 = cv2.imread('./images/test1.jpg')
print(img1.shape)
print(img1[100,200])
print(img1.item(100,200,1))
# img1[200:400,300:700]=[255,0,0]
roi = img1[400:600,300:700]
roi[:,:,1]=255
# roi[:,:,2]=0
h,w,a =roi.shape
img1[100:300,800:1200] = roi
print(len(roi),len(roi[0]))
img1[10:10+h,10:... | [
"noreply@github.com"
] | Dust1N69.noreply@github.com |
51da6df9e40cee8f9c3da7d7716748f4d0cefe6a | eb6fdd2f3e0363bf18b5819f5032c0143b0fc540 | /dashboard/decorators.py | ec745dde820cda3d2349ba324b57e817698065d6 | [] | no_license | AnuraghSarkar/Halkhabar | 61afaa9c8f884d51cdb9ebe69ea565c6fdab996d | f54e186fc083d5d75822756fdffae3784324bb48 | refs/heads/master | 2023-04-23T06:02:06.725189 | 2021-05-10T04:14:00 | 2021-05-10T04:14:00 | 361,974,054 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | from django.shortcuts import redirect
def unauthenticated_user(view_function):
def wrapper_function(request, *args, **kwargs):
if request.user.is_authenticated:
if request.user.is_staff:
return redirect('/myadmin')
elif not request.user.is_staff:
ret... | [
"trithatimalsina@gmail.com"
] | trithatimalsina@gmail.com |
a1e31fcbf4ad9e98d814b560160471a3f4c219ac | 1d36cce83aa5fd4ef09fd80361a6ea5a30237226 | /create_batch_info.py | 21304d2721dc6db36ce1296826d27c37f4ded8b5 | [] | no_license | HyunbinCho/cell_perturbation | 3d994ba77fbe8e7a8ea8435d4ef069a9bf936d56 | 66686140c859383ca7d61f075e3b2649886e5e83 | refs/heads/master | 2022-07-23T06:33:10.448560 | 2019-08-28T14:28:15 | 2019-08-28T14:28:15 | 198,537,790 | 0 | 0 | null | 2022-06-21T22:25:08 | 2019-07-24T01:50:21 | Jupyter Notebook | UTF-8 | Python | false | false | 2,927 | py | import os
import glob
import cv2
import numpy as np
import pandas as pd
from collections import defaultdict
from utils.load_dataset import *
sys.path.append("/home/hyunbin/utils/rxrx1-utils")
import rxrx.io as rio
import yaml
import numba
@numba.jit(nopython=True, parallel=True)
def calculate_subf... | [
"ehrm0rh@gmail.com"
] | ehrm0rh@gmail.com |
ca15f8c807dc55a92e8237c20f88a21a73b45caa | c29dc8e9f73876df29e98203c562958cefafd5a9 | /env/Scripts/django-admin.py | 6c58a702ae126bb95f44adcb508f466e20872a95 | [] | no_license | Rakshitha-masali/pro1234 | 594109f1d37b45b020d22507635811172dc2f5f6 | d66cb43c0e0e887e802ee11b3d2e71ce0f8cb71d | refs/heads/main | 2023-04-02T02:14:12.137713 | 2021-04-02T16:15:48 | 2021-04-02T16:15:48 | 354,068,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!c:\users\hp\desktop\project100\env\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admin.py was dep... | [
"rakshithamasali@gmail.com"
] | rakshithamasali@gmail.com |
8ae1fdf9ab7bd682171cd3f8dbcf5d308883094f | 9a8f34fe61ec7ffe014ab7e1d2a52d300c5f354e | /python/multithread_multiprocess/venv/bin/f2py | 7daa6293e960fdad2ef9741534b96e440de29a97 | [] | no_license | PacYang/interview_prepare | d0995fd1a51793232d4b8348340c67a2ab2fb405 | 92e411cb9956fa4d20ac399d9bbfe4f64dae3769 | refs/heads/master | 2021-04-07T22:45:45.608083 | 2020-09-27T09:22:59 | 2020-09-27T09:22:59 | 248,714,077 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/Users/larry.yang/Documents/git/multithread/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"larry.yang@yingzt.com"
] | larry.yang@yingzt.com | |
dccc13354e31ce5cae3be0b081de0f4522049eea | be91d8ece2543ac8979519f54ca6ca2e2b156aaf | /filehandling_using_pandas.py | 84fa5c5c197a9219e822dbd1df64d0c513590efb | [] | no_license | muhammadfaraz6640/pandas-work | 70cb3023f62a236ccc7b514c1fcb18a74242a039 | 0861f173c0cc869703fdcbcaddd5bfb56b237f83 | refs/heads/master | 2020-09-14T16:51:31.657516 | 2019-11-21T14:24:10 | 2019-11-21T14:24:10 | 223,190,875 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 3 13:34:30 2019
@author: Haroon Traders
"""
'''names=['name','age','dept']'''
#data loading storage and file formats
import pandas as pd
#sentinels={'2':['not found','nan']}
#ab=pd.read_csv("C:/Users/Haroon Traders/source/repos/filing/filing/data.csv",skiprows=... | [
"noreply@github.com"
] | muhammadfaraz6640.noreply@github.com |
6fd7363389f6b9bfc67823959049f44b95b6f19e | 83aa59c568d0b84eee76226776da7f1d49384f10 | /tccli/services/ape/ape_client.py | a2fa953563d4f64679515e3129265264be734748 | [
"Apache-2.0"
] | permissive | jjandnn/tencentcloud-cli | c492f5f19cacaee85fc2e7b0de0d8aa8ef5dd009 | ac3c697fb06acdd2e3e711b11069d33754889340 | refs/heads/master | 2023-05-05T00:27:54.406654 | 2021-05-27T00:40:52 | 2021-05-27T00:40:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,552 | py | # -*- coding: utf-8 -*-
import os
import json
import tccli.options_define as OptionsDefine
import tccli.format_output as FormatOutput
from tccli import __version__
from tccli.utils import Utils
from tccli.exceptions import ConfigurationError
from tencentcloud.common import credential
from tencentcloud.common.profile.ht... | [
"tencentcloudapi@tenent.com"
] | tencentcloudapi@tenent.com |
25955ebc5f0917edaefe7116d2150d8499521ed9 | 0198b58c6450f1bbe5f9b0c5ff60b530bafb7518 | /webgraph_factory/src/utils/datagen.py | 66ea70a78d68cc5c613f20b8add34e6e62c2fadd | [] | no_license | andrei-ars/web_graph_emb | 58d56b7ca98807a8b82d8f3a109556b77b9b65e2 | 8c2e7bf94f291130b82d746076c2f7f5e148bd4a | refs/heads/main | 2023-08-16T03:24:41.310804 | 2021-09-19T23:16:17 | 2021-09-19T23:16:17 | 385,738,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,338 | py | import json
import numpy as np
import numpy.random as random
import string
class DataGenerator():
def __init__(self,datagen_path):
with open(datagen_path) as fp:
self.fields = json.load(fp)['fields']
self.bisect_idx = 0
def infer_random_like(self,value,range_str=None):
... | [
"z@dell.sp"
] | z@dell.sp |
8a5c13bc009949c7c42ef0a619409870a73c4a61 | e421e7c4b4e40c921a027bb863bac08c729ae764 | /blog/main_blog/models.py | b0162946f1538a5236f2eff24bf5992a4c2c639e | [] | no_license | abrhamgebremedhin/django | a97e30ee086eb5af0cf565dac4f4f1b88a11c9be | b19712b89d1012f19a102549134a47d06148ede0 | refs/heads/master | 2021-02-10T13:49:36.309877 | 2020-03-03T13:19:30 | 2020-03-03T13:19:30 | 244,387,190 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from django.db import models
# Create your models here.
class Article(models.Model):
title =models.CharField(max_length=120)
content =models.TextField(blank=False,null=False)
date =models.DateField()#pub_date=date.today()
publish =models.BooleanField(default=False,null=False)
| [
"abrhamgebremedhin8@gmail.com"
] | abrhamgebremedhin8@gmail.com |
20e10dee2476cb446eac70e4873787dc387fa6a6 | c8b535407ddf3551ca16d21bd9f2c4f991028010 | /assesment/settings.py | 6b2f049d4a5c29ccaef367a74a85ed6c6e8fe050 | [] | no_license | manish3135/pre-assesment | 148355708a387ba456ce6a0c0a8a5bbfd79f1018 | 0ffc96a900e58ec06862333c7ab98d5f1cdcc049 | refs/heads/master | 2020-03-28T01:07:59.915836 | 2018-09-05T11:12:53 | 2018-09-05T11:12:53 | 147,479,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | """
Django settings for assesment project.
Generated by 'django-admin startproject' using Django 1.11.2.
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 ... | [
"manishkumar@manishs-MacBook-Pro.local"
] | manishkumar@manishs-MacBook-Pro.local |
06be6e8732d456b755862323cca79a311dc6998f | 4307bbf68a7716bf276bab34cacffd519294d3f1 | /taglie-parser/parser.py | 62457c0a3e1e398129f964fe93e01c24c12dc972 | [] | no_license | alessandro308/Aggregatore-Ordini-AGESCI | 711b37b85436ac271b29a3ac3ab11c30e2ce24bb | 4b4bfbc13044f93fb655ac7851f32f79203baf37 | refs/heads/master | 2021-01-12T22:13:17.985995 | 2017-04-16T15:44:57 | 2017-04-16T15:44:57 | 43,705,159 | 0 | 2 | null | 2016-01-02T10:09:08 | 2015-10-05T18:31:04 | PHP | UTF-8 | Python | false | false | 2,300 | py | #!/usr/bin/python3
# Script per l'importazione delle taglie
# delle uniformi AGESCI su DB per Aggregatore Ordini AGESCI
import sqlite3
import sys
def printquery(name, price, size):
query = "INSERT INTO " + db_table + " ( "
query += db_name_field + " , "
query += db_size_field + " , "
query += db_pric... | [
"corti.nico@gmail.com"
] | corti.nico@gmail.com |
39015aa1bae7e4b6b0a20766f355a20b4604d309 | 5ce61d9fc575912bc6eff17716264d1325578972 | /A2-1003092468/kmeans.py | e7bdb6926f8319dccf3e7314e869a71ffb5ac606 | [] | no_license | jde10/CSC2515---Intro-to-ML | 117530979df6a1eae3ca0ad7f7e154c70cc14ce5 | eb57b57bf8953732774218738403e63c511132c8 | refs/heads/master | 2020-04-06T04:41:43.184579 | 2017-02-28T16:59:27 | 2017-02-28T16:59:27 | 82,753,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | from util import *
import matplotlib.pyplot as plt
plt.ion()
def distmat(p, q):
"""Computes pair-wise L2-distance between columns of p and q."""
d, pn = p.shape
d, qn = q.shape
pmag = np.sum(p**2, axis=0).reshape(1, -1)
qmag = np.sum(q**2, axis=0).reshape(1, -1)
dist = qmag + pmag.T - 2 * np.dot(p.T, q)
... | [
"noreply@github.com"
] | jde10.noreply@github.com |
1a0c04adcfd792bf56fda3703659c4610f36e3cf | e440f1e8136f79f59c472ecf450d6676395dbb05 | /modules/tasks/led_task.py | d8a43e77d5acc43b68746fbc8291a3f336ac8b72 | [] | no_license | henrynester/FlightComputer-sw | 5e56a3a25d8986b625229254f8ea45ed9ca204d3 | c9254e340e53022bfd9ebdaf783900124a17ebc0 | refs/heads/master | 2023-07-02T20:45:57.408041 | 2021-08-12T14:05:38 | 2021-08-12T14:05:38 | 376,691,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from modules.tasks.task import Task
from modules.mcl.system_state import SystemState, State
# import threading
from modules.drivers.led import LEDDriver, LEDColor
# class KeyboardThread(threading.Thread):
# def __init__(self, input_cbk=None, name='keyboard-input-thread'):
# self.input_cbk = input_cbk
# ... | [
"henrynester@gmail.com"
] | henrynester@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.