hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
1db19f9171b73b3b1b649c55c7246ff977e94ac6
615
exs
Elixir
backend/priv/repo/migrations/20211103121738_create_realms.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/priv/repo/migrations/20211103121738_create_realms.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
backend/priv/repo/migrations/20211103121738_create_realms.exs
harlem88/edgehog
7a278d119c3d592431fdbba406207376e194f7eb
[ "Apache-2.0" ]
null
null
null
defmodule Edgehog.Repo.Migrations.CreateRealms do use Ecto.Migration def change do create table(:realms) do add :tenant_id, references(:tenants, column: :tenant_id, on_delete: :delete_all), null: false add :name, :string, null: false add :private_key, :string, null: false add :...
27.954545
87
0.673171
1db1bca1e6ccb91d6131b4712ed17ee4eef1844a
1,933
ex
Elixir
lib/kucoin/params.ex
insprac/elixir_kucoin
1bfea2f014f4151e99998189b171ece7d896ea5e
[ "MIT" ]
null
null
null
lib/kucoin/params.ex
insprac/elixir_kucoin
1bfea2f014f4151e99998189b171ece7d896ea5e
[ "MIT" ]
null
null
null
lib/kucoin/params.ex
insprac/elixir_kucoin
1bfea2f014f4151e99998189b171ece7d896ea5e
[ "MIT" ]
null
null
null
defmodule KuCoin.Params do @type param :: {atom, Kina.type(), [param_option()]} @type param_option :: {:required, boolean} | {:key, atom} @spec param(atom, Kina.type(), [param_option()]) :: param def param(key, type, opts \\ []) do {key, type, opts} end @spec parse(Keyword.t(), [param]) :: {...
31.177419
74
0.57372
1db1ecfd55948c6b88e24c4e1c45709544e8e170
1,865
ex
Elixir
clients/slides/lib/google_api/slides/v1/model/update_line_category_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/slides/lib/google_api/slides/v1/model/update_line_category_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/slides/lib/google_api/slides/v1/model/update_line_category_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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...
37.3
238
0.734048
1db22ea8a2c51c98d74d74cb15c9703d03914952
669
exs
Elixir
test/process_fun_test.exs
paulanthonywilson/gen_server_101
cbc9a467ddf3e95e6c631a65d52e32698191a576
[ "MIT" ]
2
2018-10-02T08:18:02.000Z
2018-10-02T21:04:14.000Z
test/process_fun_test.exs
paulanthonywilson/gen_server_101
cbc9a467ddf3e95e6c631a65d52e32698191a576
[ "MIT" ]
null
null
null
test/process_fun_test.exs
paulanthonywilson/gen_server_101
cbc9a467ddf3e95e6c631a65d52e32698191a576
[ "MIT" ]
null
null
null
defmodule ProcessFunTest do use ExUnit.Case test "initialise qmueryable counter" do pid = ProcessFun.start_queryable_counter(5) assert ProcessFun.queryable_counter_value(pid) == 5 end test "incrementing queryable counter" do pid = ProcessFun.start_queryable_counter(1) ProcessFun.increment_quer...
29.086957
55
0.768311
1db23444abcccc54c46009274985acb96a50e138
197
ex
Elixir
lib/phone/my.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
97
2016-04-05T13:08:41.000Z
2021-12-25T13:08:34.000Z
lib/phone/my.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
70
2016-06-14T00:56:00.000Z
2022-02-10T19:43:14.000Z
lib/phone/my.ex
davidkovsky/phone
83108ab1042efe62778c7363f5d02ef888883408
[ "Apache-2.0" ]
31
2016-04-21T22:26:12.000Z
2022-01-24T21:40:00.000Z
defmodule Phone.MY do @moduledoc false use Helper.Country def regex, do: ~r/^(60)()(.+)/ def country, do: "Malaysia" def a2, do: "MY" def a3, do: "MYS" matcher(:regex, ["60"]) end
15.153846
32
0.593909
1db26e96cc6feb398d17d25e960806da6d4d1f5b
646
ex
Elixir
eSalud/web/views/patient_physician_view.ex
ret16339/BaseDeDatosES
0a6daa40be857c5a31d4fa5afba22c764bf9f044
[ "Apache-2.0" ]
null
null
null
eSalud/web/views/patient_physician_view.ex
ret16339/BaseDeDatosES
0a6daa40be857c5a31d4fa5afba22c764bf9f044
[ "Apache-2.0" ]
null
null
null
eSalud/web/views/patient_physician_view.ex
ret16339/BaseDeDatosES
0a6daa40be857c5a31d4fa5afba22c764bf9f044
[ "Apache-2.0" ]
null
null
null
defmodule ESalud.PatientPhysicianView do use ESalud.Web, :view def render("index.json", %{patient_physicians: patient_physicians}) do %{data: render_many(patient_physicians, ESalud.PatientPhysicianView, "patient_physician.json")} end def render("show.json", %{patient_physician: patient_physician}) do ...
35.888889
99
0.76935
1db2824e0cc8a50ed117774c5ade82152ec64c60
2,384
exs
Elixir
example_app/test/controllers/user_controller_test.exs
jespr/noegle
e14953085d38384c80993dd750aa85202db11418
[ "MIT" ]
null
null
null
example_app/test/controllers/user_controller_test.exs
jespr/noegle
e14953085d38384c80993dd750aa85202db11418
[ "MIT" ]
1
2017-05-08T15:09:09.000Z
2017-05-10T06:05:24.000Z
example_app/test/controllers/user_controller_test.exs
jespr/noegle
e14953085d38384c80993dd750aa85202db11418
[ "MIT" ]
null
null
null
defmodule NoegleExampleApp.UserControllerTest do use NoegleExampleApp.ConnCase alias NoegleExampleApp.User @valid_attrs %{email: "some content", name: "some content", password_digest: "some content"} @invalid_attrs %{} test "lists all entries on index", %{conn: conn} do conn = get conn, user_path(conn, ...
35.58209
98
0.681208
1db294c3471689355cc99cd56cb39bcb230dc23d
2,153
exs
Elixir
config/dev.exs
codevictory/runosaari.net
2462409ccf49987fa562b0ae189247c1fe6f1ccc
[ "MIT" ]
1
2021-11-02T07:43:13.000Z
2021-11-02T07:43:13.000Z
config/dev.exs
codevictory/runosaari.net
2462409ccf49987fa562b0ae189247c1fe6f1ccc
[ "MIT" ]
null
null
null
config/dev.exs
codevictory/runosaari.net
2462409ccf49987fa562b0ae189247c1fe6f1ccc
[ "MIT" ]
1
2021-05-19T18:43:09.000Z
2021-05-19T18:43:09.000Z
import Config # Configure your database config :runosaari, Runosaari.Repo, username: "postgres", password: "postgres", database: "runosaari_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 # For development, we disable any cache and enable # debugging and code relo...
27.961039
68
0.693451
1db2eded17985e0ff537146210d021fa291d7aef
3,009
ex
Elixir
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/router.ex
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
54
2018-01-24T00:22:57.000Z
2019-01-15T20:03:52.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/router.ex
infinitered/mithril
0bbad29f86c63d9a827dcaaf6fed78a176ab90d7
[ "MIT" ]
3
2018-02-05T18:00:39.000Z
2018-05-04T00:05:20.000Z
template/$PROJECT_NAME$/apps/$PROJECT_NAME$_web/lib/$PROJECT_NAME$_web/router.ex
fadeojo/mithril
d84ff2d42f895c27c46c0feb09b70ccbac5827ac
[ "MIT" ]
3
2019-07-12T11:16:42.000Z
2020-06-08T15:03:36.000Z
defmodule <%= @project_name_camel_case %>Web.Router do @moduledoc "The `Phoenix.Router` for `<%= @project_name_camel_case %>Web`" use <%= @project_name_camel_case %>Web, :router <%= if assigns[:accounts] && assigns[:html] do %> <% end %> <%= if assigns[:html] || assigns[:email] do %> # This is your site'...
28.932692
98
0.638418
1db2f0251aece752e4ec37cb080409f14c5cd906
930
exs
Elixir
config/config.exs
Lugghawk/GameDex
680d67a925e16ee5ba357d529542d4be4d4c1b99
[ "MIT" ]
null
null
null
config/config.exs
Lugghawk/GameDex
680d67a925e16ee5ba357d529542d4be4d4c1b99
[ "MIT" ]
null
null
null
config/config.exs
Lugghawk/GameDex
680d67a925e16ee5ba357d529542d4be4d4c1b99
[ "MIT" ]
null
null
null
# This file is responsible for configuring your application # and its dependencies with the aid of the Mix.Config module. # # This configuration file is loaded before any dependency and # is restricted to this project. use Mix.Config # General application configuration config :gamedex, ecto_repos: [Gamedex.Repo] # ...
33.214286
86
0.76129
1db307d172b1bb52ccfc46a7bd9569f5abb4f82b
195
ex
Elixir
lib/generate/transfer_complete_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
3
2017-11-29T05:07:35.000Z
2019-12-18T17:16:41.000Z
lib/generate/transfer_complete_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
1
2021-12-02T19:35:28.000Z
2022-03-29T09:40:52.000Z
lib/generate/transfer_complete_response.ex
smiyabe/cwmp_ex
9db322497aa3208b5985ccf496ada5286cde3925
[ "Artistic-2.0" ]
2
2017-11-29T05:07:30.000Z
2020-11-10T07:10:42.000Z
defimpl CWMP.Protocol.Generate, for: CWMP.Protocol.Messages.TransferCompleteResponse do import XmlBuilder def generate(_req) do element("cwmp:TransferCompleteResponse", nil) end end
19.5
87
0.784615
1db31faa87d5a93f19ec32d0ec336bf3f0e8ccd3
158
exs
Elixir
priv/repo/migrations/20151222144147_add_unique_index_for_email_to_users.exs
Frylock13/PhoenixChat
05f9a14df49a981ce1c9ebf41740577ccb2aae81
[ "MIT" ]
1
2016-02-24T01:45:57.000Z
2016-02-24T01:45:57.000Z
priv/repo/migrations/20151222144147_add_unique_index_for_email_to_users.exs
Frylock13/PhoenixChat
05f9a14df49a981ce1c9ebf41740577ccb2aae81
[ "MIT" ]
null
null
null
priv/repo/migrations/20151222144147_add_unique_index_for_email_to_users.exs
Frylock13/PhoenixChat
05f9a14df49a981ce1c9ebf41740577ccb2aae81
[ "MIT" ]
1
2016-02-24T01:47:02.000Z
2016-02-24T01:47:02.000Z
defmodule ChatDemo.Repo.Migrations.AddUniqueIndexForEmailToUsers do use Ecto.Migration def change do create unique_index(:users, [:email]) end end
19.75
67
0.778481
1db34add8ddae13573b083d8835f73bbd728c649
1,218
ex
Elixir
lib/extensions/persistent_session/store/persistent_session_cache.ex
zackkitzmiller/pow
5971e710482a10e5aa142473be6cd26fd1f8b111
[ "MIT" ]
null
null
null
lib/extensions/persistent_session/store/persistent_session_cache.ex
zackkitzmiller/pow
5971e710482a10e5aa142473be6cd26fd1f8b111
[ "MIT" ]
null
null
null
lib/extensions/persistent_session/store/persistent_session_cache.ex
zackkitzmiller/pow
5971e710482a10e5aa142473be6cd26fd1f8b111
[ "MIT" ]
null
null
null
defmodule PowPersistentSession.Store.PersistentSessionCache do @moduledoc false use Pow.Store.Base, ttl: :timer.hours(24) * 30, namespace: "persistent_session" alias Pow.{Operations, Store.Base} @impl true def get(config, id) do config |> Base.get(backend_config(config), id) |> convert_o...
28.325581
131
0.68555
1db375ceaccce6b881b0bf32da532ac6066114a8
74
exs
Elixir
talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/ehlo/test/ehlo_web/views/page_view_test.exs
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
37
2015-02-01T23:16:39.000Z
2021-12-22T16:50:48.000Z
talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/ehlo/test/ehlo_web/views/page_view_test.exs
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
1
2017-03-02T04:55:48.000Z
2018-01-14T10:51:11.000Z
talks-articles/frameworks/phoenix/book--programming-phoenix-ge-1.4/ehlo/test/ehlo_web/views/page_view_test.exs
abhishekkr/tutorials_as_code
f355dc62a5025b710ac6d4a6ac2f9610265fad54
[ "MIT" ]
15
2015-03-02T08:09:01.000Z
2021-06-10T03:25:41.000Z
defmodule EhloWeb.PageViewTest do use EhloWeb.ConnCase, async: true end
18.5
35
0.810811
1db39815394b513b80edc25bf3f066195fa8d857
332
ex
Elixir
lib/rules/poker/mechanics/deck_pickers/standard52.ex
luismasuelli/poker-elixir
32b80d79eed3a987531043531b4bff8bf2a1bdee
[ "MIT" ]
null
null
null
lib/rules/poker/mechanics/deck_pickers/standard52.ex
luismasuelli/poker-elixir
32b80d79eed3a987531043531b4bff8bf2a1bdee
[ "MIT" ]
null
null
null
lib/rules/poker/mechanics/deck_pickers/standard52.ex
luismasuelli/poker-elixir
32b80d79eed3a987531043531b4bff8bf2a1bdee
[ "MIT" ]
null
null
null
defmodule Rules.Poker.Mechanics.DeckPickers.Standard52 do @moduledoc """ This one stands for a regular poker deck. - 1 copy. - 0 wildcards. - All suits and ranks. """ alias Rules.Poker.Mechanics.DeckPickers.Base @behaviour Base def deck_name do :standard52 end def deck_spec do {0...
15.809524
57
0.674699
1db3b3e7e091dc48a454b124066fcd20b458ed46
155
exs
Elixir
apps/grapevine/config/prod.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
107
2018-10-05T18:20:32.000Z
2022-02-28T04:02:50.000Z
apps/grapevine/config/prod.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
33
2018-10-05T14:11:18.000Z
2022-02-10T22:19:18.000Z
apps/grapevine/config/prod.exs
oestrich/grapevine
7fb745a3a6e4eb68bd761baa190b2df32fa1f73d
[ "MIT" ]
18
2019-02-03T03:08:20.000Z
2021-12-28T04:29:36.000Z
import Config config :grapevine, :decanter, enabled: false config :logger, level: :info, backends: [:console, Timber.LoggerBackends.HTTP], utc_log: true
25.833333
93
0.76129
1db3c0e950250c3a91490236ccc2ac5db1574916
2,436
ex
Elixir
lib/google_api/big_query/v2/model/job_statistics3.ex
albert-io/elixir-google-big-query
26537253b83e7bad513ea4b5143b156c914b1475
[ "Apache-2.0" ]
null
null
null
lib/google_api/big_query/v2/model/job_statistics3.ex
albert-io/elixir-google-big-query
26537253b83e7bad513ea4b5143b156c914b1475
[ "Apache-2.0" ]
null
null
null
lib/google_api/big_query/v2/model/job_statistics3.ex
albert-io/elixir-google-big-query
26537253b83e7bad513ea4b5143b156c914b1475
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
38.666667
321
0.730296
1db3cd7c97dce014ac4f58f13473afc434ceb829
1,713
ex
Elixir
clients/app_engine/lib/google_api/app_engine/v1/model/debug_instance_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/debug_instance_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/app_engine/lib/google_api/app_engine/v1/model/debug_instance_request.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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...
36.446809
371
0.742557
1db3d82cf21a651e71aa5b47e8af9a13bbeb368a
5,827
exs
Elixir
.credo.exs
codefordenver/new-code-for-denver-site
af6cc232c898a197601b4d37e0cd217d0503fd9b
[ "MIT" ]
909
2017-11-16T08:41:08.000Z
2022-03-31T21:59:17.000Z
.credo.exs
vbrazo/chat_elixir_api
f2595d123934014b3a7c1b3b63b987fa3df5b3ad
[ "MIT" ]
36
2017-11-28T01:31:05.000Z
2021-12-15T05:03:00.000Z
.credo.exs
vbrazo/chat_elixir_api
f2595d123934014b3a7c1b3b63b987fa3df5b3ad
[ "MIT" ]
160
2017-11-16T06:00:37.000Z
2022-01-20T13:50:42.000Z
# This file contains the configuration for Credo and you are probably reading # this after creating it with `mix credo.gen.config`. # # If you find anything wrong or unclear in this file, please report an # issue on GitHub: https://github.com/rrrene/credo/issues # %{ # # You can have as many configs as you like in ...
41.920863
80
0.66209
1db3df301ef42b2c51a6ad8e61339213cf3394b9
3,537
exs
Elixir
test/game/experience_test.exs
jgsmith/ex_venture
546adaa8fe80d45a72fde6de8d8d6906902c12d4
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
test/game/experience_test.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
test/game/experience_test.exs
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Game.ExperienceTest do use Data.ModelCase import Test.DamageTypesHelper import Test.Networking.Socket.Helpers alias Game.Experience doctest Experience setup do user = base_user() character = base_character(user) %{state: session_state(%{user: user, character: character, save: char...
27.632813
119
0.640939
1db3e1eea958ea580c7e1b49d482541510807546
2,261
ex
Elixir
lib/docker_services/docker.ex
joakimk/docker_services
7a8cfa5801245facc3b791caf7c9644863cbed0c
[ "Unlicense", "MIT" ]
6
2015-10-19T14:04:50.000Z
2016-09-16T18:18:15.000Z
lib/docker_services/docker.ex
joakimk/docker_services
7a8cfa5801245facc3b791caf7c9644863cbed0c
[ "Unlicense", "MIT" ]
null
null
null
lib/docker_services/docker.ex
joakimk/docker_services
7a8cfa5801245facc3b791caf7c9644863cbed0c
[ "Unlicense", "MIT" ]
null
null
null
# NOTE: This module is not tested by the automatic test suite. So far, manual testing has worked out. Automating this would probably require spinning up a vagrant VM and running docker within it, etc. defmodule DockerServices.Docker do alias DockerServices.Shell def start(name, docker_image) do pull_docker_im...
33.746269
200
0.705882
1db3ea8e15a934f60d801032a3f729eb5fb0a0d4
1,639
exs
Elixir
mix.exs
kawakami-o3/epcc
e0a102b5471e133580c92feb91ec9597f1cf7021
[ "MIT" ]
null
null
null
mix.exs
kawakami-o3/epcc
e0a102b5471e133580c92feb91ec9597f1cf7021
[ "MIT" ]
3
2020-07-17T03:56:23.000Z
2021-05-09T00:04:45.000Z
mix.exs
kawakami-o3/epcc
e0a102b5471e133580c92feb91ec9597f1cf7021
[ "MIT" ]
null
null
null
defmodule Epcc.MixProject do use Mix.Project def project do [ app: :epcc, version: "0.1.0", elixir: "~> 1.5", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), start_permanent: Mix.env() == :prod, aliases: aliases(), dep...
26.015873
79
0.574131
1db3edcbc19aae379d3447eae4315a96f8ef7ff4
1,272
ex
Elixir
clients/sheets/lib/google_api/sheets/v4/model/clear_values_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/sheets/lib/google_api/sheets/v4/model/clear_values_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/sheets/lib/google_api/sheets/v4/model/clear_values_request.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # 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...
30.285714
76
0.76022
1db3f68fc00b3278a0a40baac9bb4c55fd342d15
442
ex
Elixir
dave-course/hangman_proj/hangman/lib/hangman/server.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
dave-course/hangman_proj/hangman/lib/hangman/server.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
1
2021-03-09T16:27:25.000Z
2021-03-09T16:27:25.000Z
dave-course/hangman_proj/hangman/lib/hangman/server.ex
jordanhubbard/elixir-projects
dee341d672e83a45a17a4a85abd54a480f95c506
[ "BSD-2-Clause" ]
null
null
null
defmodule Hangman.Server do use GenServer alias Hangman.Game def start_link() do GenServer.start_link(__MODULE__, nil) end def init(_args) do { :ok, Game.new_game_state() } end def handle_call({ :make_move, guess }, _from, game) do { game, tally } = Game.make_move(game, guess) { :repl...
19.217391
56
0.642534
1db40d0bcb429bda122785a895d5f367056af0e1
2,617
ex
Elixir
lib/booklist/admin/reports.ex
allen-garvey/booklist-phoenix
b3c87713d742b64684c222cd3e5869dc9fbd2bd2
[ "MIT" ]
null
null
null
lib/booklist/admin/reports.ex
allen-garvey/booklist-phoenix
b3c87713d742b64684c222cd3e5869dc9fbd2bd2
[ "MIT" ]
3
2020-07-16T14:24:43.000Z
2021-03-08T23:34:18.000Z
lib/booklist/admin/reports.ex
allen-garvey/booklist-phoenix
b3c87713d742b64684c222cd3e5869dc9fbd2bd2
[ "MIT" ]
null
null
null
defmodule Booklist.Reports do @moduledoc """ The Reports context. """ import Ecto.Query, warn: false alias Booklist.Repo alias Booklist.Admin.Rating @doc """ Gets lowest rating for the year, or nil if none exists """ def get_lowest_rating(year) do from(r in Rating, join: book in assoc(r, :boo...
33.126582
194
0.671379
1db473b83204fbd2c5e6f8c0bc1e7cdcc092a7af
444
ex
Elixir
lib/squadster/accounts/services/create_user_settings.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/accounts/services/create_user_settings.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
lib/squadster/accounts/services/create_user_settings.ex
Squadster/squadster-api
cf04af79317148d7a08c649d5b5d0197722acb7a
[ "MIT" ]
null
null
null
defmodule Squadster.Accounts.Services.CreateUserSettings do alias Squadster.Repo alias Squadster.Accounts.UserSettings def call(%{id: id} = user) do %{settings: settings} = user |> Repo.preload(:settings) case settings do nil -> create(id) _settings -> {:error, "User already has initialized s...
23.368421
68
0.675676
1db491259921408bb3f8c914621419c6ac71ffeb
1,396
exs
Elixir
test/unit/discovery_api_web/plugs/get_model_test.exs
folkengine/discovery_api
0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217
[ "Apache-2.0" ]
null
null
null
test/unit/discovery_api_web/plugs/get_model_test.exs
folkengine/discovery_api
0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217
[ "Apache-2.0" ]
null
null
null
test/unit/discovery_api_web/plugs/get_model_test.exs
folkengine/discovery_api
0bb7a0aff4603a4f7532cc65ca8c8dbb37a57217
[ "Apache-2.0" ]
null
null
null
defmodule DiscoveryApiWeb.Plugs.GetModelTest do use DiscoveryApiWeb.ConnCase use Placebo alias DiscoveryApi.Data.{Model, SystemNameCache} alias DiscoveryApiWeb.Plugs.GetModel alias DiscoveryApi.TestDataGenerator, as: TDG describe "call/2" do setup do Cachex.clear(SystemNameCache.cache_name()) ...
34.9
106
0.682665
1db4b4722c01bd0f4a837c5ba6656ee48de4a1f1
916
ex
Elixir
lib/my_app/application.ex
normanpatrick/elixir-python-task-api
84a12eff26ddf98a29526630e4ce9fa1076545cb
[ "MIT" ]
1
2019-09-25T22:03:14.000Z
2019-09-25T22:03:14.000Z
lib/my_app/application.ex
normanpatrick/elixir-python-task-api
84a12eff26ddf98a29526630e4ce9fa1076545cb
[ "MIT" ]
2
2021-03-09T12:10:09.000Z
2021-05-10T01:25:36.000Z
lib/my_app/application.ex
brandedux/phoenix_api
3613d3d2a232a0d39cd125bd09cceee876fbf475
[ "MIT" ]
null
null
null
defmodule MyApp.Application do # See https://hexdocs.pm/elixir/Application.html # for more information on OTP Applications @moduledoc false use Application def start(_type, _args) do # List all child processes to be supervised children = [ # Start the Ecto repository MyApp.Repo, # ...
28.625
64
0.709607
1db4ba2003a5b430f95f07c0557ba67e44648d74
11,467
exs
Elixir
test/teslamate/vehicles/vehicle/suspend_logging_test.exs
TechForze/teslamate
fc4d2c16ba09bbe170bbf21263b357c9bd84bbe2
[ "MIT" ]
null
null
null
test/teslamate/vehicles/vehicle/suspend_logging_test.exs
TechForze/teslamate
fc4d2c16ba09bbe170bbf21263b357c9bd84bbe2
[ "MIT" ]
null
null
null
test/teslamate/vehicles/vehicle/suspend_logging_test.exs
TechForze/teslamate
fc4d2c16ba09bbe170bbf21263b357c9bd84bbe2
[ "MIT" ]
null
null
null
defmodule TeslaMate.Vehicles.Vehicle.SuspendLoggingTest do use TeslaMate.VehicleCase, async: true alias TeslaMate.Vehicles.Vehicle alias TeslaMate.Vehicles.Vehicle test "immediately returns :ok if asleep", %{test: name} do events = [ {:ok, %TeslaApi.Vehicle{state: "asleep"}} ] :ok = start_...
29.630491
98
0.637656
1db4dba9de2bed86d2084c6bd0e4d66be26bc8ba
1,619
ex
Elixir
test/support/model_case.ex
nihonjinrxs/VolunteerBase
e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4
[ "MIT" ]
null
null
null
test/support/model_case.ex
nihonjinrxs/VolunteerBase
e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4
[ "MIT" ]
1
2016-06-24T03:43:06.000Z
2016-06-24T03:43:06.000Z
test/support/model_case.ex
nihonjinrxs/VolunteerBase
e555ec9ae1d0b4401ae33c0a9fdc411b855f04a4
[ "MIT" ]
null
null
null
defmodule Volunteerbase.ModelCase do @moduledoc """ This module defines the test case to be used by model tests. You may define functions here to be used as helpers in your model tests. See `errors_on/2`'s definition as reference. Finally, if the test case interacts with the database, it cannot be async...
26.112903
84
0.689314
1db4f5bf1000b795079b1003d0e444f91dbe521c
3,370
ex
Elixir
lib/guardian/token/verify.ex
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
1
2019-07-14T21:00:54.000Z
2019-07-14T21:00:54.000Z
lib/guardian/token/verify.ex
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
2
2021-03-09T09:26:25.000Z
2021-05-09T08:58:51.000Z
lib/guardian/token/verify.ex
x-ji/guardian
576997d3701306ccfa40b42e18b1bec5a6ac98a7
[ "MIT" ]
null
null
null
defmodule Guardian.Token.Verify do @moduledoc """ Interface for verifying tokens. This is intended to be used primarily by token modules but allows for a custom verification module to be created if the one that ships with your TokenModule is not quite what you want. """ @doc """ Verify a single claim ...
30.917431
95
0.642433
1db4f97aa55613781576558133debf0b5d60eaeb
9,756
ex
Elixir
lib/ecto/query/builder/join.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/builder/join.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
null
null
null
lib/ecto/query/builder/join.ex
iautom8things/ecto
9e89e9b7f8c7d11373c2372f2d3365dd8b4aaccf
[ "Apache-2.0" ]
null
null
null
import Kernel, except: [apply: 2] defmodule Ecto.Query.Builder.Join do @moduledoc false alias Ecto.Query.Builder alias Ecto.Query.{JoinExpr, QueryExpr} @doc """ Escapes a join expression (not including the `on` expression). It returns a tuple containing the binds, the on expression (if available) and ...
30.583072
146
0.606089
1db4fe7e510a204c10abdbc142a2a0003ee19a12
1,470
ex
Elixir
elixir-match/app/lib/match_web/controllers/page_controller.ex
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
elixir-match/app/lib/match_web/controllers/page_controller.ex
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
elixir-match/app/lib/match_web/controllers/page_controller.ex
jim80net/elixir_tutorial_projects
db19901a9305b297faa90642bebcc08455621b52
[ "Unlicense" ]
null
null
null
defmodule MatchWeb.PageController do use MatchWeb, :controller def new(conn, %{"visibility" => visibility}) do scope = String.to_atom(visibility) game_name = Match.Generator.haiku() current_user = Map.get(conn.assigns, :current_user) case Match.GameSupervisor.start_game(game_name, current_user, sco...
31.276596
80
0.653061
1db4ffb8f594c68456bfda53075906602c9bacd5
824
ex
Elixir
server/apps/boardr_api/lib/boardr_api/games/players/players_controller.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2021-04-08T17:26:27.000Z
2021-04-08T17:26:27.000Z
server/apps/boardr_api/lib/boardr_api/games/players/players_controller.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
1
2022-02-13T05:50:46.000Z
2022-02-13T05:50:46.000Z
server/apps/boardr_api/lib/boardr_api/games/players/players_controller.ex
AlphaHydrae/boardr
98eed02801f88c065a24bf13051c5cf96270a5f7
[ "MIT" ]
null
null
null
defmodule BoardrApi.Games.PlayersController do use BoardrApi, :controller alias Boardr.Player alias BoardrRest.PlayerResources def create(%Conn{} = conn, %{"game_id" => game_id}) do with {:ok, %Player{} = player} <- rest(conn, PlayerResources, :create, %{game_id: game_id}) do conn |> put_statu...
29.428571
98
0.633495
1db521a23fd61d708e6ada7fa4489adfb9f56a2f
355
ex
Elixir
lib/retrospectivex_web/views/retrospectives/card_view.ex
dreamingechoes/retrospectivex
cad0df6cfde5376121d841f4a8b36861b6ec5d45
[ "MIT" ]
5
2018-06-27T17:51:51.000Z
2020-10-05T09:59:04.000Z
lib/retrospectivex_web/views/retrospectives/card_view.ex
dreamingechoes/retrospectivex
cad0df6cfde5376121d841f4a8b36861b6ec5d45
[ "MIT" ]
1
2018-10-08T11:33:12.000Z
2018-10-08T11:33:12.000Z
lib/retrospectivex_web/views/retrospectives/card_view.ex
dreamingechoes/retrospectivex
cad0df6cfde5376121d841f4a8b36861b6ec5d45
[ "MIT" ]
2
2018-10-08T11:31:55.000Z
2020-10-05T09:59:05.000Z
defmodule RetrospectivexWeb.Retrospectives.CardView do use RetrospectivexWeb, :view def card_form_action(%{data: %{id: nil}}), do: "card:create" def card_form_action(%{data: %{id: _}}), do: "card:update" def title_card_form(%{data: %{id: nil}}), do: gettext("Add New Card") def title_card_form(%{data: %{id: ...
35.5
71
0.684507
1db53a10e90d81889b3dd05ff042d5af705595cc
729
exs
Elixir
apps/decoder_gtfs/mix.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/decoder_gtfs/mix.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
apps/decoder_gtfs/mix.exs
rucker/hindsight
876a5d344c5d8eebbea37684ee07e0a91e4430f0
[ "Apache-2.0" ]
null
null
null
defmodule DecoderGtfs.MixProject do use Mix.Project def project do [ app: :decoder_gtfs, version: "0.1.0", build_path: "../../_build", config_path: "../../config/config.exs", deps_path: "../../deps", lockfile: "../../mix.lock", elixir: "~> 1.9", start_permanent: ...
20.828571
47
0.514403
1db549f9f8d50995d88957a67ff431581ba4198a
357
exs
Elixir
priv/repo/seeds.exs
EasterPeanut/phoenix-playground
391e52c7cf805d8acabb265989c801923438c624
[ "MIT" ]
1
2018-12-11T14:09:14.000Z
2018-12-11T14:09:14.000Z
elixir/elixir-elm-playground/priv/repo/seeds.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
elixir/elixir-elm-playground/priv/repo/seeds.exs
marcinbiegun/exercises
36ad942e8d40d6471136326a3f6d09285bbd90aa
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Playground.Repo.insert!(%Playground.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as the...
29.75
61
0.711485
1db555f583e7edce819cae91fd1cf58a438a97fa
5,497
exs
Elixir
test/teslamate_web/live/sign_in_test.exs
letienne/teslamate
72e4d6d24f0cbbf54fc64bef899eeb15c3f6890a
[ "MIT" ]
null
null
null
test/teslamate_web/live/sign_in_test.exs
letienne/teslamate
72e4d6d24f0cbbf54fc64bef899eeb15c3f6890a
[ "MIT" ]
null
null
null
test/teslamate_web/live/sign_in_test.exs
letienne/teslamate
72e4d6d24f0cbbf54fc64bef899eeb15c3f6890a
[ "MIT" ]
null
null
null
defmodule TeslaMateWeb.SignInLiveTest do use TeslaMateWeb.ConnCase defp start_api(name, opts) do api_name = :"api_#{name}" {:ok, _pid} = start_supervised({ApiMock, name: api_name, pid: self(), captcha: opts[:captcha]}) %{api: {ApiMock, api_name}} end setup %{test: name, conn: conn} = ctx d...
30.882022
99
0.563398
1db5827f6ca431b22300fed3dd834e9c305d1e8a
1,987
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_non_guaranteed_auction_terms.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_non_guaranteed_auction_terms.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v14/model/deal_terms_non_guaranteed_auction_terms.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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...
36.796296
189
0.754907
1db592511a59c4cf4c38a80ccfcc003dd307ab54
322
ex
Elixir
lib/oli_web/controllers/payment_providers/no_provider_controller.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
45
2020-04-17T15:40:27.000Z
2022-03-25T00:13:30.000Z
lib/oli_web/controllers/payment_providers/no_provider_controller.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
944
2020-02-13T02:37:01.000Z
2022-03-31T17:50:07.000Z
lib/oli_web/controllers/payment_providers/no_provider_controller.ex
malav2110/oli-torus
8af64e762a7c8a2058bd27a7ab8e96539ffc055f
[ "MIT" ]
23
2020-07-28T03:36:13.000Z
2022-03-17T14:29:02.000Z
defmodule OliWeb.PaymentProviders.NoProviderController do use OliWeb, :controller def show(conn, _, _, _) do conn # This is necessary since this controller has been delegated by PaymentController |> Phoenix.Controller.put_view(OliWeb.PaymentProviders.NoProviderView) |> render("index.html") end en...
29.272727
85
0.754658
1db5a566940cda2325297685580bb65d22908159
9,113
ex
Elixir
lib/console/labels/labels.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
lib/console/labels/labels.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
lib/console/labels/labels.ex
Oliv4945/console
fd7b85c8ff3b0702c8a524eb888104612946934c
[ "Apache-2.0" ]
null
null
null
defmodule Console.Labels do import Ecto.Query, warn: false alias Console.Repo alias Console.Labels.Label alias Console.Labels.DevicesLabels alias Console.Devices.Device alias Console.Devices alias Console.Organizations.Organization def get_label!(id), do: Repo.get!(Label, id) def get_label(id), do: ...
31.102389
145
0.652584
1db5d0842426a84da449785f70fa158ae5f7286c
722
ex
Elixir
lib/survey_api/accounts/guardian.ex
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
lib/survey_api/accounts/guardian.ex
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
lib/survey_api/accounts/guardian.ex
AkioCode/elixir-survey
420f4e5f60b84d381707f162b473dd91eb0fe9f2
[ "MIT" ]
null
null
null
defmodule SurveyApi.Accounts.Guardian do @moduledoc false use Guardian, otp_app: :survey_api alias SurveyApi.Accounts def subject_for_token(resource, _claims) do sub = to_string(resource.id) {:ok, sub} end def subject_for_token(_, _) do {:error, :reason_for_error} end def resource_from_c...
22.5625
70
0.716066
1db5e18a76da03fddf43597554ee88597635f1c9
531
exs
Elixir
priv/repo/migrations/20200614213120_set_on_delete.exs
calleluks/ex-remit
893dbc42c9ace6db6ee044f82371075198089fdc
[ "MIT" ]
17
2020-06-28T19:01:49.000Z
2021-11-24T23:55:09.000Z
priv/repo/migrations/20200614213120_set_on_delete.exs
calleluks/ex-remit
893dbc42c9ace6db6ee044f82371075198089fdc
[ "MIT" ]
29
2020-06-27T17:44:38.000Z
2022-01-17T10:00:12.000Z
priv/repo/migrations/20200614213120_set_on_delete.exs
calleluks/ex-remit
893dbc42c9ace6db6ee044f82371075198089fdc
[ "MIT" ]
2
2021-03-01T09:51:56.000Z
2021-03-04T21:27:56.000Z
defmodule Remit.Repo.Migrations.SetOnDelete do use Ecto.Migration def change do drop index(:commits, [:sha]) create unique_index(:commits, [:sha]) alter table(:comments) do modify :commit_sha, references("commits", column: :sha, type: :string, on_delete: :delete_all), null: false...
24.136364
83
0.647834
1db5f534cc284a1a2d621904378e2ae295bda6e7
588
ex
Elixir
lib/wabanex/training.ex
EternalLearnerProgramming/Wabanex-NLW
a6fb37af9867d15b723c928ee6eb1a9a24b40925
[ "MIT" ]
61
2021-06-22T00:15:59.000Z
2022-01-31T15:13:51.000Z
lib/wabanex/training.ex
EternalLearnerProgramming/Wabanex-NLW
a6fb37af9867d15b723c928ee6eb1a9a24b40925
[ "MIT" ]
null
null
null
lib/wabanex/training.ex
EternalLearnerProgramming/Wabanex-NLW
a6fb37af9867d15b723c928ee6eb1a9a24b40925
[ "MIT" ]
56
2021-06-21T17:17:36.000Z
2022-03-15T02:48:59.000Z
defmodule Wabanex.Training do use Ecto.Schema import Ecto.Changeset alias Wabanex.{Exercise, User} @primary_key {:id, :binary_id, autogenerate: true} @foreign_key_type :binary_id @fields [:end_date, :start_date, :user_id] schema "trainings" do field :end_date, :date field :start_date, :date ...
19.6
52
0.681973
1db60806edc3b6b960eeaf2bf599e48685e9c030
11,281
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/compute/lib/google_api/compute/v1/model/interconnect_attachment.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
75.711409
575
0.725379
1db61e987e683a37224d7537569c24bf6d01b2bb
1,488
exs
Elixir
test/functional/call_test.exs
priestjim/exrpc
84ab24987535fd2a62dfc8683b790f17dbe28760
[ "Apache-2.0" ]
12
2015-10-05T16:48:13.000Z
2022-01-31T20:17:44.000Z
test/functional/call_test.exs
priestjim/exrpc
84ab24987535fd2a62dfc8683b790f17dbe28760
[ "Apache-2.0" ]
null
null
null
test/functional/call_test.exs
priestjim/exrpc
84ab24987535fd2a62dfc8683b790f17dbe28760
[ "Apache-2.0" ]
4
2015-11-11T19:53:47.000Z
2020-10-11T07:01:59.000Z
defmodule ExRPC.Test.Functional.Call do use ExUnit.Case @master :'exrpc@127.0.0.1' @slave :'exrpc_slave@127.0.0.1' @invalid :'exrpc_invalid@127.0.0.1' setup_all do ExRPC.Test.Helper.start_slave_node() on_exit fn() -> ExRPC.Test.Helper.stop_slave_node() end :ok end test "Call on in...
29.176471
99
0.625672
1db62dde77c04f375aee7e8c4b4f48c949c85903
354
ex
Elixir
test/support/calcinator/resources/ecto/repo/test_posts.ex
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
null
null
null
test/support/calcinator/resources/ecto/repo/test_posts.ex
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
1
2018-09-24T21:48:46.000Z
2018-09-24T21:48:46.000Z
test/support/calcinator/resources/ecto/repo/test_posts.ex
Decisiv/calcinator
0d161e8d89c98514e146ae79afeae65215b94388
[ "Apache-2.0" ]
null
null
null
defmodule Calcinator.Resources.Ecto.Repo.TestPosts do @moduledoc """ `Calcinator.Resources.Ecto.Repo.TestPost` resources """ use Calcinator.Resources.Ecto.Repo alias Calcinator.Resources.{Ecto.Repo.Repo, TestPost} # Functions ## Calcinator.Resources.Ecto.Repo callbacks def ecto_schema_module, do: T...
19.666667
55
0.751412
1db63130b27b816d0488f3293b51d7e86bb3c3b3
2,177
ex
Elixir
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/source_position.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/source_position.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/firebase_rules/lib/google_api/firebase_rules/v1/model/source_position.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # 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...
36.898305
146
0.696831
1db65aff5b216f87b8918224b982abbb949557fa
251
exs
Elixir
priv/repos/requests/migrations/20161130154105_remove_field_from_logs.exs
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
328
2017-05-05T15:19:46.000Z
2022-03-11T10:52:45.000Z
priv/repos/requests/migrations/20161130154105_remove_field_from_logs.exs
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
83
2017-04-30T10:36:15.000Z
2019-10-14T13:14:34.000Z
priv/repos/requests/migrations/20161130154105_remove_field_from_logs.exs
gabheadz/annon.api
9921d98e44c8472c133554dd55ea649c0f55726c
[ "MIT" ]
29
2017-05-02T14:36:50.000Z
2021-09-03T13:36:17.000Z
defmodule Annon.Configuration.Repo.Migrations.RemoveFieldFromLogs do use Ecto.Migration def up do alter table(:logs) do remove :consumer end end def down do alter table(:logs) do add :consumer, :map end end end
15.6875
68
0.673307
1db65d3949c67017e002e876525770b69fcc4b88
955
ex
Elixir
test/support/channel_case.ex
elpassion/sprint-poker
5c9b34bb264c7a30ff48f0aeac40821b67310ff8
[ "MIT" ]
199
2015-10-22T16:20:09.000Z
2021-11-08T11:20:45.000Z
test/support/channel_case.ex
elpassion/sprint-poker
5c9b34bb264c7a30ff48f0aeac40821b67310ff8
[ "MIT" ]
4
2015-10-24T20:43:29.000Z
2016-03-03T21:09:06.000Z
test/support/channel_case.ex
elpassion/sprint-poker
5c9b34bb264c7a30ff48f0aeac40821b67310ff8
[ "MIT" ]
34
2015-10-23T06:38:43.000Z
2019-08-13T23:49:24.000Z
defmodule SprintPoker.Web.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the test case interac...
25.131579
73
0.719372
1db660f8d29e55313d49fcb15563b3340ed6c752
139
ex
Elixir
code examples/example-14-71.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
8
2016-08-14T12:35:16.000Z
2021-01-26T04:05:31.000Z
code examples/example-14-71.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
null
null
null
code examples/example-14-71.ex
kujua/erlang-elixir-imperative-bookcompanion
7bc9f033bacd0f8744ec6bcee3932794d594fe69
[ "Apache-2.0" ]
5
2016-08-18T22:12:19.000Z
2020-02-17T18:52:41.000Z
def multiply(x,y) when is_number(x) and is_number(y) do x*y end def doubler() do fn x when is_number(x) -> multiply(2,x) end end
17.375
55
0.661871
1db67ef877d7364f816c1ad1218738cab7f23d59
3,978
exs
Elixir
kousa/test/broth/_message/user/update_test.exs
Ayushsunny/dogehouse
61ca754517c3b2dd55629dc9f657df0a28738496
[ "MIT" ]
null
null
null
kousa/test/broth/_message/user/update_test.exs
Ayushsunny/dogehouse
61ca754517c3b2dd55629dc9f657df0a28738496
[ "MIT" ]
null
null
null
kousa/test/broth/_message/user/update_test.exs
Ayushsunny/dogehouse
61ca754517c3b2dd55629dc9f657df0a28738496
[ "MIT" ]
null
null
null
defmodule BrothTest.Message.User.UpdateTest do use ExUnit.Case, async: true use KousaTest.Support.EctoSandbox @moduletag :message alias Beef.Schemas.User alias Broth.Message.User.Update alias KousaTest.Support.Factory setup do # this "UNIT" test requires the db because the message gets # initia...
34.894737
101
0.464304
1db681bf9467bfe23419fe1caac05f4af8f22182
3,987
ex
Elixir
lib/dobble_generator/image_processing.ex
Skoda091/dobble-generator
6dd084d6af55beeac4369772a3cba1be76ec8d41
[ "MIT" ]
4
2020-04-11T23:00:13.000Z
2022-02-07T14:51:18.000Z
lib/dobble_generator/image_processing.ex
Skoda091/dobble-generator
6dd084d6af55beeac4369772a3cba1be76ec8d41
[ "MIT" ]
2
2021-03-10T13:32:34.000Z
2021-05-11T09:27:10.000Z
lib/dobble_generator/image_processing.ex
Skoda091/dobble-generator
6dd084d6af55beeac4369772a3cba1be76ec8d41
[ "MIT" ]
null
null
null
defmodule DobbleGenerator.ImageProcessing do @moduledoc """ The ImageProcessing context. """ import Mogrify require Logger alias DobbleGenerator.ImageProcessing.Picture alias DobbleGenerator.Picture, as: PictureUploader alias DobbleGenerator.ImageProcessing.Mogrify.Montage alias DobbleGenerator.Imag...
25.722581
90
0.636569
1db6f3a5d24f33b304d9e9b3b0441e318260dac7
263
exs
Elixir
config/config.exs
deejay1/logger_logstash_backend
9033b69139deb37263d1a107a310f1f6d33af0eb
[ "Apache-2.0" ]
1
2018-10-30T15:12:13.000Z
2018-10-30T15:12:13.000Z
config/config.exs
deejay1/logger_logstash_backend
9033b69139deb37263d1a107a310f1f6d33af0eb
[ "Apache-2.0" ]
null
null
null
config/config.exs
deejay1/logger_logstash_backend
9033b69139deb37263d1a107a310f1f6d33af0eb
[ "Apache-2.0" ]
1
2019-10-29T09:53:10.000Z
2019-10-29T09:53:10.000Z
use Mix.Config config :logger, backends: [{LoggerLogstashBackend, :logstash}, :console] config :logger, :logstash, host: "127.0.0.1", port: 8080, level: :info, handler: LoggerLogstashBackend.TCP, type: "logstash", metadata: [ key1: "value1" ]
17.533333
56
0.669202
1db70540b0ddbda3d7602cd53ad4d33d8c8dce48
1,108
exs
Elixir
mix.exs
ScrimpyCat/ResxHTTP
0b6b17bb8415176e4d74c617574af2e3c405b88e
[ "BSD-2-Clause" ]
null
null
null
mix.exs
ScrimpyCat/ResxHTTP
0b6b17bb8415176e4d74c617574af2e3c405b88e
[ "BSD-2-Clause" ]
null
null
null
mix.exs
ScrimpyCat/ResxHTTP
0b6b17bb8415176e4d74c617574af2e3c405b88e
[ "BSD-2-Clause" ]
null
null
null
defmodule ResxHTTP.MixProject do use Mix.Project def project do [ app: :resx_http, description: "HTTP producer for the resx library", version: "0.1.0", elixir: "~> 1.7", start_permanent: Mix.env() == :prod, deps: deps(), ...
27.02439
77
0.462996
1db70bd3c12385540371c8e1d58fca0d44393885
157
exs
Elixir
priv/repo/migrations/20161101091321_rename_username_to_email.exs
renuo/dev-quotes
dcb187c82697c756f19c40bbe84b0555eda6ae86
[ "MIT" ]
null
null
null
priv/repo/migrations/20161101091321_rename_username_to_email.exs
renuo/dev-quotes
dcb187c82697c756f19c40bbe84b0555eda6ae86
[ "MIT" ]
null
null
null
priv/repo/migrations/20161101091321_rename_username_to_email.exs
renuo/dev-quotes
dcb187c82697c756f19c40bbe84b0555eda6ae86
[ "MIT" ]
null
null
null
defmodule DevQuotes.Repo.Migrations.RenameUsernameToEmail do use Ecto.Migration def change do rename table(:users), :username, to: :email end end
19.625
60
0.757962
1db714dd8d64c72823c580fbbb26720de993b12d
467
ex
Elixir
phoenix_app/benchmarker/web/router.ex
ansrivas/phoenix-and-gin
c3ee9f2bc5db3bb41179bc7b8747455ae148b55b
[ "MIT" ]
null
null
null
phoenix_app/benchmarker/web/router.ex
ansrivas/phoenix-and-gin
c3ee9f2bc5db3bb41179bc7b8747455ae148b55b
[ "MIT" ]
null
null
null
phoenix_app/benchmarker/web/router.ex
ansrivas/phoenix-and-gin
c3ee9f2bc5db3bb41179bc7b8747455ae148b55b
[ "MIT" ]
null
null
null
defmodule Benchmarker.Router do use Benchmarker.Web, :router pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_flash end pipeline :api do plug :accepts, ["json"] end scope "/", Benchmarker do pipe_through :browser # Use the default browser stack get "/:...
18.68
57
0.668094
1db718e172464eff0b518f15c6ad67618cde1bc0
509
ex
Elixir
lib/dstreams_web/views/error_view.ex
vegabook/dstreams
9a2919b36ba2901522a61737a593fea28a655777
[ "MIT" ]
null
null
null
lib/dstreams_web/views/error_view.ex
vegabook/dstreams
9a2919b36ba2901522a61737a593fea28a655777
[ "MIT" ]
null
null
null
lib/dstreams_web/views/error_view.ex
vegabook/dstreams
9a2919b36ba2901522a61737a593fea28a655777
[ "MIT" ]
null
null
null
defmodule DstreamsWeb.ErrorView do use DstreamsWeb, :view # If you want to customize a particular status code # for a certain format, you may uncomment below. # def render("500.html", _assigns) do # "Internal Server Error" # end # By default, Phoenix returns the status message from # the t...
29.941176
62
0.713163
1db74ada0007522e6f37389581b53a666e769bc0
1,778
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/list_population_clause.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/list_population_clause.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/dfa_reporting/lib/google_api/dfa_reporting/v28/model/list_population_clause.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
37.041667
188
0.763217
1db751b6d94595cbe85e3b415c5b627752d4fb8a
316
ex
Elixir
apps/common/lib/gulp/json.ex
jfis/ex-gulp
806d305ede7df3c2b42d21c2e7b574987832c8d6
[ "MIT" ]
null
null
null
apps/common/lib/gulp/json.ex
jfis/ex-gulp
806d305ede7df3c2b42d21c2e7b574987832c8d6
[ "MIT" ]
null
null
null
apps/common/lib/gulp/json.ex
jfis/ex-gulp
806d305ede7df3c2b42d21c2e7b574987832c8d6
[ "MIT" ]
null
null
null
defmodule Gulp.Json do @behaviour Gulp alias Gulp.Conn def init(opts) do opts end def call(conn, opts) do header = {"content-type", "application/json"} body = opts.json.encode!(conn.body) %Conn{conn | req_headers: [header | conn.req_headers], req_body: body, } end end
16.631579
49
0.626582
1db775ef875b1ab9e6851fae23a1aa81eb2a5c6d
11,884
ex
Elixir
lib/faker/star_wars/en.ex
theabrad/faker
7bf54d15f127a2fb845335967b5b601e67960ef0
[ "MIT" ]
null
null
null
lib/faker/star_wars/en.ex
theabrad/faker
7bf54d15f127a2fb845335967b5b601e67960ef0
[ "MIT" ]
57
2018-12-24T10:39:32.000Z
2020-12-28T10:13:00.000Z
lib/faker/star_wars/en.ex
theabrad/faker
7bf54d15f127a2fb845335967b5b601e67960ef0
[ "MIT" ]
1
2019-02-03T17:04:21.000Z
2019-02-03T17:04:21.000Z
defmodule Faker.StarWars.En do import Faker, only: [sampler: 2] @moduledoc """ Functions for generating StarWars related data in English """ @doc """ Returns a Star Wars character name in English ## Examples iex> Faker.StarWars.En.character() "Plo Koon" iex> Faker.StarWars.En.charact...
42.141844
452
0.652642
1db77ba7c25dbacded3656f4c70f42a8d6648e6c
2,292
exs
Elixir
test/day_09_marble_mania_test.exs
scmx/advent-of-code-2018-elixir
bad5a125fdc98519c29cbca1e5b7f64d61da5869
[ "MIT" ]
2
2019-01-16T16:10:31.000Z
2019-05-14T04:41:15.000Z
test/day_09_marble_mania_test.exs
scmx/advent-of-code-2018-elixir
bad5a125fdc98519c29cbca1e5b7f64d61da5869
[ "MIT" ]
null
null
null
test/day_09_marble_mania_test.exs
scmx/advent-of-code-2018-elixir
bad5a125fdc98519c29cbca1e5b7f64d61da5869
[ "MIT" ]
1
2019-01-02T18:13:23.000Z
2019-01-02T18:13:23.000Z
defmodule Adventofcode.Day09MarbleManiaTest do use Adventofcode.FancyCase alias Adventofcode.Circle import Adventofcode.Day09MarbleMania describe "winning_score/1" do test "9 players; last marble is worth 25 points: high score is 32" do assert 32 = "9 players; last marble is worth 25 points" |> win...
32.28169
88
0.65925
1db78766e4f2cefa60215b7eabf5c1ef79204659
1,826
ex
Elixir
lib/invenger_web.ex
manoel-lopes/invenger
19f76964c95cd4e038c78cf743fe28069b73b9b2
[ "MIT" ]
null
null
null
lib/invenger_web.ex
manoel-lopes/invenger
19f76964c95cd4e038c78cf743fe28069b73b9b2
[ "MIT" ]
null
null
null
lib/invenger_web.ex
manoel-lopes/invenger
19f76964c95cd4e038c78cf743fe28069b73b9b2
[ "MIT" ]
null
null
null
defmodule InvengerWeb do @moduledoc """ The entrypoint for defining your web interface, such as controllers, views, channels and so on. This can be used in your application as: use InvengerWeb, :controller use InvengerWeb, :view The definitions below will be executed for every view, controlle...
23.113924
76
0.690033
1db79765af456523a41161b1d815c3f184ca6147
1,524
ex
Elixir
shritesh+elixir/lib/advent/day_9.ex
NashFP/advent-2020
3ef8736357cb1753ea6b8acf558e344e842ab247
[ "MIT" ]
1
2020-11-25T01:54:02.000Z
2020-11-25T01:54:02.000Z
shritesh+elixir/lib/advent/day_9.ex
NashFP/advent-2020
3ef8736357cb1753ea6b8acf558e344e842ab247
[ "MIT" ]
null
null
null
shritesh+elixir/lib/advent/day_9.ex
NashFP/advent-2020
3ef8736357cb1753ea6b8acf558e344e842ab247
[ "MIT" ]
2
2020-11-25T01:54:42.000Z
2021-02-24T00:12:59.000Z
defmodule Advent.Day9 do defp input_to_numbers(input) do String.split(input, "\n", trim: true) |> Enum.map(&String.to_integer/1) end defp valid_chunk?(chunk) do [sum | numbers] = Enum.reverse(chunk) Stream.flat_map(numbers, fn x -> Stream.map(numbers, fn y -> {x, y} end) end) |> Stream.filte...
27.709091
81
0.607612
1db7b701ee24e4795107de0dc4a65c9e106aef2e
506
ex
Elixir
back/lib/zx/business/partner_helpers.ex
giovanecosta/zebra-xantis
92e5937d51c44e75544bb539f5d95f6b0cc61b94
[ "MIT" ]
null
null
null
back/lib/zx/business/partner_helpers.ex
giovanecosta/zebra-xantis
92e5937d51c44e75544bb539f5d95f6b0cc61b94
[ "MIT" ]
null
null
null
back/lib/zx/business/partner_helpers.ex
giovanecosta/zebra-xantis
92e5937d51c44e75544bb539f5d95f6b0cc61b94
[ "MIT" ]
1
2019-08-29T17:37:51.000Z
2019-08-29T17:37:51.000Z
defmodule Zx.Business.PartnerHelpers do def geojson_translate(map) when is_map(map) do map |> Enum.map(fn {k, v} -> case v do %{"type" => "MultiPolygon"} -> {k, v["coordinates"]} %{"type" => "Point", "coordinates" => [lat, lng]} -> {k, %{"lat" => lat, "lng" => lng}} ...
23
75
0.509881
1db7d15ab7be4bf2bc3340c2ed14d5782f8c1b8d
262
ex
Elixir
apps/storage/lib/storage.ex
anyex-project/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
12
2019-02-21T21:29:08.000Z
2019-05-14T11:41:10.000Z
apps/storage/lib/storage.ex
Hentioe/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
18
2019-02-05T17:19:33.000Z
2019-03-13T13:38:08.000Z
apps/storage/lib/storage.ex
Hentioe/anyex
d04018337bcec621f2e2e8d17773fa2724e3c6e1
[ "MIT" ]
null
null
null
defmodule Storage do @moduledoc """ 应用入口/监督树管理 """ use Application def start(_type, _args) do children = [ Storage.Repo ] opts = [strategy: :one_for_one, name: Storage.Supervisor] Supervisor.start_link(children, opts) end end
16.375
61
0.652672
1db80705184db3eeb7c8483c35c7eb0745e89dd8
376
ex
Elixir
chat/lib/supervisor.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chat/lib/supervisor.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
chat/lib/supervisor.ex
joshmcarthur/learning-elixir
5ccfdd61dcfaba82c05559fb9c0e6f99cf4319e7
[ "MIT" ]
null
null
null
defmodule Chat.Supervisor do use Supervisor def start_link do Supervisor.start_link(__MODULE__, []) end def init(_) do children = [ worker(Chat.Server, []) ] # If one dies, it won't affect the others, it will restart it. # Also see one_for_all and simple_one_for_one, rest_for_one ...
20.888889
66
0.68617
1db8318340dbb7b0b14494ce43713652fe657cc0
1,962
ex
Elixir
2018/elixir/advent_of_code/lib/day1/day1.ex
drincruz/advent-of-code
45b639fc2eddfe45ed4387f7bf2be9a3d3cd6ec2
[ "MIT" ]
1
2019-05-14T04:44:01.000Z
2019-05-14T04:44:01.000Z
2018/elixir/advent_of_code/lib/day1/day1.ex
drincruz/advent-of-code
45b639fc2eddfe45ed4387f7bf2be9a3d3cd6ec2
[ "MIT" ]
1
2018-12-10T19:00:01.000Z
2018-12-10T19:00:01.000Z
2018/elixir/advent_of_code/lib/day1/day1.ex
drincruz/advent-of-code
45b639fc2eddfe45ed4387f7bf2be9a3d3cd6ec2
[ "MIT" ]
null
null
null
defmodule AdventOfCode.Day1 do @moduledoc """ Day 1. Calculate frequency starting from 0 and adding/subtracting depending on the input given. i.e. +1 will increase 1, -1 will decrease 1. """ @data Path.join(["day1.sample_input.txt"]) def read do File.stream!(@data, [], :line) |> Strea...
22.551724
85
0.603976
1db892acdeffbaf12f5afd89229c67e761087322
432
exs
Elixir
spec/membrane/message_spec.exs
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
spec/membrane/message_spec.exs
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
spec/membrane/message_spec.exs
mkaput/membrane-core
f65ae3d847f2c10f3ab20d0c7aa75b0faa274ec7
[ "Apache-2.0" ]
null
null
null
defmodule Membrane.MessageSpec do use ESpec, async: true describe "when creating new struct" do it "should have type field set to nil" do %Membrane.Message{type: type} = struct(described_module()) expect(type) |> to(be_nil()) end it "should have payload field set to nil" do %Membrane...
27
70
0.671296
1db8ad4df8d922acc888a2a89200188156376188
2,745
ex
Elixir
skippy/hub/lib/hub_web/channels/presence.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
null
null
null
skippy/hub/lib/hub_web/channels/presence.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
5
2020-07-17T23:35:42.000Z
2021-05-10T07:00:10.000Z
skippy/hub/lib/hub_web/channels/presence.ex
mashbytes/baby_zoo
4554890242a2493d17d9b1c1f4cc90d7ad1e637e
[ "MIT" ]
null
null
null
defmodule HubWeb.Presence do @moduledoc """ Provides presence tracking to channels and processes. See the [`Phoenix.Presence`](http://hexdocs.pm/phoenix/Phoenix.Presence.html) docs for more details. ## Usage Presences can be tracked in your channel after joining: defmodule Hub.MyChannel do ...
37.094595
79
0.669581
1db8ba5b6cd9e805bbb9156860d590d80e317573
8,114
ex
Elixir
apps/admin_api/lib/admin_api/v1/controllers/transaction_consumption_controller.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/controllers/transaction_consumption_controller.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/admin_api/lib/admin_api/v1/controllers/transaction_consumption_controller.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
32.198413
96
0.682154
1db8cb7f291014625c1f2dcfe3c9945ec6a21839
4,307
ex
Elixir
lib/ex_unit/lib/ex_unit/capture_log.ex
RyanBard/elixir
3e0f3b47cf26aa121470141b9a1aa55a366c066e
[ "Apache-2.0" ]
2
2018-11-15T06:38:14.000Z
2018-11-17T18:03:14.000Z
lib/ex_unit/lib/ex_unit/capture_log.ex
RyanBard/elixir
3e0f3b47cf26aa121470141b9a1aa55a366c066e
[ "Apache-2.0" ]
1
2018-09-10T23:36:45.000Z
2018-09-10T23:36:45.000Z
lib/ex_unit/lib/ex_unit/capture_log.ex
RyanBard/elixir
3e0f3b47cf26aa121470141b9a1aa55a366c066e
[ "Apache-2.0" ]
1
2018-09-10T23:32:56.000Z
2018-09-10T23:32:56.000Z
defmodule ExUnit.CaptureLog do @moduledoc ~S""" Functionality to capture logs for testing. ## Examples defmodule AssertionTest do use ExUnit.Case import ExUnit.CaptureLog require Logger test "example" do assert capture_log(fn -> Logger.error "log msg...
29.909722
96
0.634781
1db8f80f1e215c1642023ae9f4d307758d103c50
2,139
ex
Elixir
solomon/web/services/jwt_claims.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
solomon/web/services/jwt_claims.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
solomon/web/services/jwt_claims.ex
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
defmodule Solomon.JWTClaims do import Ecto.Query alias Solomon.Repo alias Solomon.Account alias Solomon.AccountRole alias Solomon.Role alias Solomon.RolePermission alias Solomon.Permission alias Solomon.User alias Solomon.ScopeService def token_claim(account_id, scope_id) do account = Repo.get!...
26.085366
79
0.612903
1db9039997732ea6007c57c3372e6a80abe9fd3b
4,376
ex
Elixir
lib/bitpal_web/controllers/user_auth.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
5
2021-05-04T21:28:00.000Z
2021-12-01T11:19:48.000Z
lib/bitpal_web/controllers/user_auth.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
71
2021-04-21T05:48:49.000Z
2022-03-23T06:30:37.000Z
lib/bitpal_web/controllers/user_auth.ex
bitpal/bitpal
0e10eeaacf7a65b23945cfb95e4dbda8bffd4590
[ "BSD-3-Clause-Clear" ]
1
2021-04-25T10:35:41.000Z
2021-04-25T10:35:41.000Z
defmodule BitPalWeb.UserAuth do import Plug.Conn import Phoenix.Controller alias BitPal.Accounts alias BitPalWeb.Router.Helpers, as: Routes # Make the remember me cookie valid for 60 days. # If you want bump or reduce this value, also change # the token expiry itself in UserToken. @max_age 60 * 60 * 2...
29.173333
81
0.69447
1db90c6f64174c72546eb37307be3f8e4f8d0bce
277
exs
Elixir
config/test.exs
haojiwu/phoenix_hello
aee3d40a018e73b24767de1be5692a9cd9cf2017
[ "MIT" ]
6
2019-06-11T22:16:47.000Z
2021-05-19T10:32:58.000Z
config/test.exs
haojiwu/phoenix_hello
aee3d40a018e73b24767de1be5692a9cd9cf2017
[ "MIT" ]
2
2021-08-22T19:41:42.000Z
2021-12-16T15:26:14.000Z
config/test.exs
haojiwu/phoenix_hello
aee3d40a018e73b24767de1be5692a9cd9cf2017
[ "MIT" ]
16
2019-06-12T19:39:41.000Z
2022-03-26T07:34:44.000Z
use Mix.Config # We don't run a server during test. If one is required, # you can enable the server option below. config :phoenix_hello, PhoenixHelloWeb.Endpoint, http: [port: 4002], server: false # Print only warnings and errors during test config :logger, level: :warn
25.181818
56
0.747292
1db943f821db4181ea9ce1e321091dcd6bc3c40e
1,607
exs
Elixir
test/classifiers/perceptron/average_test.exs
elixir-cortex/classifiers
e86fc1af5aadc675ae4e4d5910fdba3cb7949c34
[ "MIT" ]
9
2015-12-04T12:37:24.000Z
2018-07-11T07:39:23.000Z
test/classifiers/perceptron/average_test.exs
elixir-cortex/classifiers
e86fc1af5aadc675ae4e4d5910fdba3cb7949c34
[ "MIT" ]
null
null
null
test/classifiers/perceptron/average_test.exs
elixir-cortex/classifiers
e86fc1af5aadc675ae4e4d5910fdba3cb7949c34
[ "MIT" ]
null
null
null
defmodule ClassifiersTest.Perceptron.Average do use ExUnit.Case setup do classifier = Classifiers.Perceptron.Average.new "average_perceptron_train.csv" |> Fixture.csv(num_pipes: 1) |> Classifiers.Perceptron.Average.fit(classifier, epochs: 1) testfile = "average_perceptron_test.csv" ...
30.903846
108
0.651525
1db98db1d1916497cc46c129a6bac892cfc74e17
2,049
ex
Elixir
lib/weirding/chain.ex
keathley/weirding
12bc0a20b80dde89f4beff2bd74c91b4a44e8a08
[ "MIT" ]
6
2019-06-06T03:58:10.000Z
2020-10-13T08:04:20.000Z
lib/weirding/chain.ex
keathley/weirding
12bc0a20b80dde89f4beff2bd74c91b4a44e8a08
[ "MIT" ]
1
2021-12-15T04:28:56.000Z
2021-12-15T04:28:56.000Z
lib/weirding/chain.ex
keathley/weirding
12bc0a20b80dde89f4beff2bd74c91b4a44e8a08
[ "MIT" ]
1
2020-10-07T14:08:48.000Z
2020-10-07T14:08:48.000Z
defmodule Weirding.Chain do @moduledoc false # This module provides a basic markov chain for generating text. It also defines # a GenServer. The GenServer is designed to load the pre-built chain when the # weirding application boots, convert the chain from binary back into a term, # and store it in persistent...
28.458333
82
0.649097
1db9e9e78a8e9e810251bfeac4e2fe16ac32e4e1
73
ex
Elixir
lib/ex_libnice/native.ex
membraneframework/elixir_libnice
5db244055282855aeaa520a6e4ae65cad34a084a
[ "Apache-2.0" ]
4
2021-05-14T04:31:10.000Z
2021-07-29T00:04:58.000Z
lib/ex_libnice/native.ex
membraneframework/ex_libnice
ef4b7baaa31ecf8d528823016bf4d7b7208c8471
[ "Apache-2.0" ]
8
2020-10-09T14:30:34.000Z
2021-11-19T17:07:25.000Z
lib/ex_libnice/native.ex
membraneframework/ex_libnice
ef4b7baaa31ecf8d528823016bf4d7b7208c8471
[ "Apache-2.0" ]
null
null
null
defmodule ExLibnice.Native do @moduledoc false use Unifex.Loader end
14.6
29
0.794521
1dba19de96e3705ace6b5cbba5d4322c5400a0ce
2,280
ex
Elixir
lib/invoice_tracker/repo.ex
randycoulman/invoice
26115ed58203059cfcffea70af8f335036661abf
[ "MIT" ]
9
2017-11-30T18:47:19.000Z
2021-04-06T14:25:48.000Z
lib/invoice_tracker/repo.ex
randycoulman/invoice
26115ed58203059cfcffea70af8f335036661abf
[ "MIT" ]
2
2017-08-04T13:49:52.000Z
2020-01-04T23:04:06.000Z
lib/invoice_tracker/repo.ex
randycoulman/invoice
26115ed58203059cfcffea70af8f335036661abf
[ "MIT" ]
3
2020-01-04T21:48:49.000Z
2021-04-07T07:27:38.000Z
defmodule InvoiceTracker.Repo do @moduledoc """ Manages the storage of invoices """ @agent __MODULE__ alias InvoiceTracker.Invoice @doc """ Start the repository manager using in-memory term storage. """ @spec start_link_in_memory() :: Agent.on_start() def start_link_in_memory do start_link(fn...
25.617978
88
0.644737
1dba26fe93e1048409630c149b5d33648d5f0111
1,088
ex
Elixir
lib/kepler_web/channels/user_socket.ex
SAAF-Alex-and-Ashton-Forces/kepler
06cea361e5972b5ebe4e19f70793d921aca25664
[ "MIT" ]
null
null
null
lib/kepler_web/channels/user_socket.ex
SAAF-Alex-and-Ashton-Forces/kepler
06cea361e5972b5ebe4e19f70793d921aca25664
[ "MIT" ]
null
null
null
lib/kepler_web/channels/user_socket.ex
SAAF-Alex-and-Ashton-Forces/kepler
06cea361e5972b5ebe4e19f70793d921aca25664
[ "MIT" ]
null
null
null
defmodule KeplerWeb.UserSocket do use Phoenix.Socket ## Channels # channel "room:*", KeplerWeb.RoomChannel # Socket params are passed from the client and can # be used to verify and authenticate a user. After # verification, you can put default assigns into # the socket that will be set for all channels...
30.222222
83
0.693934
1dba6be5397c53ad5434ff153ca88bd982850db0
1,954
ex
Elixir
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__explicit_content_frame.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__explicit_content_frame.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/video_intelligence/lib/google_api/video_intelligence/v1/model/google_cloud_videointelligence_v1p2beta1__explicit_content_frame.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
33.689655
133
0.750256
1dbabff2600186808e7ca5252112e558c7248ce0
813
ex
Elixir
lib/ueberauth_example_web/views/error_helpers.ex
rerb/ueberauth_example
1a08d578dfeaca5b77d213b1abbc53913f2a3b37
[ "MIT" ]
210
2015-11-19T01:54:04.000Z
2021-11-14T18:14:57.000Z
lib/ueberauth_example_web/views/error_helpers.ex
rerb/ueberauth_example
1a08d578dfeaca5b77d213b1abbc53913f2a3b37
[ "MIT" ]
63
2015-11-19T00:08:29.000Z
2021-09-07T03:04:36.000Z
lib/ueberauth_example_web/views/error_helpers.ex
rerb/ueberauth_example
1a08d578dfeaca5b77d213b1abbc53913f2a3b37
[ "MIT" ]
102
2015-11-20T11:47:12.000Z
2022-03-23T11:10:38.000Z
defmodule UeberauthExampleWeb.ErrorHelpers do @moduledoc """ Conveniences for translating and building error messages. """ use Phoenix.HTML @doc """ Generates tag for inlined form input errors. """ def error_tag(form, field) do Enum.map(Keyword.get_values(form.errors, field), fn error -> con...
26.225806
69
0.666667
1dbac0a8788dc32cad93d2ec2a0eb347b39516b2
10,099
ex
Elixir
lib/mix/tasks/sync_gmail_inbox.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
null
null
null
lib/mix/tasks/sync_gmail_inbox.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
null
null
null
lib/mix/tasks/sync_gmail_inbox.ex
aboutphilippe/papercups
30364cc562f41cd9d5a7ca5357b16ab8484bd5c9
[ "MIT" ]
null
null
null
defmodule Mix.Tasks.SyncGmailInbox do use Mix.Task @shortdoc "Script to test the upcoming Gmail inbox sync feature" @moduledoc """ Example: ``` $ mix sync_gmail_inbox [ACCOUNT_ID] $ mix sync_gmail_inbox [ACCOUNT_ID] [HISTORY_ID] $ mix sync_gmail_inbox [ACCOUNT_ID] [HISTORY_ID] [LABEL_ID] ``` """ ...
32.895765
96
0.641549
1dbacad00cf8f45cd83afcb0436f632f8e77f062
1,700
exs
Elixir
test/cas_agent_test.exs
rubencaro/cas_agent
0ac47623f7467fe03513de063a8b4b08cfd2360e
[ "MIT" ]
null
null
null
test/cas_agent_test.exs
rubencaro/cas_agent
0ac47623f7467fe03513de063a8b4b08cfd2360e
[ "MIT" ]
null
null
null
test/cas_agent_test.exs
rubencaro/cas_agent
0ac47623f7467fe03513de063a8b4b08cfd2360e
[ "MIT" ]
null
null
null
alias CasAgent, as: C defmodule CasAgentTest do use ExUnit.Case setup_all do C.start end setup do :ets.delete_all_objects :CAS_table Agent.update :CAS_agent, fn(_)-> %{} end end test "it reads" do true = :ets.insert :CAS_table, {:a, %{v: 1, ts: 0}} assert C.read(:a) == %{v: 1, ts: 0}...
23.943662
64
0.514706
1dbb248674fec2e2d5b6401bd5b5b7ce9c0dd01a
1,466
exs
Elixir
test/adapters/smtp_test.exs
DockYard/courier
8098f68453a9f5e94053857f312928009b63ff5b
[ "MIT" ]
50
2016-02-26T21:21:56.000Z
2022-03-31T13:56:35.000Z
test/adapters/smtp_test.exs
DockYard/courier
8098f68453a9f5e94053857f312928009b63ff5b
[ "MIT" ]
5
2016-08-03T12:32:17.000Z
2017-12-12T13:18:11.000Z
test/adapters/smtp_test.exs
DockYard/courier
8098f68453a9f5e94053857f312928009b63ff5b
[ "MIT" ]
7
2016-05-16T22:51:30.000Z
2020-04-30T15:31:57.000Z
defmodule Courier.Adapters.SMTPTest do use ExUnit.Case defmodule Server do def init(_hostname, _session_count, _address, options), do: {:ok, "", %{options: options}} def handle_EHLO(_hostname, extensions, state), do: {:ok, extensions, state} def handle_DATA(from, to, data, state) do ...
25.275862
95
0.600955
1dbb29eda8d4ea467e5bb163ecd573dff9ec3e36
14,626
ex
Elixir
lib/glimesh/old_graphql/schema/channel_types.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh/old_graphql/schema/channel_types.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
lib/glimesh/old_graphql/schema/channel_types.ex
MemoryLeakDeath/glimesh.tv
1462c4b939da899f5e3f67c3f28850025d59a10f
[ "MIT" ]
null
null
null
defmodule Glimesh.OldSchema.ChannelTypes do @moduledoc false use Absinthe.Schema.Notation import Absinthe.Resolution.Helpers import_types(Absinthe.Plug.Types) alias Glimesh.OldResolvers.ChannelResolver alias Glimesh.Repo alias Glimesh.Streams input_object :stream_metadata_input do field :ingest_s...
36.84131
97
0.702653
1dbb6245c9764d1677b80b553db36b6d53fe36fa
119
exs
Elixir
test/tipalti/iframe/setup_process_test.exs
gadabout/tipalti-elixir
4cff4108b343b8d7c30d117494838ad00a46128a
[ "MIT" ]
8
2018-04-26T21:40:07.000Z
2019-08-14T10:55:53.000Z
test/tipalti/iframe/setup_process_test.exs
gadabout/tipalti-elixir
4cff4108b343b8d7c30d117494838ad00a46128a
[ "MIT" ]
198
2018-04-26T21:53:20.000Z
2022-03-23T15:20:11.000Z
test/tipalti/iframe/setup_process_test.exs
gadabout/tipalti-elixir
4cff4108b343b8d7c30d117494838ad00a46128a
[ "MIT" ]
1
2018-11-09T03:10:36.000Z
2018-11-09T03:10:36.000Z
defmodule Tipalti.IFrame.SetupProcessTest do use ExUnit.Case doctest Tipalti.IFrame.SetupProcess, import: true end
23.8
51
0.823529
1dbb8547b1ccd00cd100a5c32f132a28ccfba16f
114
ex
Elixir
lib/game/game_plays.ex
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
lib/game/game_plays.ex
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
lib/game/game_plays.ex
zeroasterisk/wordza
e0cdf317855ce2959865e6551f32e85a7c6fc2e1
[ "MIT" ]
null
null
null
defmodule Wordza.GamePlays do @moduledoc """ This is our Wordza GamePlays A History of all plays """ end
14.25
30
0.701754
1dbb8ae4665daa347d5a7043f60efe2a1b3e359e
451
ex
Elixir
lib/distancia/utils/parser.ex
walerian777/distanco
e73e9d4f4d9a8821ac5028537a4d7237ed587cad
[ "MIT" ]
2
2017-12-09T15:10:40.000Z
2017-12-09T15:40:44.000Z
lib/distancia/utils/parser.ex
walerian777/distancia
e73e9d4f4d9a8821ac5028537a4d7237ed587cad
[ "MIT" ]
null
null
null
lib/distancia/utils/parser.ex
walerian777/distancia
e73e9d4f4d9a8821ac5028537a4d7237ed587cad
[ "MIT" ]
null
null
null
defmodule Distancia.Utils.Parser do @moduledoc false def map_to_lists(args) do Enum.map(args, &to_list/1) end def to_list(arg), do: parse_to_list(arg) defp parse_to_list(list) when is_list(list), do: list defp parse_to_list(tuple) when is_tuple(tuple), do: Tuple.to_list(tuple) defp parse_to_list(nu...
30.066667
83
0.751663
1dbb8ef2035abe6eada84f9c538a9f7a64072175
1,987
ex
Elixir
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/operating_system_versions_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/operating_system_versions_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/dfa_reporting/lib/google_api/dfa_reporting/v34/model/operating_system_versions_list_response.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # 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...
36.127273
171
0.750881
1dbbcee22c3846cfeb3cde767972ec14d6fbea69
699
ex
Elixir
src/dguweb/web/gettext.ex
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
2
2016-08-09T16:46:52.000Z
2016-08-09T16:46:59.000Z
src/dguweb/web/gettext.ex
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
48
2016-07-14T15:12:41.000Z
2016-09-27T16:19:54.000Z
src/dguweb/web/gettext.ex
datagovuk/dgu2
3e24bdf27b30c22791efc19029ead05488c8f571
[ "MIT" ]
1
2021-04-10T21:23:44.000Z
2021-04-10T21:23:44.000Z
defmodule DGUWeb.Gettext do @moduledoc """ A module providing Internationalization with a gettext-based API. By using [Gettext](https://hexdocs.pm/gettext), your module gains a set of macros for translations, for example: import DGUWeb.Gettext # Simple translation gettext "Here is the strin...
27.96
72
0.676681
1dbbd0f4c8de9c7fcbb50ad2524ec317358ce731
5,301
ex
Elixir
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_set_account_info_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_set_account_info_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/identity_toolkit/lib/google_api/identity_toolkit/v3/model/identitytoolkit_relyingparty_set_account_info_request.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
44.923729
174
0.657989
1dbbd160a586f1db544d10b2b1a650cd16480b28
7,849
exs
Elixir
test/phoenix_ecto/html_test.exs
johannesE/phoenix_ecto
4f244291032972982edecd2b5972db12f141751f
[ "MIT" ]
null
null
null
test/phoenix_ecto/html_test.exs
johannesE/phoenix_ecto
4f244291032972982edecd2b5972db12f141751f
[ "MIT" ]
null
null
null
test/phoenix_ecto/html_test.exs
johannesE/phoenix_ecto
4f244291032972982edecd2b5972db12f141751f
[ "MIT" ]
null
null
null
defmodule PhoenixEcto.HTMLTest do use ExUnit.Case, async: true import Ecto.Changeset import Phoenix.HTML import Phoenix.HTML.Form defp safe_form_for(changeset, opts \\ [], function) do safe_to_string(form_for(changeset, "/", opts, function)) end test "converts decimal to safe" do assert html_es...
31.649194
111
0.586572
1dbbfa972381611c4928a38bf0f1da69f5cf263e
1,849
ex
Elixir
clients/android_management/lib/google_api/android_management/v1/model/user_facing_message.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/user_facing_message.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
null
null
null
clients/android_management/lib/google_api/android_management/v1/model/user_facing_message.ex
GoNZooo/elixir-google-api
cf3ad7392921177f68091f3d9001f1b01b92f1cc
[ "Apache-2.0" ]
1
2018-07-28T20:50:50.000Z
2018-07-28T20:50:50.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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...
38.520833
278
0.762574
1dbc034fbf68fa044dea279fd618012f20efebb7
999
exs
Elixir
test/samples/elixir.exs
DTeuchert/vscode-todo-parser
2f83a30bfbeb15ae93cf068fff4928287eb466eb
[ "MIT" ]
50
2016-02-17T12:10:26.000Z
2018-06-09T13:42:06.000Z
test/samples/elixir.exs
DTeuchert/vscode-todo-parser
2f83a30bfbeb15ae93cf068fff4928287eb466eb
[ "MIT" ]
71
2016-06-02T00:27:31.000Z
2018-07-02T12:14:36.000Z
test/samples/elixir.exs
DTeuchert/vscode-todo-parser
2f83a30bfbeb15ae93cf068fff4928287eb466eb
[ "MIT" ]
23
2016-06-15T10:33:23.000Z
2018-06-28T15:15:00.000Z
defmodule Array.Mixfile do use Mix.Project # TODO: elixir todo # elixir todo line 2 def project do [app: :array, version: "1.0.1", elixir: ">= 1.0.0", description: "An elixir wrapper library for Erlang's array.", package: package, deps: deps] end # Configuration for the OTP ap...
23.785714
77
0.596597
1dbc0584607ee0225e4fd4d2da3d5aa0c1d16a31
1,472
ex
Elixir
lib/tic_tac_toe/console/model.ex
andrewMacmurray/tic-tac-toe
8fb698e6db30486be3c96b6e9a5f281004222ef4
[ "MIT" ]
2
2017-12-02T16:50:50.000Z
2017-12-05T13:14:58.000Z
lib/tic_tac_toe/console/model.ex
andrewMacmurray/tic-tac-toe
8fb698e6db30486be3c96b6e9a5f281004222ef4
[ "MIT" ]
10
2017-12-05T22:18:24.000Z
2017-12-18T15:33:48.000Z
lib/tic_tac_toe/console/model.ex
andrewMacmurray/tic-tac-toe
8fb698e6db30486be3c96b6e9a5f281004222ef4
[ "MIT" ]
null
null
null
defmodule TicTacToe.Console.Model do @moduledoc false defstruct [ :game_type, :board, :ai_player, next_player: :player_1, game_status: :non_terminal ] alias TicTacToe.Board alias TicTacToe.Console.Model @doc """ Initialises a game for a given config """ def init({:human_v_human, ...
23
63
0.644701
1dbc11f402ffcce6f0bc28420f21cfc8c1dc4e33
2,340
ex
Elixir
clients/games/lib/google_api/games/v1/model/room_auto_matching_criteria.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/games/lib/google_api/games/v1/model/room_auto_matching_criteria.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/games/lib/google_api/games/v1/model/room_auto_matching_criteria.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
41.785714
236
0.734188
1dbc35a99e6777cb4978fe1c7b022c287854c4c7
2,110
ex
Elixir
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/delivery_control.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/delivery_control.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/ad_exchange_buyer/lib/google_api/ad_exchange_buyer/v2beta1/model/delivery_control.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
39.811321
157
0.74455
1dbc652dbde30fd8028e8448a58a46bb63689f7f
21,373
ex
Elixir
data/web/deps/calendar/lib/calendar/date.ex
lydiadwyer/trains_elixir
16da18d4582307f4967b6cce7320e9aa08a849c3
[ "Apache-2.0" ]
null
null
null
data/web/deps/calendar/lib/calendar/date.ex
lydiadwyer/trains_elixir
16da18d4582307f4967b6cce7320e9aa08a849c3
[ "Apache-2.0" ]
null
null
null
data/web/deps/calendar/lib/calendar/date.ex
lydiadwyer/trains_elixir
16da18d4582307f4967b6cce7320e9aa08a849c3
[ "Apache-2.0" ]
null
null
null
defprotocol Calendar.ContainsDate do @doc """ Returns a Calendar.Date struct for the struct in question """ def date_struct(data) end defmodule Calendar.Date do @moduledoc """ The Date module provides a struct to represent a simple date: year, month and day. """ @doc """ Takes a Date struct and retu...
31.110626
346
0.621906
1dbc8040d9c8e064749f7314acb0df817bd7409b
793
exs
Elixir
test/automated/sonda/records_signal_test.exs
Fire-Dragon-DoL/sonda
6565ff3a0a8303a120a3e6637fa2616614837cf3
[ "MIT" ]
null
null
null
test/automated/sonda/records_signal_test.exs
Fire-Dragon-DoL/sonda
6565ff3a0a8303a120a3e6637fa2616614837cf3
[ "MIT" ]
null
null
null
test/automated/sonda/records_signal_test.exs
Fire-Dragon-DoL/sonda
6565ff3a0a8303a120a3e6637fa2616614837cf3
[ "MIT" ]
null
null
null
defmodule Sonda.RecordSignalTest do use ExUnit.Case, async: true describe "Signals set to :any" do test "True for any signal" do pid = start_supervised!(Sonda) record_signal? = Sonda.record_signal?(pid, :a_signal) assert record_signal? end end @accepted_signals [:a_signal, :other_s...
23.323529
66
0.68348